source: branches/CouenneClassifier/configure @ 1123

Last change on this file since 1123 was 1123, checked in by pbelotti, 5 years ago

updated coinutils and made usable with new thirdparty packages

File size: 784.3 KB
Line 
1#! /bin/sh
2# From configure.ac 0.0.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Couenne trunk.
5#
6# Report bugs to <couenne@list.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2011 Pietro Belotti
14# All Rights Reserved.
15# This file is part of the open source package Coin-OR which is distributed
16# under the Eclipse Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Couenne'
432PACKAGE_TARNAME='couenne'
433PACKAGE_VERSION='trunk'
434PACKAGE_STRING='Couenne trunk'
435PACKAGE_BUGREPORT='couenne@list.coin-or.org'
436
437ac_unique_file="configure.ac"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subdirs_all="$ac_subdirs_all ThirdParty/ASL"
477ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
478ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
479ac_subdirs_all="$ac_subdirs_all ThirdParty/Metis"
480ac_subdirs_all="$ac_subdirs_all ThirdParty/HSL"
481ac_subdirs_all="$ac_subdirs_all ThirdParty/Mumps"
482ac_subdirs_all="$ac_subdirs_all ThirdParty/SoPlex"
483ac_subdirs_all="$ac_subdirs_all CoinUtils"
484ac_subdirs_all="$ac_subdirs_all Osi"
485ac_subdirs_all="$ac_subdirs_all Clp"
486ac_subdirs_all="$ac_subdirs_all Cgl"
487ac_subdirs_all="$ac_subdirs_all Cbc"
488ac_subdirs_all="$ac_subdirs_all Ipopt"
489ac_subdirs_all="$ac_subdirs_all ThirdParty/SCIP"
490ac_subdirs_all="$ac_subdirs_all Bonmin"
491ac_subdirs_all="$ac_subdirs_all Couenne"
492ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os 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 ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 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 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS COIN_SKIP_PROJECTS subdirs LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
493ac_subst_files=''
494
495# Initialize some variables set by options.
496ac_init_help=
497ac_init_version=false
498# The variables have the same names as the options, with
499# dashes changed to underlines.
500cache_file=/dev/null
501exec_prefix=NONE
502no_create=
503no_recursion=
504prefix=NONE
505program_prefix=NONE
506program_suffix=NONE
507program_transform_name=s,x,x,
508silent=
509site=
510srcdir=
511verbose=
512x_includes=NONE
513x_libraries=NONE
514
515# Installation directory options.
516# These are left unexpanded so users can "make install exec_prefix=/foo"
517# and all the variables that are supposed to be based on exec_prefix
518# by default will actually change.
519# Use braces instead of parens because sh, perl, etc. also accept them.
520bindir='${exec_prefix}/bin'
521sbindir='${exec_prefix}/sbin'
522libexecdir='${exec_prefix}/libexec'
523datadir='${prefix}/share'
524sysconfdir='${prefix}/etc'
525sharedstatedir='${prefix}/com'
526localstatedir='${prefix}/var'
527libdir='${exec_prefix}/lib'
528includedir='${prefix}/include'
529oldincludedir='/usr/include'
530infodir='${prefix}/info'
531mandir='${prefix}/man'
532
533ac_prev=
534for ac_option
535do
536  # If the previous option needs an argument, assign it.
537  if test -n "$ac_prev"; then
538    eval "$ac_prev=\$ac_option"
539    ac_prev=
540    continue
541  fi
542
543  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
544
545  # Accept the important Cygnus configure options, so we can diagnose typos.
546
547  case $ac_option in
548
549  -bindir | --bindir | --bindi | --bind | --bin | --bi)
550    ac_prev=bindir ;;
551  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
552    bindir=$ac_optarg ;;
553
554  -build | --build | --buil | --bui | --bu)
555    ac_prev=build_alias ;;
556  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
557    build_alias=$ac_optarg ;;
558
559  -cache-file | --cache-file | --cache-fil | --cache-fi \
560  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
561    ac_prev=cache_file ;;
562  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
563  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
564    cache_file=$ac_optarg ;;
565
566  --config-cache | -C)
567    cache_file=config.cache ;;
568
569  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
570    ac_prev=datadir ;;
571  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
572  | --da=*)
573    datadir=$ac_optarg ;;
574
575  -disable-* | --disable-*)
576    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
577    # Reject names that are not valid shell variable names.
578    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
579      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
580   { (exit 1); exit 1; }; }
581    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
582    eval "enable_$ac_feature=no" ;;
583
584  -enable-* | --enable-*)
585    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
586    # Reject names that are not valid shell variable names.
587    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
589   { (exit 1); exit 1; }; }
590    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
591    case $ac_option in
592      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
593      *) ac_optarg=yes ;;
594    esac
595    eval "enable_$ac_feature='$ac_optarg'" ;;
596
597  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
598  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
599  | --exec | --exe | --ex)
600    ac_prev=exec_prefix ;;
601  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
602  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
603  | --exec=* | --exe=* | --ex=*)
604    exec_prefix=$ac_optarg ;;
605
606  -gas | --gas | --ga | --g)
607    # Obsolete; use --with-gas.
608    with_gas=yes ;;
609
610  -help | --help | --hel | --he | -h)
611    ac_init_help=long ;;
612  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
613    ac_init_help=recursive ;;
614  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
615    ac_init_help=short ;;
616
617  -host | --host | --hos | --ho)
618    ac_prev=host_alias ;;
619  -host=* | --host=* | --hos=* | --ho=*)
620    host_alias=$ac_optarg ;;
621
622  -includedir | --includedir | --includedi | --included | --include \
623  | --includ | --inclu | --incl | --inc)
624    ac_prev=includedir ;;
625  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
626  | --includ=* | --inclu=* | --incl=* | --inc=*)
627    includedir=$ac_optarg ;;
628
629  -infodir | --infodir | --infodi | --infod | --info | --inf)
630    ac_prev=infodir ;;
631  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
632    infodir=$ac_optarg ;;
633
634  -libdir | --libdir | --libdi | --libd)
635    ac_prev=libdir ;;
636  -libdir=* | --libdir=* | --libdi=* | --libd=*)
637    libdir=$ac_optarg ;;
638
639  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
640  | --libexe | --libex | --libe)
641    ac_prev=libexecdir ;;
642  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
643  | --libexe=* | --libex=* | --libe=*)
644    libexecdir=$ac_optarg ;;
645
646  -localstatedir | --localstatedir | --localstatedi | --localstated \
647  | --localstate | --localstat | --localsta | --localst \
648  | --locals | --local | --loca | --loc | --lo)
649    ac_prev=localstatedir ;;
650  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
651  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
652  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
653    localstatedir=$ac_optarg ;;
654
655  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
656    ac_prev=mandir ;;
657  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
658    mandir=$ac_optarg ;;
659
660  -nfp | --nfp | --nf)
661    # Obsolete; use --without-fp.
662    with_fp=no ;;
663
664  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
665  | --no-cr | --no-c | -n)
666    no_create=yes ;;
667
668  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
669  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
670    no_recursion=yes ;;
671
672  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
673  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
674  | --oldin | --oldi | --old | --ol | --o)
675    ac_prev=oldincludedir ;;
676  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
677  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
678  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
679    oldincludedir=$ac_optarg ;;
680
681  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
682    ac_prev=prefix ;;
683  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
684    prefix=$ac_optarg ;;
685
686  -program-prefix | --program-prefix | --program-prefi | --program-pref \
687  | --program-pre | --program-pr | --program-p)
688    ac_prev=program_prefix ;;
689  -program-prefix=* | --program-prefix=* | --program-prefi=* \
690  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
691    program_prefix=$ac_optarg ;;
692
693  -program-suffix | --program-suffix | --program-suffi | --program-suff \
694  | --program-suf | --program-su | --program-s)
695    ac_prev=program_suffix ;;
696  -program-suffix=* | --program-suffix=* | --program-suffi=* \
697  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698    program_suffix=$ac_optarg ;;
699
700  -program-transform-name | --program-transform-name \
701  | --program-transform-nam | --program-transform-na \
702  | --program-transform-n | --program-transform- \
703  | --program-transform | --program-transfor \
704  | --program-transfo | --program-transf \
705  | --program-trans | --program-tran \
706  | --progr-tra | --program-tr | --program-t)
707    ac_prev=program_transform_name ;;
708  -program-transform-name=* | --program-transform-name=* \
709  | --program-transform-nam=* | --program-transform-na=* \
710  | --program-transform-n=* | --program-transform-=* \
711  | --program-transform=* | --program-transfor=* \
712  | --program-transfo=* | --program-transf=* \
713  | --program-trans=* | --program-tran=* \
714  | --progr-tra=* | --program-tr=* | --program-t=*)
715    program_transform_name=$ac_optarg ;;
716
717  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
718  | -silent | --silent | --silen | --sile | --sil)
719    silent=yes ;;
720
721  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
722    ac_prev=sbindir ;;
723  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
724  | --sbi=* | --sb=*)
725    sbindir=$ac_optarg ;;
726
727  -sharedstatedir | --sharedstatedir | --sharedstatedi \
728  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
729  | --sharedst | --shareds | --shared | --share | --shar \
730  | --sha | --sh)
731    ac_prev=sharedstatedir ;;
732  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
733  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
734  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
735  | --sha=* | --sh=*)
736    sharedstatedir=$ac_optarg ;;
737
738  -site | --site | --sit)
739    ac_prev=site ;;
740  -site=* | --site=* | --sit=*)
741    site=$ac_optarg ;;
742
743  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
744    ac_prev=srcdir ;;
745  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
746    srcdir=$ac_optarg ;;
747
748  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
749  | --syscon | --sysco | --sysc | --sys | --sy)
750    ac_prev=sysconfdir ;;
751  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
752  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
753    sysconfdir=$ac_optarg ;;
754
755  -target | --target | --targe | --targ | --tar | --ta | --t)
756    ac_prev=target_alias ;;
757  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
758    target_alias=$ac_optarg ;;
759
760  -v | -verbose | --verbose | --verbos | --verbo | --verb)
761    verbose=yes ;;
762
763  -version | --version | --versio | --versi | --vers | -V)
764    ac_init_version=: ;;
765
766  -with-* | --with-*)
767    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
768    # Reject names that are not valid shell variable names.
769    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770      { echo "$as_me: error: invalid package name: $ac_package" >&2
771   { (exit 1); exit 1; }; }
772    ac_package=`echo $ac_package| sed 's/-/_/g'`
773    case $ac_option in
774      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
775      *) ac_optarg=yes ;;
776    esac
777    eval "with_$ac_package='$ac_optarg'" ;;
778
779  -without-* | --without-*)
780    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
781    # Reject names that are not valid shell variable names.
782    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
783      { echo "$as_me: error: invalid package name: $ac_package" >&2
784   { (exit 1); exit 1; }; }
785    ac_package=`echo $ac_package | sed 's/-/_/g'`
786    eval "with_$ac_package=no" ;;
787
788  --x)
789    # Obsolete; use --with-x.
790    with_x=yes ;;
791
792  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
793  | --x-incl | --x-inc | --x-in | --x-i)
794    ac_prev=x_includes ;;
795  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
796  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
797    x_includes=$ac_optarg ;;
798
799  -x-libraries | --x-libraries | --x-librarie | --x-librari \
800  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
801    ac_prev=x_libraries ;;
802  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
803  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
804    x_libraries=$ac_optarg ;;
805
806  -*) { echo "$as_me: error: unrecognized option: $ac_option
807Try \`$0 --help' for more information." >&2
808   { (exit 1); exit 1; }; }
809    ;;
810
811  *=*)
812    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
813    # Reject names that are not valid shell variable names.
814    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
815      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
816   { (exit 1); exit 1; }; }
817    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
818    eval "$ac_envvar='$ac_optarg'"
819    export $ac_envvar ;;
820
821  *)
822    # FIXME: should be removed in autoconf 3.0.
823    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
824    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
825      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
826    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
827    ;;
828
829  esac
830done
831
832if test -n "$ac_prev"; then
833  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
834  { echo "$as_me: error: missing argument to $ac_option" >&2
835   { (exit 1); exit 1; }; }
836fi
837
838# Be sure to have absolute paths.
839for ac_var in exec_prefix prefix
840do
841  eval ac_val=$`echo $ac_var`
842  case $ac_val in
843    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
844    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
845   { (exit 1); exit 1; }; };;
846  esac
847done
848
849# Be sure to have absolute paths.
850for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
851              localstatedir libdir includedir oldincludedir infodir mandir
852do
853  eval ac_val=$`echo $ac_var`
854  case $ac_val in
855    [\\/$]* | ?:[\\/]* ) ;;
856    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
857   { (exit 1); exit 1; }; };;
858  esac
859done
860
861# There might be people who depend on the old broken behavior: `$host'
862# used to hold the argument of --host etc.
863# FIXME: To remove some day.
864build=$build_alias
865host=$host_alias
866target=$target_alias
867
868# FIXME: To remove some day.
869if test "x$host_alias" != x; then
870  if test "x$build_alias" = x; then
871    cross_compiling=maybe
872    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
873    If a cross compiler is detected then cross compile mode will be used." >&2
874  elif test "x$build_alias" != "x$host_alias"; then
875    cross_compiling=yes
876  fi
877fi
878
879ac_tool_prefix=
880test -n "$host_alias" && ac_tool_prefix=$host_alias-
881
882test "$silent" = yes && exec 6>/dev/null
883
884
885# Find the source files, if location was not specified.
886if test -z "$srcdir"; then
887  ac_srcdir_defaulted=yes
888  # Try the directory containing this script, then its parent.
889  ac_confdir=`(dirname "$0") 2>/dev/null ||
890$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
891         X"$0" : 'X\(//\)[^/]' \| \
892         X"$0" : 'X\(//\)$' \| \
893         X"$0" : 'X\(/\)' \| \
894         .     : '\(.\)' 2>/dev/null ||
895echo X"$0" |
896    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
897          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
898          /^X\(\/\/\)$/{ s//\1/; q; }
899          /^X\(\/\).*/{ s//\1/; q; }
900          s/.*/./; q'`
901  srcdir=$ac_confdir
902  if test ! -r $srcdir/$ac_unique_file; then
903    srcdir=..
904  fi
905else
906  ac_srcdir_defaulted=no
907fi
908if test ! -r $srcdir/$ac_unique_file; then
909  if test "$ac_srcdir_defaulted" = yes; then
910    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
911   { (exit 1); exit 1; }; }
912  else
913    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
914   { (exit 1); exit 1; }; }
915  fi
916fi
917(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
918  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
919   { (exit 1); exit 1; }; }
920srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
921ac_env_build_alias_set=${build_alias+set}
922ac_env_build_alias_value=$build_alias
923ac_cv_env_build_alias_set=${build_alias+set}
924ac_cv_env_build_alias_value=$build_alias
925ac_env_host_alias_set=${host_alias+set}
926ac_env_host_alias_value=$host_alias
927ac_cv_env_host_alias_set=${host_alias+set}
928ac_cv_env_host_alias_value=$host_alias
929ac_env_target_alias_set=${target_alias+set}
930ac_env_target_alias_value=$target_alias
931ac_cv_env_target_alias_set=${target_alias+set}
932ac_cv_env_target_alias_value=$target_alias
933ac_env_CDEFS_set=${CDEFS+set}
934ac_env_CDEFS_value=$CDEFS
935ac_cv_env_CDEFS_set=${CDEFS+set}
936ac_cv_env_CDEFS_value=$CDEFS
937ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
938ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
939ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
940ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
941ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
942ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
943ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
944ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
945ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
946ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
947ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
948ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
949ac_env_CC_set=${CC+set}
950ac_env_CC_value=$CC
951ac_cv_env_CC_set=${CC+set}
952ac_cv_env_CC_value=$CC
953ac_env_CFLAGS_set=${CFLAGS+set}
954ac_env_CFLAGS_value=$CFLAGS
955ac_cv_env_CFLAGS_set=${CFLAGS+set}
956ac_cv_env_CFLAGS_value=$CFLAGS
957ac_env_LDFLAGS_set=${LDFLAGS+set}
958ac_env_LDFLAGS_value=$LDFLAGS
959ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
960ac_cv_env_LDFLAGS_value=$LDFLAGS
961ac_env_CPPFLAGS_set=${CPPFLAGS+set}
962ac_env_CPPFLAGS_value=$CPPFLAGS
963ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
964ac_cv_env_CPPFLAGS_value=$CPPFLAGS
965ac_env_MPICC_set=${MPICC+set}
966ac_env_MPICC_value=$MPICC
967ac_cv_env_MPICC_set=${MPICC+set}
968ac_cv_env_MPICC_value=$MPICC
969ac_env_CXXDEFS_set=${CXXDEFS+set}
970ac_env_CXXDEFS_value=$CXXDEFS
971ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
972ac_cv_env_CXXDEFS_value=$CXXDEFS
973ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
974ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
975ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
976ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
977ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
978ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
979ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
980ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
981ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
982ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
983ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
984ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
985ac_env_CXX_set=${CXX+set}
986ac_env_CXX_value=$CXX
987ac_cv_env_CXX_set=${CXX+set}
988ac_cv_env_CXX_value=$CXX
989ac_env_CXXFLAGS_set=${CXXFLAGS+set}
990ac_env_CXXFLAGS_value=$CXXFLAGS
991ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
992ac_cv_env_CXXFLAGS_value=$CXXFLAGS
993ac_env_MPICXX_set=${MPICXX+set}
994ac_env_MPICXX_value=$MPICXX
995ac_cv_env_MPICXX_set=${MPICXX+set}
996ac_cv_env_MPICXX_value=$MPICXX
997ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
998ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
999ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1000ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
1001ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1002ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1003ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1004ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1005ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1006ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1007ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1008ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1009ac_env_F77_set=${F77+set}
1010ac_env_F77_value=$F77
1011ac_cv_env_F77_set=${F77+set}
1012ac_cv_env_F77_value=$F77
1013ac_env_FFLAGS_set=${FFLAGS+set}
1014ac_env_FFLAGS_value=$FFLAGS
1015ac_cv_env_FFLAGS_set=${FFLAGS+set}
1016ac_cv_env_FFLAGS_value=$FFLAGS
1017ac_env_MPIF77_set=${MPIF77+set}
1018ac_env_MPIF77_value=$MPIF77
1019ac_cv_env_MPIF77_set=${MPIF77+set}
1020ac_cv_env_MPIF77_value=$MPIF77
1021ac_env_CPP_set=${CPP+set}
1022ac_env_CPP_value=$CPP
1023ac_cv_env_CPP_set=${CPP+set}
1024ac_cv_env_CPP_value=$CPP
1025ac_env_CXXCPP_set=${CXXCPP+set}
1026ac_env_CXXCPP_value=$CXXCPP
1027ac_cv_env_CXXCPP_set=${CXXCPP+set}
1028ac_cv_env_CXXCPP_value=$CXXCPP
1029ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1030ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1031ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1032ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1033
1034#
1035# Report the --help message.
1036#
1037if test "$ac_init_help" = "long"; then
1038  # Omit some internal or obsolete options to make the list less imposing.
1039  # This message is too long to be a string in the A/UX 3.1 sh.
1040  cat <<_ACEOF
1041\`configure' configures Couenne trunk to adapt to many kinds of systems.
1042
1043Usage: $0 [OPTION]... [VAR=VALUE]...
1044
1045To assign environment variables (e.g., CC, CFLAGS...), specify them as
1046VAR=VALUE.  See below for descriptions of some of the useful variables.
1047
1048Defaults for the options are specified in brackets.
1049
1050Configuration:
1051  -h, --help              display this help and exit
1052      --help=short        display options specific to this package
1053      --help=recursive    display the short help of all the included packages
1054  -V, --version           display version information and exit
1055  -q, --quiet, --silent   do not print \`checking...' messages
1056      --cache-file=FILE   cache test results in FILE [disabled]
1057  -C, --config-cache      alias for \`--cache-file=config.cache'
1058  -n, --no-create         do not create output files
1059      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1060
1061_ACEOF
1062
1063  cat <<_ACEOF
1064Installation directories:
1065  --prefix=PREFIX         install architecture-independent files in PREFIX
1066                          [$ac_default_prefix]
1067  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1068                          [PREFIX]
1069
1070By default, \`make install' will install all the files in
1071\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1072an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1073for instance \`--prefix=\$HOME'.
1074
1075For better control, use the options below.
1076
1077Fine tuning of the installation directories:
1078  --bindir=DIR           user executables [EPREFIX/bin]
1079  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1080  --libexecdir=DIR       program executables [EPREFIX/libexec]
1081  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1082  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1083  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1084  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1085  --libdir=DIR           object code libraries [EPREFIX/lib]
1086  --includedir=DIR       C header files [PREFIX/include]
1087  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1088  --infodir=DIR          info documentation [PREFIX/info]
1089  --mandir=DIR           man documentation [PREFIX/man]
1090_ACEOF
1091
1092  cat <<\_ACEOF
1093
1094Program names:
1095  --program-prefix=PREFIX            prepend PREFIX to installed program names
1096  --program-suffix=SUFFIX            append SUFFIX to installed program names
1097  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1098
1099System types:
1100  --build=BUILD     configure for building on BUILD [guessed]
1101  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1102_ACEOF
1103fi
1104
1105if test -n "$ac_init_help"; then
1106  case $ac_init_help in
1107     short | recursive ) echo "Configuration of Couenne trunk:";;
1108   esac
1109  cat <<\_ACEOF
1110
1111Optional Features:
1112  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1113  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1114  --enable-debug          compile all projects with debug options tests
1115                          (implies --disable-shared)
1116
1117  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1118  --enable-static[=PKGS]
1119                          build static libraries [default=no]
1120  --disable-dependency-tracking  speeds up one-time build
1121  --enable-dependency-tracking   do not reject slow dependency extractors
1122  --enable-maintainer-mode  enable make rules and dependencies not useful
1123                          (and sometimes confusing) to the casual installer
1124  --enable-shared[=PKGS]
1125                          build shared libraries [default=yes]
1126  --enable-fast-install[=PKGS]
1127                          optimize for fast installation [default=yes]
1128  --disable-libtool-lock  avoid locking (might break parallel builds)
1129
1130Optional Packages:
1131  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1132  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1133  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1134  --with-pic              try to use only PIC/non-PIC objects [default=use
1135                          both]
1136  --with-tags[=TAGS]
1137                          include additional configurations [automatic]
1138
1139  --with-asl-lib linker flags for using project ASL
1140  --with-asl-incdir directory with header files for using project ASL
1141  --with-asl-datadir directory with data files for using project ASL
1142  --with-blas-lib linker flags for using project Blas
1143  --with-blas-incdir directory with header files for using project Blas
1144  --with-blas-datadir directory with data files for using project Blas
1145  --with-blas             specify BLAS library (or BUILD to enforce use of
1146                          ThirdParty/Blas)
1147  --with-lapack-lib linker flags for using project Lapack
1148  --with-lapack-incdir directory with header files for using project Lapack
1149  --with-lapack-datadir directory with data files for using project Lapack
1150  --with-lapack           specify LAPACK library (or BUILD to enforce use of
1151                          ThirdParty/Lapack)
1152  --with-metis-lib linker flags for using project Metis
1153  --with-metis-incdir directory with header files for using project Metis
1154  --with-metis-datadir directory with data files for using project Metis
1155  --with-hsl-lib linker flags for using project HSL
1156  --with-hsl-incdir directory with header files for using project HSL
1157  --with-hsl-datadir directory with data files for using project HSL
1158  --with-mumps-lib linker flags for using project Mumps
1159  --with-mumps-incdir directory with header files for using project Mumps
1160  --with-mumps-datadir directory with data files for using project Mumps
1161  --with-soplex-lib linker flags for using project SoPlex
1162  --with-soplex-incdir directory with header files for using project SoPlex
1163  --with-soplex-datadir directory with data files for using project SoPlex
1164  --with-coinutils-lib linker flags for using project CoinUtils
1165  --with-coinutils-incdir directory with header files for using project
1166                          CoinUtils
1167  --with-coinutils-datadir
1168                          directory with data files for using project
1169                          CoinUtils
1170  --with-osi-lib linker flags for using project Osi
1171  --with-osi-incdir directory with header files for using project Osi
1172  --with-osi-datadir directory with data files for using project Osi
1173  --with-clp-lib linker flags for using project Clp
1174  --with-clp-incdir directory with header files for using project Clp
1175  --with-clp-datadir directory with data files for using project Clp
1176  --with-cgl-lib linker flags for using project Cgl
1177  --with-cgl-incdir directory with header files for using project Cgl
1178  --with-cgl-datadir directory with data files for using project Cgl
1179  --with-cbc-lib linker flags for using project Cbc
1180  --with-cbc-incdir directory with header files for using project Cbc
1181  --with-cbc-datadir directory with data files for using project Cbc
1182  --with-ipopt-lib linker flags for using project Ipopt
1183  --with-ipopt-incdir directory with header files for using project Ipopt
1184  --with-ipopt-datadir directory with data files for using project Ipopt
1185  --with-scip-lib linker flags for using project SCIP
1186  --with-scip-incdir directory with header files for using project SCIP
1187  --with-scip-datadir directory with data files for using project SCIP
1188  --with-bonmin-lib linker flags for using project Bonmin
1189  --with-bonmin-incdir directory with header files for using project Bonmin
1190  --with-bonmin-datadir directory with data files for using project Bonmin
1191  --with-couenne-lib linker flags for using project Couenne
1192  --with-couenne-incdir directory with header files for using project Couenne
1193  --with-couenne-datadir directory with data files for using project Couenne
1194
1195Some influential environment variables:
1196  CDEFS       Additional -D flags to be used when compiling C code.
1197  ADD_CFLAGS  Additional C compiler options
1198  DBG_CFLAGS  Debug C compiler options
1199  OPT_CFLAGS  Optimize C compiler options
1200  CC          C compiler command
1201  CFLAGS      C compiler flags
1202  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1203              nonstandard directory <lib dir>
1204  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1205              headers in a nonstandard directory <include dir>
1206  MPICC       C MPI Compiler
1207  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1208  ADD_CXXFLAGS
1209              Additional C++ compiler options
1210  DBG_CXXFLAGS
1211              Debug C++ compiler options
1212  OPT_CXXFLAGS
1213              Optimize C++ compiler options
1214  CXX         C++ compiler command
1215  CXXFLAGS    C++ compiler flags
1216  MPICXX      C++ MPI Compiler
1217  ADD_FFLAGS  Additional Fortran compiler options
1218  DBG_FFLAGS  Debug Fortran compiler options
1219  OPT_FFLAGS  Optimize Fortran compiler options
1220  F77         Fortran 77 compiler command
1221  FFLAGS      Fortran 77 compiler flags
1222  MPIF77      Fortran MPI Compiler
1223  CPP         C preprocessor
1224  CXXCPP      C++ preprocessor
1225  COIN_SKIP_PROJECTS
1226              Set to the subdirectories of projects that should be skipped in
1227              the configuration
1228
1229Use these variables to override the choices made by `configure' or to help
1230it to find libraries and programs with nonstandard names/locations.
1231
1232Report bugs to <couenne@list.coin-or.org>.
1233_ACEOF
1234fi
1235
1236if test "$ac_init_help" = "recursive"; then
1237  # If there are subdirs, report their specific --help.
1238  ac_popdir=`pwd`
1239  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1240    test -d $ac_dir || continue
1241    ac_builddir=.
1242
1243if test "$ac_dir" != .; then
1244  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1245  # A "../" for each directory in $ac_dir_suffix.
1246  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1247else
1248  ac_dir_suffix= ac_top_builddir=
1249fi
1250
1251case $srcdir in
1252  .)  # No --srcdir option.  We are building in place.
1253    ac_srcdir=.
1254    if test -z "$ac_top_builddir"; then
1255       ac_top_srcdir=.
1256    else
1257       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1258    fi ;;
1259  [\\/]* | ?:[\\/]* )  # Absolute path.
1260    ac_srcdir=$srcdir$ac_dir_suffix;
1261    ac_top_srcdir=$srcdir ;;
1262  *) # Relative path.
1263    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1264    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1265esac
1266
1267# Do not use `cd foo && pwd` to compute absolute paths, because
1268# the directories may not exist.
1269case `pwd` in
1270.) ac_abs_builddir="$ac_dir";;
1271*)
1272  case "$ac_dir" in
1273  .) ac_abs_builddir=`pwd`;;
1274  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1275  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1276  esac;;
1277esac
1278case $ac_abs_builddir in
1279.) ac_abs_top_builddir=${ac_top_builddir}.;;
1280*)
1281  case ${ac_top_builddir}. in
1282  .) ac_abs_top_builddir=$ac_abs_builddir;;
1283  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1284  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1285  esac;;
1286esac
1287case $ac_abs_builddir in
1288.) ac_abs_srcdir=$ac_srcdir;;
1289*)
1290  case $ac_srcdir in
1291  .) ac_abs_srcdir=$ac_abs_builddir;;
1292  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1293  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1294  esac;;
1295esac
1296case $ac_abs_builddir in
1297.) ac_abs_top_srcdir=$ac_top_srcdir;;
1298*)
1299  case $ac_top_srcdir in
1300  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1301  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1302  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1303  esac;;
1304esac
1305
1306    cd $ac_dir
1307    # Check for guested configure; otherwise get Cygnus style configure.
1308    if test -f $ac_srcdir/configure.gnu; then
1309      echo
1310      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1311    elif test -f $ac_srcdir/configure; then
1312      echo
1313      $SHELL $ac_srcdir/configure  --help=recursive
1314    elif test -f $ac_srcdir/configure.ac ||
1315           test -f $ac_srcdir/configure.in; then
1316      echo
1317      $ac_configure --help
1318    else
1319      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1320    fi
1321    cd $ac_popdir
1322  done
1323fi
1324
1325test -n "$ac_init_help" && exit 0
1326if $ac_init_version; then
1327  cat <<\_ACEOF
1328Couenne configure trunk
1329generated by GNU Autoconf 2.59
1330
1331Copyright (C) 2003 Free Software Foundation, Inc.
1332This configure script is free software; the Free Software Foundation
1333gives unlimited permission to copy, distribute and modify it.
1334
1335
1336Copyright 2011 Pietro Belotti
1337All Rights Reserved.
1338This file is part of the open source package Coin-OR which is distributed
1339under the Eclipse Public License.
1340_ACEOF
1341  exit 0
1342fi
1343exec 5>config.log
1344cat >&5 <<_ACEOF
1345This file contains any messages produced by compilers while
1346running configure, to aid debugging if configure makes a mistake.
1347
1348It was created by Couenne $as_me trunk, which was
1349generated by GNU Autoconf 2.59.  Invocation command line was
1350
1351  $ $0 $@
1352
1353_ACEOF
1354{
1355cat <<_ASUNAME
1356## --------- ##
1357## Platform. ##
1358## --------- ##
1359
1360hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1361uname -m = `(uname -m) 2>/dev/null || echo unknown`
1362uname -r = `(uname -r) 2>/dev/null || echo unknown`
1363uname -s = `(uname -s) 2>/dev/null || echo unknown`
1364uname -v = `(uname -v) 2>/dev/null || echo unknown`
1365
1366/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1367/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1368
1369/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1370/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1371/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1372hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1373/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1374/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1375/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1376
1377_ASUNAME
1378
1379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1380for as_dir in $PATH
1381do
1382  IFS=$as_save_IFS
1383  test -z "$as_dir" && as_dir=.
1384  echo "PATH: $as_dir"
1385done
1386
1387} >&5
1388
1389cat >&5 <<_ACEOF
1390
1391
1392## ----------- ##
1393## Core tests. ##
1394## ----------- ##
1395
1396_ACEOF
1397
1398
1399# Keep a trace of the command line.
1400# Strip out --no-create and --no-recursion so they do not pile up.
1401# Strip out --silent because we don't want to record it for future runs.
1402# Also quote any args containing shell meta-characters.
1403# Make two passes to allow for proper duplicate-argument suppression.
1404ac_configure_args=
1405ac_configure_args0=
1406ac_configure_args1=
1407ac_sep=
1408ac_must_keep_next=false
1409for ac_pass in 1 2
1410do
1411  for ac_arg
1412  do
1413    case $ac_arg in
1414    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1415    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1416    | -silent | --silent | --silen | --sile | --sil)
1417      continue ;;
1418    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1419      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1420    esac
1421    case $ac_pass in
1422    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1423    2)
1424      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1425      if test $ac_must_keep_next = true; then
1426        ac_must_keep_next=false # Got value, back to normal.
1427      else
1428        case $ac_arg in
1429          *=* | --config-cache | -C | -disable-* | --disable-* \
1430          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1431          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1432          | -with-* | --with-* | -without-* | --without-* | --x)
1433            case "$ac_configure_args0 " in
1434              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1435            esac
1436            ;;
1437          -* ) ac_must_keep_next=true ;;
1438        esac
1439      fi
1440      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1441      # Get rid of the leading space.
1442      ac_sep=" "
1443      ;;
1444    esac
1445  done
1446done
1447$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1448$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1449
1450# When interrupted or exit'd, cleanup temporary files, and complete
1451# config.log.  We remove comments because anyway the quotes in there
1452# would cause problems or look ugly.
1453# WARNING: Be sure not to use single quotes in there, as some shells,
1454# such as our DU 5.0 friend, will then `close' the trap.
1455trap 'exit_status=$?
1456  # Save into config.log some information that might help in debugging.
1457  {
1458    echo
1459
1460    cat <<\_ASBOX
1461## ---------------- ##
1462## Cache variables. ##
1463## ---------------- ##
1464_ASBOX
1465    echo
1466    # The following way of writing the cache mishandles newlines in values,
1467{
1468  (set) 2>&1 |
1469    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1470    *ac_space=\ *)
1471      sed -n \
1472        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1473          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1474      ;;
1475    *)
1476      sed -n \
1477        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1478      ;;
1479    esac;
1480}
1481    echo
1482
1483    cat <<\_ASBOX
1484## ----------------- ##
1485## Output variables. ##
1486## ----------------- ##
1487_ASBOX
1488    echo
1489    for ac_var in $ac_subst_vars
1490    do
1491      eval ac_val=$`echo $ac_var`
1492      echo "$ac_var='"'"'$ac_val'"'"'"
1493    done | sort
1494    echo
1495
1496    if test -n "$ac_subst_files"; then
1497      cat <<\_ASBOX
1498## ------------- ##
1499## Output files. ##
1500## ------------- ##
1501_ASBOX
1502      echo
1503      for ac_var in $ac_subst_files
1504      do
1505        eval ac_val=$`echo $ac_var`
1506        echo "$ac_var='"'"'$ac_val'"'"'"
1507      done | sort
1508      echo
1509    fi
1510
1511    if test -s confdefs.h; then
1512      cat <<\_ASBOX
1513## ----------- ##
1514## confdefs.h. ##
1515## ----------- ##
1516_ASBOX
1517      echo
1518      sed "/^$/d" confdefs.h | sort
1519      echo
1520    fi
1521    test "$ac_signal" != 0 &&
1522      echo "$as_me: caught signal $ac_signal"
1523    echo "$as_me: exit $exit_status"
1524  } >&5
1525  rm -f core *.core &&
1526  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1527    exit $exit_status
1528     ' 0
1529for ac_signal in 1 2 13 15; do
1530  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1531done
1532ac_signal=0
1533
1534# confdefs.h avoids OS command line length limits that DEFS can exceed.
1535rm -rf conftest* confdefs.h
1536# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1537echo >confdefs.h
1538
1539# Predefined preprocessor variables.
1540
1541cat >>confdefs.h <<_ACEOF
1542#define PACKAGE_NAME "$PACKAGE_NAME"
1543_ACEOF
1544
1545
1546cat >>confdefs.h <<_ACEOF
1547#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1548_ACEOF
1549
1550
1551cat >>confdefs.h <<_ACEOF
1552#define PACKAGE_VERSION "$PACKAGE_VERSION"
1553_ACEOF
1554
1555
1556cat >>confdefs.h <<_ACEOF
1557#define PACKAGE_STRING "$PACKAGE_STRING"
1558_ACEOF
1559
1560
1561cat >>confdefs.h <<_ACEOF
1562#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1563_ACEOF
1564
1565
1566# Let the site file select an alternate cache file if it wants to.
1567# Prefer explicitly selected file to automatically selected ones.
1568if test -z "$CONFIG_SITE"; then
1569  if test "x$prefix" != xNONE; then
1570    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1571  else
1572    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1573  fi
1574fi
1575for ac_site_file in $CONFIG_SITE; do
1576  if test -r "$ac_site_file"; then
1577    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1578echo "$as_me: loading site script $ac_site_file" >&6;}
1579    sed 's/^/| /' "$ac_site_file" >&5
1580    . "$ac_site_file"
1581  fi
1582done
1583
1584if test -r "$cache_file"; then
1585  # Some versions of bash will fail to source /dev/null (special
1586  # files actually), so we avoid doing that.
1587  if test -f "$cache_file"; then
1588    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1589echo "$as_me: loading cache $cache_file" >&6;}
1590    case $cache_file in
1591      [\\/]* | ?:[\\/]* ) . $cache_file;;
1592      *)                      . ./$cache_file;;
1593    esac
1594  fi
1595else
1596  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1597echo "$as_me: creating cache $cache_file" >&6;}
1598  >$cache_file
1599fi
1600
1601# Check that the precious variables saved in the cache have kept the same
1602# value.
1603ac_cache_corrupted=false
1604for ac_var in `(set) 2>&1 |
1605               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1606  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1607  eval ac_new_set=\$ac_env_${ac_var}_set
1608  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1609  eval ac_new_val="\$ac_env_${ac_var}_value"
1610  case $ac_old_set,$ac_new_set in
1611    set,)
1612      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1613echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1614      ac_cache_corrupted=: ;;
1615    ,set)
1616      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1617echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1618      ac_cache_corrupted=: ;;
1619    ,);;
1620    *)
1621      if test "x$ac_old_val" != "x$ac_new_val"; then
1622        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1623echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1624        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1625echo "$as_me:   former value:  $ac_old_val" >&2;}
1626        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1627echo "$as_me:   current value: $ac_new_val" >&2;}
1628        ac_cache_corrupted=:
1629      fi;;
1630  esac
1631  # Pass precious variables to config.status.
1632  if test "$ac_new_set" = set; then
1633    case $ac_new_val in
1634    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1635      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1636    *) ac_arg=$ac_var=$ac_new_val ;;
1637    esac
1638    case " $ac_configure_args " in
1639      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1640      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1641    esac
1642  fi
1643done
1644if $ac_cache_corrupted; then
1645  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1646echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1647  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1648echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1649   { (exit 1); exit 1; }; }
1650fi
1651
1652ac_ext=c
1653ac_cpp='$CPP $CPPFLAGS'
1654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1656ac_compiler_gnu=$ac_cv_c_compiler_gnu
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689# List one file in the package so that the configure script can test
1690# whether the package is actually there
1691
1692
1693# Where should everything be installed by default?  Here, we want it
1694# to be installed directly in 'bin', 'lib', 'include' subdirectories
1695# of the directory where configure is run.  The default would be
1696# /usr/local.
1697
1698
1699#############################################################################
1700#              Create the libtool script for the subdirectories             #
1701#############################################################################
1702
1703ac_aux_dir=
1704for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1705  if test -f $ac_dir/install-sh; then
1706    ac_aux_dir=$ac_dir
1707    ac_install_sh="$ac_aux_dir/install-sh -c"
1708    break
1709  elif test -f $ac_dir/install.sh; then
1710    ac_aux_dir=$ac_dir
1711    ac_install_sh="$ac_aux_dir/install.sh -c"
1712    break
1713  elif test -f $ac_dir/shtool; then
1714    ac_aux_dir=$ac_dir
1715    ac_install_sh="$ac_aux_dir/shtool install -c"
1716    break
1717  fi
1718done
1719if test -z "$ac_aux_dir"; then
1720  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1721echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1722   { (exit 1); exit 1; }; }
1723fi
1724ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1725ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1726ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1727
1728# Make sure we can run config.sub.
1729$ac_config_sub sun4 >/dev/null 2>&1 ||
1730  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1731echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1732   { (exit 1); exit 1; }; }
1733
1734echo "$as_me:$LINENO: checking build system type" >&5
1735echo $ECHO_N "checking build system type... $ECHO_C" >&6
1736if test "${ac_cv_build+set}" = set; then
1737  echo $ECHO_N "(cached) $ECHO_C" >&6
1738else
1739  ac_cv_build_alias=$build_alias
1740test -z "$ac_cv_build_alias" &&
1741  ac_cv_build_alias=`$ac_config_guess`
1742test -z "$ac_cv_build_alias" &&
1743  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1744echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1745   { (exit 1); exit 1; }; }
1746ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1747  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1748echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1749   { (exit 1); exit 1; }; }
1750
1751fi
1752echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1753echo "${ECHO_T}$ac_cv_build" >&6
1754build=$ac_cv_build
1755build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1756build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1757build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1758
1759
1760
1761# Check if user wants to produce debugging code
1762
1763echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1764echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1765
1766# Check whether --enable-debug or --disable-debug was given.
1767if test "${enable_debug+set}" = set; then
1768  enableval="$enable_debug"
1769  case "${enableval}" in
1770   yes) coin_debug_compile=true
1771        if test "${enable_shared+set}" = set; then :; else
1772          enable_shared=no
1773        fi
1774        ;;
1775   no)  coin_debug_compile=false
1776        ;;
1777   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1778echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1779   { (exit 1); exit 1; }; }
1780        ;;
1781esac
1782else
1783  coin_debug_compile=false
1784fi;
1785
1786 # m4_ifvaln([],
1787
1788if test $coin_debug_compile = true; then
1789  echo "$as_me:$LINENO: result: yes" >&5
1790echo "${ECHO_T}yes" >&6
1791else
1792  echo "$as_me:$LINENO: result: no" >&5
1793echo "${ECHO_T}no" >&6
1794fi
1795
1796 # m4_ifvaln([],
1797
1798
1799
1800# Get the name of the C compiler and appropriate compiler options
1801
1802
1803  # for backward compatibility
1804  # Check whether --enable-doscompile or --disable-doscompile was given.
1805if test "${enable_doscompile+set}" = set; then
1806  enableval="$enable_doscompile"
1807  enable_doscompile=$enableval
1808else
1809  enable_doscompile=no
1810fi;
1811
1812  # Check whether --enable-msvc or --disable-msvc was given.
1813if test "${enable_msvc+set}" = set; then
1814  enableval="$enable_msvc"
1815  enable_msvc=$enableval
1816else
1817  enable_msvc=no
1818     if test "$enable_doscompile" = msvc ; then
1819       enable_msvc=yes
1820     elif test "$enable_doscompile" != no ; then
1821       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1822echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1823   { (exit 1); exit 1; }; }
1824     fi
1825
1826fi;
1827
1828  if test "$enable_msvc" = MD; then
1829    enable_shared=yes
1830    enable_msvc=yes
1831  fi
1832
1833  if test "$enable_msvc" = yes; then
1834    case $build in
1835      *-cygwin* | *-mingw*) ;;
1836      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1837echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1838   { (exit 1); exit 1; }; } ;;
1839    esac
1840  fi
1841
1842
1843 case $build in
1844  *-mingw*)
1845    if test "${LD+set}" = set; then :; else
1846      LD=link
1847    fi
1848    ;;
1849 esac
1850 if test $enable_msvc = yes ; then
1851   if test "x${LD+set}" = xset; then :; else
1852     LD=link
1853   fi
1854 fi
1855
1856
1857
1858
1859ac_ext=c
1860ac_cpp='$CPP $CPPFLAGS'
1861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1863ac_compiler_gnu=$ac_cv_c_compiler_gnu
1864
1865
1866# For consistency, we set the C compiler to the same value of the C++
1867# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1868if test x"$CXX" != x; then
1869  case "$CXX" in
1870    clang* ) ;;
1871    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1872      if test x"$CC" = x; then
1873        CC="$CXX"
1874        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1875echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1876      fi
1877      ;;
1878  esac
1879fi
1880
1881
1882
1883
1884
1885
1886coin_has_cc=yes
1887
1888save_cflags="$CFLAGS"
1889
1890# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1891# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1892# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1893# compiler. In this case, put cc after gcc.
1894
1895case $build in
1896  *-cygwin* | *-mingw*)
1897             if test "$enable_msvc" = yes ; then
1898               comps="icl cl gcc"
1899             else
1900               comps="gcc icl cl"
1901             fi ;;
1902  *-*-solaris*)
1903             # Extract the first word of "cc", so it can be a program name with args.
1904set dummy cc; ac_word=$2
1905echo "$as_me:$LINENO: checking for $ac_word" >&5
1906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1908  echo $ECHO_N "(cached) $ECHO_C" >&6
1909else
1910  if test -n "$sol_cc_compiler"; then
1911  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1912else
1913  ac_prog_rejected=no
1914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915for as_dir in $PATH
1916do
1917  IFS=$as_save_IFS
1918  test -z "$as_dir" && as_dir=.
1919  for ac_exec_ext in '' $ac_executable_extensions; do
1920  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1922       ac_prog_rejected=yes
1923       continue
1924     fi
1925    ac_cv_prog_sol_cc_compiler="cc"
1926    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927    break 2
1928  fi
1929done
1930done
1931
1932if test $ac_prog_rejected = yes; then
1933  # We found a bogon in the path, so make sure we never use it.
1934  set dummy $ac_cv_prog_sol_cc_compiler
1935  shift
1936  if test $# != 0; then
1937    # We chose a different compiler from the bogus one.
1938    # However, it has the same basename, so the bogon will be chosen
1939    # first if we set sol_cc_compiler to just the basename; use the full file name.
1940    shift
1941    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1942  fi
1943fi
1944fi
1945fi
1946sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1947if test -n "$sol_cc_compiler"; then
1948  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1949echo "${ECHO_T}$sol_cc_compiler" >&6
1950else
1951  echo "$as_me:$LINENO: result: no" >&5
1952echo "${ECHO_T}no" >&6
1953fi
1954
1955             if test "$sol_cc_compiler" = "cc" ; then
1956               comps="cc xlc gcc pgcc icc"
1957             else
1958               comps="xlc gcc pgcc icc cc"
1959             fi
1960             ;;
1961  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1962  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1963  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1964esac
1965
1966# We delete the cached value, since the test might not have been
1967# performed with our choice of compilers earlier
1968$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1969# AC_MSG_NOTICE([C compiler candidates: $comps])
1970ac_ext=c
1971ac_cpp='$CPP $CPPFLAGS'
1972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975if test -n "$ac_tool_prefix"; then
1976  for ac_prog in $comps
1977  do
1978    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980echo "$as_me:$LINENO: checking for $ac_word" >&5
1981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982if test "${ac_cv_prog_CC+set}" = set; then
1983  echo $ECHO_N "(cached) $ECHO_C" >&6
1984else
1985  if test -n "$CC"; then
1986  ac_cv_prog_CC="$CC" # Let the user override the test.
1987else
1988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989for as_dir in $PATH
1990do
1991  IFS=$as_save_IFS
1992  test -z "$as_dir" && as_dir=.
1993  for ac_exec_ext in '' $ac_executable_extensions; do
1994  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997    break 2
1998  fi
1999done
2000done
2001
2002fi
2003fi
2004CC=$ac_cv_prog_CC
2005if test -n "$CC"; then
2006  echo "$as_me:$LINENO: result: $CC" >&5
2007echo "${ECHO_T}$CC" >&6
2008else
2009  echo "$as_me:$LINENO: result: no" >&5
2010echo "${ECHO_T}no" >&6
2011fi
2012
2013    test -n "$CC" && break
2014  done
2015fi
2016if test -z "$CC"; then
2017  ac_ct_CC=$CC
2018  for ac_prog in $comps
2019do
2020  # Extract the first word of "$ac_prog", so it can be a program name with args.
2021set dummy $ac_prog; ac_word=$2
2022echo "$as_me:$LINENO: checking for $ac_word" >&5
2023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2025  echo $ECHO_N "(cached) $ECHO_C" >&6
2026else
2027  if test -n "$ac_ct_CC"; then
2028  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2029else
2030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031for as_dir in $PATH
2032do
2033  IFS=$as_save_IFS
2034  test -z "$as_dir" && as_dir=.
2035  for ac_exec_ext in '' $ac_executable_extensions; do
2036  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037    ac_cv_prog_ac_ct_CC="$ac_prog"
2038    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039    break 2
2040  fi
2041done
2042done
2043
2044fi
2045fi
2046ac_ct_CC=$ac_cv_prog_ac_ct_CC
2047if test -n "$ac_ct_CC"; then
2048  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2049echo "${ECHO_T}$ac_ct_CC" >&6
2050else
2051  echo "$as_me:$LINENO: result: no" >&5
2052echo "${ECHO_T}no" >&6
2053fi
2054
2055  test -n "$ac_ct_CC" && break
2056done
2057
2058  CC=$ac_ct_CC
2059fi
2060
2061
2062test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2063See \`config.log' for more details." >&5
2064echo "$as_me: error: no acceptable C compiler found in \$PATH
2065See \`config.log' for more details." >&2;}
2066   { (exit 1); exit 1; }; }
2067
2068# Provide some information about the compiler.
2069echo "$as_me:$LINENO:" \
2070     "checking for C compiler version" >&5
2071ac_compiler=`set X $ac_compile; echo $2`
2072{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2073  (eval $ac_compiler --version </dev/null >&5) 2>&5
2074  ac_status=$?
2075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076  (exit $ac_status); }
2077{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2078  (eval $ac_compiler -v </dev/null >&5) 2>&5
2079  ac_status=$?
2080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081  (exit $ac_status); }
2082{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2083  (eval $ac_compiler -V </dev/null >&5) 2>&5
2084  ac_status=$?
2085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086  (exit $ac_status); }
2087
2088cat >conftest.$ac_ext <<_ACEOF
2089/* confdefs.h.  */
2090_ACEOF
2091cat confdefs.h >>conftest.$ac_ext
2092cat >>conftest.$ac_ext <<_ACEOF
2093/* end confdefs.h.  */
2094
2095int
2096main ()
2097{
2098
2099  ;
2100  return 0;
2101}
2102_ACEOF
2103ac_clean_files_save=$ac_clean_files
2104ac_clean_files="$ac_clean_files a.out a.exe b.out"
2105# Try to create an executable without -o first, disregard a.out.
2106# It will help us diagnose broken compilers, and finding out an intuition
2107# of exeext.
2108echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2109echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2110ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2111if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2112  (eval $ac_link_default) 2>&5
2113  ac_status=$?
2114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115  (exit $ac_status); }; then
2116  # Find the output, starting from the most likely.  This scheme is
2117# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2118# resort.
2119
2120# Be careful to initialize this variable, since it used to be cached.
2121# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2122ac_cv_exeext=
2123# b.out is created by i960 compilers.
2124for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2125do
2126  test -f "$ac_file" || continue
2127  case $ac_file in
2128    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2129        ;;
2130    conftest.$ac_ext )
2131        # This is the source file.
2132        ;;
2133    [ab].out )
2134        # We found the default executable, but exeext='' is most
2135        # certainly right.
2136        break;;
2137    *.* )
2138        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2139        # FIXME: I believe we export ac_cv_exeext for Libtool,
2140        # but it would be cool to find out if it's true.  Does anybody
2141        # maintain Libtool? --akim.
2142        export ac_cv_exeext
2143        break;;
2144    * )
2145        break;;
2146  esac
2147done
2148else
2149  echo "$as_me: failed program was:" >&5
2150sed 's/^/| /' conftest.$ac_ext >&5
2151
2152{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2153See \`config.log' for more details." >&5
2154echo "$as_me: error: C compiler cannot create executables
2155See \`config.log' for more details." >&2;}
2156   { (exit 77); exit 77; }; }
2157fi
2158
2159ac_exeext=$ac_cv_exeext
2160echo "$as_me:$LINENO: result: $ac_file" >&5
2161echo "${ECHO_T}$ac_file" >&6
2162
2163# Check the compiler produces executables we can run.  If not, either
2164# the compiler is broken, or we cross compile.
2165echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2166echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2167# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2168# If not cross compiling, check that we can run a simple program.
2169if test "$cross_compiling" != yes; then
2170  if { ac_try='./$ac_file'
2171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172  (eval $ac_try) 2>&5
2173  ac_status=$?
2174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175  (exit $ac_status); }; }; then
2176    cross_compiling=no
2177  else
2178    if test "$cross_compiling" = maybe; then
2179        cross_compiling=yes
2180    else
2181        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2182If you meant to cross compile, use \`--host'.
2183See \`config.log' for more details." >&5
2184echo "$as_me: error: cannot run C compiled programs.
2185If you meant to cross compile, use \`--host'.
2186See \`config.log' for more details." >&2;}
2187   { (exit 1); exit 1; }; }
2188    fi
2189  fi
2190fi
2191echo "$as_me:$LINENO: result: yes" >&5
2192echo "${ECHO_T}yes" >&6
2193
2194rm -f a.out a.exe conftest$ac_cv_exeext b.out
2195ac_clean_files=$ac_clean_files_save
2196# Check the compiler produces executables we can run.  If not, either
2197# the compiler is broken, or we cross compile.
2198echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2199echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2200echo "$as_me:$LINENO: result: $cross_compiling" >&5
2201echo "${ECHO_T}$cross_compiling" >&6
2202
2203echo "$as_me:$LINENO: checking for suffix of executables" >&5
2204echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2206  (eval $ac_link) 2>&5
2207  ac_status=$?
2208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209  (exit $ac_status); }; then
2210  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2211# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2212# work properly (i.e., refer to `conftest.exe'), while it won't with
2213# `rm'.
2214for ac_file in conftest.exe conftest conftest.*; do
2215  test -f "$ac_file" || continue
2216  case $ac_file in
2217    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2218    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2219          export ac_cv_exeext
2220          break;;
2221    * ) break;;
2222  esac
2223done
2224else
2225  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2226See \`config.log' for more details." >&5
2227echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2228See \`config.log' for more details." >&2;}
2229   { (exit 1); exit 1; }; }
2230fi
2231
2232rm -f conftest$ac_cv_exeext
2233echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2234echo "${ECHO_T}$ac_cv_exeext" >&6
2235
2236rm -f conftest.$ac_ext
2237EXEEXT=$ac_cv_exeext
2238ac_exeext=$EXEEXT
2239echo "$as_me:$LINENO: checking for suffix of object files" >&5
2240echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2241if test "${ac_cv_objext+set}" = set; then
2242  echo $ECHO_N "(cached) $ECHO_C" >&6
2243else
2244  cat >conftest.$ac_ext <<_ACEOF
2245/* confdefs.h.  */
2246_ACEOF
2247cat confdefs.h >>conftest.$ac_ext
2248cat >>conftest.$ac_ext <<_ACEOF
2249/* end confdefs.h.  */
2250
2251int
2252main ()
2253{
2254
2255  ;
2256  return 0;
2257}
2258_ACEOF
2259rm -f conftest.o conftest.obj
2260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261  (eval $ac_compile) 2>&5
2262  ac_status=$?
2263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264  (exit $ac_status); }; then
2265  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2266  case $ac_file in
2267    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2268    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2269       break;;
2270  esac
2271done
2272else
2273  echo "$as_me: failed program was:" >&5
2274sed 's/^/| /' conftest.$ac_ext >&5
2275
2276{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2277See \`config.log' for more details." >&5
2278echo "$as_me: error: cannot compute suffix of object files: cannot compile
2279See \`config.log' for more details." >&2;}
2280   { (exit 1); exit 1; }; }
2281fi
2282
2283rm -f conftest.$ac_cv_objext conftest.$ac_ext
2284fi
2285echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2286echo "${ECHO_T}$ac_cv_objext" >&6
2287OBJEXT=$ac_cv_objext
2288ac_objext=$OBJEXT
2289echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2290echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2291if test "${ac_cv_c_compiler_gnu+set}" = set; then
2292  echo $ECHO_N "(cached) $ECHO_C" >&6
2293else
2294  cat >conftest.$ac_ext <<_ACEOF
2295/* confdefs.h.  */
2296_ACEOF
2297cat confdefs.h >>conftest.$ac_ext
2298cat >>conftest.$ac_ext <<_ACEOF
2299/* end confdefs.h.  */
2300
2301int
2302main ()
2303{
2304#ifndef __GNUC__
2305       choke me
2306#endif
2307
2308  ;
2309  return 0;
2310}
2311_ACEOF
2312rm -f conftest.$ac_objext
2313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314  (eval $ac_compile) 2>conftest.er1
2315  ac_status=$?
2316  grep -v '^ *+' conftest.er1 >conftest.err
2317  rm -f conftest.er1
2318  cat conftest.err >&5
2319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320  (exit $ac_status); } &&
2321         { ac_try='test -z "$ac_c_werror_flag"
2322                         || test ! -s conftest.err'
2323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324  (eval $ac_try) 2>&5
2325  ac_status=$?
2326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327  (exit $ac_status); }; } &&
2328         { ac_try='test -s conftest.$ac_objext'
2329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330  (eval $ac_try) 2>&5
2331  ac_status=$?
2332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333  (exit $ac_status); }; }; then
2334  ac_compiler_gnu=yes
2335else
2336  echo "$as_me: failed program was:" >&5
2337sed 's/^/| /' conftest.$ac_ext >&5
2338
2339ac_compiler_gnu=no
2340fi
2341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2342ac_cv_c_compiler_gnu=$ac_compiler_gnu
2343
2344fi
2345echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2346echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2347GCC=`test $ac_compiler_gnu = yes && echo yes`
2348ac_test_CFLAGS=${CFLAGS+set}
2349ac_save_CFLAGS=$CFLAGS
2350CFLAGS="-g"
2351echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2352echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2353if test "${ac_cv_prog_cc_g+set}" = set; then
2354  echo $ECHO_N "(cached) $ECHO_C" >&6
2355else
2356  cat >conftest.$ac_ext <<_ACEOF
2357/* confdefs.h.  */
2358_ACEOF
2359cat confdefs.h >>conftest.$ac_ext
2360cat >>conftest.$ac_ext <<_ACEOF
2361/* end confdefs.h.  */
2362
2363int
2364main ()
2365{
2366
2367  ;
2368  return 0;
2369}
2370_ACEOF
2371rm -f conftest.$ac_objext
2372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373  (eval $ac_compile) 2>conftest.er1
2374  ac_status=$?
2375  grep -v '^ *+' conftest.er1 >conftest.err
2376  rm -f conftest.er1
2377  cat conftest.err >&5
2378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379  (exit $ac_status); } &&
2380         { ac_try='test -z "$ac_c_werror_flag"
2381                         || test ! -s conftest.err'
2382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383  (eval $ac_try) 2>&5
2384  ac_status=$?
2385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386  (exit $ac_status); }; } &&
2387         { ac_try='test -s conftest.$ac_objext'
2388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389  (eval $ac_try) 2>&5
2390  ac_status=$?
2391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392  (exit $ac_status); }; }; then
2393  ac_cv_prog_cc_g=yes
2394else
2395  echo "$as_me: failed program was:" >&5
2396sed 's/^/| /' conftest.$ac_ext >&5
2397
2398ac_cv_prog_cc_g=no
2399fi
2400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2401fi
2402echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2403echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2404if test "$ac_test_CFLAGS" = set; then
2405  CFLAGS=$ac_save_CFLAGS
2406elif test $ac_cv_prog_cc_g = yes; then
2407  if test "$GCC" = yes; then
2408    CFLAGS="-g -O2"
2409  else
2410    CFLAGS="-g"
2411  fi
2412else
2413  if test "$GCC" = yes; then
2414    CFLAGS="-O2"
2415  else
2416    CFLAGS=
2417  fi
2418fi
2419echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2420echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2421if test "${ac_cv_prog_cc_stdc+set}" = set; then
2422  echo $ECHO_N "(cached) $ECHO_C" >&6
2423else
2424  ac_cv_prog_cc_stdc=no
2425ac_save_CC=$CC
2426cat >conftest.$ac_ext <<_ACEOF
2427/* confdefs.h.  */
2428_ACEOF
2429cat confdefs.h >>conftest.$ac_ext
2430cat >>conftest.$ac_ext <<_ACEOF
2431/* end confdefs.h.  */
2432#include <stdarg.h>
2433#include <stdio.h>
2434#include <sys/types.h>
2435#include <sys/stat.h>
2436/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2437struct buf { int x; };
2438FILE * (*rcsopen) (struct buf *, struct stat *, int);
2439static char *e (p, i)
2440     char **p;
2441     int i;
2442{
2443  return p[i];
2444}
2445static char *f (char * (*g) (char **, int), char **p, ...)
2446{
2447  char *s;
2448  va_list v;
2449  va_start (v,p);
2450  s = g (p, va_arg (v,int));
2451  va_end (v);
2452  return s;
2453}
2454
2455/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2456   function prototypes and stuff, but not '\xHH' hex character constants.
2457   These don't provoke an error unfortunately, instead are silently treated
2458   as 'x'.  The following induces an error, until -std1 is added to get
2459   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2460   array size at least.  It's necessary to write '\x00'==0 to get something
2461   that's true only with -std1.  */
2462int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2463
2464int test (int i, double x);
2465struct s1 {int (*f) (int a);};
2466struct s2 {int (*f) (double a);};
2467int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2468int argc;
2469char **argv;
2470int
2471main ()
2472{
2473return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2474  ;
2475  return 0;
2476}
2477_ACEOF
2478# Don't try gcc -ansi; that turns off useful extensions and
2479# breaks some systems' header files.
2480# AIX                   -qlanglvl=ansi
2481# Ultrix and OSF/1      -std1
2482# HP-UX 10.20 and later -Ae
2483# HP-UX older versions  -Aa -D_HPUX_SOURCE
2484# SVR4                  -Xc -D__EXTENSIONS__
2485for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2486do
2487  CC="$ac_save_CC $ac_arg"
2488  rm -f conftest.$ac_objext
2489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490  (eval $ac_compile) 2>conftest.er1
2491  ac_status=$?
2492  grep -v '^ *+' conftest.er1 >conftest.err
2493  rm -f conftest.er1
2494  cat conftest.err >&5
2495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496  (exit $ac_status); } &&
2497         { ac_try='test -z "$ac_c_werror_flag"
2498                         || test ! -s conftest.err'
2499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500  (eval $ac_try) 2>&5
2501  ac_status=$?
2502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503  (exit $ac_status); }; } &&
2504         { ac_try='test -s conftest.$ac_objext'
2505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506  (eval $ac_try) 2>&5
2507  ac_status=$?
2508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509  (exit $ac_status); }; }; then
2510  ac_cv_prog_cc_stdc=$ac_arg
2511break
2512else
2513  echo "$as_me: failed program was:" >&5
2514sed 's/^/| /' conftest.$ac_ext >&5
2515
2516fi
2517rm -f conftest.err conftest.$ac_objext
2518done
2519rm -f conftest.$ac_ext conftest.$ac_objext
2520CC=$ac_save_CC
2521
2522fi
2523
2524case "x$ac_cv_prog_cc_stdc" in
2525  x|xno)
2526    echo "$as_me:$LINENO: result: none needed" >&5
2527echo "${ECHO_T}none needed" >&6 ;;
2528  *)
2529    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2530echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2531    CC="$CC $ac_cv_prog_cc_stdc" ;;
2532esac
2533
2534# Some people use a C++ compiler to compile C.  Since we use `exit',
2535# in C++ we need to declare it.  In case someone uses the same compiler
2536# for both compiling C and C++ we need to have the C++ compiler decide
2537# the declaration of exit, since it's the most demanding environment.
2538cat >conftest.$ac_ext <<_ACEOF
2539#ifndef __cplusplus
2540  choke me
2541#endif
2542_ACEOF
2543rm -f conftest.$ac_objext
2544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545  (eval $ac_compile) 2>conftest.er1
2546  ac_status=$?
2547  grep -v '^ *+' conftest.er1 >conftest.err
2548  rm -f conftest.er1
2549  cat conftest.err >&5
2550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551  (exit $ac_status); } &&
2552         { ac_try='test -z "$ac_c_werror_flag"
2553                         || test ! -s conftest.err'
2554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555  (eval $ac_try) 2>&5
2556  ac_status=$?
2557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558  (exit $ac_status); }; } &&
2559         { ac_try='test -s conftest.$ac_objext'
2560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561  (eval $ac_try) 2>&5
2562  ac_status=$?
2563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564  (exit $ac_status); }; }; then
2565  for ac_declaration in \
2566   '' \
2567   'extern "C" void std::exit (int) throw (); using std::exit;' \
2568   'extern "C" void std::exit (int); using std::exit;' \
2569   'extern "C" void exit (int) throw ();' \
2570   'extern "C" void exit (int);' \
2571   'void exit (int);'
2572do
2573  cat >conftest.$ac_ext <<_ACEOF
2574/* confdefs.h.  */
2575_ACEOF
2576cat confdefs.h >>conftest.$ac_ext
2577cat >>conftest.$ac_ext <<_ACEOF
2578/* end confdefs.h.  */
2579$ac_declaration
2580#include <stdlib.h>
2581int
2582main ()
2583{
2584exit (42);
2585  ;
2586  return 0;
2587}
2588_ACEOF
2589rm -f conftest.$ac_objext
2590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591  (eval $ac_compile) 2>conftest.er1
2592  ac_status=$?
2593  grep -v '^ *+' conftest.er1 >conftest.err
2594  rm -f conftest.er1
2595  cat conftest.err >&5
2596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597  (exit $ac_status); } &&
2598         { ac_try='test -z "$ac_c_werror_flag"
2599                         || test ! -s conftest.err'
2600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601  (eval $ac_try) 2>&5
2602  ac_status=$?
2603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604  (exit $ac_status); }; } &&
2605         { ac_try='test -s conftest.$ac_objext'
2606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607  (eval $ac_try) 2>&5
2608  ac_status=$?
2609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610  (exit $ac_status); }; }; then
2611  :
2612else
2613  echo "$as_me: failed program was:" >&5
2614sed 's/^/| /' conftest.$ac_ext >&5
2615
2616continue
2617fi
2618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2619  cat >conftest.$ac_ext <<_ACEOF
2620/* confdefs.h.  */
2621_ACEOF
2622cat confdefs.h >>conftest.$ac_ext
2623cat >>conftest.$ac_ext <<_ACEOF
2624/* end confdefs.h.  */
2625$ac_declaration
2626int
2627main ()
2628{
2629exit (42);
2630  ;
2631  return 0;
2632}
2633_ACEOF
2634rm -f conftest.$ac_objext
2635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2636  (eval $ac_compile) 2>conftest.er1
2637  ac_status=$?
2638  grep -v '^ *+' conftest.er1 >conftest.err
2639  rm -f conftest.er1
2640  cat conftest.err >&5
2641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642  (exit $ac_status); } &&
2643         { ac_try='test -z "$ac_c_werror_flag"
2644                         || test ! -s conftest.err'
2645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646  (eval $ac_try) 2>&5
2647  ac_status=$?
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); }; } &&
2650         { ac_try='test -s conftest.$ac_objext'
2651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652  (eval $ac_try) 2>&5
2653  ac_status=$?
2654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655  (exit $ac_status); }; }; then
2656  break
2657else
2658  echo "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
2660
2661fi
2662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2663done
2664rm -f conftest*
2665if test -n "$ac_declaration"; then
2666  echo '#ifdef __cplusplus' >>confdefs.h
2667  echo $ac_declaration      >>confdefs.h
2668  echo '#endif'             >>confdefs.h
2669fi
2670
2671else
2672  echo "$as_me: failed program was:" >&5
2673sed 's/^/| /' conftest.$ac_ext >&5
2674
2675fi
2676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2677ac_ext=c
2678ac_cpp='$CPP $CPPFLAGS'
2679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2681ac_compiler_gnu=$ac_cv_c_compiler_gnu
2682
2683if test -z "$CC" ; then
2684  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2685echo "$as_me: error: Failed to find a C compiler!" >&2;}
2686   { (exit 1); exit 1; }; }
2687fi
2688# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2689case "$CC" in
2690  clang* ) ;;
2691  cl* | */cl* | CL* | */CL* )
2692    if test "$ac_cv_prog_cc_g" = yes ; then
2693      ac_cv_prog_cc_g=no
2694      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2695echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2696    fi ;;
2697  * )
2698    if test x"$CYGPATH_W" = x ; then
2699      CYGPATH_W=echo
2700    fi
2701    ;;
2702esac
2703CFLAGS="$save_cflags"
2704
2705# add automake conditional so we can recognize cl compiler in makefile
2706coin_cc_is_cl=false
2707case "$CC" in
2708  clang* ) ;;
2709  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2710    coin_cc_is_cl=true
2711    ;;
2712esac
2713
2714
2715if test $coin_cc_is_cl = true; then
2716  COIN_CC_IS_CL_TRUE=
2717  COIN_CC_IS_CL_FALSE='#'
2718else
2719  COIN_CC_IS_CL_TRUE='#'
2720  COIN_CC_IS_CL_FALSE=
2721fi
2722
2723
2724# Check if a project specific CFLAGS variable has been set
2725if test x$COIN_PRJCT != x; then
2726  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2727  if test x$coin_tmp = xset; then
2728    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2729  fi
2730fi
2731
2732if test x"$CFLAGS" = x; then
2733
2734  coin_add_cflags=
2735  coin_opt_cflags=
2736  coin_dbg_cflags=
2737  coin_warn_cflags=
2738
2739  if test "$GCC" = "yes"; then
2740    case "$CC" in
2741      icc* | */icc*)
2742        ;;
2743      *)
2744        coin_opt_cflags="-O3"
2745        coin_add_cflags="-pipe"
2746        coin_dbg_cflags="-g -O0"
2747        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2748        case $build in
2749          *-darwin*)
2750            ;;
2751          *)
2752            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2753            ;;
2754        esac
2755    esac
2756  fi
2757  if test -z "$coin_opt_cflags"; then
2758    case $build in
2759      *-cygwin* | *-mingw*)
2760        case "$CC" in
2761          clang* ) ;;
2762          cl* | */cl* | CL* | */CL*)
2763            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2764              coin_opt_cflags='-MD -O2'
2765              coin_dbg_cflags='-MDd'
2766            else
2767              coin_opt_cflags='-MT -O2'
2768              coin_dbg_cflags='-MTd'
2769            fi
2770            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2771            ;;
2772          icl* | */icl* | ICL* | */ICL*)
2773            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2774              coin_opt_cflags='-MD -Ox'
2775              coin_dbg_cflags='-MDd -debug'
2776            else
2777              coin_opt_cflags='-MT -Ox'
2778              coin_dbg_cflags='-MTd -debug'
2779            fi
2780            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2781            ;;
2782        esac
2783        ;;
2784      *-linux-*)
2785        case "$CC" in
2786          icc* | */icc*)
2787            coin_opt_cflags="-O3 -ip -mp1"
2788            coin_add_cflags=""
2789            coin_dbg_cflags="-g"
2790            # Check if -i_dynamic is necessary (for new glibc library)
2791            CFLAGS=
2792            cat >conftest.$ac_ext <<_ACEOF
2793/* confdefs.h.  */
2794_ACEOF
2795cat confdefs.h >>conftest.$ac_ext
2796cat >>conftest.$ac_ext <<_ACEOF
2797/* end confdefs.h.  */
2798
2799int
2800main ()
2801{
2802int i=0; i++;
2803  ;
2804  return 0;
2805}
2806_ACEOF
2807rm -f conftest.$ac_objext conftest$ac_exeext
2808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2809  (eval $ac_link) 2>conftest.er1
2810  ac_status=$?
2811  grep -v '^ *+' conftest.er1 >conftest.err
2812  rm -f conftest.er1
2813  cat conftest.err >&5
2814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815  (exit $ac_status); } &&
2816         { ac_try='test -z "$ac_c_werror_flag"
2817                         || test ! -s conftest.err'
2818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819  (eval $ac_try) 2>&5
2820  ac_status=$?
2821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822  (exit $ac_status); }; } &&
2823         { ac_try='test -s conftest$ac_exeext'
2824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825  (eval $ac_try) 2>&5
2826  ac_status=$?
2827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828  (exit $ac_status); }; }; then
2829  :
2830else
2831  echo "$as_me: failed program was:" >&5
2832sed 's/^/| /' conftest.$ac_ext >&5
2833
2834coin_add_cflags="-i_dynamic $coin_add_cflags"
2835fi
2836rm -f conftest.err conftest.$ac_objext \
2837      conftest$ac_exeext conftest.$ac_ext
2838            ;;
2839          pgcc* | */pgcc*)
2840            coin_opt_cflags="-fast"
2841            coin_add_cflags="-Kieee -pc 64"
2842            coin_dbg_cflags="-g"
2843            ;;
2844        esac
2845        ;;
2846      *-ibm-*)
2847        case "$CC" in
2848          xlc* | */xlc* | mpxlc* | */mpxlc*)
2849            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2850            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2851            coin_dbg_cflags="-g"
2852          ;;
2853        esac
2854        ;;
2855      *-hp-*)
2856        coin_opt_cflags="-O"
2857        coin_add_cflags="-Ae"
2858        coin_dbg_cflags="-g"
2859        ;;
2860      *-*-solaris*)
2861        coin_opt_cflags="-xO4"
2862        coin_dbg_cflags="-g"
2863        ;;
2864      *-sgi-*)
2865        coin_opt_cflags="-O -OPT:Olimit=0"
2866        coin_dbg_cflags="-g"
2867        ;;
2868    esac
2869  fi
2870
2871  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2872    coin_dbg_cflags="-g"
2873  fi
2874
2875  if test -z "$coin_opt_cflags"; then
2876    # Try if -O option works if nothing else is set
2877    CFLAGS="-O"
2878    cat >conftest.$ac_ext <<_ACEOF
2879/* confdefs.h.  */
2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
2883/* end confdefs.h.  */
2884
2885int
2886main ()
2887{
2888int i=0; i++;
2889  ;
2890  return 0;
2891}
2892_ACEOF
2893rm -f conftest.$ac_objext conftest$ac_exeext
2894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2895  (eval $ac_link) 2>conftest.er1
2896  ac_status=$?
2897  grep -v '^ *+' conftest.er1 >conftest.err
2898  rm -f conftest.er1
2899  cat conftest.err >&5
2900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901  (exit $ac_status); } &&
2902         { ac_try='test -z "$ac_c_werror_flag"
2903                         || test ! -s conftest.err'
2904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905  (eval $ac_try) 2>&5
2906  ac_status=$?
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); }; } &&
2909         { ac_try='test -s conftest$ac_exeext'
2910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911  (eval $ac_try) 2>&5
2912  ac_status=$?
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); }; }; then
2915  coin_opt_cflags="-O"
2916else
2917  echo "$as_me: failed program was:" >&5
2918sed 's/^/| /' conftest.$ac_ext >&5
2919
2920fi
2921rm -f conftest.err conftest.$ac_objext \
2922      conftest$ac_exeext conftest.$ac_ext
2923  fi
2924
2925  # if PM doesn't want the warning messages, take them out
2926  if test x"$coin_skip_warn_cflags" = xyes; then
2927    coin_warn_cflags=
2928  fi
2929
2930  if test x${DBG_CFLAGS+set} != xset; then
2931    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2932  fi
2933  if test x${OPT_CFLAGS+set} != xset; then
2934    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2935  fi
2936
2937  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2938  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2939
2940  if test "$coin_debug_compile" = "true"; then
2941    CFLAGS="$DBG_CFLAGS"
2942  else
2943    CFLAGS="$OPT_CFLAGS"
2944  fi
2945else
2946  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2947  if test x${DBG_CFLAGS+set} != xset; then
2948    DBG_CFLAGS="$CFLAGS"
2949  fi
2950  if test x${OPT_CFLAGS+set} != xset; then
2951    OPT_CFLAGS="$CFLAGS"
2952  fi
2953fi
2954
2955# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2956if test x$COIN_PRJCT != x; then
2957  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
2958fi
2959
2960# Try if CFLAGS works
2961save_CFLAGS="$CFLAGS"
2962cat >conftest.$ac_ext <<_ACEOF
2963/* confdefs.h.  */
2964_ACEOF
2965cat confdefs.h >>conftest.$ac_ext
2966cat >>conftest.$ac_ext <<_ACEOF
2967/* end confdefs.h.  */
2968
2969int
2970main ()
2971{
2972int i=0; i++;
2973  ;
2974  return 0;
2975}
2976_ACEOF
2977rm -f conftest.$ac_objext conftest$ac_exeext
2978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2979  (eval $ac_link) 2>conftest.er1
2980  ac_status=$?
2981  grep -v '^ *+' conftest.er1 >conftest.err
2982  rm -f conftest.er1
2983  cat conftest.err >&5
2984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985  (exit $ac_status); } &&
2986         { ac_try='test -z "$ac_c_werror_flag"
2987                         || test ! -s conftest.err'
2988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989  (eval $ac_try) 2>&5
2990  ac_status=$?
2991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992  (exit $ac_status); }; } &&
2993         { ac_try='test -s conftest$ac_exeext'
2994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995  (eval $ac_try) 2>&5
2996  ac_status=$?
2997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998  (exit $ac_status); }; }; then
2999  :
3000else
3001  echo "$as_me: failed program was:" >&5
3002sed 's/^/| /' conftest.$ac_ext >&5
3003
3004CFLAGS=
3005fi
3006rm -f conftest.err conftest.$ac_objext \
3007      conftest$ac_exeext conftest.$ac_ext
3008if test -z "$CFLAGS"; then
3009  { 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
3010echo "$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;}
3011  CFLAGS='-O'
3012  cat >conftest.$ac_ext <<_ACEOF
3013/* confdefs.h.  */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h.  */
3018
3019int
3020main ()
3021{
3022int i=0; i++;
3023  ;
3024  return 0;
3025}
3026_ACEOF
3027rm -f conftest.$ac_objext conftest$ac_exeext
3028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3029  (eval $ac_link) 2>conftest.er1
3030  ac_status=$?
3031  grep -v '^ *+' conftest.er1 >conftest.err
3032  rm -f conftest.er1
3033  cat conftest.err >&5
3034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035  (exit $ac_status); } &&
3036         { ac_try='test -z "$ac_c_werror_flag"
3037                         || test ! -s conftest.err'
3038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039  (eval $ac_try) 2>&5
3040  ac_status=$?
3041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042  (exit $ac_status); }; } &&
3043         { ac_try='test -s conftest$ac_exeext'
3044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045  (eval $ac_try) 2>&5
3046  ac_status=$?
3047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048  (exit $ac_status); }; }; then
3049  :
3050else
3051  echo "$as_me: failed program was:" >&5
3052sed 's/^/| /' conftest.$ac_ext >&5
3053
3054CFLAGS=
3055fi
3056rm -f conftest.err conftest.$ac_objext \
3057      conftest$ac_exeext conftest.$ac_ext
3058  if test -z "$CFLAGS"; then
3059    { 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
3060echo "$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;}
3061  fi
3062fi
3063
3064{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3065echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3066
3067
3068if test x"$MPICC" = x; then :; else
3069  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3070echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3071  CC="$MPICC"
3072fi
3073
3074# Correct the LD variable if we are using the MS or Intel-windows compiler
3075case "$CC" in
3076  clang* ) ;;
3077  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3078
3079 case $build in
3080  *-mingw*)
3081    if test "${LD+set}" = set; then :; else
3082      LD=link
3083    fi
3084    ;;
3085 esac
3086 if test $enable_msvc = yes ; then
3087   if test "x${LD+set}" = xset; then :; else
3088     LD=link
3089   fi
3090 fi
3091
3092    ;;
3093esac
3094
3095ac_ext=c
3096ac_cpp='$CPP $CPPFLAGS'
3097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100
3101
3102
3103# Get the name of the C++ compiler and appropriate compiler options
3104
3105 #Let's try if that overcomes configuration problem with VC++ 6.0
3106
3107ac_ext=cc
3108ac_cpp='$CXXCPP $CPPFLAGS'
3109ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3110ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3111ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3112
3113
3114
3115
3116
3117
3118
3119coin_has_cxx=yes
3120
3121save_cxxflags="$CXXFLAGS"
3122# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3123case $build in
3124  *-cygwin* | *-mingw*)
3125      if test "$enable_msvc" = yes ; then
3126         comps="icl cl g++"
3127      else
3128         comps="g++ icl cl"
3129      fi ;;
3130  *-*-solaris*)
3131             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3132  *-darwin*) comps="g++ c++ CC" ;;
3133  *-linux-gnu*)
3134             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3135          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3136esac
3137
3138# We delete the cached value, since the test might not have been
3139# performed with our choice of compilers earlier
3140$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3141# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3142ac_ext=cc
3143ac_cpp='$CXXCPP $CPPFLAGS'
3144ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3147if test -n "$ac_tool_prefix"; then
3148  for ac_prog in $CCC $comps
3149  do
3150    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3151set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3152echo "$as_me:$LINENO: checking for $ac_word" >&5
3153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3154if test "${ac_cv_prog_CXX+set}" = set; then
3155  echo $ECHO_N "(cached) $ECHO_C" >&6
3156else
3157  if test -n "$CXX"; then
3158  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3159else
3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161for as_dir in $PATH
3162do
3163  IFS=$as_save_IFS
3164  test -z "$as_dir" && as_dir=.
3165  for ac_exec_ext in '' $ac_executable_extensions; do
3166  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3168    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3169    break 2
3170  fi
3171done
3172done
3173
3174fi
3175fi
3176CXX=$ac_cv_prog_CXX
3177if test -n "$CXX"; then
3178  echo "$as_me:$LINENO: result: $CXX" >&5
3179echo "${ECHO_T}$CXX" >&6
3180else
3181  echo "$as_me:$LINENO: result: no" >&5
3182echo "${ECHO_T}no" >&6
3183fi
3184
3185    test -n "$CXX" && break
3186  done
3187fi
3188if test -z "$CXX"; then
3189  ac_ct_CXX=$CXX
3190  for ac_prog in $CCC $comps
3191do
3192  # Extract the first word of "$ac_prog", so it can be a program name with args.
3193set dummy $ac_prog; ac_word=$2
3194echo "$as_me:$LINENO: checking for $ac_word" >&5
3195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3196if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3197  echo $ECHO_N "(cached) $ECHO_C" >&6
3198else
3199  if test -n "$ac_ct_CXX"; then
3200  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3201else
3202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203for as_dir in $PATH
3204do
3205  IFS=$as_save_IFS
3206  test -z "$as_dir" && as_dir=.
3207  for ac_exec_ext in '' $ac_executable_extensions; do
3208  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209    ac_cv_prog_ac_ct_CXX="$ac_prog"
3210    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3211    break 2
3212  fi
3213done
3214done
3215
3216fi
3217fi
3218ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3219if test -n "$ac_ct_CXX"; then
3220  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3221echo "${ECHO_T}$ac_ct_CXX" >&6
3222else
3223  echo "$as_me:$LINENO: result: no" >&5
3224echo "${ECHO_T}no" >&6
3225fi
3226
3227  test -n "$ac_ct_CXX" && break
3228done
3229test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3230
3231  CXX=$ac_ct_CXX
3232fi
3233
3234
3235# Provide some information about the compiler.
3236echo "$as_me:$LINENO:" \
3237     "checking for C++ compiler version" >&5
3238ac_compiler=`set X $ac_compile; echo $2`
3239{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3240  (eval $ac_compiler --version </dev/null >&5) 2>&5
3241  ac_status=$?
3242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243  (exit $ac_status); }
3244{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3245  (eval $ac_compiler -v </dev/null >&5) 2>&5
3246  ac_status=$?
3247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248  (exit $ac_status); }
3249{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3250  (eval $ac_compiler -V </dev/null >&5) 2>&5
3251  ac_status=$?
3252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253  (exit $ac_status); }
3254
3255echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3256echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3257if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3258  echo $ECHO_N "(cached) $ECHO_C" >&6
3259else
3260  cat >conftest.$ac_ext <<_ACEOF
3261/* confdefs.h.  */
3262_ACEOF
3263cat confdefs.h >>conftest.$ac_ext
3264cat >>conftest.$ac_ext <<_ACEOF
3265/* end confdefs.h.  */
3266
3267int
3268main ()
3269{
3270#ifndef __GNUC__
3271       choke me
3272#endif
3273
3274  ;
3275  return 0;
3276}
3277_ACEOF
3278rm -f conftest.$ac_objext
3279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3280  (eval $ac_compile) 2>conftest.er1
3281  ac_status=$?
3282  grep -v '^ *+' conftest.er1 >conftest.err
3283  rm -f conftest.er1
3284  cat conftest.err >&5
3285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286  (exit $ac_status); } &&
3287         { ac_try='test -z "$ac_cxx_werror_flag"
3288                         || test ! -s conftest.err'
3289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290  (eval $ac_try) 2>&5
3291  ac_status=$?
3292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293  (exit $ac_status); }; } &&
3294         { ac_try='test -s conftest.$ac_objext'
3295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296  (eval $ac_try) 2>&5
3297  ac_status=$?
3298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299  (exit $ac_status); }; }; then
3300  ac_compiler_gnu=yes
3301else
3302  echo "$as_me: failed program was:" >&5
3303sed 's/^/| /' conftest.$ac_ext >&5
3304
3305ac_compiler_gnu=no
3306fi
3307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3308ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3309
3310fi
3311echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3312echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3313GXX=`test $ac_compiler_gnu = yes && echo yes`
3314ac_test_CXXFLAGS=${CXXFLAGS+set}
3315ac_save_CXXFLAGS=$CXXFLAGS
3316CXXFLAGS="-g"
3317echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3318echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3319if test "${ac_cv_prog_cxx_g+set}" = set; then
3320  echo $ECHO_N "(cached) $ECHO_C" >&6
3321else
3322  cat >conftest.$ac_ext <<_ACEOF
3323/* confdefs.h.  */
3324_ACEOF
3325cat confdefs.h >>conftest.$ac_ext
3326cat >>conftest.$ac_ext <<_ACEOF
3327/* end confdefs.h.  */
3328
3329int
3330main ()
3331{
3332
3333  ;
3334  return 0;
3335}
3336_ACEOF
3337rm -f conftest.$ac_objext
3338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3339  (eval $ac_compile) 2>conftest.er1
3340  ac_status=$?
3341  grep -v '^ *+' conftest.er1 >conftest.err
3342  rm -f conftest.er1
3343  cat conftest.err >&5
3344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345  (exit $ac_status); } &&
3346         { ac_try='test -z "$ac_cxx_werror_flag"
3347                         || test ! -s conftest.err'
3348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349  (eval $ac_try) 2>&5
3350  ac_status=$?
3351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352  (exit $ac_status); }; } &&
3353         { ac_try='test -s conftest.$ac_objext'
3354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355  (eval $ac_try) 2>&5
3356  ac_status=$?
3357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358  (exit $ac_status); }; }; then
3359  ac_cv_prog_cxx_g=yes
3360else
3361  echo "$as_me: failed program was:" >&5
3362sed 's/^/| /' conftest.$ac_ext >&5
3363
3364ac_cv_prog_cxx_g=no
3365fi
3366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3367fi
3368echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3369echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3370if test "$ac_test_CXXFLAGS" = set; then
3371  CXXFLAGS=$ac_save_CXXFLAGS
3372elif test $ac_cv_prog_cxx_g = yes; then
3373  if test "$GXX" = yes; then
3374    CXXFLAGS="-g -O2"
3375  else
3376    CXXFLAGS="-g"
3377  fi
3378else
3379  if test "$GXX" = yes; then
3380    CXXFLAGS="-O2"
3381  else
3382    CXXFLAGS=
3383  fi
3384fi
3385for ac_declaration in \
3386   '' \
3387   'extern "C" void std::exit (int) throw (); using std::exit;' \
3388   'extern "C" void std::exit (int); using std::exit;' \
3389   'extern "C" void exit (int) throw ();' \
3390   'extern "C" void exit (int);' \
3391   'void exit (int);'
3392do
3393  cat >conftest.$ac_ext <<_ACEOF
3394/* confdefs.h.  */
3395_ACEOF
3396cat confdefs.h >>conftest.$ac_ext
3397cat >>conftest.$ac_ext <<_ACEOF
3398/* end confdefs.h.  */
3399$ac_declaration
3400#include <stdlib.h>
3401int
3402main ()
3403{
3404exit (42);
3405  ;
3406  return 0;
3407}
3408_ACEOF
3409rm -f conftest.$ac_objext
3410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3411  (eval $ac_compile) 2>conftest.er1
3412  ac_status=$?
3413  grep -v '^ *+' conftest.er1 >conftest.err
3414  rm -f conftest.er1
3415  cat conftest.err >&5
3416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417  (exit $ac_status); } &&
3418         { ac_try='test -z "$ac_cxx_werror_flag"
3419                         || test ! -s conftest.err'
3420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421  (eval $ac_try) 2>&5
3422  ac_status=$?
3423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424  (exit $ac_status); }; } &&
3425         { ac_try='test -s conftest.$ac_objext'
3426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427  (eval $ac_try) 2>&5
3428  ac_status=$?
3429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430  (exit $ac_status); }; }; then
3431  :
3432else
3433  echo "$as_me: failed program was:" >&5
3434sed 's/^/| /' conftest.$ac_ext >&5
3435
3436continue
3437fi
3438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3439  cat >conftest.$ac_ext <<_ACEOF
3440/* confdefs.h.  */
3441_ACEOF
3442cat confdefs.h >>conftest.$ac_ext
3443cat >>conftest.$ac_ext <<_ACEOF
3444/* end confdefs.h.  */
3445$ac_declaration
3446int
3447main ()
3448{
3449exit (42);
3450  ;
3451  return 0;
3452}
3453_ACEOF
3454rm -f conftest.$ac_objext
3455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3456  (eval $ac_compile) 2>conftest.er1
3457  ac_status=$?
3458  grep -v '^ *+' conftest.er1 >conftest.err
3459  rm -f conftest.er1
3460  cat conftest.err >&5
3461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462  (exit $ac_status); } &&
3463         { ac_try='test -z "$ac_cxx_werror_flag"
3464                         || test ! -s conftest.err'
3465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466  (eval $ac_try) 2>&5
3467  ac_status=$?
3468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469  (exit $ac_status); }; } &&
3470         { ac_try='test -s conftest.$ac_objext'
3471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472  (eval $ac_try) 2>&5
3473  ac_status=$?
3474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475  (exit $ac_status); }; }; then
3476  break
3477else
3478  echo "$as_me: failed program was:" >&5
3479sed 's/^/| /' conftest.$ac_ext >&5
3480
3481fi
3482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3483done
3484rm -f conftest*
3485if test -n "$ac_declaration"; then
3486  echo '#ifdef __cplusplus' >>confdefs.h
3487  echo $ac_declaration      >>confdefs.h
3488  echo '#endif'             >>confdefs.h
3489fi
3490
3491ac_ext=cc
3492ac_cpp='$CXXCPP $CPPFLAGS'
3493ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3496
3497
3498#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3499#thus, we test here whether $CXX is actually working
3500ac_ext=cc
3501ac_cpp='$CXXCPP $CPPFLAGS'
3502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3505
3506echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3507echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3508cat >conftest.$ac_ext <<_ACEOF
3509/* confdefs.h.  */
3510_ACEOF
3511cat confdefs.h >>conftest.$ac_ext
3512cat >>conftest.$ac_ext <<_ACEOF
3513/* end confdefs.h.  */
3514
3515int
3516main ()
3517{
3518int i=0;
3519  ;
3520  return 0;
3521}
3522_ACEOF
3523rm -f conftest.$ac_objext
3524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3525  (eval $ac_compile) 2>conftest.er1
3526  ac_status=$?
3527  grep -v '^ *+' conftest.er1 >conftest.err
3528  rm -f conftest.er1
3529  cat conftest.err >&5
3530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531  (exit $ac_status); } &&
3532         { ac_try='test -z "$ac_cxx_werror_flag"
3533                         || test ! -s conftest.err'
3534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535  (eval $ac_try) 2>&5
3536  ac_status=$?
3537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538  (exit $ac_status); }; } &&
3539         { ac_try='test -s conftest.$ac_objext'
3540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541  (eval $ac_try) 2>&5
3542  ac_status=$?
3543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544  (exit $ac_status); }; }; then
3545  echo "$as_me:$LINENO: result: yes" >&5
3546echo "${ECHO_T}yes" >&6
3547else
3548  echo "$as_me: failed program was:" >&5
3549sed 's/^/| /' conftest.$ac_ext >&5
3550
3551echo "$as_me:$LINENO: result: no" >&5
3552echo "${ECHO_T}no" >&6
3553   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3554echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3555   { (exit 1); exit 1; }; }
3556
3557fi
3558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3559ac_ext=cc
3560ac_cpp='$CXXCPP $CPPFLAGS'
3561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3564
3565
3566coin_cxx_is_cl=false
3567# It seems that we need to cleanup something here for the Windows
3568case "$CXX" in
3569  clang* ) ;;
3570  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3571    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3572    mv confdefs.hh confdefs.h
3573    coin_cxx_is_cl=true
3574    ;;
3575esac
3576
3577# add automake conditional so we can recognize cl compiler in makefile
3578
3579
3580if test $coin_cxx_is_cl = true; then
3581  COIN_CXX_IS_CL_TRUE=
3582  COIN_CXX_IS_CL_FALSE='#'
3583else
3584  COIN_CXX_IS_CL_TRUE='#'
3585  COIN_CXX_IS_CL_FALSE=
3586fi
3587
3588
3589# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3590case "$CXX" in
3591  clang* ) ;;
3592  cl* | */cl* | CL* | */CL* )
3593    if test "$ac_cv_prog_cxx_g" = yes ; then
3594      ac_cv_prog_cxx_g=no
3595      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3596echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3597    fi ;;
3598  * )
3599    if test x"$CYGPATH_W" = x ; then
3600      CYGPATH_W=echo
3601    fi
3602    ;;
3603esac
3604CXXFLAGS="$save_cxxflags"
3605
3606# Check if a project specific CXXFLAGS variable has been set
3607if test x$COIN_PRJCT != x; then
3608  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3609  if test x$coin_tmp = xset; then
3610    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3611  fi
3612fi
3613
3614if test x"$CXXFLAGS" = x; then
3615
3616# ToDo decide whether we want -DNDEBUG for optimization
3617  coin_add_cxxflags=
3618  coin_opt_cxxflags=
3619  coin_dbg_cxxflags=
3620  coin_warn_cxxflags=
3621
3622  if test "$GXX" = "yes"; then
3623    case "$CXX" in
3624      icpc* | */icpc*)
3625        ;;
3626      *)
3627# ToDo decide about unroll-loops
3628        coin_opt_cxxflags="-O3"
3629        coin_add_cxxflags="-pipe"
3630        coin_dbg_cxxflags="-g -O0"
3631        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3632        case $build in
3633          *-darwin*)
3634            ;;
3635          *)
3636            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3637            ;;
3638        esac
3639    esac
3640  fi
3641
3642# Note that we do not need to cover GCC in the following tests.
3643
3644  if test -z "$coin_opt_cxxflags"; then
3645    case $build in
3646      *-cygwin* | *-mingw*)
3647        case "$CXX" in
3648          clang* ) ;;
3649          cl* | */cl* | CL* | */CL*)
3650            # The MT and MTd options are mutually exclusive
3651            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3652               coin_opt_cxxflags='-MD -O2'
3653               coin_dbg_cxxflags='-MDd'
3654            else
3655               coin_opt_cxxflags='-MT -O2'
3656               coin_dbg_cxxflags='-MTd'
3657            fi
3658            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3659            ;;
3660          icl* | */icl* | ICL* | */ICL*)
3661          # The MT and MTd options are mutually exclusive
3662            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3663              coin_opt_cxxflags='-MD -Ox'
3664              coin_dbg_cxxflags='-MDd -debug'
3665            else
3666              coin_opt_cxxflags='-MT -Ox'
3667              coin_dbg_cxxflags='-MTd -debug'
3668            fi
3669            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3670            ;;
3671        esac
3672        ;;
3673      *-linux-*)
3674        case "$CXX" in
3675          icpc* | */icpc*)
3676            coin_opt_cxxflags="-O3 -ip -mp1"
3677            coin_add_cxxflags=""
3678            coin_dbg_cxxflags="-g"
3679            # Check if -i_dynamic is necessary (for new glibc library)
3680            CXXFLAGS=
3681            cat >conftest.$ac_ext <<_ACEOF
3682/* confdefs.h.  */
3683_ACEOF
3684cat confdefs.h >>conftest.$ac_ext
3685cat >>conftest.$ac_ext <<_ACEOF
3686/* end confdefs.h.  */
3687
3688int
3689main ()
3690{
3691int i=0; i++;
3692  ;
3693  return 0;
3694}
3695_ACEOF
3696rm -f conftest.$ac_objext conftest$ac_exeext
3697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3698  (eval $ac_link) 2>conftest.er1
3699  ac_status=$?
3700  grep -v '^ *+' conftest.er1 >conftest.err
3701  rm -f conftest.er1
3702  cat conftest.err >&5
3703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704  (exit $ac_status); } &&
3705         { ac_try='test -z "$ac_cxx_werror_flag"
3706                         || test ! -s conftest.err'
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); }; } &&
3712         { ac_try='test -s conftest$ac_exeext'
3713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714  (eval $ac_try) 2>&5
3715  ac_status=$?
3716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717  (exit $ac_status); }; }; then
3718  :
3719else
3720  echo "$as_me: failed program was:" >&5
3721sed 's/^/| /' conftest.$ac_ext >&5
3722
3723coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3724fi
3725rm -f conftest.err conftest.$ac_objext \
3726      conftest$ac_exeext conftest.$ac_ext
3727            ;;
3728          pgCC* | */pgCC*)
3729            coin_opt_cxxflags="-fast"
3730            coin_add_cxxflags="-Kieee -pc 64"
3731            coin_dbg_cxxflags="-g"
3732            ;;
3733        esac
3734        ;;
3735      *-ibm-*)
3736        case "$CXX" in
3737          xlC* | */xlC* | mpxlC* | */mpxlC*)
3738            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3739            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3740            coin_dbg_cxxflags="-g"
3741            ;;
3742        esac
3743        ;;
3744      *-hp-*)
3745        case "$CXX" in
3746          aCC* | */aCC* )
3747            coin_opt_cxxflags="-O"
3748            coin_add_cxxflags="-AA"
3749            coin_dbg_cxxflags="-g"
3750            ;;
3751        esac
3752        ;;
3753      *-*-solaris*)
3754          coin_opt_cxxflags="-O4"
3755          coin_dbg_cxxflags="-g"
3756        ;;
3757    esac
3758  fi
3759
3760# Generic flag settings. If these don't work, add a case above.
3761
3762  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3763    coin_dbg_cxxflags="-g"
3764  fi
3765
3766  if test -z "$coin_opt_cxxflags"; then
3767    # Try if -O option works if nothing else is set
3768    CXXFLAGS=-O
3769    cat >conftest.$ac_ext <<_ACEOF
3770/* confdefs.h.  */
3771_ACEOF
3772cat confdefs.h >>conftest.$ac_ext
3773cat >>conftest.$ac_ext <<_ACEOF
3774/* end confdefs.h.  */
3775
3776int
3777main ()
3778{
3779int i=0; i++;
3780  ;
3781  return 0;
3782}
3783_ACEOF
3784rm -f conftest.$ac_objext conftest$ac_exeext
3785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3786  (eval $ac_link) 2>conftest.er1
3787  ac_status=$?
3788  grep -v '^ *+' conftest.er1 >conftest.err
3789  rm -f conftest.er1
3790  cat conftest.err >&5
3791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792  (exit $ac_status); } &&
3793         { ac_try='test -z "$ac_cxx_werror_flag"
3794                         || test ! -s conftest.err'
3795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796  (eval $ac_try) 2>&5
3797  ac_status=$?
3798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799  (exit $ac_status); }; } &&
3800         { ac_try='test -s conftest$ac_exeext'
3801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802  (eval $ac_try) 2>&5
3803  ac_status=$?
3804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805  (exit $ac_status); }; }; then
3806  coin_opt_cxxflags="-O"
3807else
3808  echo "$as_me: failed program was:" >&5
3809sed 's/^/| /' conftest.$ac_ext >&5
3810
3811fi
3812rm -f conftest.err conftest.$ac_objext \
3813      conftest$ac_exeext conftest.$ac_ext
3814  fi
3815
3816  # if PM doesn't want the warning messages, take them out
3817  if test x"$coin_skip_warn_cxxflags" = xyes; then
3818    coin_warn_cxxflags=
3819  fi
3820
3821# Do final setup of flags based on values determined above.
3822
3823  if test x${DBG_CXXFLAGS+set} != xset; then
3824    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3825  fi
3826  if test x${OPT_CXXFLAGS+set} != xset; then
3827    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3828  fi
3829
3830  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3831  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3832
3833  if test "$coin_debug_compile" = "true"; then
3834    CXXFLAGS="$DBG_CXXFLAGS"
3835  else
3836    CXXFLAGS="$OPT_CXXFLAGS"
3837  fi
3838
3839# Handle the case where CXXFLAGS was set externally.
3840else
3841  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3842  if test x${DBG_CXXFLAGS+set} != xset; then
3843    DBG_CXXFLAGS="$CXXFLAGS"
3844  fi
3845  if test x${OPT_CXXFLAGS+set} != xset; then
3846    OPT_CXXFLAGS="$CXXFLAGS"
3847  fi
3848fi
3849
3850# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3851if test x$COIN_PRJCT != x; then
3852  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3853fi
3854
3855# Try if CXXFLAGS works
3856save_CXXFLAGS="$CXXFLAGS"
3857cat >conftest.$ac_ext <<_ACEOF
3858/* confdefs.h.  */
3859_ACEOF
3860cat confdefs.h >>conftest.$ac_ext
3861cat >>conftest.$ac_ext <<_ACEOF
3862/* end confdefs.h.  */
3863
3864int
3865main ()
3866{
3867int i=0; i++;
3868  ;
3869  return 0;
3870}
3871_ACEOF
3872rm -f conftest.$ac_objext conftest$ac_exeext
3873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3874  (eval $ac_link) 2>conftest.er1
3875  ac_status=$?
3876  grep -v '^ *+' conftest.er1 >conftest.err
3877  rm -f conftest.er1
3878  cat conftest.err >&5
3879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880  (exit $ac_status); } &&
3881         { ac_try='test -z "$ac_cxx_werror_flag"
3882                         || test ! -s conftest.err'
3883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884  (eval $ac_try) 2>&5
3885  ac_status=$?
3886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887  (exit $ac_status); }; } &&
3888         { ac_try='test -s conftest$ac_exeext'
3889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890  (eval $ac_try) 2>&5
3891  ac_status=$?
3892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893  (exit $ac_status); }; }; then
3894  :
3895else
3896  echo "$as_me: failed program was:" >&5
3897sed 's/^/| /' conftest.$ac_ext >&5
3898
3899CXXFLAGS=
3900fi
3901rm -f conftest.err conftest.$ac_objext \
3902      conftest$ac_exeext conftest.$ac_ext
3903if test -z "$CXXFLAGS"; then
3904  { 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
3905echo "$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;}
3906  CXXFLAGS='-O'
3907  cat >conftest.$ac_ext <<_ACEOF
3908/* confdefs.h.  */
3909_ACEOF
3910cat confdefs.h >>conftest.$ac_ext
3911cat >>conftest.$ac_ext <<_ACEOF
3912/* end confdefs.h.  */
3913
3914int
3915main ()
3916{
3917int i=0; i++;
3918  ;
3919  return 0;
3920}
3921_ACEOF
3922rm -f conftest.$ac_objext conftest$ac_exeext
3923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3924  (eval $ac_link) 2>conftest.er1
3925  ac_status=$?
3926  grep -v '^ *+' conftest.er1 >conftest.err
3927  rm -f conftest.er1
3928  cat conftest.err >&5
3929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930  (exit $ac_status); } &&
3931         { ac_try='test -z "$ac_cxx_werror_flag"
3932                         || test ! -s conftest.err'
3933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934  (eval $ac_try) 2>&5
3935  ac_status=$?
3936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937  (exit $ac_status); }; } &&
3938         { ac_try='test -s conftest$ac_exeext'
3939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940  (eval $ac_try) 2>&5
3941  ac_status=$?
3942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943  (exit $ac_status); }; }; then
3944  :
3945else
3946  echo "$as_me: failed program was:" >&5
3947sed 's/^/| /' conftest.$ac_ext >&5
3948
3949CXXFLAGS=
3950fi
3951rm -f conftest.err conftest.$ac_objext \
3952      conftest$ac_exeext conftest.$ac_ext
3953  if test -z "$CXXFLAGS"; then
3954    { 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
3955echo "$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;}
3956  fi
3957fi
3958
3959{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3960echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3961
3962
3963if test x"$MPICXX" = x; then :; else
3964  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3965echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3966  CXX="$MPICXX"
3967fi
3968
3969# correct the LD variable in a mingw build with MS or intel compiler
3970case "$CXX" in
3971  clang* ) ;;
3972  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3973
3974 case $build in
3975  *-mingw*)
3976    if test "${LD+set}" = set; then :; else
3977      LD=link
3978    fi
3979    ;;
3980 esac
3981 if test $enable_msvc = yes ; then
3982   if test "x${LD+set}" = xset; then :; else
3983     LD=link
3984   fi
3985 fi
3986
3987    ;;
3988esac
3989
3990ac_ext=c
3991ac_cpp='$CPP $CPPFLAGS'
3992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995
3996
3997
3998# Get the name of the Fortran compiler and appropriate compiler options
3999case $build in
4000  *-cygwin* | *-mingw*)
4001     if test "$enable_msvc" = yes ; then
4002       coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77"
4003     else
4004       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
4005     fi ;;
4006  *-*-solaris*)
4007     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
4008  *-linux-gnu*)
4009     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
4010  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
4011 esac
4012
4013
4014
4015
4016
4017
4018ac_ext=f
4019ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4020ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4022
4023
4024
4025
4026
4027
4028coin_has_f77=yes
4029
4030save_fflags="$FFLAGS"
4031
4032# We delete the cached value, since the test might not have been
4033# performed with our choice of compilers earlier
4034$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4035
4036# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4037# coin_f77_comps to see if there's a program that matches one of the names.
4038# If there's no such program, F77 = unavailable. If we match the name,
4039# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4040# compiler.
4041# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4042
4043
4044{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4045echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4046if test -n "$ac_tool_prefix"; then
4047  for ac_prog in $coin_f77_comps
4048  do
4049    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4050set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4051echo "$as_me:$LINENO: checking for $ac_word" >&5
4052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4053if test "${ac_cv_prog_F77+set}" = set; then
4054  echo $ECHO_N "(cached) $ECHO_C" >&6
4055else
4056  if test -n "$F77"; then
4057  ac_cv_prog_F77="$F77" # Let the user override the test.
4058else
4059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060for as_dir in $PATH
4061do
4062  IFS=$as_save_IFS
4063  test -z "$as_dir" && as_dir=.
4064  for ac_exec_ext in '' $ac_executable_extensions; do
4065  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4066    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4067    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4068    break 2
4069  fi
4070done
4071done
4072
4073fi
4074fi
4075F77=$ac_cv_prog_F77
4076if test -n "$F77"; then
4077  echo "$as_me:$LINENO: result: $F77" >&5
4078echo "${ECHO_T}$F77" >&6
4079else
4080  echo "$as_me:$LINENO: result: no" >&5
4081echo "${ECHO_T}no" >&6
4082fi
4083
4084    test -n "$F77" && break
4085  done
4086fi
4087if test -z "$F77"; then
4088  ac_ct_F77=$F77
4089  for ac_prog in $coin_f77_comps
4090do
4091  # Extract the first word of "$ac_prog", so it can be a program name with args.
4092set dummy $ac_prog; ac_word=$2
4093echo "$as_me:$LINENO: checking for $ac_word" >&5
4094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4095if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4096  echo $ECHO_N "(cached) $ECHO_C" >&6
4097else
4098  if test -n "$ac_ct_F77"; then
4099  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4100else
4101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102for as_dir in $PATH
4103do
4104  IFS=$as_save_IFS
4105  test -z "$as_dir" && as_dir=.
4106  for ac_exec_ext in '' $ac_executable_extensions; do
4107  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4108    ac_cv_prog_ac_ct_F77="$ac_prog"
4109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4110    break 2
4111  fi
4112done
4113done
4114
4115fi
4116fi
4117ac_ct_F77=$ac_cv_prog_ac_ct_F77
4118if test -n "$ac_ct_F77"; then
4119  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4120echo "${ECHO_T}$ac_ct_F77" >&6
4121else
4122  echo "$as_me:$LINENO: result: no" >&5
4123echo "${ECHO_T}no" >&6
4124fi
4125
4126  test -n "$ac_ct_F77" && break
4127done
4128test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4129
4130  F77=$ac_ct_F77
4131fi
4132
4133
4134if test "$F77" != "unavailable" ; then
4135  ac_ext=f
4136ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4137ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4139if test -n "$ac_tool_prefix"; then
4140  for ac_prog in $coin_f77_comps
4141  do
4142    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4143set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4144echo "$as_me:$LINENO: checking for $ac_word" >&5
4145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4146if test "${ac_cv_prog_F77+set}" = set; then
4147  echo $ECHO_N "(cached) $ECHO_C" >&6
4148else
4149  if test -n "$F77"; then
4150  ac_cv_prog_F77="$F77" # Let the user override the test.
4151else
4152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153for as_dir in $PATH
4154do
4155  IFS=$as_save_IFS
4156  test -z "$as_dir" && as_dir=.
4157  for ac_exec_ext in '' $ac_executable_extensions; do
4158  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4159    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4160    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4161    break 2
4162  fi
4163done
4164done
4165
4166fi
4167fi
4168F77=$ac_cv_prog_F77
4169if test -n "$F77"; then
4170  echo "$as_me:$LINENO: result: $F77" >&5
4171echo "${ECHO_T}$F77" >&6
4172else
4173  echo "$as_me:$LINENO: result: no" >&5
4174echo "${ECHO_T}no" >&6
4175fi
4176
4177    test -n "$F77" && break
4178  done
4179fi
4180if test -z "$F77"; then
4181  ac_ct_F77=$F77
4182  for ac_prog in $coin_f77_comps
4183do
4184  # Extract the first word of "$ac_prog", so it can be a program name with args.
4185set dummy $ac_prog; ac_word=$2
4186echo "$as_me:$LINENO: checking for $ac_word" >&5
4187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4189  echo $ECHO_N "(cached) $ECHO_C" >&6
4190else
4191  if test -n "$ac_ct_F77"; then
4192  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4193else
4194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195for as_dir in $PATH
4196do
4197  IFS=$as_save_IFS
4198  test -z "$as_dir" && as_dir=.
4199  for ac_exec_ext in '' $ac_executable_extensions; do
4200  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201    ac_cv_prog_ac_ct_F77="$ac_prog"
4202    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203    break 2
4204  fi
4205done
4206done
4207
4208fi
4209fi
4210ac_ct_F77=$ac_cv_prog_ac_ct_F77
4211if test -n "$ac_ct_F77"; then
4212  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4213echo "${ECHO_T}$ac_ct_F77" >&6
4214else
4215  echo "$as_me:$LINENO: result: no" >&5
4216echo "${ECHO_T}no" >&6
4217fi
4218
4219  test -n "$ac_ct_F77" && break
4220done
4221
4222  F77=$ac_ct_F77
4223fi
4224
4225
4226# Provide some information about the compiler.
4227echo "$as_me:4227:" \
4228     "checking for Fortran 77 compiler version" >&5
4229ac_compiler=`set X $ac_compile; echo $2`
4230{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4231  (eval $ac_compiler --version </dev/null >&5) 2>&5
4232  ac_status=$?
4233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234  (exit $ac_status); }
4235{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4236  (eval $ac_compiler -v </dev/null >&5) 2>&5
4237  ac_status=$?
4238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239  (exit $ac_status); }
4240{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4241  (eval $ac_compiler -V </dev/null >&5) 2>&5
4242  ac_status=$?
4243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244  (exit $ac_status); }
4245rm -f a.out
4246
4247# If we don't use `.F' as extension, the preprocessor is not run on the
4248# input file.  (Note that this only needs to work for GNU compilers.)
4249ac_save_ext=$ac_ext
4250ac_ext=F
4251echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4252echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4253if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4254  echo $ECHO_N "(cached) $ECHO_C" >&6
4255else
4256  cat >conftest.$ac_ext <<_ACEOF
4257      program main
4258#ifndef __GNUC__
4259       choke me
4260#endif
4261
4262      end
4263_ACEOF
4264rm -f conftest.$ac_objext
4265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4266  (eval $ac_compile) 2>conftest.er1
4267  ac_status=$?
4268  grep -v '^ *+' conftest.er1 >conftest.err
4269  rm -f conftest.er1
4270  cat conftest.err >&5
4271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272  (exit $ac_status); } &&
4273         { ac_try='test -z "$ac_f77_werror_flag"
4274                         || test ! -s conftest.err'
4275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276  (eval $ac_try) 2>&5
4277  ac_status=$?
4278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279  (exit $ac_status); }; } &&
4280         { ac_try='test -s conftest.$ac_objext'
4281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282  (eval $ac_try) 2>&5
4283  ac_status=$?
4284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285  (exit $ac_status); }; }; then
4286  ac_compiler_gnu=yes
4287else
4288  echo "$as_me: failed program was:" >&5
4289sed 's/^/| /' conftest.$ac_ext >&5
4290
4291ac_compiler_gnu=no
4292fi
4293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4294ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4295
4296fi
4297echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4298echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4299ac_ext=$ac_save_ext
4300ac_test_FFLAGS=${FFLAGS+set}
4301ac_save_FFLAGS=$FFLAGS
4302FFLAGS=
4303echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4304echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4305if test "${ac_cv_prog_f77_g+set}" = set; then
4306  echo $ECHO_N "(cached) $ECHO_C" >&6
4307else
4308  FFLAGS=-g
4309cat >conftest.$ac_ext <<_ACEOF
4310      program main
4311
4312      end
4313_ACEOF
4314rm -f conftest.$ac_objext
4315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4316  (eval $ac_compile) 2>conftest.er1
4317  ac_status=$?
4318  grep -v '^ *+' conftest.er1 >conftest.err
4319  rm -f conftest.er1
4320  cat conftest.err >&5
4321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322  (exit $ac_status); } &&
4323         { ac_try='test -z "$ac_f77_werror_flag"
4324                         || test ! -s conftest.err'
4325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326  (eval $ac_try) 2>&5
4327  ac_status=$?
4328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329  (exit $ac_status); }; } &&
4330         { ac_try='test -s conftest.$ac_objext'
4331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332  (eval $ac_try) 2>&5
4333  ac_status=$?
4334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335  (exit $ac_status); }; }; then
4336  ac_cv_prog_f77_g=yes
4337else
4338  echo "$as_me: failed program was:" >&5
4339sed 's/^/| /' conftest.$ac_ext >&5
4340
4341ac_cv_prog_f77_g=no
4342fi
4343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4344
4345fi
4346echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4347echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4348if test "$ac_test_FFLAGS" = set; then
4349  FFLAGS=$ac_save_FFLAGS
4350elif test $ac_cv_prog_f77_g = yes; then
4351  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4352    FFLAGS="-g -O2"
4353  else
4354    FFLAGS="-g"
4355  fi
4356else
4357  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4358    FFLAGS="-O2"
4359  else
4360    FFLAGS=
4361  fi
4362fi
4363
4364G77=`test $ac_compiler_gnu = yes && echo yes`
4365ac_ext=f
4366ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4367ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4368ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4369
4370else
4371  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4372echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4373fi
4374
4375FFLAGS="$save_fflags"
4376
4377# Check if a project specific FFLAGS variable has been set
4378if test x$COIN_PRJCT != x; then
4379  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4380  if test x$coin_tmp = xset; then
4381    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4382  fi
4383fi
4384
4385if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4386
4387  coin_add_fflags=
4388  coin_opt_fflags=
4389  coin_dbg_fflags=
4390  coin_warn_fflags=
4391
4392  if test "$G77" = "yes"; then
4393    coin_opt_fflags="-O3"
4394    coin_add_fflags="-pipe"
4395    coin_dbg_fflags="-g -O0"
4396  else
4397    case $build in
4398      *-cygwin* | *-mingw*)
4399        case $F77 in
4400          ifort* | */ifort* | IFORT* | */IFORT* )
4401            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4402              coin_opt_fflags='-MD -O3'
4403              coin_dbg_fflags='-MDd -debug'
4404            else
4405              coin_opt_fflags='-MT -O3'
4406              coin_dbg_fflags='-MTd -debug'
4407            fi
4408            coin_add_fflags='-fpp -nologo'
4409          ;;
4410          compile_f2c*)
4411            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4412              coin_opt_fflags='-MD -O2'
4413              coin_dbg_fflags='-MDd'
4414            else
4415              coin_opt_fflags='-MT -O2'
4416              coin_dbg_fflags='-MTd'
4417            fi
4418            coin_add_fflags='-nologo -wd4996'
4419          ;;
4420        esac
4421        ;;
4422      *-linux-*)
4423        case $F77 in
4424          ifc* | */ifc* | ifort* | */ifort*)
4425            coin_opt_fflags="-O3 -ip"
4426            coin_add_fflags="-cm -w90 -w95"
4427            coin_dbg_fflags="-g -CA -CB -CS"
4428            # Check if -i_dynamic is necessary (for new glibc library)
4429            FFLAGS=
4430            cat >conftest.$ac_ext <<_ACEOF
4431      program main
4432      write(*,*) 'Hello world'
4433      end
4434_ACEOF
4435rm -f conftest.$ac_objext conftest$ac_exeext
4436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4437  (eval $ac_link) 2>conftest.er1
4438  ac_status=$?
4439  grep -v '^ *+' conftest.er1 >conftest.err
4440  rm -f conftest.er1
4441  cat conftest.err >&5
4442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443  (exit $ac_status); } &&
4444         { ac_try='test -z "$ac_f77_werror_flag"
4445                         || test ! -s conftest.err'
4446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447  (eval $ac_try) 2>&5
4448  ac_status=$?
4449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450  (exit $ac_status); }; } &&
4451         { ac_try='test -s conftest$ac_exeext'
4452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453  (eval $ac_try) 2>&5
4454  ac_status=$?
4455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456  (exit $ac_status); }; }; then
4457  :
4458else
4459  echo "$as_me: failed program was:" >&5
4460sed 's/^/| /' conftest.$ac_ext >&5
4461
4462coin_add_fflags="-i_dynamic $coin_add_fflags"
4463fi
4464rm -f conftest.err conftest.$ac_objext \
4465      conftest$ac_exeext conftest.$ac_ext
4466            ;;
4467          pgf77* | */pgf77* | pgf90* | */pgf90*)
4468            coin_opt_fflags="-fast"
4469            coin_add_fflags="-Kieee -pc 64"
4470            coin_dbg_fflags="-g"
4471          ;;
4472        esac
4473        ;;
4474      *-ibm-*)
4475        case "$F77" in
4476          xlf* | */xlf* | mpxlf* | */mpxlf* )
4477            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4478            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4479            coin_dbg_fflags="-g -C"
4480            ;;
4481        esac
4482        ;;
4483      *-hp-*)
4484        coin_opt_fflags="+O3"
4485        coin_add_fflags="+U77"
4486        coin_dbg_fflags="-C -g"
4487        ;;
4488      *-*-solaris*)
4489        coin_opt_fflags="-O4"
4490        coin_dbg_fflags="-g"
4491        ;;
4492      *-sgi-*)
4493        coin_opt_fflags="-O5 -OPT:Olimit=0"
4494        coin_dbg_fflags="-g"
4495        ;;
4496    esac
4497  fi
4498
4499  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4500    coin_dbg_fflags="-g"
4501  fi
4502
4503  if test -z "$coin_opt_fflags"; then
4504    # Try if -O option works if nothing else is set
4505    FFLAGS=-O
4506    cat >conftest.$ac_ext <<_ACEOF
4507      program main
4508      integer i
4509      end
4510_ACEOF
4511rm -f conftest.$ac_objext conftest$ac_exeext
4512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4513  (eval $ac_link) 2>conftest.er1
4514  ac_status=$?
4515  grep -v '^ *+' conftest.er1 >conftest.err
4516  rm -f conftest.er1
4517  cat conftest.err >&5
4518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519  (exit $ac_status); } &&
4520         { ac_try='test -z "$ac_f77_werror_flag"
4521                         || test ! -s conftest.err'
4522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523  (eval $ac_try) 2>&5
4524  ac_status=$?
4525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526  (exit $ac_status); }; } &&
4527         { ac_try='test -s conftest$ac_exeext'
4528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529  (eval $ac_try) 2>&5
4530  ac_status=$?
4531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532  (exit $ac_status); }; }; then
4533  coin_opt_fflags="-O"
4534else
4535  echo "$as_me: failed program was:" >&5
4536sed 's/^/| /' conftest.$ac_ext >&5
4537
4538fi
4539rm -f conftest.err conftest.$ac_objext \
4540      conftest$ac_exeext conftest.$ac_ext
4541  fi
4542
4543  # if PM doesn't want the warning messages, take them out
4544  if test x"$coin_skip_warn_fflags" = xyes; then
4545    coin_warn_fflags=
4546  fi
4547
4548  if test x${DBG_FFLAGS+set} != xset; then
4549    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4550  fi
4551  if test x${OPT_FFLAGS+set} != xset; then
4552    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4553  fi
4554
4555  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4556  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4557
4558  if test "$coin_debug_compile" = "true"; then
4559    FFLAGS="$DBG_FFLAGS"
4560  else
4561    FFLAGS="$OPT_FFLAGS"
4562  fi
4563else
4564  FFLAGS="$FFLAGS $ADD_FFLAGS"
4565  if test x${DBG_FFLAGS+set} != xset; then
4566    DBG_FFLAGS="$FFLAGS"
4567  fi
4568  if test x${OPT_FFLAGS+set} != xset; then
4569    OPT_FFLAGS="$FFLAGS"
4570  fi
4571fi
4572
4573# Try if FFLAGS works
4574if test "$F77" != "unavailable" ; then
4575  cat >conftest.$ac_ext <<_ACEOF
4576      program main
4577      integer i
4578      end
4579_ACEOF
4580rm -f conftest.$ac_objext conftest$ac_exeext
4581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4582  (eval $ac_link) 2>conftest.er1
4583  ac_status=$?
4584  grep -v '^ *+' conftest.er1 >conftest.err
4585  rm -f conftest.er1
4586  cat conftest.err >&5
4587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588  (exit $ac_status); } &&
4589         { ac_try='test -z "$ac_f77_werror_flag"
4590                         || test ! -s conftest.err'
4591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592  (eval $ac_try) 2>&5
4593  ac_status=$?
4594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595  (exit $ac_status); }; } &&
4596         { ac_try='test -s conftest$ac_exeext'
4597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598  (eval $ac_try) 2>&5
4599  ac_status=$?
4600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601  (exit $ac_status); }; }; then
4602  :
4603else
4604  echo "$as_me: failed program was:" >&5
4605sed 's/^/| /' conftest.$ac_ext >&5
4606
4607FFLAGS=
4608fi
4609rm -f conftest.err conftest.$ac_objext \
4610      conftest$ac_exeext conftest.$ac_ext
4611  if test -z "$FFLAGS"; then
4612    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
4613echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
4614    FFLAGS='-O'
4615    cat >conftest.$ac_ext <<_ACEOF
4616      program main
4617      integer i
4618      end
4619_ACEOF
4620rm -f conftest.$ac_objext conftest$ac_exeext
4621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4622  (eval $ac_link) 2>conftest.er1
4623  ac_status=$?
4624  grep -v '^ *+' conftest.er1 >conftest.err
4625  rm -f conftest.er1
4626  cat conftest.err >&5
4627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628  (exit $ac_status); } &&
4629         { ac_try='test -z "$ac_f77_werror_flag"
4630                         || test ! -s conftest.err'
4631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632  (eval $ac_try) 2>&5
4633  ac_status=$?
4634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635  (exit $ac_status); }; } &&
4636         { ac_try='test -s conftest$ac_exeext'
4637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638  (eval $ac_try) 2>&5
4639  ac_status=$?
4640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641  (exit $ac_status); }; }; then
4642  :
4643else
4644  echo "$as_me: failed program was:" >&5
4645sed 's/^/| /' conftest.$ac_ext >&5
4646
4647FFLAGS=
4648fi
4649rm -f conftest.err conftest.$ac_objext \
4650      conftest$ac_exeext conftest.$ac_ext
4651    if test -z "$FFLAGS"; then
4652      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4653echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
4654    fi
4655  fi
4656fi
4657
4658{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4659echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4660
4661
4662if test x"$MPIF77" = x; then :; else
4663  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4664echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4665  F77="$MPIF77"
4666fi
4667
4668# correct the LD variable if we use the intel fortran compiler in windows
4669case "$F77" in
4670  ifort* | */ifort* | IFORT* | */IFORT*)
4671
4672 case $build in
4673  *-mingw*)
4674    if test "${LD+set}" = set; then :; else
4675      LD=link
4676    fi
4677    ;;
4678 esac
4679 if test $enable_msvc = yes ; then
4680   if test "x${LD+set}" = xset; then :; else
4681     LD=link
4682   fi
4683 fi
4684
4685    ;;
4686esac
4687
4688ac_ext=c
4689ac_cpp='$CPP $CPPFLAGS'
4690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692ac_compiler_gnu=$ac_cv_c_compiler_gnu
4693
4694
4695
4696# Initialize automake and libtool
4697# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4698{
4699
4700
4701
4702# START
4703
4704coin_disable_shared=no
4705# Test if force_shared has been set
4706if test "x" = xforce_shared; then
4707  if test x$enable_shared = xno; then
4708    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4709echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4710   { (exit 1); exit 1; }; }
4711  fi
4712  enable_shared=yes;
4713else
4714  # On Cygwin and AIX, building DLLs doesn't work
4715  case $build in
4716    *-cygwin* | *-mingw*)
4717      coin_disable_shared=yes
4718      if test x"$enable_shared" = xyes; then
4719        case "$CC" in
4720          clang* )
4721            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4722echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4723            ;;
4724          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4725            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
4726echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
4727            ;;
4728          *gcc*)
4729            if test x"$enable_dependency_linking" = xyes; then
4730              coin_disable_shared=no
4731            else
4732              { echo "$as_me:$LINENO: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&5
4733echo "$as_me: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&2;}
4734            fi
4735            ;;
4736          *)
4737            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4738echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4739            ;;
4740        esac
4741      fi
4742    ;;
4743    *-aix*)
4744      coin_disable_shared=yes
4745      platform=AIX
4746      if test x"$enable_shared" = xyes; then
4747        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
4748echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
4749      fi
4750    ;;
4751  esac
4752fi
4753if test x"$coin_disable_shared" = xyes; then
4754  if test x"$enable_shared" = xyes; then
4755    :
4756  else
4757    # we don't disable shared, because it was not selected anyway
4758    coin_disable_shared=no
4759  fi
4760  enable_shared=no
4761fi
4762# By default, we only want the shared objects to be compiled
4763# Check whether --enable-static or --disable-static was given.
4764if test "${enable_static+set}" = set; then
4765  enableval="$enable_static"
4766  p=${PACKAGE-default}
4767    case $enableval in
4768    yes) enable_static=yes ;;
4769    no) enable_static=no ;;
4770    *)
4771     enable_static=no
4772      # Look at the argument we got.  We use all the common list separators.
4773      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4774      for pkg in $enableval; do
4775        IFS="$lt_save_ifs"
4776        if test "X$pkg" = "X$p"; then
4777          enable_static=yes
4778        fi
4779      done
4780      IFS="$lt_save_ifs"
4781      ;;
4782    esac
4783else
4784  enable_static=no
4785fi;
4786
4787
4788
4789
4790# Initialize automake
4791echo "$as_me:$LINENO: checking for egrep" >&5
4792echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4793if test "${ac_cv_prog_egrep+set}" = set; then
4794  echo $ECHO_N "(cached) $ECHO_C" >&6
4795else
4796  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4797    then ac_cv_prog_egrep='grep -E'
4798    else ac_cv_prog_egrep='egrep'
4799    fi
4800fi
4801echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4802echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4803 EGREP=$ac_cv_prog_egrep
4804
4805
4806echo "$as_me:$LINENO: checking whether ln -s works" >&5
4807echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4808LN_S=$as_ln_s
4809if test "$LN_S" = "ln -s"; then
4810  echo "$as_me:$LINENO: result: yes" >&5
4811echo "${ECHO_T}yes" >&6
4812else
4813  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4814echo "${ECHO_T}no, using $LN_S" >&6
4815fi
4816
4817am__api_version="1.9"
4818# Find a good install program.  We prefer a C program (faster),
4819# so one script is as good as another.  But avoid the broken or
4820# incompatible versions:
4821# SysV /etc/install, /usr/sbin/install
4822# SunOS /usr/etc/install
4823# IRIX /sbin/install
4824# AIX /bin/install
4825# AmigaOS /C/install, which installs bootblocks on floppy discs
4826# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4827# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4828# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4829# OS/2's system install, which has a completely different semantic
4830# ./install, which can be erroneously created by make from ./install.sh.
4831echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4832echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4833if test -z "$INSTALL"; then
4834if test "${ac_cv_path_install+set}" = set; then
4835  echo $ECHO_N "(cached) $ECHO_C" >&6
4836else
4837  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838for as_dir in $PATH
4839do
4840  IFS=$as_save_IFS
4841  test -z "$as_dir" && as_dir=.
4842  # Account for people who put trailing slashes in PATH elements.
4843case $as_dir/ in
4844  ./ | .// | /cC/* | \
4845  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4846  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4847  /usr/ucb/* ) ;;
4848  *)
4849    # OSF1 and SCO ODT 3.0 have their own names for install.
4850    # Don't use installbsd from OSF since it installs stuff as root
4851    # by default.
4852    for ac_prog in ginstall scoinst install; do
4853      for ac_exec_ext in '' $ac_executable_extensions; do
4854        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4855          if test $ac_prog = install &&
4856            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4857            # AIX install.  It has an incompatible calling convention.
4858            :
4859          elif test $ac_prog = install &&
4860            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4861            # program-specific install script used by HP pwplus--don't use.
4862            :
4863          else
4864            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4865            break 3
4866          fi
4867        fi
4868      done
4869    done
4870    ;;
4871esac
4872done
4873
4874
4875fi
4876  if test "${ac_cv_path_install+set}" = set; then
4877    INSTALL=$ac_cv_path_install
4878  else
4879    # As a last resort, use the slow shell script.  We don't cache a
4880    # path for INSTALL within a source directory, because that will
4881    # break other packages using the cache if that directory is
4882    # removed, or if the path is relative.
4883    INSTALL=$ac_install_sh
4884  fi
4885fi
4886echo "$as_me:$LINENO: result: $INSTALL" >&5
4887echo "${ECHO_T}$INSTALL" >&6
4888
4889# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4890# It thinks the first close brace ends the variable substitution.
4891test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4892
4893test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4894
4895test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4896
4897echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4898echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4899# Just in case
4900sleep 1
4901echo timestamp > conftest.file
4902# Do `set' in a subshell so we don't clobber the current shell's
4903# arguments.  Must try -L first in case configure is actually a
4904# symlink; some systems play weird games with the mod time of symlinks
4905# (eg FreeBSD returns the mod time of the symlink's containing
4906# directory).
4907if (
4908   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4909   if test "$*" = "X"; then
4910      # -L didn't work.
4911      set X `ls -t $srcdir/configure conftest.file`
4912   fi
4913   rm -f conftest.file
4914   if test "$*" != "X $srcdir/configure conftest.file" \
4915      && test "$*" != "X conftest.file $srcdir/configure"; then
4916
4917      # If neither matched, then we have a broken ls.  This can happen
4918      # if, for instance, CONFIG_SHELL is bash and it inherits a
4919      # broken ls alias from the environment.  This has actually
4920      # happened.  Such a system could not be considered "sane".
4921      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4922alias in your environment" >&5
4923echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4924alias in your environment" >&2;}
4925   { (exit 1); exit 1; }; }
4926   fi
4927
4928   test "$2" = conftest.file
4929   )
4930then
4931   # Ok.
4932   :
4933else
4934   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4935Check your system clock" >&5
4936echo "$as_me: error: newly created file is older than distributed files!
4937Check your system clock" >&2;}
4938   { (exit 1); exit 1; }; }
4939fi
4940echo "$as_me:$LINENO: result: yes" >&5
4941echo "${ECHO_T}yes" >&6
4942test "$program_prefix" != NONE &&
4943  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4944# Use a double $ so make ignores it.
4945test "$program_suffix" != NONE &&
4946  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4947# Double any \ or $.  echo might interpret backslashes.
4948# By default was `s,x,x', remove it if useless.
4949cat <<\_ACEOF >conftest.sed
4950s/[\\$]/&&/g;s/;s,x,x,$//
4951_ACEOF
4952program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4953rm conftest.sed
4954
4955# expand $ac_aux_dir to an absolute path
4956am_aux_dir=`cd $ac_aux_dir && pwd`
4957
4958test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4959# Use eval to expand $SHELL
4960if eval "$MISSING --run true"; then
4961  am_missing_run="$MISSING --run "
4962else
4963  am_missing_run=
4964  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4965echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4966fi
4967
4968if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4969  # We used to keeping the `.' as first argument, in order to
4970  # allow $(mkdir_p) to be used without argument.  As in
4971  #   $(mkdir_p) $(somedir)
4972  # where $(somedir) is conditionally defined.  However this is wrong
4973  # for two reasons:
4974  #  1. if the package is installed by a user who cannot write `.'
4975  #     make install will fail,
4976  #  2. the above comment should most certainly read
4977  #     $(mkdir_p) $(DESTDIR)$(somedir)
4978  #     so it does not work when $(somedir) is undefined and
4979  #     $(DESTDIR) is not.
4980  #  To support the latter case, we have to write
4981  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4982  #  so the `.' trick is pointless.
4983  mkdir_p='mkdir -p --'
4984else
4985  # On NextStep and OpenStep, the `mkdir' command does not
4986  # recognize any option.  It will interpret all options as
4987  # directories to create, and then abort because `.' already
4988  # exists.
4989  for d in ./-p ./--version;
4990  do
4991    test -d $d && rmdir $d
4992  done
4993  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4994  if test -f "$ac_aux_dir/mkinstalldirs"; then
4995    mkdir_p='$(mkinstalldirs)'
4996  else
4997    mkdir_p='$(install_sh) -d'
4998  fi
4999fi
5000
5001for ac_prog in gawk mawk nawk awk
5002do
5003  # Extract the first word of "$ac_prog", so it can be a program name with args.
5004set dummy $ac_prog; ac_word=$2
5005echo "$as_me:$LINENO: checking for $ac_word" >&5
5006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5007if test "${ac_cv_prog_AWK+set}" = set; then
5008  echo $ECHO_N "(cached) $ECHO_C" >&6
5009else
5010  if test -n "$AWK"; then
5011  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5012else
5013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014for as_dir in $PATH
5015do
5016  IFS=$as_save_IFS
5017  test -z "$as_dir" && as_dir=.
5018  for ac_exec_ext in '' $ac_executable_extensions; do
5019  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020    ac_cv_prog_AWK="$ac_prog"
5021    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022    break 2
5023  fi
5024done
5025done
5026
5027fi
5028fi
5029AWK=$ac_cv_prog_AWK
5030if test -n "$AWK"; then
5031  echo "$as_me:$LINENO: result: $AWK" >&5
5032echo "${ECHO_T}$AWK" >&6
5033else
5034  echo "$as_me:$LINENO: result: no" >&5
5035echo "${ECHO_T}no" >&6
5036fi
5037
5038  test -n "$AWK" && break
5039done
5040
5041echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5042echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5043set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5044if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5045  echo $ECHO_N "(cached) $ECHO_C" >&6
5046else
5047  cat >conftest.make <<\_ACEOF
5048all:
5049        @echo 'ac_maketemp="$(MAKE)"'
5050_ACEOF
5051# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5052eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5053if test -n "$ac_maketemp"; then
5054  eval ac_cv_prog_make_${ac_make}_set=yes
5055else
5056  eval ac_cv_prog_make_${ac_make}_set=no
5057fi
5058rm -f conftest.make
5059fi
5060if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5061  echo "$as_me:$LINENO: result: yes" >&5
5062echo "${ECHO_T}yes" >&6
5063  SET_MAKE=
5064else
5065  echo "$as_me:$LINENO: result: no" >&5
5066echo "${ECHO_T}no" >&6
5067  SET_MAKE="MAKE=${MAKE-make}"
5068fi
5069
5070rm -rf .tst 2>/dev/null
5071mkdir .tst 2>/dev/null
5072if test -d .tst; then
5073  am__leading_dot=.
5074else
5075  am__leading_dot=_
5076fi
5077rmdir .tst 2>/dev/null
5078
5079DEPDIR="${am__leading_dot}deps"
5080
5081          ac_config_commands="$ac_config_commands depfiles"
5082
5083
5084am_make=${MAKE-make}
5085cat > confinc << 'END'
5086am__doit:
5087        @echo done
5088.PHONY: am__doit
5089END
5090# If we don't find an include directive, just comment out the code.
5091echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5092echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5093am__include="#"
5094am__quote=
5095_am_result=none
5096# First try GNU make style include.
5097echo "include confinc" > confmf
5098# We grep out `Entering directory' and `Leaving directory'
5099# messages which can occur if `w' ends up in MAKEFLAGS.
5100# In particular we don't look at `^make:' because GNU make might
5101# be invoked under some other name (usually "gmake"), in which
5102# case it prints its new name instead of `make'.
5103if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5104   am__include=include
5105   am__quote=
5106   _am_result=GNU
5107fi
5108# Now try BSD make style include.
5109if test "$am__include" = "#"; then
5110   echo '.include "confinc"' > confmf
5111   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5112      am__include=.include
5113      am__quote="\""
5114      _am_result=BSD
5115   fi
5116fi
5117
5118
5119echo "$as_me:$LINENO: result: $_am_result" >&5
5120echo "${ECHO_T}$_am_result" >&6
5121rm -f confinc confmf
5122
5123# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5124if test "${enable_dependency_tracking+set}" = set; then
5125  enableval="$enable_dependency_tracking"
5126
5127fi;
5128if test "x$enable_dependency_tracking" != xno; then
5129  am_depcomp="$ac_aux_dir/depcomp"
5130  AMDEPBACKSLASH='\'
5131fi
5132
5133
5134if test "x$enable_dependency_tracking" != xno; then
5135  AMDEP_TRUE=
5136  AMDEP_FALSE='#'
5137else
5138  AMDEP_TRUE='#'
5139  AMDEP_FALSE=
5140fi
5141
5142
5143
5144
5145
5146
5147# AC_MSG_NOTICE([Beginning automake initialisation.])
5148# Stuff for automake
5149# test to see if srcdir already configured
5150if test "`cd $srcdir && pwd`" != "`pwd`" &&
5151   test -f $srcdir/config.status; then
5152  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5153echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5154   { (exit 1); exit 1; }; }
5155fi
5156
5157# test whether we have cygpath
5158if test -z "$CYGPATH_W"; then
5159  if (cygpath --version) >/dev/null 2>/dev/null; then
5160    CYGPATH_W='cygpath -w'
5161  else
5162    CYGPATH_W=echo
5163  fi
5164fi
5165
5166
5167# Define the identity of the package.
5168 PACKAGE='couenne'
5169 VERSION='trunk'
5170
5171
5172cat >>confdefs.h <<_ACEOF
5173#define PACKAGE "$PACKAGE"
5174_ACEOF
5175
5176
5177cat >>confdefs.h <<_ACEOF
5178#define VERSION "$VERSION"
5179_ACEOF
5180
5181# Some tools Automake needs.
5182
5183ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5184
5185
5186AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5187
5188
5189AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5190
5191
5192AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5193
5194
5195MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5196
5197install_sh=${install_sh-"$am_aux_dir/install-sh"}
5198
5199# Installed binaries are usually stripped using `strip' when the user
5200# run `make install-strip'.  However `strip' might not be the right
5201# tool to use in cross-compilation environments, therefore Automake
5202# will honor the `STRIP' environment variable to overrule this program.
5203if test "$cross_compiling" != no; then
5204  if test -n "$ac_tool_prefix"; then
5205  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5206set dummy ${ac_tool_prefix}strip; ac_word=$2
5207echo "$as_me:$LINENO: checking for $ac_word" >&5
5208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5209if test "${ac_cv_prog_STRIP+set}" = set; then
5210  echo $ECHO_N "(cached) $ECHO_C" >&6
5211else
5212  if test -n "$STRIP"; then
5213  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5214else
5215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216for as_dir in $PATH
5217do
5218  IFS=$as_save_IFS
5219  test -z "$as_dir" && as_dir=.
5220  for ac_exec_ext in '' $ac_executable_extensions; do
5221  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5223    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5224    break 2
5225  fi
5226done
5227done
5228
5229fi
5230fi
5231STRIP=$ac_cv_prog_STRIP
5232if test -n "$STRIP"; then
5233  echo "$as_me:$LINENO: result: $STRIP" >&5
5234echo "${ECHO_T}$STRIP" >&6
5235else
5236  echo "$as_me:$LINENO: result: no" >&5
5237echo "${ECHO_T}no" >&6
5238fi
5239
5240fi
5241if test -z "$ac_cv_prog_STRIP"; then
5242  ac_ct_STRIP=$STRIP
5243  # Extract the first word of "strip", so it can be a program name with args.
5244set dummy strip; ac_word=$2
5245echo "$as_me:$LINENO: checking for $ac_word" >&5
5246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5247if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5248  echo $ECHO_N "(cached) $ECHO_C" >&6
5249else
5250  if test -n "$ac_ct_STRIP"; then
5251  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5252else
5253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254for as_dir in $PATH
5255do
5256  IFS=$as_save_IFS
5257  test -z "$as_dir" && as_dir=.
5258  for ac_exec_ext in '' $ac_executable_extensions; do
5259  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5260    ac_cv_prog_ac_ct_STRIP="strip"
5261    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5262    break 2
5263  fi
5264done
5265done
5266
5267  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5268fi
5269fi
5270ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5271if test -n "$ac_ct_STRIP"; then
5272  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5273echo "${ECHO_T}$ac_ct_STRIP" >&6
5274else
5275  echo "$as_me:$LINENO: result: no" >&5
5276echo "${ECHO_T}no" >&6
5277fi
5278
5279  STRIP=$ac_ct_STRIP
5280else
5281  STRIP="$ac_cv_prog_STRIP"
5282fi
5283
5284fi
5285INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5286
5287# We need awk for the "check" target.  The system "awk" is bad on
5288# some platforms.
5289# Always define AMTAR for backward compatibility.
5290
5291AMTAR=${AMTAR-"${am_missing_run}tar"}
5292
5293am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5294
5295
5296
5297
5298depcc="$CC"   am_compiler_list=
5299
5300echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5301echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5302if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5303  echo $ECHO_N "(cached) $ECHO_C" >&6
5304else
5305  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5306  # We make a subdir and do the tests there.  Otherwise we can end up
5307  # making bogus files that we don't know about and never remove.  For
5308  # instance it was reported that on HP-UX the gcc test will end up
5309  # making a dummy file named `D' -- because `-MD' means `put the output
5310  # in D'.
5311  mkdir conftest.dir
5312  # Copy depcomp to subdir because otherwise we won't find it if we're
5313  # using a relative directory.
5314  cp "$am_depcomp" conftest.dir
5315  cd conftest.dir
5316  # We will build objects and dependencies in a subdirectory because
5317  # it helps to detect inapplicable dependency modes.  For instance
5318  # both Tru64's cc and ICC support -MD to output dependencies as a
5319  # side effect of compilation, but ICC will put the dependencies in
5320  # the current directory while Tru64 will put them in the object
5321  # directory.
5322  mkdir sub
5323
5324  am_cv_CC_dependencies_compiler_type=none
5325  if test "$am_compiler_list" = ""; then
5326     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5327  fi
5328  for depmode in $am_compiler_list; do
5329    # Setup a source with many dependencies, because some compilers
5330    # like to wrap large dependency lists on column 80 (with \), and
5331    # we should not choose a depcomp mode which is confused by this.
5332    #
5333    # We need to recreate these files for each test, as the compiler may
5334    # overwrite some of them when testing with obscure command lines.
5335    # This happens at least with the AIX C compiler.
5336    : > sub/conftest.c
5337    for i in 1 2 3 4 5 6; do
5338      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5339      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5340      # Solaris 8's {/usr,}/bin/sh.
5341      touch sub/conftst$i.h
5342    done
5343    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5344
5345    case $depmode in
5346    nosideeffect)
5347      # after this tag, mechanisms are not by side-effect, so they'll
5348      # only be used when explicitly requested
5349      if test "x$enable_dependency_tracking" = xyes; then
5350        continue
5351      else
5352        break
5353      fi
5354      ;;
5355    none) break ;;
5356    esac
5357    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5358    # mode.  It turns out that the SunPro C++ compiler does not properly
5359    # handle `-M -o', and we need to detect this.
5360    if depmode=$depmode \
5361       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5362       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5363       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5364         >/dev/null 2>conftest.err &&
5365       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5366       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5367       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5368      # icc doesn't choke on unknown options, it will just issue warnings
5369      # or remarks (even with -Werror).  So we grep stderr for any message
5370      # that says an option was ignored or not supported.
5371      # When given -MP, icc 7.0 and 7.1 complain thusly:
5372      #   icc: Command line warning: ignoring option '-M'; no argument required
5373      # The diagnosis changed in icc 8.0:
5374      #   icc: Command line remark: option '-MP' not supported
5375      if (grep 'ignoring option' conftest.err ||
5376          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5377        am_cv_CC_dependencies_compiler_type=$depmode
5378        break
5379      fi
5380    fi
5381  done
5382
5383  cd ..
5384  rm -rf conftest.dir
5385else
5386  am_cv_CC_dependencies_compiler_type=none
5387fi
5388
5389fi
5390echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5391echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5392CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5393
5394
5395
5396if
5397  test "x$enable_dependency_tracking" != xno \
5398  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5399  am__fastdepCC_TRUE=
5400  am__fastdepCC_FALSE='#'
5401else
5402  am__fastdepCC_TRUE='#'
5403  am__fastdepCC_FALSE=
5404fi
5405
5406
5407depcc="$CXX"  am_compiler_list=
5408
5409echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5410echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5411if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5412  echo $ECHO_N "(cached) $ECHO_C" >&6
5413else
5414  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5415  # We make a subdir and do the tests there.  Otherwise we can end up
5416  # making bogus files that we don't know about and never remove.  For
5417  # instance it was reported that on HP-UX the gcc test will end up
5418  # making a dummy file named `D' -- because `-MD' means `put the output
5419  # in D'.
5420  mkdir conftest.dir
5421  # Copy depcomp to subdir because otherwise we won't find it if we're
5422  # using a relative directory.
5423  cp "$am_depcomp" conftest.dir
5424  cd conftest.dir
5425  # We will build objects and dependencies in a subdirectory because
5426  # it helps to detect inapplicable dependency modes.  For instance
5427  # both Tru64's cc and ICC support -MD to output dependencies as a
5428  # side effect of compilation, but ICC will put the dependencies in
5429  # the current directory while Tru64 will put them in the object
5430  # directory.
5431  mkdir sub
5432
5433  am_cv_CXX_dependencies_compiler_type=none
5434  if test "$am_compiler_list" = ""; then
5435     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5436  fi
5437  for depmode in $am_compiler_list; do
5438    # Setup a source with many dependencies, because some compilers
5439    # like to wrap large dependency lists on column 80 (with \), and
5440    # we should not choose a depcomp mode which is confused by this.
5441    #
5442    # We need to recreate these files for each test, as the compiler may
5443    # overwrite some of them when testing with obscure command lines.
5444    # This happens at least with the AIX C compiler.
5445    : > sub/conftest.c
5446    for i in 1 2 3 4 5 6; do
5447      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5448      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5449      # Solaris 8's {/usr,}/bin/sh.
5450      touch sub/conftst$i.h
5451    done
5452    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5453
5454    case $depmode in
5455    nosideeffect)
5456      # after this tag, mechanisms are not by side-effect, so they'll
5457      # only be used when explicitly requested
5458      if test "x$enable_dependency_tracking" = xyes; then
5459        continue
5460      else
5461        break
5462      fi
5463      ;;
5464    none) break ;;
5465    esac
5466    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5467    # mode.  It turns out that the SunPro C++ compiler does not properly
5468    # handle `-M -o', and we need to detect this.
5469    if depmode=$depmode \
5470       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5471       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5472       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5473         >/dev/null 2>conftest.err &&
5474       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5475       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5476       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5477      # icc doesn't choke on unknown options, it will just issue warnings
5478      # or remarks (even with -Werror).  So we grep stderr for any message
5479      # that says an option was ignored or not supported.
5480      # When given -MP, icc 7.0 and 7.1 complain thusly:
5481      #   icc: Command line warning: ignoring option '-M'; no argument required
5482      # The diagnosis changed in icc 8.0:
5483      #   icc: Command line remark: option '-MP' not supported
5484      if (grep 'ignoring option' conftest.err ||
5485          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5486        am_cv_CXX_dependencies_compiler_type=$depmode
5487        break
5488      fi
5489    fi
5490  done
5491
5492  cd ..
5493  rm -rf conftest.dir
5494else
5495  am_cv_CXX_dependencies_compiler_type=none
5496fi
5497
5498fi
5499echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5500echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5501CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5502
5503
5504
5505if
5506  test "x$enable_dependency_tracking" != xno \
5507  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5508  am__fastdepCXX_TRUE=
5509  am__fastdepCXX_FALSE='#'
5510else
5511  am__fastdepCXX_TRUE='#'
5512  am__fastdepCXX_FALSE=
5513fi
5514
5515
5516
5517echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5518echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5519    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5520if test "${enable_maintainer_mode+set}" = set; then
5521  enableval="$enable_maintainer_mode"
5522  USE_MAINTAINER_MODE=$enableval
5523else
5524  USE_MAINTAINER_MODE=no
5525fi;
5526  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5527echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5528
5529
5530if test $USE_MAINTAINER_MODE = yes; then
5531  MAINTAINER_MODE_TRUE=
5532  MAINTAINER_MODE_FALSE='#'
5533else
5534  MAINTAINER_MODE_TRUE='#'
5535  MAINTAINER_MODE_FALSE=
5536fi
5537
5538  MAINT=$MAINTAINER_MODE_TRUE
5539
5540
5541
5542coin_have_externals=no
5543if test "$enable_maintainer_mode" = yes; then
5544
5545  # If maintainer mode is chosen, we make sure that the correct versions
5546  # of the tools are used, and that we know where libtool.m4 is (to
5547  # recreate acinclude.m4)
5548
5549
5550  LIBTOOLM4=
5551  # Normally, $HOME
5552  AUTOTOOLS_DFLT=$HOME
5553
5554  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5555echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5556if test "${ac_cv_use_correct_autotools+set}" = set; then
5557  echo $ECHO_N "(cached) $ECHO_C" >&6
5558else
5559  ac_cv_use_correct_autotools=check
5560fi
5561echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5562echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5563
5564  if test $ac_cv_use_correct_autotools = check; then
5565    ac_cv_use_correct_autotools=yes
5566    # Check if we have autoconf
5567    # Extract the first word of "autoconf", so it can be a program name with args.
5568set dummy autoconf; ac_word=$2
5569echo "$as_me:$LINENO: checking for $ac_word" >&5
5570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5571if test "${ac_cv_prog_have_autoconf+set}" = set; then
5572  echo $ECHO_N "(cached) $ECHO_C" >&6
5573else
5574  if test -n "$have_autoconf"; then
5575  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5576else
5577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578for as_dir in $PATH
5579do
5580  IFS=$as_save_IFS
5581  test -z "$as_dir" && as_dir=.
5582  for ac_exec_ext in '' $ac_executable_extensions; do
5583  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584    ac_cv_prog_have_autoconf="yes"
5585    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5586    break 2
5587  fi
5588done
5589done
5590
5591  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5592fi
5593fi
5594have_autoconf=$ac_cv_prog_have_autoconf
5595if test -n "$have_autoconf"; then
5596  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5597echo "${ECHO_T}$have_autoconf" >&6
5598else
5599  echo "$as_me:$LINENO: result: no" >&5
5600echo "${ECHO_T}no" >&6
5601fi
5602
5603    if test $have_autoconf = no; then
5604      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5605echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5606   { (exit 1); exit 1; }; }
5607    fi
5608
5609    # Check whether autoconf is the correct version
5610    correct_version='2.59'
5611    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5612    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5613echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5614    autoconf --version > confauto.out 2>&1
5615    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5616      echo "$as_me:$LINENO: result: yes" >&5
5617echo "${ECHO_T}yes" >&6
5618    else
5619      rm -f confauto.out
5620      echo "$as_me:$LINENO: result: no" >&5
5621echo "${ECHO_T}no" >&6
5622      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5623echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5624   { (exit 1); exit 1; }; }
5625    fi
5626    rm -f confauto.out
5627
5628    # Check if the executable autoconf is picked up from the correct location
5629    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5630echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5631    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5632    autoconf_dir=`cd $autoconf_dir; pwd`
5633    if test x$AUTOTOOLS_DIR = x; then
5634      want_dir=$AUTOTOOLS_DFLT/bin
5635    else
5636      want_dir=$AUTOTOOLS_DIR/bin
5637    fi
5638    if test $autoconf_dir = `cd $want_dir; pwd`; then
5639      echo "$as_me:$LINENO: result: yes" >&5
5640echo "${ECHO_T}yes" >&6
5641    else
5642      rm -f confauto.out
5643      echo "$as_me:$LINENO: result: no" >&5
5644echo "${ECHO_T}no" >&6
5645      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5646echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5647   { (exit 1); exit 1; }; }
5648    fi
5649
5650    # Check if we have automake
5651    # Extract the first word of "automake", so it can be a program name with args.
5652set dummy automake; ac_word=$2
5653echo "$as_me:$LINENO: checking for $ac_word" >&5
5654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5655if test "${ac_cv_prog_have_automake+set}" = set; then
5656  echo $ECHO_N "(cached) $ECHO_C" >&6
5657else
5658  if test -n "$have_automake"; then
5659  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5660else
5661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662for as_dir in $PATH
5663do
5664  IFS=$as_save_IFS
5665  test -z "$as_dir" && as_dir=.
5666  for ac_exec_ext in '' $ac_executable_extensions; do
5667  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5668    ac_cv_prog_have_automake="yes"
5669    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5670    break 2
5671  fi
5672done
5673done
5674
5675  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5676fi
5677fi
5678have_automake=$ac_cv_prog_have_automake
5679if test -n "$have_automake"; then
5680  echo "$as_me:$LINENO: result: $have_automake" >&5
5681echo "${ECHO_T}$have_automake" >&6
5682else
5683  echo "$as_me:$LINENO: result: no" >&5
5684echo "${ECHO_T}no" >&6
5685fi
5686
5687    if test $have_automake = no; then
5688      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5689echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5690   { (exit 1); exit 1; }; }
5691    fi
5692
5693    # Check whether automake is the correct version
5694    correct_version='1.9.6'
5695    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5696    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5697echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5698    automake --version > confauto.out 2>&1
5699    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5700      echo "$as_me:$LINENO: result: yes" >&5
5701echo "${ECHO_T}yes" >&6
5702    else
5703      rm -f confauto.out
5704      echo "$as_me:$LINENO: result: no" >&5
5705echo "${ECHO_T}no" >&6
5706      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5707echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5708   { (exit 1); exit 1; }; }
5709    fi
5710    rm -f confauto.out
5711
5712    # Check if the executable automake is picked up from the correct location
5713    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5714echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5715    automake_dir=`which automake | sed -e 's=/automake=='`
5716    automake_dir=`cd $automake_dir; pwd`
5717    if test x$AUTOTOOLS_DIR = x; then
5718      want_dir=$AUTOTOOLS_DFLT/bin
5719    else
5720      want_dir=$AUTOTOOLS_DIR/bin
5721    fi
5722    if test $automake_dir = `cd $want_dir; pwd`; then
5723      echo "$as_me:$LINENO: result: yes" >&5
5724echo "${ECHO_T}yes" >&6
5725    else
5726      rm -f confauto.out
5727      echo "$as_me:$LINENO: result: no" >&5
5728echo "${ECHO_T}no" >&6
5729      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5730echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5731   { (exit 1); exit 1; }; }
5732    fi
5733
5734    # Check if this is the correct version of libtool (with escaped dots)
5735    if test x$AUTOTOOLS_DIR = x; then
5736      want_dir=$AUTOTOOLS_DFLT/share
5737    else
5738      want_dir=$AUTOTOOLS_DIR/share
5739    fi
5740    correct_version='1.5.22'
5741    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5742    if test -r $want_dir/libtool/ltmain.sh; then
5743  have_ltmain=yes
5744  :
5745else
5746  have_ltmain=no
5747  :
5748fi
5749
5750    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5751echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5752    if test $have_ltmain = yes; then
5753    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5754        echo "$as_me:$LINENO: result: yes" >&5
5755echo "${ECHO_T}yes" >&6
5756      else
5757        echo "$as_me:$LINENO: result: no" >&5
5758echo "${ECHO_T}no" >&6
5759        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5760echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5761   { (exit 1); exit 1; }; }
5762      fi
5763    else
5764      echo "$as_me:$LINENO: result: no" >&5
5765echo "${ECHO_T}no" >&6
5766      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5767echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5768   { (exit 1); exit 1; }; }
5769    fi
5770  fi
5771
5772  # Check if we can find the libtool file
5773  if test x$AUTOTOOLS_DIR = x; then
5774    want_dir=$AUTOTOOLS_DFLT/share
5775  else
5776    want_dir=$AUTOTOOLS_DIR/share
5777  fi
5778  if test -r $want_dir/aclocal/libtool.m4; then
5779  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5780  :
5781else
5782  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5783echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5784   { (exit 1); exit 1; }; }
5785  :
5786fi
5787
5788
5789  # Check if we have an Dependencies file
5790  if test -r $srcdir/Dependencies; then
5791    coin_have_externals=yes
5792  fi
5793  # Check if subversion is installed and understands https
5794  # Extract the first word of "svn", so it can be a program name with args.
5795set dummy svn; ac_word=$2
5796echo "$as_me:$LINENO: checking for $ac_word" >&5
5797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5798if test "${ac_cv_prog_have_svn+set}" = set; then
5799  echo $ECHO_N "(cached) $ECHO_C" >&6
5800else
5801  if test -n "$have_svn"; then
5802  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5803else
5804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805for as_dir in $PATH
5806do
5807  IFS=$as_save_IFS
5808  test -z "$as_dir" && as_dir=.
5809  for ac_exec_ext in '' $ac_executable_extensions; do
5810  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811    ac_cv_prog_have_svn="yes"
5812    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813    break 2
5814  fi
5815done
5816done
5817
5818  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5819fi
5820fi
5821have_svn=$ac_cv_prog_have_svn
5822if test -n "$have_svn"; then
5823  echo "$as_me:$LINENO: result: $have_svn" >&5
5824echo "${ECHO_T}$have_svn" >&6
5825else
5826  echo "$as_me:$LINENO: result: no" >&5
5827echo "${ECHO_T}no" >&6
5828fi
5829
5830  if test x$have_svn = xyes; then
5831    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5832echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5833if test "${ac_cv_svn_understands_https+set}" = set; then
5834  echo $ECHO_N "(cached) $ECHO_C" >&6
5835else
5836  svn --version > confauto.out 2>&1
5837                    if $EGREP https confauto.out >/dev/null 2>&1; then
5838                      ac_cv_svn_understands_https=yes
5839                    else
5840                      ac_cv_svn_understands_https=no
5841                      have_svn=no
5842                      ac_cv_prog_have_svn=no
5843                    fi
5844                    rm -f confauto.out
5845fi
5846echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5847echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5848  fi
5849
5850  # Find the location of the BuildTools directory
5851  BUILDTOOLSDIR=
5852  if test -r $srcdir/BuildTools/coin.m4; then
5853    BUILDTOOLSDIR=$srcdir/BuildTools
5854  else
5855    if test -r $srcdir/../BuildTools/coin.m4; then
5856      BUILDTOOLSDIR=$srcdir/../BuildTools
5857    else
5858      if test -r $srcdir/../../BuildTools/coin.m4; then
5859        BUILDTOOLSDIR=$srcdir/../../BuildTools
5860      else
5861        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5862echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5863   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5864      fi
5865    fi
5866  fi
5867
5868
5869  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5870  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5871    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5872  fi
5873
5874  # The following variable is set to the name of the directory where
5875  # the autotool scripts are located
5876
5877  AUX_DIR=$ac_aux_dir
5878fi
5879
5880# helpful variable for the base directory of this package
5881abs_source_dir=`cd $srcdir; pwd`
5882
5883
5884# Stuff for example Makefiles
5885if test x$prefix = xNONE; then
5886  full_prefix=$ac_default_prefix
5887else
5888  full_prefix=$prefix
5889fi
5890full_prefix=`cd $full_prefix ; pwd`
5891
5892abs_lib_dir=$full_prefix/lib
5893
5894abs_include_dir=$full_prefix/include
5895
5896abs_bin_dir=$full_prefix/bin
5897
5898
5899
5900if test $coin_have_externals = yes && test x$have_svn = xyes; then
5901  HAVE_EXTERNALS_TRUE=
5902  HAVE_EXTERNALS_FALSE='#'
5903else
5904  HAVE_EXTERNALS_TRUE='#'
5905  HAVE_EXTERNALS_FALSE=
5906fi
5907
5908
5909# AC_MSG_NOTICE([End automake initialisation.])
5910
5911
5912
5913LIBTOOL=
5914if test -f ../libtool; then
5915  coin_config_dir=..
5916  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5917fi
5918if test "x$LIBTOOL" = x; then
5919  if test -f ../../libtool; then
5920    coin_config_dir=../..
5921    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5922  fi
5923fi
5924
5925if test "x$LIBTOOL" = x; then
5926# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5927  # Stuff for libtool
5928  # Check whether --enable-shared or --disable-shared was given.
5929if test "${enable_shared+set}" = set; then
5930  enableval="$enable_shared"
5931  p=${PACKAGE-default}
5932    case $enableval in
5933    yes) enable_shared=yes ;;
5934    no) enable_shared=no ;;
5935    *)
5936      enable_shared=no
5937      # Look at the argument we got.  We use all the common list separators.
5938      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5939      for pkg in $enableval; do
5940        IFS="$lt_save_ifs"
5941        if test "X$pkg" = "X$p"; then
5942          enable_shared=yes
5943        fi
5944      done
5945      IFS="$lt_save_ifs"
5946      ;;
5947    esac
5948else
5949  enable_shared=yes
5950fi;
5951
5952# Check whether --enable-fast-install or --disable-fast-install was given.
5953if test "${enable_fast_install+set}" = set; then
5954  enableval="$enable_fast_install"
5955  p=${PACKAGE-default}
5956    case $enableval in
5957    yes) enable_fast_install=yes ;;
5958    no) enable_fast_install=no ;;
5959    *)
5960      enable_fast_install=no
5961      # Look at the argument we got.  We use all the common list separators.
5962      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5963      for pkg in $enableval; do
5964        IFS="$lt_save_ifs"
5965        if test "X$pkg" = "X$p"; then
5966          enable_fast_install=yes
5967        fi
5968      done
5969      IFS="$lt_save_ifs"
5970      ;;
5971    esac
5972else
5973  enable_fast_install=yes
5974fi;
5975
5976echo "$as_me:$LINENO: checking host system type" >&5
5977echo $ECHO_N "checking host system type... $ECHO_C" >&6
5978if test "${ac_cv_host+set}" = set; then
5979  echo $ECHO_N "(cached) $ECHO_C" >&6
5980else
5981  ac_cv_host_alias=$host_alias
5982test -z "$ac_cv_host_alias" &&
5983  ac_cv_host_alias=$ac_cv_build_alias
5984ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5985  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5986echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5987   { (exit 1); exit 1; }; }
5988
5989fi
5990echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5991echo "${ECHO_T}$ac_cv_host" >&6
5992host=$ac_cv_host
5993host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5994host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5995host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5996
5997
5998echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5999echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6000if test "${lt_cv_path_SED+set}" = set; then
6001  echo $ECHO_N "(cached) $ECHO_C" >&6
6002else
6003  # Loop through the user's path and test for sed and gsed.
6004# Then use that list of sed's as ones to test for truncation.
6005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006for as_dir in $PATH
6007do
6008  IFS=$as_save_IFS
6009  test -z "$as_dir" && as_dir=.
6010  for lt_ac_prog in sed gsed; do
6011    for ac_exec_ext in '' $ac_executable_extensions; do
6012      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6013        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6014      fi
6015    done
6016  done
6017done
6018lt_ac_max=0
6019lt_ac_count=0
6020# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6021# along with /bin/sed that truncates output.
6022for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6023  test ! -f $lt_ac_sed && continue
6024  cat /dev/null > conftest.in
6025  lt_ac_count=0
6026  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6027  # Check for GNU sed and select it if it is found.
6028  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6029    lt_cv_path_SED=$lt_ac_sed
6030    break
6031  fi
6032  while true; do
6033    cat conftest.in conftest.in >conftest.tmp
6034    mv conftest.tmp conftest.in
6035    cp conftest.in conftest.nl
6036    echo >>conftest.nl
6037    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6038    cmp -s conftest.out conftest.nl || break
6039    # 10000 chars as input seems more than enough
6040    test $lt_ac_count -gt 10 && break
6041    lt_ac_count=`expr $lt_ac_count + 1`
6042    if test $lt_ac_count -gt $lt_ac_max; then
6043      lt_ac_max=$lt_ac_count
6044      lt_cv_path_SED=$lt_ac_sed
6045    fi
6046  done
6047done
6048
6049fi
6050
6051SED=$lt_cv_path_SED
6052echo "$as_me:$LINENO: result: $SED" >&5
6053echo "${ECHO_T}$SED" >&6
6054
6055
6056# Check whether --with-gnu-ld or --without-gnu-ld was given.
6057if test "${with_gnu_ld+set}" = set; then
6058  withval="$with_gnu_ld"
6059  test "$withval" = no || with_gnu_ld=yes
6060else
6061  with_gnu_ld=no
6062fi;
6063ac_prog=ld
6064if test "$GCC" = yes; then
6065  # Check if gcc -print-prog-name=ld gives a path.
6066  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6067echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6068  case $host in
6069  *-*-mingw*)
6070    # gcc leaves a trailing carriage return which upsets mingw
6071    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6072  *)
6073    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6074  esac
6075  case $ac_prog in
6076    # Accept absolute paths.
6077    [\\/]* | ?:[\\/]*)
6078      re_direlt='/[^/][^/]*/\.\./'
6079      # Canonicalize the pathname of ld
6080      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6081      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6082        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6083      done
6084      test -z "$LD" && LD="$ac_prog"
6085      ;;
6086  "")
6087    # If it fails, then pretend we aren't using GCC.
6088    ac_prog=ld
6089    ;;
6090  *)
6091    # If it is relative, then search for the first ld in PATH.
6092    with_gnu_ld=unknown
6093    ;;
6094  esac
6095elif test "$with_gnu_ld" = yes; then
6096  echo "$as_me:$LINENO: checking for GNU ld" >&5
6097echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6098else
6099  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6100echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6101fi
6102if test "${lt_cv_path_LD+set}" = set; then
6103  echo $ECHO_N "(cached) $ECHO_C" >&6
6104else
6105  if test -z "$LD"; then
6106  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6107  for ac_dir in $PATH; do
6108    IFS="$lt_save_ifs"
6109    test -z "$ac_dir" && ac_dir=.
6110    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6111      lt_cv_path_LD="$ac_dir/$ac_prog"
6112      # Check to see if the program is GNU ld.  I'd rather use --version,
6113      # but apparently some variants of GNU ld only accept -v.
6114      # Break only if it was the GNU/non-GNU ld that we prefer.
6115      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6116      *GNU* | *'with BFD'*)
6117        test "$with_gnu_ld" != no && break
6118        ;;
6119      *)
6120        test "$with_gnu_ld" != yes && break
6121        ;;
6122      esac
6123    fi
6124  done
6125  IFS="$lt_save_ifs"
6126else
6127  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6128fi
6129fi
6130
6131LD="$lt_cv_path_LD"
6132if test -n "$LD"; then
6133  echo "$as_me:$LINENO: result: $LD" >&5
6134echo "${ECHO_T}$LD" >&6
6135else
6136  echo "$as_me:$LINENO: result: no" >&5
6137echo "${ECHO_T}no" >&6
6138fi
6139test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6140echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6141   { (exit 1); exit 1; }; }
6142echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6143echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6144if test "${lt_cv_prog_gnu_ld+set}" = set; then
6145  echo $ECHO_N "(cached) $ECHO_C" >&6
6146else
6147  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6148case `$LD -v 2>&1 </dev/null` in
6149*GNU* | *'with BFD'*)
6150  lt_cv_prog_gnu_ld=yes
6151  ;;
6152*)
6153  lt_cv_prog_gnu_ld=no
6154  ;;
6155esac
6156fi
6157echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6158echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6159with_gnu_ld=$lt_cv_prog_gnu_ld
6160
6161
6162echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6163echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6164if test "${lt_cv_ld_reload_flag+set}" = set; then
6165  echo $ECHO_N "(cached) $ECHO_C" >&6
6166else
6167  lt_cv_ld_reload_flag='-r'
6168fi
6169echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6170echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6171reload_flag=$lt_cv_ld_reload_flag
6172case $reload_flag in
6173"" | " "*) ;;
6174*) reload_flag=" $reload_flag" ;;
6175esac
6176reload_cmds='$LD$reload_flag -o $output$reload_objs'
6177case $host_os in
6178  darwin*)
6179    if test "$GCC" = yes; then
6180      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6181    else
6182      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6183    fi
6184    ;;
6185esac
6186
6187echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6188echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6189if test "${lt_cv_path_NM+set}" = set; then
6190  echo $ECHO_N "(cached) $ECHO_C" >&6
6191else
6192  if test -n "$NM"; then
6193  # Let the user override the test.
6194  lt_cv_path_NM="$NM"
6195else
6196  lt_nm_to_check="${ac_tool_prefix}nm"
6197  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6198    lt_nm_to_check="$lt_nm_to_check nm"
6199  fi
6200  for lt_tmp_nm in $lt_nm_to_check; do
6201    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6202    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6203      IFS="$lt_save_ifs"
6204      test -z "$ac_dir" && ac_dir=.
6205      tmp_nm="$ac_dir/$lt_tmp_nm"
6206      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6207        # Check to see if the nm accepts a BSD-compat flag.
6208        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6209        #   nm: unknown option "B" ignored
6210        # Tru64's nm complains that /dev/null is an invalid object file
6211        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6212        */dev/null* | *'Invalid file or object type'*)
6213          lt_cv_path_NM="$tmp_nm -B"
6214          break
6215          ;;
6216        *)
6217          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6218          */dev/null*)
6219            lt_cv_path_NM="$tmp_nm -p"
6220            break
6221            ;;
6222          *)
6223            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6224            continue # so that we can try to find one that supports BSD flags
6225            ;;
6226          esac
6227          ;;
6228        esac
6229      fi
6230    done
6231    IFS="$lt_save_ifs"
6232  done
6233  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6234fi
6235fi
6236echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6237echo "${ECHO_T}$lt_cv_path_NM" >&6
6238NM="$lt_cv_path_NM"
6239
6240echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6241echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6242if test "${lt_cv_deplibs_check_method+set}" = set; then
6243  echo $ECHO_N "(cached) $ECHO_C" >&6
6244else
6245  lt_cv_file_magic_cmd='$MAGIC_CMD'
6246lt_cv_file_magic_test_file=
6247lt_cv_deplibs_check_method='unknown'
6248# Need to set the preceding variable on all platforms that support
6249# interlibrary dependencies.
6250# 'none' -- dependencies not supported.
6251# `unknown' -- same as none, but documents that we really don't know.
6252# 'pass_all' -- all dependencies passed with no checks.
6253# 'test_compile' -- check by making test program.
6254# 'file_magic [[regex]]' -- check by looking for files in library path
6255# which responds to the $file_magic_cmd with a given extended regex.
6256# If you have `file' or equivalent on your system and you're not sure
6257# whether `pass_all' will *always* work, you probably want this one.
6258
6259case $host_os in
6260aix4* | aix5*)
6261  lt_cv_deplibs_check_method=pass_all
6262  ;;
6263
6264beos*)
6265  lt_cv_deplibs_check_method=pass_all
6266  ;;
6267
6268bsdi[45]*)
6269  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6270  lt_cv_file_magic_cmd='/usr/bin/file -L'
6271  lt_cv_file_magic_test_file=/shlib/libc.so
6272  ;;
6273
6274cygwin*)
6275  # func_win32_libid is a shell function defined in ltmain.sh
6276  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6277  lt_cv_file_magic_cmd='func_win32_libid'
6278  ;;
6279
6280mingw* | pw32*)
6281  # Base MSYS/MinGW do not provide the 'file' command needed by
6282  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6283  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6284  lt_cv_file_magic_cmd='$OBJDUMP -f'
6285  ;;
6286
6287darwin* | rhapsody*)
6288  lt_cv_deplibs_check_method=pass_all
6289  ;;
6290
6291freebsd* | kfreebsd*-gnu | dragonfly*)
6292  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6293    case $host_cpu in
6294    i*86 )
6295      # Not sure whether the presence of OpenBSD here was a mistake.
6296      # Let's accept both of them until this is cleared up.
6297      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6298      lt_cv_file_magic_cmd=/usr/bin/file
6299      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6300      ;;
6301    esac
6302  else
6303    lt_cv_deplibs_check_method=pass_all
6304  fi
6305  ;;
6306
6307gnu*)
6308  lt_cv_deplibs_check_method=pass_all
6309  ;;
6310
6311hpux10.20* | hpux11*)
6312  lt_cv_file_magic_cmd=/usr/bin/file
6313  case $host_cpu in
6314  ia64*)
6315    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6316    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6317    ;;
6318  hppa*64*)
6319    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]'
6320    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6321    ;;
6322  *)
6323    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6324    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6325    ;;
6326  esac
6327  ;;
6328
6329interix3*)
6330  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6331  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6332  ;;
6333
6334irix5* | irix6* | nonstopux*)
6335  case $LD in
6336  *-32|*"-32 ") libmagic=32-bit;;
6337  *-n32|*"-n32 ") libmagic=N32;;
6338  *-64|*"-64 ") libmagic=64-bit;;
6339  *) libmagic=never-match;;
6340  esac
6341  lt_cv_deplibs_check_method=pass_all
6342  ;;
6343
6344# This must be Linux ELF.
6345linux*)
6346  lt_cv_deplibs_check_method=pass_all
6347  ;;
6348
6349netbsd*)
6350  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6351    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6352  else
6353    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6354  fi
6355  ;;
6356
6357newos6*)
6358  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6359  lt_cv_file_magic_cmd=/usr/bin/file
6360  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6361  ;;
6362
6363nto-qnx*)
6364  lt_cv_deplibs_check_method=unknown
6365  ;;
6366
6367openbsd*)
6368  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6369    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6370  else
6371    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6372  fi
6373  ;;
6374
6375osf3* | osf4* | osf5*)
6376  lt_cv_deplibs_check_method=pass_all
6377  ;;
6378
6379solaris*)
6380  lt_cv_deplibs_check_method=pass_all
6381  ;;
6382
6383sysv4 | sysv4.3*)
6384  case $host_vendor in
6385  motorola)
6386    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]'
6387    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6388    ;;
6389  ncr)
6390    lt_cv_deplibs_check_method=pass_all
6391    ;;
6392  sequent)
6393    lt_cv_file_magic_cmd='/bin/file'
6394    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6395    ;;
6396  sni)
6397    lt_cv_file_magic_cmd='/bin/file'
6398    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6399    lt_cv_file_magic_test_file=/lib/libc.so
6400    ;;
6401  siemens)
6402    lt_cv_deplibs_check_method=pass_all
6403    ;;
6404  pc)
6405    lt_cv_deplibs_check_method=pass_all
6406    ;;
6407  esac
6408  ;;
6409
6410sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6411  lt_cv_deplibs_check_method=pass_all
6412  ;;
6413esac
6414
6415fi
6416echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6417echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6418file_magic_cmd=$lt_cv_file_magic_cmd
6419deplibs_check_method=$lt_cv_deplibs_check_method
6420test -z "$deplibs_check_method" && deplibs_check_method=unknown
6421
6422
6423
6424
6425# If no C compiler was specified, use CC.
6426LTCC=${LTCC-"$CC"}
6427
6428# If no C compiler flags were specified, use CFLAGS.
6429LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6430
6431# Allow CC to be a program name with arguments.
6432compiler=$CC
6433
6434# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6435if test "${enable_libtool_lock+set}" = set; then
6436  enableval="$enable_libtool_lock"
6437
6438fi;
6439test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6440
6441# Some flags need to be propagated to the compiler or linker for good
6442# libtool support.
6443case $host in
6444ia64-*-hpux*)
6445  # Find out which ABI we are using.
6446  echo 'int i;' > conftest.$ac_ext
6447  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6448  (eval $ac_compile) 2>&5
6449  ac_status=$?
6450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451  (exit $ac_status); }; then
6452    case `/usr/bin/file conftest.$ac_objext` in
6453    *ELF-32*)
6454      HPUX_IA64_MODE="32"
6455      ;;
6456    *ELF-64*)
6457      HPUX_IA64_MODE="64"
6458      ;;
6459    esac
6460  fi
6461  rm -rf conftest*
6462  ;;
6463*-*-irix6*)
6464  # Find out which ABI we are using.
6465  echo '#line 6465 "configure"' > conftest.$ac_ext
6466  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6467  (eval $ac_compile) 2>&5
6468  ac_status=$?
6469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470  (exit $ac_status); }; then
6471   if test "$lt_cv_prog_gnu_ld" = yes; then
6472    case `/usr/bin/file conftest.$ac_objext` in
6473    *32-bit*)
6474      LD="${LD-ld} -melf32bsmip"
6475      ;;
6476    *N32*)
6477      LD="${LD-ld} -melf32bmipn32"
6478      ;;
6479    *64-bit*)
6480      LD="${LD-ld} -melf64bmip"
6481      ;;
6482    esac
6483   else
6484    case `/usr/bin/file conftest.$ac_objext` in
6485    *32-bit*)
6486      LD="${LD-ld} -32"
6487      ;;
6488    *N32*)
6489      LD="${LD-ld} -n32"
6490      ;;
6491    *64-bit*)
6492      LD="${LD-ld} -64"
6493      ;;
6494    esac
6495   fi
6496  fi
6497  rm -rf conftest*
6498  ;;
6499
6500x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6501  # Find out which ABI we are using.
6502  echo 'int i;' > conftest.$ac_ext
6503  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504  (eval $ac_compile) 2>&5
6505  ac_status=$?
6506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507  (exit $ac_status); }; then
6508    case `/usr/bin/file conftest.o` in
6509    *32-bit*)
6510      case $host in
6511        x86_64-*linux*)
6512          LD="${LD-ld} -m elf_i386"
6513          ;;
6514        ppc64-*linux*|powerpc64-*linux*)
6515          LD="${LD-ld} -m elf32ppclinux"
6516          ;;
6517        s390x-*linux*)
6518          LD="${LD-ld} -m elf_s390"
6519          ;;
6520        sparc64-*linux*)
6521          LD="${LD-ld} -m elf32_sparc"
6522          ;;
6523      esac
6524      ;;
6525    *64-bit*)
6526      case $host in
6527        x86_64-*linux*)
6528          LD="${LD-ld} -m elf_x86_64"
6529          ;;
6530        ppc*-*linux*|powerpc*-*linux*)
6531          LD="${LD-ld} -m elf64ppc"
6532          ;;
6533        s390*-*linux*)
6534          LD="${LD-ld} -m elf64_s390"
6535          ;;
6536        sparc*-*linux*)
6537          LD="${LD-ld} -m elf64_sparc"
6538          ;;
6539      esac
6540      ;;
6541    esac
6542  fi
6543  rm -rf conftest*
6544  ;;
6545
6546*-*-sco3.2v5*)
6547  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6548  SAVE_CFLAGS="$CFLAGS"
6549  CFLAGS="$CFLAGS -belf"
6550  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6551echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6552if test "${lt_cv_cc_needs_belf+set}" = set; then
6553  echo $ECHO_N "(cached) $ECHO_C" >&6
6554else
6555  ac_ext=c
6556ac_cpp='$CPP $CPPFLAGS'
6557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6559ac_compiler_gnu=$ac_cv_c_compiler_gnu
6560
6561     cat >conftest.$ac_ext <<_ACEOF
6562/* confdefs.h.  */
6563_ACEOF
6564cat confdefs.h >>conftest.$ac_ext
6565cat >>conftest.$ac_ext <<_ACEOF
6566/* end confdefs.h.  */
6567
6568int
6569main ()
6570{
6571
6572  ;
6573  return 0;
6574}
6575_ACEOF
6576rm -f conftest.$ac_objext conftest$ac_exeext
6577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6578  (eval $ac_link) 2>conftest.er1
6579  ac_status=$?
6580  grep -v '^ *+' conftest.er1 >conftest.err
6581  rm -f conftest.er1
6582  cat conftest.err >&5
6583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584  (exit $ac_status); } &&
6585         { ac_try='test -z "$ac_c_werror_flag"
6586                         || test ! -s conftest.err'
6587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588  (eval $ac_try) 2>&5
6589  ac_status=$?
6590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591  (exit $ac_status); }; } &&
6592         { ac_try='test -s conftest$ac_exeext'
6593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594  (eval $ac_try) 2>&5
6595  ac_status=$?
6596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597  (exit $ac_status); }; }; then
6598  lt_cv_cc_needs_belf=yes
6599else
6600  echo "$as_me: failed program was:" >&5
6601sed 's/^/| /' conftest.$ac_ext >&5
6602
6603lt_cv_cc_needs_belf=no
6604fi
6605rm -f conftest.err conftest.$ac_objext \
6606      conftest$ac_exeext conftest.$ac_ext
6607     ac_ext=c
6608ac_cpp='$CPP $CPPFLAGS'
6609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6611ac_compiler_gnu=$ac_cv_c_compiler_gnu
6612
6613fi
6614echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6615echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6616  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6617    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6618    CFLAGS="$SAVE_CFLAGS"
6619  fi
6620  ;;
6621sparc*-*solaris*)
6622  # Find out which ABI we are using.
6623  echo 'int i;' > conftest.$ac_ext
6624  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6625  (eval $ac_compile) 2>&5
6626  ac_status=$?
6627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628  (exit $ac_status); }; then
6629    case `/usr/bin/file conftest.o` in
6630    *64-bit*)
6631      case $lt_cv_prog_gnu_ld in
6632      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6633      *)    LD="${LD-ld} -64" ;;
6634      esac
6635      ;;
6636    esac
6637  fi
6638  rm -rf conftest*
6639  ;;
6640
6641
6642esac
6643
6644need_locks="$enable_libtool_lock"
6645
6646
6647ac_ext=c
6648ac_cpp='$CPP $CPPFLAGS'
6649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6651ac_compiler_gnu=$ac_cv_c_compiler_gnu
6652echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6653echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6654# On Suns, sometimes $CPP names a directory.
6655if test -n "$CPP" && test -d "$CPP"; then
6656  CPP=
6657fi
6658if test -z "$CPP"; then
6659  if test "${ac_cv_prog_CPP+set}" = set; then
6660  echo $ECHO_N "(cached) $ECHO_C" >&6
6661else
6662      # Double quotes because CPP needs to be expanded
6663    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6664    do
6665      ac_preproc_ok=false
6666for ac_c_preproc_warn_flag in '' yes
6667do
6668  # Use a header file that comes with gcc, so configuring glibc
6669  # with a fresh cross-compiler works.
6670  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6671  # <limits.h> exists even on freestanding compilers.
6672  # On the NeXT, cc -E runs the code through the compiler's parser,
6673  # not just through cpp. "Syntax error" is here to catch this case.
6674  cat >conftest.$ac_ext <<_ACEOF
6675/* confdefs.h.  */
6676_ACEOF
6677cat confdefs.h >>conftest.$ac_ext
6678cat >>conftest.$ac_ext <<_ACEOF
6679/* end confdefs.h.  */
6680#ifdef __STDC__
6681# include <limits.h>
6682#else
6683# include <assert.h>
6684#endif
6685                     Syntax error
6686_ACEOF
6687if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6688  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6689  ac_status=$?
6690  grep -v '^ *+' conftest.er1 >conftest.err
6691  rm -f conftest.er1
6692  cat conftest.err >&5
6693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694  (exit $ac_status); } >/dev/null; then
6695  if test -s conftest.err; then
6696    ac_cpp_err=$ac_c_preproc_warn_flag
6697    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6698  else
6699    ac_cpp_err=
6700  fi
6701else
6702  ac_cpp_err=yes
6703fi
6704if test -z "$ac_cpp_err"; then
6705  :
6706else
6707  echo "$as_me: failed program was:" >&5
6708sed 's/^/| /' conftest.$ac_ext >&5
6709
6710  # Broken: fails on valid input.
6711continue
6712fi
6713rm -f conftest.err conftest.$ac_ext
6714
6715  # OK, works on sane cases.  Now check whether non-existent headers
6716  # can be detected and how.
6717  cat >conftest.$ac_ext <<_ACEOF
6718/* confdefs.h.  */
6719_ACEOF
6720cat confdefs.h >>conftest.$ac_ext
6721cat >>conftest.$ac_ext <<_ACEOF
6722/* end confdefs.h.  */
6723#include <ac_nonexistent.h>
6724_ACEOF
6725if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6726  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6727  ac_status=$?
6728  grep -v '^ *+' conftest.er1 >conftest.err
6729  rm -f conftest.er1
6730  cat conftest.err >&5
6731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732  (exit $ac_status); } >/dev/null; then
6733  if test -s conftest.err; then
6734    ac_cpp_err=$ac_c_preproc_warn_flag
6735    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6736  else
6737    ac_cpp_err=
6738  fi
6739else
6740  ac_cpp_err=yes
6741fi
6742if test -z "$ac_cpp_err"; then
6743  # Broken: success on invalid input.
6744continue
6745else
6746  echo "$as_me: failed program was:" >&5
6747sed 's/^/| /' conftest.$ac_ext >&5
6748
6749  # Passes both tests.
6750ac_preproc_ok=:
6751break
6752fi
6753rm -f conftest.err conftest.$ac_ext
6754
6755done
6756# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6757rm -f conftest.err conftest.$ac_ext
6758if $ac_preproc_ok; then
6759  break
6760fi
6761
6762    done
6763    ac_cv_prog_CPP=$CPP
6764
6765fi
6766  CPP=$ac_cv_prog_CPP
6767else
6768  ac_cv_prog_CPP=$CPP
6769fi
6770echo "$as_me:$LINENO: result: $CPP" >&5
6771echo "${ECHO_T}$CPP" >&6
6772ac_preproc_ok=false
6773for ac_c_preproc_warn_flag in '' yes
6774do
6775  # Use a header file that comes with gcc, so configuring glibc
6776  # with a fresh cross-compiler works.
6777  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6778  # <limits.h> exists even on freestanding compilers.
6779  # On the NeXT, cc -E runs the code through the compiler's parser,
6780  # not just through cpp. "Syntax error" is here to catch this case.
6781  cat >conftest.$ac_ext <<_ACEOF
6782/* confdefs.h.  */
6783_ACEOF
6784cat confdefs.h >>conftest.$ac_ext
6785cat >>conftest.$ac_ext <<_ACEOF
6786/* end confdefs.h.  */
6787#ifdef __STDC__
6788# include <limits.h>
6789#else
6790# include <assert.h>
6791#endif
6792                     Syntax error
6793_ACEOF
6794if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6795  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6796  ac_status=$?
6797  grep -v '^ *+' conftest.er1 >conftest.err
6798  rm -f conftest.er1
6799  cat conftest.err >&5
6800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801  (exit $ac_status); } >/dev/null; then
6802  if test -s conftest.err; then
6803    ac_cpp_err=$ac_c_preproc_warn_flag
6804    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6805  else
6806    ac_cpp_err=
6807  fi
6808else
6809  ac_cpp_err=yes
6810fi
6811if test -z "$ac_cpp_err"; then
6812  :
6813else
6814  echo "$as_me: failed program was:" >&5
6815sed 's/^/| /' conftest.$ac_ext >&5
6816
6817  # Broken: fails on valid input.
6818continue
6819fi
6820rm -f conftest.err conftest.$ac_ext
6821
6822  # OK, works on sane cases.  Now check whether non-existent headers
6823  # can be detected and how.
6824  cat >conftest.$ac_ext <<_ACEOF
6825/* confdefs.h.  */
6826_ACEOF
6827cat confdefs.h >>conftest.$ac_ext
6828cat >>conftest.$ac_ext <<_ACEOF
6829/* end confdefs.h.  */
6830#include <ac_nonexistent.h>
6831_ACEOF
6832if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6833  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6834  ac_status=$?
6835  grep -v '^ *+' conftest.er1 >conftest.err
6836  rm -f conftest.er1
6837  cat conftest.err >&5
6838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839  (exit $ac_status); } >/dev/null; then
6840  if test -s conftest.err; then
6841    ac_cpp_err=$ac_c_preproc_warn_flag
6842    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6843  else
6844    ac_cpp_err=
6845  fi
6846else
6847  ac_cpp_err=yes
6848fi
6849if test -z "$ac_cpp_err"; then
6850  # Broken: success on invalid input.
6851continue
6852else
6853  echo "$as_me: failed program was:" >&5
6854sed 's/^/| /' conftest.$ac_ext >&5
6855
6856  # Passes both tests.
6857ac_preproc_ok=:
6858break
6859fi
6860rm -f conftest.err conftest.$ac_ext
6861
6862done
6863# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6864rm -f conftest.err conftest.$ac_ext
6865if $ac_preproc_ok; then
6866  :
6867else
6868  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6869See \`config.log' for more details." >&5
6870echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6871See \`config.log' for more details." >&2;}
6872   { (exit 1); exit 1; }; }
6873fi
6874
6875ac_ext=c
6876ac_cpp='$CPP $CPPFLAGS'
6877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6879ac_compiler_gnu=$ac_cv_c_compiler_gnu
6880
6881
6882echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6883echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6884if test "${ac_cv_header_stdc+set}" = set; then
6885  echo $ECHO_N "(cached) $ECHO_C" >&6
6886else
6887  cat >conftest.$ac_ext <<_ACEOF
6888/* confdefs.h.  */
6889_ACEOF
6890cat confdefs.h >>conftest.$ac_ext
6891cat >>conftest.$ac_ext <<_ACEOF
6892/* end confdefs.h.  */
6893#include <stdlib.h>
6894#include <stdarg.h>
6895#include <string.h>
6896#include <float.h>
6897
6898int
6899main ()
6900{
6901
6902  ;
6903  return 0;
6904}
6905_ACEOF
6906rm -f conftest.$ac_objext
6907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6908  (eval $ac_compile) 2>conftest.er1
6909  ac_status=$?
6910  grep -v '^ *+' conftest.er1 >conftest.err
6911  rm -f conftest.er1
6912  cat conftest.err >&5
6913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914  (exit $ac_status); } &&
6915         { ac_try='test -z "$ac_c_werror_flag"
6916                         || test ! -s conftest.err'
6917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918  (eval $ac_try) 2>&5
6919  ac_status=$?
6920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921  (exit $ac_status); }; } &&
6922         { ac_try='test -s conftest.$ac_objext'
6923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924  (eval $ac_try) 2>&5
6925  ac_status=$?
6926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927  (exit $ac_status); }; }; then
6928  ac_cv_header_stdc=yes
6929else
6930  echo "$as_me: failed program was:" >&5
6931sed 's/^/| /' conftest.$ac_ext >&5
6932
6933ac_cv_header_stdc=no
6934fi
6935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6936
6937if test $ac_cv_header_stdc = yes; then
6938  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6939  cat >conftest.$ac_ext <<_ACEOF
6940/* confdefs.h.  */
6941_ACEOF
6942cat confdefs.h >>conftest.$ac_ext
6943cat >>conftest.$ac_ext <<_ACEOF
6944/* end confdefs.h.  */
6945#include <string.h>
6946
6947_ACEOF
6948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6949  $EGREP "memchr" >/dev/null 2>&1; then
6950  :
6951else
6952  ac_cv_header_stdc=no
6953fi
6954rm -f conftest*
6955
6956fi
6957
6958if test $ac_cv_header_stdc = yes; then
6959  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6960  cat >conftest.$ac_ext <<_ACEOF
6961/* confdefs.h.  */
6962_ACEOF
6963cat confdefs.h >>conftest.$ac_ext
6964cat >>conftest.$ac_ext <<_ACEOF
6965/* end confdefs.h.  */
6966#include <stdlib.h>
6967
6968_ACEOF
6969if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6970  $EGREP "free" >/dev/null 2>&1; then
6971  :
6972else
6973  ac_cv_header_stdc=no
6974fi
6975rm -f conftest*
6976
6977fi
6978
6979if test $ac_cv_header_stdc = yes; then
6980  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6981  if test "$cross_compiling" = yes; then
6982  :
6983else
6984  cat >conftest.$ac_ext <<_ACEOF
6985/* confdefs.h.  */
6986_ACEOF
6987cat confdefs.h >>conftest.$ac_ext
6988cat >>conftest.$ac_ext <<_ACEOF
6989/* end confdefs.h.  */
6990#include <ctype.h>
6991#if ((' ' & 0x0FF) == 0x020)
6992# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6993# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6994#else
6995# define ISLOWER(c) \
6996                   (('a' <= (c) && (c) <= 'i') \
6997                     || ('j' <= (c) && (c) <= 'r') \
6998                     || ('s' <= (c) && (c) <= 'z'))
6999# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7000#endif
7001
7002#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7003int
7004main ()
7005{
7006  int i;
7007  for (i = 0; i < 256; i++)
7008    if (XOR (islower (i), ISLOWER (i))
7009        || toupper (i) != TOUPPER (i))
7010      exit(2);
7011  exit (0);
7012}
7013_ACEOF
7014rm -f conftest$ac_exeext
7015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7016  (eval $ac_link) 2>&5
7017  ac_status=$?
7018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021  (eval $ac_try) 2>&5
7022  ac_status=$?
7023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024  (exit $ac_status); }; }; then
7025  :
7026else
7027  echo "$as_me: program exited with status $ac_status" >&5
7028echo "$as_me: failed program was:" >&5
7029sed 's/^/| /' conftest.$ac_ext >&5
7030
7031( exit $ac_status )
7032ac_cv_header_stdc=no
7033fi
7034rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7035fi
7036fi
7037fi
7038echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7039echo "${ECHO_T}$ac_cv_header_stdc" >&6
7040if test $ac_cv_header_stdc = yes; then
7041
7042cat >>confdefs.h <<\_ACEOF
7043#define STDC_HEADERS 1
7044_ACEOF
7045
7046fi
7047
7048# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7059                  inttypes.h stdint.h unistd.h
7060do
7061as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7062echo "$as_me:$LINENO: checking for $ac_header" >&5
7063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7064if eval "test \"\${$as_ac_Header+set}\" = set"; then
7065  echo $ECHO_N "(cached) $ECHO_C" >&6
7066else
7067  cat >conftest.$ac_ext <<_ACEOF
7068/* confdefs.h.  */
7069_ACEOF
7070cat confdefs.h >>conftest.$ac_ext
7071cat >>conftest.$ac_ext <<_ACEOF
7072/* end confdefs.h.  */
7073$ac_includes_default
7074
7075#include <$ac_header>
7076_ACEOF
7077rm -f conftest.$ac_objext
7078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7079  (eval $ac_compile) 2>conftest.er1
7080  ac_status=$?
7081  grep -v '^ *+' conftest.er1 >conftest.err
7082  rm -f conftest.er1
7083  cat conftest.err >&5
7084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085  (exit $ac_status); } &&
7086         { ac_try='test -z "$ac_c_werror_flag"
7087                         || test ! -s conftest.err'
7088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089  (eval $ac_try) 2>&5
7090  ac_status=$?
7091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092  (exit $ac_status); }; } &&
7093         { ac_try='test -s conftest.$ac_objext'
7094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095  (eval $ac_try) 2>&5
7096  ac_status=$?
7097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098  (exit $ac_status); }; }; then
7099  eval "$as_ac_Header=yes"
7100else
7101  echo "$as_me: failed program was:" >&5
7102sed 's/^/| /' conftest.$ac_ext >&5
7103
7104eval "$as_ac_Header=no"
7105fi
7106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7107fi
7108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7109echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7110if test `eval echo '${'$as_ac_Header'}'` = yes; then
7111  cat >>confdefs.h <<_ACEOF
7112#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7113_ACEOF
7114
7115fi
7116
7117done
7118
7119
7120
7121for ac_header in dlfcn.h
7122do
7123as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7124if eval "test \"\${$as_ac_Header+set}\" = set"; then
7125  echo "$as_me:$LINENO: checking for $ac_header" >&5
7126echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7127if eval "test \"\${$as_ac_Header+set}\" = set"; then
7128  echo $ECHO_N "(cached) $ECHO_C" >&6
7129fi
7130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7131echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7132else
7133  # Is the header compilable?
7134echo "$as_me:$LINENO: checking $ac_header usability" >&5
7135echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7136cat >conftest.$ac_ext <<_ACEOF
7137/* confdefs.h.  */
7138_ACEOF
7139cat confdefs.h >>conftest.$ac_ext
7140cat >>conftest.$ac_ext <<_ACEOF
7141/* end confdefs.h.  */
7142$ac_includes_default
7143#include <$ac_header>
7144_ACEOF
7145rm -f conftest.$ac_objext
7146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7147  (eval $ac_compile) 2>conftest.er1
7148  ac_status=$?
7149  grep -v '^ *+' conftest.er1 >conftest.err
7150  rm -f conftest.er1
7151  cat conftest.err >&5
7152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153  (exit $ac_status); } &&
7154         { ac_try='test -z "$ac_c_werror_flag"
7155                         || test ! -s conftest.err'
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); }; } &&
7161         { ac_try='test -s conftest.$ac_objext'
7162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163  (eval $ac_try) 2>&5
7164  ac_status=$?
7165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166  (exit $ac_status); }; }; then
7167  ac_header_compiler=yes
7168else
7169  echo "$as_me: failed program was:" >&5
7170sed 's/^/| /' conftest.$ac_ext >&5
7171
7172ac_header_compiler=no
7173fi
7174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7175echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7176echo "${ECHO_T}$ac_header_compiler" >&6
7177
7178# Is the header present?
7179echo "$as_me:$LINENO: checking $ac_header presence" >&5
7180echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7181cat >conftest.$ac_ext <<_ACEOF
7182/* confdefs.h.  */
7183_ACEOF
7184cat confdefs.h >>conftest.$ac_ext
7185cat >>conftest.$ac_ext <<_ACEOF
7186/* end confdefs.h.  */
7187#include <$ac_header>
7188_ACEOF
7189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7190  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7191  ac_status=$?
7192  grep -v '^ *+' conftest.er1 >conftest.err
7193  rm -f conftest.er1
7194  cat conftest.err >&5
7195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196  (exit $ac_status); } >/dev/null; then
7197  if test -s conftest.err; then
7198    ac_cpp_err=$ac_c_preproc_warn_flag
7199    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7200  else
7201    ac_cpp_err=
7202  fi
7203else
7204  ac_cpp_err=yes
7205fi
7206if test -z "$ac_cpp_err"; then
7207  ac_header_preproc=yes
7208else
7209  echo "$as_me: failed program was:" >&5
7210sed 's/^/| /' conftest.$ac_ext >&5
7211
7212  ac_header_preproc=no
7213fi
7214rm -f conftest.err conftest.$ac_ext
7215echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7216echo "${ECHO_T}$ac_header_preproc" >&6
7217
7218# So?  What about this header?
7219case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7220  yes:no: )
7221    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7222echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7223    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7224echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7225    ac_header_preproc=yes
7226    ;;
7227  no:yes:* )
7228    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7229echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7230    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7231echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7232    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7233echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7234    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7235echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7236    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7237echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7238    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7239echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7240    (
7241      cat <<\_ASBOX
7242## --------------------------------------- ##
7243## Report this to couenne@list.coin-or.org ##
7244## --------------------------------------- ##
7245_ASBOX
7246    ) |
7247      sed "s/^/$as_me: WARNING:     /" >&2
7248    ;;
7249esac
7250echo "$as_me:$LINENO: checking for $ac_header" >&5
7251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7252if eval "test \"\${$as_ac_Header+set}\" = set"; then
7253  echo $ECHO_N "(cached) $ECHO_C" >&6
7254else
7255  eval "$as_ac_Header=\$ac_header_preproc"
7256fi
7257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7258echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7259
7260fi
7261if test `eval echo '${'$as_ac_Header'}'` = yes; then
7262  cat >>confdefs.h <<_ACEOF
7263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7264_ACEOF
7265
7266fi
7267
7268done
7269
7270
7271
7272if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7273    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7274    (test "X$CXX" != "Xg++"))) ; then
7275  ac_ext=cc
7276ac_cpp='$CXXCPP $CPPFLAGS'
7277ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7278ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7279ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7280echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7281echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7282if test -z "$CXXCPP"; then
7283  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7284  echo $ECHO_N "(cached) $ECHO_C" >&6
7285else
7286      # Double quotes because CXXCPP needs to be expanded
7287    for CXXCPP in "$CXX -E" "/lib/cpp"
7288    do
7289      ac_preproc_ok=false
7290for ac_cxx_preproc_warn_flag in '' yes
7291do
7292  # Use a header file that comes with gcc, so configuring glibc
7293  # with a fresh cross-compiler works.
7294  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7295  # <limits.h> exists even on freestanding compilers.
7296  # On the NeXT, cc -E runs the code through the compiler's parser,
7297  # not just through cpp. "Syntax error" is here to catch this case.
7298  cat >conftest.$ac_ext <<_ACEOF
7299/* confdefs.h.  */
7300_ACEOF
7301cat confdefs.h >>conftest.$ac_ext
7302cat >>conftest.$ac_ext <<_ACEOF
7303/* end confdefs.h.  */
7304#ifdef __STDC__
7305# include <limits.h>
7306#else
7307# include <assert.h>
7308#endif
7309                     Syntax error
7310_ACEOF
7311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7312  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7313  ac_status=$?
7314  grep -v '^ *+' conftest.er1 >conftest.err
7315  rm -f conftest.er1
7316  cat conftest.err >&5
7317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318  (exit $ac_status); } >/dev/null; then
7319  if test -s conftest.err; then
7320    ac_cpp_err=$ac_cxx_preproc_warn_flag
7321    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7322  else
7323    ac_cpp_err=
7324  fi
7325else
7326  ac_cpp_err=yes
7327fi
7328if test -z "$ac_cpp_err"; then
7329  :
7330else
7331  echo "$as_me: failed program was:" >&5
7332sed 's/^/| /' conftest.$ac_ext >&5
7333
7334  # Broken: fails on valid input.
7335continue
7336fi
7337rm -f conftest.err conftest.$ac_ext
7338
7339  # OK, works on sane cases.  Now check whether non-existent headers
7340  # can be detected and how.
7341  cat >conftest.$ac_ext <<_ACEOF
7342/* confdefs.h.  */
7343_ACEOF
7344cat confdefs.h >>conftest.$ac_ext
7345cat >>conftest.$ac_ext <<_ACEOF
7346/* end confdefs.h.  */
7347#include <ac_nonexistent.h>
7348_ACEOF
7349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7350  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7351  ac_status=$?
7352  grep -v '^ *+' conftest.er1 >conftest.err
7353  rm -f conftest.er1
7354  cat conftest.err >&5
7355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356  (exit $ac_status); } >/dev/null; then
7357  if test -s conftest.err; then
7358    ac_cpp_err=$ac_cxx_preproc_warn_flag
7359    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7360  else
7361    ac_cpp_err=
7362  fi
7363else
7364  ac_cpp_err=yes
7365fi
7366if test -z "$ac_cpp_err"; then
7367  # Broken: success on invalid input.
7368continue
7369else
7370  echo "$as_me: failed program was:" >&5
7371sed 's/^/| /' conftest.$ac_ext >&5
7372
7373  # Passes both tests.
7374ac_preproc_ok=:
7375break
7376fi
7377rm -f conftest.err conftest.$ac_ext
7378
7379done
7380# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7381rm -f conftest.err conftest.$ac_ext
7382if $ac_preproc_ok; then
7383  break
7384fi
7385
7386    done
7387    ac_cv_prog_CXXCPP=$CXXCPP
7388
7389fi
7390  CXXCPP=$ac_cv_prog_CXXCPP
7391else
7392  ac_cv_prog_CXXCPP=$CXXCPP
7393fi
7394echo "$as_me:$LINENO: result: $CXXCPP" >&5
7395echo "${ECHO_T}$CXXCPP" >&6
7396ac_preproc_ok=false
7397for ac_cxx_preproc_warn_flag in '' yes
7398do
7399  # Use a header file that comes with gcc, so configuring glibc
7400  # with a fresh cross-compiler works.
7401  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7402  # <limits.h> exists even on freestanding compilers.
7403  # On the NeXT, cc -E runs the code through the compiler's parser,
7404  # not just through cpp. "Syntax error" is here to catch this case.
7405  cat >conftest.$ac_ext <<_ACEOF
7406/* confdefs.h.  */
7407_ACEOF
7408cat confdefs.h >>conftest.$ac_ext
7409cat >>conftest.$ac_ext <<_ACEOF
7410/* end confdefs.h.  */
7411#ifdef __STDC__
7412# include <limits.h>
7413#else
7414# include <assert.h>
7415#endif
7416                     Syntax error
7417_ACEOF
7418if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7419  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7420  ac_status=$?
7421  grep -v '^ *+' conftest.er1 >conftest.err
7422  rm -f conftest.er1
7423  cat conftest.err >&5
7424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425  (exit $ac_status); } >/dev/null; then
7426  if test -s conftest.err; then
7427    ac_cpp_err=$ac_cxx_preproc_warn_flag
7428    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7429  else
7430    ac_cpp_err=
7431  fi
7432else
7433  ac_cpp_err=yes
7434fi
7435if test -z "$ac_cpp_err"; then
7436  :
7437else
7438  echo "$as_me: failed program was:" >&5
7439sed 's/^/| /' conftest.$ac_ext >&5
7440
7441  # Broken: fails on valid input.
7442continue
7443fi
7444rm -f conftest.err conftest.$ac_ext
7445
7446  # OK, works on sane cases.  Now check whether non-existent headers
7447  # can be detected and how.
7448  cat >conftest.$ac_ext <<_ACEOF
7449/* confdefs.h.  */
7450_ACEOF
7451cat confdefs.h >>conftest.$ac_ext
7452cat >>conftest.$ac_ext <<_ACEOF
7453/* end confdefs.h.  */
7454#include <ac_nonexistent.h>
7455_ACEOF
7456if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7457  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7458  ac_status=$?
7459  grep -v '^ *+' conftest.er1 >conftest.err
7460  rm -f conftest.er1
7461  cat conftest.err >&5
7462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463  (exit $ac_status); } >/dev/null; then
7464  if test -s conftest.err; then
7465    ac_cpp_err=$ac_cxx_preproc_warn_flag
7466    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7467  else
7468    ac_cpp_err=
7469  fi
7470else
7471  ac_cpp_err=yes
7472fi
7473if test -z "$ac_cpp_err"; then
7474  # Broken: success on invalid input.
7475continue
7476else
7477  echo "$as_me: failed program was:" >&5
7478sed 's/^/| /' conftest.$ac_ext >&5
7479
7480  # Passes both tests.
7481ac_preproc_ok=:
7482break
7483fi
7484rm -f conftest.err conftest.$ac_ext
7485
7486done
7487# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7488rm -f conftest.err conftest.$ac_ext
7489if $ac_preproc_ok; then
7490  :
7491else
7492  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7493See \`config.log' for more details." >&5
7494echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7495See \`config.log' for more details." >&2;}
7496   { (exit 1); exit 1; }; }
7497fi
7498
7499ac_ext=cc
7500ac_cpp='$CXXCPP $CPPFLAGS'
7501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7504
7505fi
7506
7507
7508# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7509
7510# find the maximum length of command line arguments
7511echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7512echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7513if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7514  echo $ECHO_N "(cached) $ECHO_C" >&6
7515else
7516    i=0
7517  teststring="ABCD"
7518
7519  case $build_os in
7520  msdosdjgpp*)
7521    # On DJGPP, this test can blow up pretty badly due to problems in libc
7522    # (any single argument exceeding 2000 bytes causes a buffer overrun
7523    # during glob expansion).  Even if it were fixed, the result of this
7524    # check would be larger than it should be.
7525    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7526    ;;
7527
7528  gnu*)
7529    # Under GNU Hurd, this test is not required because there is
7530    # no limit to the length of command line arguments.
7531    # Libtool will interpret -1 as no limit whatsoever
7532    lt_cv_sys_max_cmd_len=-1;
7533    ;;
7534
7535  cygwin* | mingw*)
7536    # On Win9x/ME, this test blows up -- it succeeds, but takes
7537    # about 5 minutes as the teststring grows exponentially.
7538    # Worse, since 9x/ME are not pre-emptively multitasking,
7539    # you end up with a "frozen" computer, even though with patience
7540    # the test eventually succeeds (with a max line length of 256k).
7541    # Instead, let's just punt: use the minimum linelength reported by
7542    # all of the supported platforms: 8192 (on NT/2K/XP).
7543    lt_cv_sys_max_cmd_len=8192;
7544    ;;
7545
7546  amigaos*)
7547    # On AmigaOS with pdksh, this test takes hours, literally.
7548    # So we just punt and use a minimum line length of 8192.
7549    lt_cv_sys_max_cmd_len=8192;
7550    ;;
7551
7552  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7553    # This has been around since 386BSD, at least.  Likely further.
7554    if test -x /sbin/sysctl; then
7555      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7556    elif test -x /usr/sbin/sysctl; then
7557      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7558    else
7559      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7560    fi
7561    # And add a safety zone
7562    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7563    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7564    ;;
7565
7566  interix*)
7567    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7568    lt_cv_sys_max_cmd_len=196608
7569    ;;
7570
7571  osf*)
7572    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7573    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7574    # nice to cause kernel panics so lets avoid the loop below.
7575    # First set a reasonable default.
7576    lt_cv_sys_max_cmd_len=16384
7577    #
7578    if test -x /sbin/sysconfig; then
7579      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7580        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7581      esac
7582    fi
7583    ;;
7584  sco3.2v5*)
7585    lt_cv_sys_max_cmd_len=102400
7586    ;;
7587  sysv5* | sco5v6* | sysv4.2uw2*)
7588    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7589    if test -n "$kargmax"; then
7590      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7591    else
7592      lt_cv_sys_max_cmd_len=32768
7593    fi
7594    ;;
7595  *)
7596    # If test is not a shell built-in, we'll probably end up computing a
7597    # maximum length that is only half of the actual maximum length, but
7598    # we can't tell.
7599    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7600    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7601               = "XX$teststring") >/dev/null 2>&1 &&
7602            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7603            lt_cv_sys_max_cmd_len=$new_result &&
7604            test $i != 17 # 1/2 MB should be enough
7605    do
7606      i=`expr $i + 1`
7607      teststring=$teststring$teststring
7608    done
7609    teststring=
7610    # Add a significant safety factor because C++ compilers can tack on massive
7611    # amounts of additional arguments before passing them to the linker.
7612    # It appears as though 1/2 is a usable value.
7613    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7614    ;;
7615  esac
7616
7617fi
7618
7619if test -n $lt_cv_sys_max_cmd_len ; then
7620  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7621echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7622else
7623  echo "$as_me:$LINENO: result: none" >&5
7624echo "${ECHO_T}none" >&6
7625fi
7626
7627
7628
7629
7630# Check for command to grab the raw symbol name followed by C symbol from nm.
7631echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7632echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7633if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7634  echo $ECHO_N "(cached) $ECHO_C" >&6
7635else
7636
7637# These are sane defaults that work on at least a few old systems.
7638# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7639
7640# Character class describing NM global symbol codes.
7641symcode='[BCDEGRST]'
7642
7643# Regexp to match symbols that can be accessed directly from C.
7644sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7645
7646# Transform an extracted symbol line into a proper C declaration
7647lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7648
7649# Transform an extracted symbol line into symbol name and symbol address
7650lt_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'"
7651
7652# Define system-specific variables.
7653case $host_os in
7654aix*)
7655  symcode='[BCDT]'
7656  ;;
7657cygwin* | mingw* | pw32*)
7658  symcode='[ABCDGISTW]'
7659  ;;
7660hpux*) # Its linker distinguishes data from code symbols
7661  if test "$host_cpu" = ia64; then
7662    symcode='[ABCDEGRST]'
7663  fi
7664  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7665  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'"
7666  ;;
7667linux*)
7668  if test "$host_cpu" = ia64; then
7669    symcode='[ABCDGIRSTW]'
7670    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7671    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'"
7672  fi
7673  ;;
7674irix* | nonstopux*)
7675  symcode='[BCDEGRST]'
7676  ;;
7677osf*)
7678  symcode='[BCDEGQRST]'
7679  ;;
7680solaris*)
7681  symcode='[BDRT]'
7682  ;;
7683sco3.2v5*)
7684  symcode='[DT]'
7685  ;;
7686sysv4.2uw2*)
7687  symcode='[DT]'
7688  ;;
7689sysv5* | sco5v6* | unixware* | OpenUNIX*)
7690  symcode='[ABDT]'
7691  ;;
7692sysv4)
7693  symcode='[DFNSTU]'
7694  ;;
7695esac
7696
7697# Handle CRLF in mingw tool chain
7698opt_cr=
7699case $build_os in
7700mingw*)
7701  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7702  ;;
7703esac
7704
7705# If we're using GNU nm, then use its standard symbol codes.
7706case `$NM -V 2>&1` in
7707*GNU* | *'with BFD'*)
7708  symcode='[ABCDGIRSTW]' ;;
7709esac
7710
7711# Try without a prefix undercore, then with it.
7712for ac_symprfx in "" "_"; do
7713
7714  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7715  symxfrm="\\1 $ac_symprfx\\2 \\2"
7716
7717  # Write the raw and C identifiers.
7718  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7719
7720  # Check to see that the pipe works correctly.
7721  pipe_works=no
7722
7723  rm -f conftest*
7724  cat > conftest.$ac_ext <<EOF
7725#ifdef __cplusplus
7726extern "C" {
7727#endif
7728char nm_test_var;
7729void nm_test_func(){}
7730#ifdef __cplusplus
7731}
7732#endif
7733int main(){nm_test_var='a';nm_test_func();return(0);}
7734EOF
7735
7736  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737  (eval $ac_compile) 2>&5
7738  ac_status=$?
7739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740  (exit $ac_status); }; then
7741    # Now try to grab the symbols.
7742    nlist=conftest.nm
7743    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7744  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7745  ac_status=$?
7746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747  (exit $ac_status); } && test -s "$nlist"; then
7748      # Try sorting and uniquifying the output.
7749      if sort "$nlist" | uniq > "$nlist"T; then
7750        mv -f "$nlist"T "$nlist"
7751      else
7752        rm -f "$nlist"T
7753      fi
7754
7755      # Make sure that we snagged all the symbols we need.
7756      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7757        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7758          cat <<EOF > conftest.$ac_ext
7759#ifdef __cplusplus
7760extern "C" {
7761#endif
7762
7763EOF
7764          # Now generate the symbol file.
7765          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7766
7767          cat <<EOF >> conftest.$ac_ext
7768#if defined (__STDC__) && __STDC__
7769# define lt_ptr_t void *
7770#else
7771# define lt_ptr_t char *
7772# define const
7773#endif
7774
7775/* The mapping between symbol names and symbols. */
7776const struct {
7777  const char *name;
7778  lt_ptr_t address;
7779}
7780lt_preloaded_symbols[] =
7781{
7782EOF
7783          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7784          cat <<\EOF >> conftest.$ac_ext
7785  {0, (lt_ptr_t) 0}
7786};
7787
7788#ifdef __cplusplus
7789}
7790#endif
7791EOF
7792          # Now try linking the two files.
7793          mv conftest.$ac_objext conftstm.$ac_objext
7794          lt_save_LIBS="$LIBS"
7795          lt_save_CFLAGS="$CFLAGS"
7796          LIBS="conftstm.$ac_objext"
7797          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7798          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7799  (eval $ac_link) 2>&5
7800  ac_status=$?
7801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7803            pipe_works=yes
7804          fi
7805          LIBS="$lt_save_LIBS"
7806          CFLAGS="$lt_save_CFLAGS"
7807        else
7808          echo "cannot find nm_test_func in $nlist" >&5
7809        fi
7810      else
7811        echo "cannot find nm_test_var in $nlist" >&5
7812      fi
7813    else
7814      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7815    fi
7816  else
7817    echo "$progname: failed program was:" >&5
7818    cat conftest.$ac_ext >&5
7819  fi
7820  rm -f conftest* conftst*
7821
7822  # Do not use the global_symbol_pipe unless it works.
7823  if test "$pipe_works" = yes; then
7824    break
7825  else
7826    lt_cv_sys_global_symbol_pipe=
7827  fi
7828done
7829
7830fi
7831
7832if test -z "$lt_cv_sys_global_symbol_pipe"; then
7833  lt_cv_sys_global_symbol_to_cdecl=
7834fi
7835if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7836  echo "$as_me:$LINENO: result: failed" >&5
7837echo "${ECHO_T}failed" >&6
7838else
7839  echo "$as_me:$LINENO: result: ok" >&5
7840echo "${ECHO_T}ok" >&6
7841fi
7842
7843echo "$as_me:$LINENO: checking for objdir" >&5
7844echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7845if test "${lt_cv_objdir+set}" = set; then
7846  echo $ECHO_N "(cached) $ECHO_C" >&6
7847else
7848  rm -f .libs 2>/dev/null
7849mkdir .libs 2>/dev/null
7850if test -d .libs; then
7851  lt_cv_objdir=.libs
7852else
7853  # MS-DOS does not allow filenames that begin with a dot.
7854  lt_cv_objdir=_libs
7855fi
7856rmdir .libs 2>/dev/null
7857fi
7858echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7859echo "${ECHO_T}$lt_cv_objdir" >&6
7860objdir=$lt_cv_objdir
7861
7862
7863
7864
7865
7866case $host_os in
7867aix3*)
7868  # AIX sometimes has problems with the GCC collect2 program.  For some
7869  # reason, if we set the COLLECT_NAMES environment variable, the problems
7870  # vanish in a puff of smoke.
7871  if test "X${COLLECT_NAMES+set}" != Xset; then
7872    COLLECT_NAMES=
7873    export COLLECT_NAMES
7874  fi
7875  ;;
7876esac
7877
7878# Sed substitution that helps us do robust quoting.  It backslashifies
7879# metacharacters that are still active within double-quoted strings.
7880Xsed='sed -e 1s/^X//'
7881sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7882
7883# Same as above, but do not quote variable references.
7884double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7885
7886# Sed substitution to delay expansion of an escaped shell variable in a
7887# double_quote_subst'ed string.
7888delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7889
7890# Sed substitution to avoid accidental globbing in evaled expressions
7891no_glob_subst='s/\*/\\\*/g'
7892
7893# Constants:
7894rm="rm -f"
7895
7896# Global variables:
7897default_ofile=libtool
7898can_build_shared=yes
7899
7900# All known linkers require a `.a' archive for static linking (except MSVC,
7901# which needs '.lib').
7902libext=a
7903ltmain="$ac_aux_dir/ltmain.sh"
7904ofile="$default_ofile"
7905with_gnu_ld="$lt_cv_prog_gnu_ld"
7906
7907if test -n "$ac_tool_prefix"; then
7908  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7909set dummy ${ac_tool_prefix}ar; ac_word=$2
7910echo "$as_me:$LINENO: checking for $ac_word" >&5
7911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7912if test "${ac_cv_prog_AR+set}" = set; then
7913  echo $ECHO_N "(cached) $ECHO_C" >&6
7914else
7915  if test -n "$AR"; then
7916  ac_cv_prog_AR="$AR" # Let the user override the test.
7917else
7918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919for as_dir in $PATH
7920do
7921  IFS=$as_save_IFS
7922  test -z "$as_dir" && as_dir=.
7923  for ac_exec_ext in '' $ac_executable_extensions; do
7924  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7925    ac_cv_prog_AR="${ac_tool_prefix}ar"
7926    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927    break 2
7928  fi
7929done
7930done
7931
7932fi
7933fi
7934AR=$ac_cv_prog_AR
7935if test -n "$AR"; then
7936  echo "$as_me:$LINENO: result: $AR" >&5
7937echo "${ECHO_T}$AR" >&6
7938else
7939  echo "$as_me:$LINENO: result: no" >&5
7940echo "${ECHO_T}no" >&6
7941fi
7942
7943fi
7944if test -z "$ac_cv_prog_AR"; then
7945  ac_ct_AR=$AR
7946  # Extract the first word of "ar", so it can be a program name with args.
7947set dummy ar; ac_word=$2
7948echo "$as_me:$LINENO: checking for $ac_word" >&5
7949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7950if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7951  echo $ECHO_N "(cached) $ECHO_C" >&6
7952else
7953  if test -n "$ac_ct_AR"; then
7954  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7955else
7956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957for as_dir in $PATH
7958do
7959  IFS=$as_save_IFS
7960  test -z "$as_dir" && as_dir=.
7961  for ac_exec_ext in '' $ac_executable_extensions; do
7962  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7963    ac_cv_prog_ac_ct_AR="ar"
7964    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7965    break 2
7966  fi
7967done
7968done
7969
7970  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7971fi
7972fi
7973ac_ct_AR=$ac_cv_prog_ac_ct_AR
7974if test -n "$ac_ct_AR"; then
7975  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7976echo "${ECHO_T}$ac_ct_AR" >&6
7977else
7978  echo "$as_me:$LINENO: result: no" >&5
7979echo "${ECHO_T}no" >&6
7980fi
7981
7982  AR=$ac_ct_AR
7983else
7984  AR="$ac_cv_prog_AR"
7985fi
7986
7987if test -n "$ac_tool_prefix"; then
7988  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7989set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7990echo "$as_me:$LINENO: checking for $ac_word" >&5
7991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7992if test "${ac_cv_prog_RANLIB+set}" = set; then
7993  echo $ECHO_N "(cached) $ECHO_C" >&6
7994else
7995  if test -n "$RANLIB"; then
7996  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7997else
7998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001  IFS=$as_save_IFS
8002  test -z "$as_dir" && as_dir=.
8003  for ac_exec_ext in '' $ac_executable_extensions; do
8004  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8005    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8006    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8007    break 2
8008  fi
8009done
8010done
8011
8012fi
8013fi
8014RANLIB=$ac_cv_prog_RANLIB
8015if test -n "$RANLIB"; then
8016  echo "$as_me:$LINENO: result: $RANLIB" >&5
8017echo "${ECHO_T}$RANLIB" >&6
8018else
8019  echo "$as_me:$LINENO: result: no" >&5
8020echo "${ECHO_T}no" >&6
8021fi
8022
8023fi
8024if test -z "$ac_cv_prog_RANLIB"; then
8025  ac_ct_RANLIB=$RANLIB
8026  # Extract the first word of "ranlib", so it can be a program name with args.
8027set dummy ranlib; ac_word=$2
8028echo "$as_me:$LINENO: checking for $ac_word" >&5
8029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8030if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8031  echo $ECHO_N "(cached) $ECHO_C" >&6
8032else
8033  if test -n "$ac_ct_RANLIB"; then
8034  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8035else
8036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037for as_dir in $PATH
8038do
8039  IFS=$as_save_IFS
8040  test -z "$as_dir" && as_dir=.
8041  for ac_exec_ext in '' $ac_executable_extensions; do
8042  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8043    ac_cv_prog_ac_ct_RANLIB="ranlib"
8044    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8045    break 2
8046  fi
8047done
8048done
8049
8050  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8051fi
8052fi
8053ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8054if test -n "$ac_ct_RANLIB"; then
8055  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8056echo "${ECHO_T}$ac_ct_RANLIB" >&6
8057else
8058  echo "$as_me:$LINENO: result: no" >&5
8059echo "${ECHO_T}no" >&6
8060fi
8061
8062  RANLIB=$ac_ct_RANLIB
8063else
8064  RANLIB="$ac_cv_prog_RANLIB"
8065fi
8066
8067if test -n "$ac_tool_prefix"; then
8068  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8069set dummy ${ac_tool_prefix}strip; ac_word=$2
8070echo "$as_me:$LINENO: checking for $ac_word" >&5
8071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8072if test "${ac_cv_prog_STRIP+set}" = set; then
8073  echo $ECHO_N "(cached) $ECHO_C" >&6
8074else
8075  if test -n "$STRIP"; then
8076  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8077else
8078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079for as_dir in $PATH
8080do
8081  IFS=$as_save_IFS
8082  test -z "$as_dir" && as_dir=.
8083  for ac_exec_ext in '' $ac_executable_extensions; do
8084  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8085    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8086    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8087    break 2
8088  fi
8089done
8090done
8091
8092fi
8093fi
8094STRIP=$ac_cv_prog_STRIP
8095if test -n "$STRIP"; then
8096  echo "$as_me:$LINENO: result: $STRIP" >&5
8097echo "${ECHO_T}$STRIP" >&6
8098else
8099  echo "$as_me:$LINENO: result: no" >&5
8100echo "${ECHO_T}no" >&6
8101fi
8102
8103fi
8104if test -z "$ac_cv_prog_STRIP"; then
8105  ac_ct_STRIP=$STRIP
8106  # Extract the first word of "strip", so it can be a program name with args.
8107set dummy strip; ac_word=$2
8108echo "$as_me:$LINENO: checking for $ac_word" >&5
8109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8110if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8111  echo $ECHO_N "(cached) $ECHO_C" >&6
8112else
8113  if test -n "$ac_ct_STRIP"; then
8114  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8115else
8116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117for as_dir in $PATH
8118do
8119  IFS=$as_save_IFS
8120  test -z "$as_dir" && as_dir=.
8121  for ac_exec_ext in '' $ac_executable_extensions; do
8122  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8123    ac_cv_prog_ac_ct_STRIP="strip"
8124    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8125    break 2
8126  fi
8127done
8128done
8129
8130  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8131fi
8132fi
8133ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8134if test -n "$ac_ct_STRIP"; then
8135  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8136echo "${ECHO_T}$ac_ct_STRIP" >&6
8137else
8138  echo "$as_me:$LINENO: result: no" >&5
8139echo "${ECHO_T}no" >&6
8140fi
8141
8142  STRIP=$ac_ct_STRIP
8143else
8144  STRIP="$ac_cv_prog_STRIP"
8145fi
8146
8147
8148old_CC="$CC"
8149old_CFLAGS="$CFLAGS"
8150
8151# Set sane defaults for various variables
8152test -z "$AR" && AR=ar
8153test -z "$AR_FLAGS" && AR_FLAGS=cru
8154test -z "$AS" && AS=as
8155test -z "$CC" && CC=cc
8156test -z "$LTCC" && LTCC=$CC
8157test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8158test -z "$DLLTOOL" && DLLTOOL=dlltool
8159test -z "$LD" && LD=ld
8160test -z "$LN_S" && LN_S="ln -s"
8161test -z "$MAGIC_CMD" && MAGIC_CMD=file
8162test -z "$NM" && NM=nm
8163test -z "$SED" && SED=sed
8164test -z "$OBJDUMP" && OBJDUMP=objdump
8165test -z "$RANLIB" && RANLIB=:
8166test -z "$STRIP" && STRIP=:
8167test -z "$ac_objext" && ac_objext=o
8168
8169# Determine commands to create old-style static archives.
8170old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8171old_postinstall_cmds='chmod 644 $oldlib'
8172old_postuninstall_cmds=
8173
8174if test -n "$RANLIB"; then
8175  case $host_os in
8176  openbsd*)
8177    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8178    ;;
8179  *)
8180    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8181    ;;
8182  esac
8183  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8184fi
8185
8186for cc_temp in $compiler""; do
8187  case $cc_temp in
8188    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8189    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8190    \-*) ;;
8191    *) break;;
8192  esac
8193done
8194cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8195
8196
8197# Only perform the check for file, if the check method requires it
8198case $deplibs_check_method in
8199file_magic*)
8200  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8201    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8202echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8203if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8204  echo $ECHO_N "(cached) $ECHO_C" >&6
8205else
8206  case $MAGIC_CMD in
8207[\\/*] |  ?:[\\/]*)
8208  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8209  ;;
8210*)
8211  lt_save_MAGIC_CMD="$MAGIC_CMD"
8212  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8213  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8214  for ac_dir in $ac_dummy; do
8215    IFS="$lt_save_ifs"
8216    test -z "$ac_dir" && ac_dir=.
8217    if test -f $ac_dir/${ac_tool_prefix}file; then
8218      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8219      if test -n "$file_magic_test_file"; then
8220        case $deplibs_check_method in
8221        "file_magic "*)
8222          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8223          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8224          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8225            $EGREP "$file_magic_regex" > /dev/null; then
8226            :
8227          else
8228            cat <<EOF 1>&2
8229
8230*** Warning: the command libtool uses to detect shared libraries,
8231*** $file_magic_cmd, produces output that libtool cannot recognize.
8232*** The result is that libtool may fail to recognize shared libraries
8233*** as such.  This will affect the creation of libtool libraries that
8234*** depend on shared libraries, but programs linked with such libtool
8235*** libraries will work regardless of this problem.  Nevertheless, you
8236*** may want to report the problem to your system manager and/or to
8237*** bug-libtool@gnu.org
8238
8239EOF
8240          fi ;;
8241        esac
8242      fi
8243      break
8244    fi
8245  done
8246  IFS="$lt_save_ifs"
8247  MAGIC_CMD="$lt_save_MAGIC_CMD"
8248  ;;
8249esac
8250fi
8251
8252MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8253if test -n "$MAGIC_CMD"; then
8254  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8255echo "${ECHO_T}$MAGIC_CMD" >&6
8256else
8257  echo "$as_me:$LINENO: result: no" >&5
8258echo "${ECHO_T}no" >&6
8259fi
8260
8261if test -z "$lt_cv_path_MAGIC_CMD"; then
8262  if test -n "$ac_tool_prefix"; then
8263    echo "$as_me:$LINENO: checking for file" >&5
8264echo $ECHO_N "checking for file... $ECHO_C" >&6
8265if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8266  echo $ECHO_N "(cached) $ECHO_C" >&6
8267else
8268  case $MAGIC_CMD in
8269[\\/*] |  ?:[\\/]*)
8270  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8271  ;;
8272*)
8273  lt_save_MAGIC_CMD="$MAGIC_CMD"
8274  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8275  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8276  for ac_dir in $ac_dummy; do
8277    IFS="$lt_save_ifs"
8278    test -z "$ac_dir" && ac_dir=.
8279    if test -f $ac_dir/file; then
8280      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8281      if test -n "$file_magic_test_file"; then
8282        case $deplibs_check_method in
8283        "file_magic "*)
8284          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8285          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8286          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8287            $EGREP "$file_magic_regex" > /dev/null; then
8288            :
8289          else
8290            cat <<EOF 1>&2
8291
8292*** Warning: the command libtool uses to detect shared libraries,
8293*** $file_magic_cmd, produces output that libtool cannot recognize.
8294*** The result is that libtool may fail to recognize shared libraries
8295*** as such.  This will affect the creation of libtool libraries that
8296*** depend on shared libraries, but programs linked with such libtool
8297*** libraries will work regardless of this problem.  Nevertheless, you
8298*** may want to report the problem to your system manager and/or to
8299*** bug-libtool@gnu.org
8300
8301EOF
8302          fi ;;
8303        esac
8304      fi
8305      break
8306    fi
8307  done
8308  IFS="$lt_save_ifs"
8309  MAGIC_CMD="$lt_save_MAGIC_CMD"
8310  ;;
8311esac
8312fi
8313
8314MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8315if test -n "$MAGIC_CMD"; then
8316  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8317echo "${ECHO_T}$MAGIC_CMD" >&6
8318else
8319  echo "$as_me:$LINENO: result: no" >&5
8320echo "${ECHO_T}no" >&6
8321fi
8322
8323  else
8324    MAGIC_CMD=:
8325  fi
8326fi
8327
8328  fi
8329  ;;
8330esac
8331
8332enable_dlopen=no
8333enable_win32_dll=no
8334
8335# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8336if test "${enable_libtool_lock+set}" = set; then
8337  enableval="$enable_libtool_lock"
8338
8339fi;
8340test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8341
8342
8343# Check whether --with-pic or --without-pic was given.
8344if test "${with_pic+set}" = set; then
8345  withval="$with_pic"
8346  pic_mode="$withval"
8347else
8348  pic_mode=default
8349fi;
8350test -z "$pic_mode" && pic_mode=default
8351
8352# Use C for the default configuration in the libtool script
8353tagname=
8354lt_save_CC="$CC"
8355ac_ext=c
8356ac_cpp='$CPP $CPPFLAGS'
8357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8359ac_compiler_gnu=$ac_cv_c_compiler_gnu
8360
8361
8362# Source file extension for C test sources.
8363ac_ext=c
8364
8365# Object file extension for compiled C test sources.
8366objext=o
8367objext=$objext
8368
8369# Code to be used in simple compile tests
8370lt_simple_compile_test_code="int some_variable = 0;\n"
8371
8372# Code to be used in simple link tests
8373lt_simple_link_test_code='int main(){return(0);}\n'
8374
8375
8376# If no C compiler was specified, use CC.
8377LTCC=${LTCC-"$CC"}
8378
8379# If no C compiler flags were specified, use CFLAGS.
8380LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8381
8382# Allow CC to be a program name with arguments.
8383compiler=$CC
8384
8385
8386# save warnings/boilerplate of simple test code
8387ac_outfile=conftest.$ac_objext
8388printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8389eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8390_lt_compiler_boilerplate=`cat conftest.err`
8391$rm conftest*
8392
8393ac_outfile=conftest.$ac_objext
8394printf "$lt_simple_link_test_code" >conftest.$ac_ext
8395eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8396_lt_linker_boilerplate=`cat conftest.err`
8397$rm conftest*
8398
8399
8400## CAVEAT EMPTOR:
8401## There is no encapsulation within the following macros, do not change
8402## the running order or otherwise move them around unless you know exactly
8403## what you are doing...
8404
8405lt_prog_compiler_no_builtin_flag=
8406
8407if test "$GCC" = yes; then
8408  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8409
8410
8411echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8412echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8413if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8414  echo $ECHO_N "(cached) $ECHO_C" >&6
8415else
8416  lt_cv_prog_compiler_rtti_exceptions=no
8417  ac_outfile=conftest.$ac_objext
8418   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8419   lt_compiler_flag="-fno-rtti -fno-exceptions"
8420   # Insert the option either (1) after the last *FLAGS variable, or
8421   # (2) before a word containing "conftest.", or (3) at the end.
8422   # Note that $ac_compile itself does not contain backslashes and begins
8423   # with a dollar sign (not a hyphen), so the echo should work correctly.
8424   # The option is referenced via a variable to avoid confusing sed.
8425   lt_compile=`echo "$ac_compile" | $SED \
8426   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8427   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8428   -e 's:$: $lt_compiler_flag:'`
8429   (eval echo "\"\$as_me:8429: $lt_compile\"" >&5)
8430   (eval "$lt_compile" 2>conftest.err)
8431   ac_status=$?
8432   cat conftest.err >&5
8433   echo "$as_me:8433: \$? = $ac_status" >&5
8434   if (exit $ac_status) && test -s "$ac_outfile"; then
8435     # The compiler can only warn and ignore the option if not recognized
8436     # So say no if there are warnings other than the usual output.
8437     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8438     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8439     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8440       lt_cv_prog_compiler_rtti_exceptions=yes
8441     fi
8442   fi
8443   $rm conftest*
8444
8445fi
8446echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8447echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8448
8449if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8450    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8451else
8452    :
8453fi
8454
8455fi
8456
8457lt_prog_compiler_wl=
8458lt_prog_compiler_pic=
8459lt_prog_compiler_static=
8460
8461echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8462echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8463
8464  if test "$GCC" = yes; then
8465    lt_prog_compiler_wl='-Wl,'
8466    lt_prog_compiler_static='-static'
8467
8468    case $host_os in
8469      aix*)
8470      # All AIX code is PIC.
8471      if test "$host_cpu" = ia64; then
8472        # AIX 5 now supports IA64 processor
8473        lt_prog_compiler_static='-Bstatic'
8474      fi
8475      ;;
8476
8477    amigaos*)
8478      # FIXME: we need at least 68020 code to build shared libraries, but
8479      # adding the `-m68020' flag to GCC prevents building anything better,
8480      # like `-m68040'.
8481      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8482      ;;
8483
8484    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8485      # PIC is the default for these OSes.
8486      ;;
8487
8488    mingw* | pw32* | os2*)
8489      # This hack is so that the source file can tell whether it is being
8490      # built for inclusion in a dll (and should export symbols for example).
8491      lt_prog_compiler_pic='-DDLL_EXPORT'
8492      ;;
8493
8494    darwin* | rhapsody*)
8495      # PIC is the default on this platform
8496      # Common symbols not allowed in MH_DYLIB files
8497      lt_prog_compiler_pic='-fno-common'
8498      ;;
8499
8500    interix3*)
8501      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8502      # Instead, we relocate shared libraries at runtime.
8503      ;;
8504
8505    msdosdjgpp*)
8506      # Just because we use GCC doesn't mean we suddenly get shared libraries
8507      # on systems that don't support them.
8508      lt_prog_compiler_can_build_shared=no
8509      enable_shared=no
8510      ;;
8511
8512    sysv4*MP*)
8513      if test -d /usr/nec; then
8514        lt_prog_compiler_pic=-Kconform_pic
8515      fi
8516      ;;
8517
8518    hpux*)
8519      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8520      # not for PA HP-UX.
8521      case $host_cpu in
8522      hppa*64*|ia64*)
8523        # +Z the default
8524        ;;
8525      *)
8526        lt_prog_compiler_pic='-fPIC'
8527        ;;
8528      esac
8529      ;;
8530
8531    *)
8532      lt_prog_compiler_pic='-fPIC'
8533      ;;
8534    esac
8535  else
8536    # PORTME Check for flag to pass linker flags through the system compiler.
8537    case $host_os in
8538    aix*)
8539      lt_prog_compiler_wl='-Wl,'
8540      if test "$host_cpu" = ia64; then
8541        # AIX 5 now supports IA64 processor
8542        lt_prog_compiler_static='-Bstatic'
8543      else
8544        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8545      fi
8546      ;;
8547      darwin*)
8548        # PIC is the default on this platform
8549        # Common symbols not allowed in MH_DYLIB files
8550       case $cc_basename in
8551         xlc*)
8552         lt_prog_compiler_pic='-qnocommon'
8553         lt_prog_compiler_wl='-Wl,'
8554         ;;
8555       esac
8556       ;;
8557
8558    mingw* | pw32* | os2*)
8559      # This hack is so that the source file can tell whether it is being
8560      # built for inclusion in a dll (and should export symbols for example).
8561      lt_prog_compiler_pic='-DDLL_EXPORT'
8562      ;;
8563
8564    hpux9* | hpux10* | hpux11*)
8565      lt_prog_compiler_wl='-Wl,'
8566      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8567      # not for PA HP-UX.
8568      case $host_cpu in
8569      hppa*64*|ia64*)
8570        # +Z the default
8571        ;;
8572      *)
8573        lt_prog_compiler_pic='+Z'
8574        ;;
8575      esac
8576      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8577      lt_prog_compiler_static='${wl}-a ${wl}archive'
8578      ;;
8579
8580    irix5* | irix6* | nonstopux*)
8581      lt_prog_compiler_wl='-Wl,'
8582      # PIC (with -KPIC) is the default.
8583      lt_prog_compiler_static='-non_shared'
8584      ;;
8585
8586    newsos6)
8587      lt_prog_compiler_pic='-KPIC'
8588      lt_prog_compiler_static='-Bstatic'
8589      ;;
8590
8591    linux*)
8592      case $cc_basename in
8593      icc* | ecc*)
8594        lt_prog_compiler_wl='-Wl,'
8595        lt_prog_compiler_pic='-KPIC'
8596        lt_prog_compiler_static='-static'
8597        ;;
8598      pgcc* | pgf77* | pgf90* | pgf95*)
8599        # Portland Group compilers (*not* the Pentium gcc compiler,
8600        # which looks to be a dead project)
8601        lt_prog_compiler_wl='-Wl,'
8602        lt_prog_compiler_pic='-fpic'
8603        lt_prog_compiler_static='-Bstatic'
8604        ;;
8605      ccc*)
8606        lt_prog_compiler_wl='-Wl,'
8607        # All Alpha code is PIC.
8608        lt_prog_compiler_static='-non_shared'
8609        ;;
8610      esac
8611      ;;
8612
8613    osf3* | osf4* | osf5*)
8614      lt_prog_compiler_wl='-Wl,'
8615      # All OSF/1 code is PIC.
8616      lt_prog_compiler_static='-non_shared'
8617      ;;
8618
8619    solaris*)
8620      lt_prog_compiler_pic='-KPIC'
8621      lt_prog_compiler_static='-Bstatic'
8622      case $cc_basename in
8623      f77* | f90* | f95*)
8624        lt_prog_compiler_wl='-Qoption ld ';;
8625      *)
8626        lt_prog_compiler_wl='-Wl,';;
8627      esac
8628      ;;
8629
8630    sunos4*)
8631      lt_prog_compiler_wl='-Qoption ld '
8632      lt_prog_compiler_pic='-PIC'
8633      lt_prog_compiler_static='-Bstatic'
8634      ;;
8635
8636    sysv4 | sysv4.2uw2* | sysv4.3*)
8637      lt_prog_compiler_wl='-Wl,'
8638      lt_prog_compiler_pic='-KPIC'
8639      lt_prog_compiler_static='-Bstatic'
8640      ;;
8641
8642    sysv4*MP*)
8643      if test -d /usr/nec ;then
8644        lt_prog_compiler_pic='-Kconform_pic'
8645        lt_prog_compiler_static='-Bstatic'
8646      fi
8647      ;;
8648
8649    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8650      lt_prog_compiler_wl='-Wl,'
8651      lt_prog_compiler_pic='-KPIC'
8652      lt_prog_compiler_static='-Bstatic'
8653      ;;
8654
8655    unicos*)
8656      lt_prog_compiler_wl='-Wl,'
8657      lt_prog_compiler_can_build_shared=no
8658      ;;
8659
8660    uts4*)
8661      lt_prog_compiler_pic='-pic'
8662      lt_prog_compiler_static='-Bstatic'
8663      ;;
8664
8665    *)
8666      lt_prog_compiler_can_build_shared=no
8667      ;;
8668    esac
8669  fi
8670
8671echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8672echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8673
8674#
8675# Check to make sure the PIC flag actually works.
8676#
8677if test -n "$lt_prog_compiler_pic"; then
8678
8679echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8680echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8681if test "${lt_prog_compiler_pic_works+set}" = set; then
8682  echo $ECHO_N "(cached) $ECHO_C" >&6
8683else
8684  lt_prog_compiler_pic_works=no
8685  ac_outfile=conftest.$ac_objext
8686   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8687   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8688   # Insert the option either (1) after the last *FLAGS variable, or
8689   # (2) before a word containing "conftest.", or (3) at the end.
8690   # Note that $ac_compile itself does not contain backslashes and begins
8691   # with a dollar sign (not a hyphen), so the echo should work correctly.
8692   # The option is referenced via a variable to avoid confusing sed.
8693   lt_compile=`echo "$ac_compile" | $SED \
8694   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8695   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8696   -e 's:$: $lt_compiler_flag:'`
8697   (eval echo "\"\$as_me:8697: $lt_compile\"" >&5)
8698   (eval "$lt_compile" 2>conftest.err)
8699   ac_status=$?
8700   cat conftest.err >&5
8701   echo "$as_me:8701: \$? = $ac_status" >&5
8702   if (exit $ac_status) && test -s "$ac_outfile"; then
8703     # The compiler can only warn and ignore the option if not recognized
8704     # So say no if there are warnings other than the usual output.
8705     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8706     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8707     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8708       lt_prog_compiler_pic_works=yes
8709     fi
8710   fi
8711   $rm conftest*
8712
8713fi
8714echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8715echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8716
8717if test x"$lt_prog_compiler_pic_works" = xyes; then
8718    case $lt_prog_compiler_pic in
8719     "" | " "*) ;;
8720     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8721     esac
8722else
8723    lt_prog_compiler_pic=
8724     lt_prog_compiler_can_build_shared=no
8725fi
8726
8727fi
8728case $host_os in
8729  # For platforms which do not support PIC, -DPIC is meaningless:
8730  *djgpp*)
8731    lt_prog_compiler_pic=
8732    ;;
8733  *)
8734    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8735    ;;
8736esac
8737
8738#
8739# Check to make sure the static flag actually works.
8740#
8741wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8742echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8743echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8744if test "${lt_prog_compiler_static_works+set}" = set; then
8745  echo $ECHO_N "(cached) $ECHO_C" >&6
8746else
8747  lt_prog_compiler_static_works=no
8748   save_LDFLAGS="$LDFLAGS"
8749   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8750   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8751   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8752     # The linker can only warn and ignore the option if not recognized
8753     # So say no if there are warnings
8754     if test -s conftest.err; then
8755       # Append any errors to the config.log.
8756       cat conftest.err 1>&5
8757       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8758       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8759       if diff conftest.exp conftest.er2 >/dev/null; then
8760         lt_prog_compiler_static_works=yes
8761       fi
8762     else
8763       lt_prog_compiler_static_works=yes
8764     fi
8765   fi
8766   $rm conftest*
8767   LDFLAGS="$save_LDFLAGS"
8768
8769fi
8770echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8771echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8772
8773if test x"$lt_prog_compiler_static_works" = xyes; then
8774    :
8775else
8776    lt_prog_compiler_static=
8777fi
8778
8779
8780echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8781echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8782if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8783  echo $ECHO_N "(cached) $ECHO_C" >&6
8784else
8785  lt_cv_prog_compiler_c_o=no
8786   $rm -r conftest 2>/dev/null
8787   mkdir conftest
8788   cd conftest
8789   mkdir out
8790   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8791
8792   lt_compiler_flag="-o out/conftest2.$ac_objext"
8793   # Insert the option either (1) after the last *FLAGS variable, or
8794   # (2) before a word containing "conftest.", or (3) at the end.
8795   # Note that $ac_compile itself does not contain backslashes and begins
8796   # with a dollar sign (not a hyphen), so the echo should work correctly.
8797   lt_compile=`echo "$ac_compile" | $SED \
8798   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8799   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8800   -e 's:$: $lt_compiler_flag:'`
8801   (eval echo "\"\$as_me:8801: $lt_compile\"" >&5)
8802   (eval "$lt_compile" 2>out/conftest.err)
8803   ac_status=$?
8804   cat out/conftest.err >&5
8805   echo "$as_me:8805: \$? = $ac_status" >&5
8806   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8807   then
8808     # The compiler can only warn and ignore the option if not recognized
8809     # So say no if there are warnings
8810     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8811     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8812     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8813       lt_cv_prog_compiler_c_o=yes
8814     fi
8815   fi
8816   chmod u+w . 2>&5
8817   $rm conftest*
8818   # SGI C++ compiler will create directory out/ii_files/ for
8819   # template instantiation
8820   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8821   $rm out/* && rmdir out
8822   cd ..
8823   rmdir conftest
8824   $rm conftest*
8825
8826fi
8827echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8828echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8829
8830
8831hard_links="nottested"
8832if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8833  # do not overwrite the value of need_locks provided by the user
8834  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8835echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8836  hard_links=yes
8837  $rm conftest*
8838  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8839  touch conftest.a
8840  ln conftest.a conftest.b 2>&5 || hard_links=no
8841  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8842  echo "$as_me:$LINENO: result: $hard_links" >&5
8843echo "${ECHO_T}$hard_links" >&6
8844  if test "$hard_links" = no; then
8845    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8846echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8847    need_locks=warn
8848  fi
8849else
8850  need_locks=no
8851fi
8852
8853echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8854echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8855
8856  runpath_var=
8857  allow_undefined_flag=
8858  enable_shared_with_static_runtimes=no
8859  archive_cmds=
8860  archive_expsym_cmds=
8861  old_archive_From_new_cmds=
8862  old_archive_from_expsyms_cmds=
8863  export_dynamic_flag_spec=
8864  whole_archive_flag_spec=
8865  thread_safe_flag_spec=
8866  hardcode_libdir_flag_spec=
8867  hardcode_libdir_flag_spec_ld=
8868  hardcode_libdir_separator=
8869  hardcode_direct=no
8870  hardcode_minus_L=no
8871  hardcode_shlibpath_var=unsupported
8872  link_all_deplibs=unknown
8873  hardcode_automatic=no
8874  module_cmds=
8875  module_expsym_cmds=
8876  always_export_symbols=no
8877  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8878  # include_expsyms should be a list of space-separated symbols to be *always*
8879  # included in the symbol list
8880  include_expsyms=
8881  # exclude_expsyms can be an extended regexp of symbols to exclude
8882  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8883  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8884  # as well as any symbol that contains `d'.
8885  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8886  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8887  # platforms (ab)use it in PIC code, but their linkers get confused if
8888  # the symbol is explicitly referenced.  Since portable code cannot
8889  # rely on this symbol name, it's probably fine to never include it in
8890  # preloaded symbol tables.
8891  extract_expsyms_cmds=
8892  # Just being paranoid about ensuring that cc_basename is set.
8893  for cc_temp in $compiler""; do
8894  case $cc_temp in
8895    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8896    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8897    \-*) ;;
8898    *) break;;
8899  esac
8900done
8901cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8902
8903  case $host_os in
8904  cygwin* | mingw* | pw32*)
8905    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8906    # When not using gcc, we currently assume that we are using
8907    # Microsoft Visual C++.
8908    if test "$GCC" != yes; then
8909      with_gnu_ld=no
8910    fi
8911    ;;
8912  interix*)
8913    # we just hope/assume this is gcc and not c89 (= MSVC++)
8914    with_gnu_ld=yes
8915    ;;
8916  openbsd*)
8917    with_gnu_ld=no
8918    ;;
8919  esac
8920
8921  ld_shlibs=yes
8922  if test "$with_gnu_ld" = yes; then
8923    # If archive_cmds runs LD, not CC, wlarc should be empty
8924    wlarc='${wl}'
8925
8926    # Set some defaults for GNU ld with shared library support. These
8927    # are reset later if shared libraries are not supported. Putting them
8928    # here allows them to be overridden if necessary.
8929    runpath_var=LD_RUN_PATH
8930    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8931    export_dynamic_flag_spec='${wl}--export-dynamic'
8932    # ancient GNU ld didn't support --whole-archive et. al.
8933    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8934        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8935      else
8936        whole_archive_flag_spec=
8937    fi
8938    supports_anon_versioning=no
8939    case `$LD -v 2>/dev/null` in
8940      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8941      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8942      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8943      *\ 2.11.*) ;; # other 2.11 versions
8944      *) supports_anon_versioning=yes ;;
8945    esac
8946
8947    # See if GNU ld supports shared libraries.
8948    case $host_os in
8949    aix3* | aix4* | aix5*)
8950      # On AIX/PPC, the GNU linker is very broken
8951      if test "$host_cpu" != ia64; then
8952        ld_shlibs=no
8953        cat <<EOF 1>&2
8954
8955*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8956*** to be unable to reliably create shared libraries on AIX.
8957*** Therefore, libtool is disabling shared libraries support.  If you
8958*** really care for shared libraries, you may want to modify your PATH
8959*** so that a non-GNU linker is found, and then restart.
8960
8961EOF
8962      fi
8963      ;;
8964
8965    amigaos*)
8966      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)'
8967      hardcode_libdir_flag_spec='-L$libdir'
8968      hardcode_minus_L=yes
8969
8970      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8971      # that the semantics of dynamic libraries on AmigaOS, at least up
8972      # to version 4, is to share data among multiple programs linked
8973      # with the same dynamic library.  Since this doesn't match the
8974      # behavior of shared libraries on other platforms, we can't use
8975      # them.
8976      ld_shlibs=no
8977      ;;
8978
8979    beos*)
8980      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8981        allow_undefined_flag=unsupported
8982        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8983        # support --undefined.  This deserves some investigation.  FIXME
8984        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8985      else
8986        ld_shlibs=no
8987      fi
8988      ;;
8989
8990    cygwin* | mingw* | pw32*)
8991      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8992      # as there is no search path for DLLs.
8993      hardcode_libdir_flag_spec='-L$libdir'
8994      allow_undefined_flag=unsupported
8995      always_export_symbols=no
8996      enable_shared_with_static_runtimes=yes
8997      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8998
8999      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9000        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9001        # If the export-symbols file already is a .def file (1st line
9002        # is EXPORTS), use it as is; otherwise, prepend...
9003        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9004          cp $export_symbols $output_objdir/$soname.def;
9005        else
9006          echo EXPORTS > $output_objdir/$soname.def;
9007          cat $export_symbols >> $output_objdir/$soname.def;
9008        fi~
9009        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9010      else
9011        ld_shlibs=no
9012      fi
9013      ;;
9014
9015    interix3*)
9016      hardcode_direct=no
9017      hardcode_shlibpath_var=no
9018      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9019      export_dynamic_flag_spec='${wl}-E'
9020      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9021      # Instead, shared libraries are loaded at an image base (0x10000000 by
9022      # default) and relocated if they conflict, which is a slow very memory
9023      # consuming and fragmenting process.  To avoid this, we pick a random,
9024      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9025      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9026      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9027      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'
9028      ;;
9029
9030    linux*)
9031      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9032        tmp_addflag=
9033        case $cc_basename,$host_cpu in
9034        pgcc*)                          # Portland Group C compiler
9035          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'
9036          tmp_addflag=' $pic_flag'
9037          ;;
9038        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9039          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'
9040          tmp_addflag=' $pic_flag -Mnomain' ;;
9041        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9042          tmp_addflag=' -i_dynamic' ;;
9043        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9044          tmp_addflag=' -i_dynamic -nofor_main' ;;
9045        ifc* | ifort*)                  # Intel Fortran compiler
9046          tmp_addflag=' -nofor_main' ;;
9047        esac
9048        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9049
9050        if test $supports_anon_versioning = yes; then
9051          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9052  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9053  $echo "local: *; };" >> $output_objdir/$libname.ver~
9054          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9055        fi
9056      else
9057        ld_shlibs=no
9058      fi
9059      ;;
9060
9061    netbsd*)
9062      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9063        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9064        wlarc=
9065      else
9066        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9067        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9068      fi
9069      ;;
9070
9071    solaris*)
9072      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9073        ld_shlibs=no
9074        cat <<EOF 1>&2
9075
9076*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9077*** create shared libraries on Solaris systems.  Therefore, libtool
9078*** is disabling shared libraries support.  We urge you to upgrade GNU
9079*** binutils to release 2.9.1 or newer.  Another option is to modify
9080*** your PATH or compiler configuration so that the native linker is
9081*** used, and then restart.
9082
9083EOF
9084      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9085        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9086        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9087      else
9088        ld_shlibs=no
9089      fi
9090      ;;
9091
9092    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9093      case `$LD -v 2>&1` in
9094        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9095        ld_shlibs=no
9096        cat <<_LT_EOF 1>&2
9097
9098*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9099*** reliably create shared libraries on SCO systems.  Therefore, libtool
9100*** is disabling shared libraries support.  We urge you to upgrade GNU
9101*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9102*** your PATH or compiler configuration so that the native linker is
9103*** used, and then restart.
9104
9105_LT_EOF
9106        ;;
9107        *)
9108          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9109            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9110            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9111            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9112          else
9113            ld_shlibs=no
9114          fi
9115        ;;
9116      esac
9117      ;;
9118
9119    sunos4*)
9120      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9121      wlarc=
9122      hardcode_direct=yes
9123      hardcode_shlibpath_var=no
9124      ;;
9125
9126    *)
9127      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9128        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9129        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9130      else
9131        ld_shlibs=no
9132      fi
9133      ;;
9134    esac
9135
9136    if test "$ld_shlibs" = no; then
9137      runpath_var=
9138      hardcode_libdir_flag_spec=
9139      export_dynamic_flag_spec=
9140      whole_archive_flag_spec=
9141    fi
9142  else
9143    # PORTME fill in a description of your system's linker (not GNU ld)
9144    case $host_os in
9145    aix3*)
9146      allow_undefined_flag=unsupported
9147      always_export_symbols=yes
9148      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'
9149      # Note: this linker hardcodes the directories in LIBPATH if there
9150      # are no directories specified by -L.
9151      hardcode_minus_L=yes
9152      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9153        # Neither direct hardcoding nor static linking is supported with a
9154        # broken collect2.
9155        hardcode_direct=unsupported
9156      fi
9157      ;;
9158
9159    aix4* | aix5*)
9160      if test "$host_cpu" = ia64; then
9161        # On IA64, the linker does run time linking by default, so we don't
9162        # have to do anything special.
9163        aix_use_runtimelinking=no
9164        exp_sym_flag='-Bexport'
9165        no_entry_flag=""
9166      else
9167        # If we're using GNU nm, then we don't want the "-C" option.
9168        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9169        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9170          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'
9171        else
9172          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'
9173        fi
9174        aix_use_runtimelinking=no
9175
9176        # Test if we are trying to use run time linking or normal
9177        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9178        # need to do runtime linking.
9179        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9180          for ld_flag in $LDFLAGS; do
9181          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9182            aix_use_runtimelinking=yes
9183            break
9184          fi
9185          done
9186          ;;
9187        esac
9188
9189        exp_sym_flag='-bexport'
9190        no_entry_flag='-bnoentry'
9191      fi
9192
9193      # When large executables or shared objects are built, AIX ld can
9194      # have problems creating the table of contents.  If linking a library
9195      # or program results in "error TOC overflow" add -mminimal-toc to
9196      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9197      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9198
9199      archive_cmds=''
9200      hardcode_direct=yes
9201      hardcode_libdir_separator=':'
9202      link_all_deplibs=yes
9203
9204      if test "$GCC" = yes; then
9205        case $host_os in aix4.[012]|aix4.[012].*)
9206        # We only want to do this on AIX 4.2 and lower, the check
9207        # below for broken collect2 doesn't work under 4.3+
9208          collect2name=`${CC} -print-prog-name=collect2`
9209          if test -f "$collect2name" && \
9210           strings "$collect2name" | grep resolve_lib_name >/dev/null
9211          then
9212          # We have reworked collect2
9213          hardcode_direct=yes
9214          else
9215          # We have old collect2
9216          hardcode_direct=unsupported
9217          # It fails to find uninstalled libraries when the uninstalled
9218          # path is not listed in the libpath.  Setting hardcode_minus_L
9219          # to unsupported forces relinking
9220          hardcode_minus_L=yes
9221          hardcode_libdir_flag_spec='-L$libdir'
9222          hardcode_libdir_separator=
9223          fi
9224          ;;
9225        esac
9226        shared_flag='-shared'
9227        if test "$aix_use_runtimelinking" = yes; then
9228          shared_flag="$shared_flag "'${wl}-G'
9229        fi
9230      else
9231        # not using gcc
9232        if test "$host_cpu" = ia64; then
9233        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9234        # chokes on -Wl,-G. The following line is correct:
9235          shared_flag='-G'
9236        else
9237          if test "$aix_use_runtimelinking" = yes; then
9238            shared_flag='${wl}-G'
9239          else
9240            shared_flag='${wl}-bM:SRE'
9241          fi
9242        fi
9243      fi
9244
9245      # It seems that -bexpall does not export symbols beginning with
9246      # underscore (_), so it is better to generate a list of symbols to export.
9247      always_export_symbols=yes
9248      if test "$aix_use_runtimelinking" = yes; then
9249        # Warning - without using the other runtime loading flags (-brtl),
9250        # -berok will link without error, but may produce a broken library.
9251        allow_undefined_flag='-berok'
9252       # Determine the default libpath from the value encoded in an empty executable.
9253       cat >conftest.$ac_ext <<_ACEOF
9254/* confdefs.h.  */
9255_ACEOF
9256cat confdefs.h >>conftest.$ac_ext
9257cat >>conftest.$ac_ext <<_ACEOF
9258/* end confdefs.h.  */
9259
9260int
9261main ()
9262{
9263
9264  ;
9265  return 0;
9266}
9267_ACEOF
9268rm -f conftest.$ac_objext conftest$ac_exeext
9269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9270  (eval $ac_link) 2>conftest.er1
9271  ac_status=$?
9272  grep -v '^ *+' conftest.er1 >conftest.err
9273  rm -f conftest.er1
9274  cat conftest.err >&5
9275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276  (exit $ac_status); } &&
9277         { ac_try='test -z "$ac_c_werror_flag"
9278                         || test ! -s conftest.err'
9279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280  (eval $ac_try) 2>&5
9281  ac_status=$?
9282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283  (exit $ac_status); }; } &&
9284         { ac_try='test -s conftest$ac_exeext'
9285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286  (eval $ac_try) 2>&5
9287  ac_status=$?
9288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289  (exit $ac_status); }; }; then
9290
9291aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9292}'`
9293# Check for a 64-bit object if we didn't find anything.
9294if 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; }
9295}'`; fi
9296else
9297  echo "$as_me: failed program was:" >&5
9298sed 's/^/| /' conftest.$ac_ext >&5
9299
9300fi
9301rm -f conftest.err conftest.$ac_objext \
9302      conftest$ac_exeext conftest.$ac_ext
9303if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9304
9305       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9306        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"
9307       else
9308        if test "$host_cpu" = ia64; then
9309          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9310          allow_undefined_flag="-z nodefs"
9311          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"
9312        else
9313         # Determine the default libpath from the value encoded in an empty executable.
9314         cat >conftest.$ac_ext <<_ACEOF
9315/* confdefs.h.  */
9316_ACEOF
9317cat confdefs.h >>conftest.$ac_ext
9318cat >>conftest.$ac_ext <<_ACEOF
9319/* end confdefs.h.  */
9320
9321int
9322main ()
9323{
9324
9325  ;
9326  return 0;
9327}
9328_ACEOF
9329rm -f conftest.$ac_objext conftest$ac_exeext
9330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9331  (eval $ac_link) 2>conftest.er1
9332  ac_status=$?
9333  grep -v '^ *+' conftest.er1 >conftest.err
9334  rm -f conftest.er1
9335  cat conftest.err >&5
9336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337  (exit $ac_status); } &&
9338         { ac_try='test -z "$ac_c_werror_flag"
9339                         || test ! -s conftest.err'
9340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341  (eval $ac_try) 2>&5
9342  ac_status=$?
9343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344  (exit $ac_status); }; } &&
9345         { ac_try='test -s conftest$ac_exeext'
9346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347  (eval $ac_try) 2>&5
9348  ac_status=$?
9349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350  (exit $ac_status); }; }; then
9351
9352aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9353}'`
9354# Check for a 64-bit object if we didn't find anything.
9355if 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; }
9356}'`; fi
9357else
9358  echo "$as_me: failed program was:" >&5
9359sed 's/^/| /' conftest.$ac_ext >&5
9360
9361fi
9362rm -f conftest.err conftest.$ac_objext \
9363      conftest$ac_exeext conftest.$ac_ext
9364if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9365
9366         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9367          # Warning - without using the other run time loading flags,
9368          # -berok will link without error, but may produce a broken library.
9369          no_undefined_flag=' ${wl}-bernotok'
9370          allow_undefined_flag=' ${wl}-berok'
9371          # Exported symbols can be pulled into shared objects from archives
9372          whole_archive_flag_spec='$convenience'
9373          archive_cmds_need_lc=yes
9374          # This is similar to how AIX traditionally builds its shared libraries.
9375          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'
9376        fi
9377      fi
9378      ;;
9379
9380    amigaos*)
9381      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)'
9382      hardcode_libdir_flag_spec='-L$libdir'
9383      hardcode_minus_L=yes
9384      # see comment about different semantics on the GNU ld section
9385      ld_shlibs=no
9386      ;;
9387
9388    bsdi[45]*)
9389      export_dynamic_flag_spec=-rdynamic
9390      ;;
9391
9392    cygwin* | mingw* | pw32*)
9393      # When not using gcc, we currently assume that we are using
9394      # Microsoft Visual C++.
9395      # hardcode_libdir_flag_spec is actually meaningless, as there is
9396      # no search path for DLLs.
9397      hardcode_libdir_flag_spec=' '
9398      allow_undefined_flag=unsupported
9399      # Tell ltmain to make .lib files, not .a files.
9400      libext=lib
9401      # Tell ltmain to make .dll files, not .so files.
9402      shrext_cmds=".dll"
9403      # FIXME: Setting linknames here is a bad hack.
9404      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9405      # The linker will automatically build a .lib file if we build a DLL.
9406      old_archive_From_new_cmds='true'
9407      # FIXME: Should let the user specify the lib program.
9408      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9409      fix_srcfile_path='`cygpath -w "$srcfile"`'
9410      enable_shared_with_static_runtimes=yes
9411      ;;
9412
9413    darwin* | rhapsody*)
9414      case $host_os in
9415        rhapsody* | darwin1.[012])
9416         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9417         ;;
9418       *) # Darwin 1.3 on
9419         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9420           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9421         else
9422           case ${MACOSX_DEPLOYMENT_TARGET} in
9423             10.[012])
9424               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9425               ;;
9426             10.*)
9427               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9428               ;;
9429           esac
9430         fi
9431         ;;
9432      esac
9433      archive_cmds_need_lc=no
9434      hardcode_direct=no
9435      hardcode_automatic=yes
9436      hardcode_shlibpath_var=unsupported
9437      whole_archive_flag_spec=''
9438      link_all_deplibs=yes
9439    if test "$GCC" = yes ; then
9440        output_verbose_link_cmd='echo'
9441        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9442      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9443      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9444      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}'
9445      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}'
9446    else
9447      case $cc_basename in
9448        xlc*)
9449         output_verbose_link_cmd='echo'
9450         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9451         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9452          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9453         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}'
9454          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}'
9455          ;;
9456       *)
9457         ld_shlibs=no
9458          ;;
9459      esac
9460    fi
9461      ;;
9462
9463    dgux*)
9464      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9465      hardcode_libdir_flag_spec='-L$libdir'
9466      hardcode_shlibpath_var=no
9467      ;;
9468
9469    freebsd1*)
9470      ld_shlibs=no
9471      ;;
9472
9473    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9474    # support.  Future versions do this automatically, but an explicit c++rt0.o
9475    # does not break anything, and helps significantly (at the cost of a little
9476    # extra space).
9477    freebsd2.2*)
9478      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9479      hardcode_libdir_flag_spec='-R$libdir'
9480      hardcode_direct=yes
9481      hardcode_shlibpath_var=no
9482      ;;
9483
9484    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9485    freebsd2*)
9486      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9487      hardcode_direct=yes
9488      hardcode_minus_L=yes
9489      hardcode_shlibpath_var=no
9490      ;;
9491
9492    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9493    freebsd* | kfreebsd*-gnu | dragonfly*)
9494      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9495      hardcode_libdir_flag_spec='-R$libdir'
9496      hardcode_direct=yes
9497      hardcode_shlibpath_var=no
9498      ;;
9499
9500    hpux9*)
9501      if test "$GCC" = yes; then
9502        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'
9503      else
9504        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'
9505      fi
9506      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9507      hardcode_libdir_separator=:
9508      hardcode_direct=yes
9509
9510      # hardcode_minus_L: Not really in the search PATH,
9511      # but as the default location of the library.
9512      hardcode_minus_L=yes
9513      export_dynamic_flag_spec='${wl}-E'
9514      ;;
9515
9516    hpux10*)
9517      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9518        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9519      else
9520        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9521      fi
9522      if test "$with_gnu_ld" = no; then
9523        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9524        hardcode_libdir_separator=:
9525
9526        hardcode_direct=yes
9527        export_dynamic_flag_spec='${wl}-E'
9528
9529        # hardcode_minus_L: Not really in the search PATH,
9530        # but as the default location of the library.
9531        hardcode_minus_L=yes
9532      fi
9533      ;;
9534
9535    hpux11*)
9536      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9537        case $host_cpu in
9538        hppa*64*)
9539          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9540          ;;
9541        ia64*)
9542          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9543          ;;
9544        *)
9545          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9546          ;;
9547        esac
9548      else
9549        case $host_cpu in
9550        hppa*64*)
9551          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9552          ;;
9553        ia64*)
9554          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9555          ;;
9556        *)
9557          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9558          ;;
9559        esac
9560      fi
9561      if test "$with_gnu_ld" = no; then
9562        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9563        hardcode_libdir_separator=:
9564
9565        case $host_cpu in
9566        hppa*64*|ia64*)
9567          hardcode_libdir_flag_spec_ld='+b $libdir'
9568          hardcode_direct=no
9569          hardcode_shlibpath_var=no
9570          ;;
9571        *)
9572          hardcode_direct=yes
9573          export_dynamic_flag_spec='${wl}-E'
9574
9575          # hardcode_minus_L: Not really in the search PATH,
9576          # but as the default location of the library.
9577          hardcode_minus_L=yes
9578          ;;
9579        esac
9580      fi
9581      ;;
9582
9583    irix5* | irix6* | nonstopux*)
9584      if test "$GCC" = yes; then
9585        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'
9586      else
9587        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'
9588        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9589      fi
9590      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9591      hardcode_libdir_separator=:
9592      link_all_deplibs=yes
9593      ;;
9594
9595    netbsd*)
9596      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9597        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9598      else
9599        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9600      fi
9601      hardcode_libdir_flag_spec='-R$libdir'
9602      hardcode_direct=yes
9603      hardcode_shlibpath_var=no
9604      ;;
9605
9606    newsos6)
9607      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9608      hardcode_direct=yes
9609      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9610      hardcode_libdir_separator=:
9611      hardcode_shlibpath_var=no
9612      ;;
9613
9614    openbsd*)
9615      hardcode_direct=yes
9616      hardcode_shlibpath_var=no
9617      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9618        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9619        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9620        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9621        export_dynamic_flag_spec='${wl}-E'
9622      else
9623       case $host_os in
9624         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9625           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9626           hardcode_libdir_flag_spec='-R$libdir'
9627           ;;
9628         *)
9629           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9630           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9631           ;;
9632       esac
9633      fi
9634      ;;
9635
9636    os2*)
9637      hardcode_libdir_flag_spec='-L$libdir'
9638      hardcode_minus_L=yes
9639      allow_undefined_flag=unsupported
9640      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'
9641      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9642      ;;
9643
9644    osf3*)
9645      if test "$GCC" = yes; then
9646        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9647        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'
9648      else
9649        allow_undefined_flag=' -expect_unresolved \*'
9650        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'
9651      fi
9652      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9653      hardcode_libdir_separator=:
9654      ;;
9655
9656    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9657      if test "$GCC" = yes; then
9658        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9659        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'
9660        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9661      else
9662        allow_undefined_flag=' -expect_unresolved \*'
9663        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'
9664        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9665        $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'
9666
9667        # Both c and cxx compiler support -rpath directly
9668        hardcode_libdir_flag_spec='-rpath $libdir'
9669      fi
9670      hardcode_libdir_separator=:
9671      ;;
9672
9673    solaris*)
9674      no_undefined_flag=' -z text'
9675      if test "$GCC" = yes; then
9676        wlarc='${wl}'
9677        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9678        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9679          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9680      else
9681        wlarc=''
9682        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9684        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9685      fi
9686      hardcode_libdir_flag_spec='-R$libdir'
9687      hardcode_shlibpath_var=no
9688      case $host_os in
9689      solaris2.[0-5] | solaris2.[0-5].*) ;;
9690      *)
9691        # The compiler driver will combine linker options so we
9692        # cannot just pass the convience library names through
9693        # without $wl, iff we do not link with $LD.
9694        # Luckily, gcc supports the same syntax we need for Sun Studio.
9695        # Supported since Solaris 2.6 (maybe 2.5.1?)
9696        case $wlarc in
9697        '')
9698          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9699        *)
9700          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' ;;
9701        esac ;;
9702      esac
9703      link_all_deplibs=yes
9704      ;;
9705
9706    sunos4*)
9707      if test "x$host_vendor" = xsequent; then
9708        # Use $CC to link under sequent, because it throws in some extra .o
9709        # files that make .init and .fini sections work.
9710        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9711      else
9712        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9713      fi
9714      hardcode_libdir_flag_spec='-L$libdir'
9715      hardcode_direct=yes
9716      hardcode_minus_L=yes
9717      hardcode_shlibpath_var=no
9718      ;;
9719
9720    sysv4)
9721      case $host_vendor in
9722        sni)
9723          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9724          hardcode_direct=yes # is this really true???
9725        ;;
9726        siemens)
9727          ## LD is ld it makes a PLAMLIB
9728          ## CC just makes a GrossModule.
9729          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9730          reload_cmds='$CC -r -o $output$reload_objs'
9731          hardcode_direct=no
9732        ;;
9733        motorola)
9734          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9735          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9736        ;;
9737      esac
9738      runpath_var='LD_RUN_PATH'
9739      hardcode_shlibpath_var=no
9740      ;;
9741
9742    sysv4.3*)
9743      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9744      hardcode_shlibpath_var=no
9745      export_dynamic_flag_spec='-Bexport'
9746      ;;
9747
9748    sysv4*MP*)
9749      if test -d /usr/nec; then
9750        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9751        hardcode_shlibpath_var=no
9752        runpath_var=LD_RUN_PATH
9753        hardcode_runpath_var=yes
9754        ld_shlibs=yes
9755      fi
9756      ;;
9757
9758    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9759      no_undefined_flag='${wl}-z,text'
9760      archive_cmds_need_lc=no
9761      hardcode_shlibpath_var=no
9762      runpath_var='LD_RUN_PATH'
9763
9764      if test "$GCC" = yes; then
9765        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9766        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9767      else
9768        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9769        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9770      fi
9771      ;;
9772
9773    sysv5* | sco3.2v5* | sco5v6*)
9774      # Note: We can NOT use -z defs as we might desire, because we do not
9775      # link with -lc, and that would cause any symbols used from libc to
9776      # always be unresolved, which means just about no library would
9777      # ever link correctly.  If we're not using GNU ld we use -z text
9778      # though, which does catch some bad symbols but isn't as heavy-handed
9779      # as -z defs.
9780      no_undefined_flag='${wl}-z,text'
9781      allow_undefined_flag='${wl}-z,nodefs'
9782      archive_cmds_need_lc=no
9783      hardcode_shlibpath_var=no
9784      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9785      hardcode_libdir_separator=':'
9786      link_all_deplibs=yes
9787      export_dynamic_flag_spec='${wl}-Bexport'
9788      runpath_var='LD_RUN_PATH'
9789
9790      if test "$GCC" = yes; then
9791        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9792        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9793      else
9794        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9795        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9796      fi
9797      ;;
9798
9799    uts4*)
9800      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9801      hardcode_libdir_flag_spec='-L$libdir'
9802      hardcode_shlibpath_var=no
9803      ;;
9804
9805    *)
9806      ld_shlibs=no
9807      ;;
9808    esac
9809  fi
9810
9811echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9812echo "${ECHO_T}$ld_shlibs" >&6
9813test "$ld_shlibs" = no && can_build_shared=no
9814
9815#
9816# Do we need to explicitly link libc?
9817#
9818case "x$archive_cmds_need_lc" in
9819x|xyes)
9820  # Assume -lc should be added
9821  archive_cmds_need_lc=yes
9822
9823  if test "$enable_shared" = yes && test "$GCC" = yes; then
9824    case $archive_cmds in
9825    *'~'*)
9826      # FIXME: we may have to deal with multi-command sequences.
9827      ;;
9828    '$CC '*)
9829      # Test whether the compiler implicitly links with -lc since on some
9830      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9831      # to ld, don't add -lc before -lgcc.
9832      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9833echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9834      $rm conftest*
9835      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9836
9837      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9838  (eval $ac_compile) 2>&5
9839  ac_status=$?
9840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841  (exit $ac_status); } 2>conftest.err; then
9842        soname=conftest
9843        lib=conftest
9844        libobjs=conftest.$ac_objext
9845        deplibs=
9846        wl=$lt_prog_compiler_wl
9847        pic_flag=$lt_prog_compiler_pic
9848        compiler_flags=-v
9849        linker_flags=-v
9850        verstring=
9851        output_objdir=.
9852        libname=conftest
9853        lt_save_allow_undefined_flag=$allow_undefined_flag
9854        allow_undefined_flag=
9855        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9856  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9857  ac_status=$?
9858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859  (exit $ac_status); }
9860        then
9861          archive_cmds_need_lc=no
9862        else
9863          archive_cmds_need_lc=yes
9864        fi
9865        allow_undefined_flag=$lt_save_allow_undefined_flag
9866      else
9867        cat conftest.err 1>&5
9868      fi
9869      $rm conftest*
9870      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9871echo "${ECHO_T}$archive_cmds_need_lc" >&6
9872      ;;
9873    esac
9874  fi
9875  ;;
9876esac
9877
9878echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9879echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9880library_names_spec=
9881libname_spec='lib$name'
9882soname_spec=
9883shrext_cmds=".so"
9884postinstall_cmds=
9885postuninstall_cmds=
9886finish_cmds=
9887finish_eval=
9888shlibpath_var=
9889shlibpath_overrides_runpath=unknown
9890version_type=none
9891dynamic_linker="$host_os ld.so"
9892sys_lib_dlsearch_path_spec="/lib /usr/lib"
9893if test "$GCC" = yes; then
9894  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9895  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9896    # if the path contains ";" then we assume it to be the separator
9897    # otherwise default to the standard path separator (i.e. ":") - it is
9898    # assumed that no part of a normal pathname contains ";" but that should
9899    # okay in the real world where ";" in dirpaths is itself problematic.
9900    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9901  else
9902    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9903  fi
9904else
9905  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9906fi
9907need_lib_prefix=unknown
9908hardcode_into_libs=no
9909
9910# when you set need_version to no, make sure it does not cause -set_version
9911# flags to be left without arguments
9912need_version=unknown
9913
9914case $host_os in
9915aix3*)
9916  version_type=linux
9917  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9918  shlibpath_var=LIBPATH
9919
9920  # AIX 3 has no versioning support, so we append a major version to the name.
9921  soname_spec='${libname}${release}${shared_ext}$major'
9922  ;;
9923
9924aix4* | aix5*)
9925  version_type=linux
9926  need_lib_prefix=no
9927  need_version=no
9928  hardcode_into_libs=yes
9929  if test "$host_cpu" = ia64; then
9930    # AIX 5 supports IA64
9931    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9932    shlibpath_var=LD_LIBRARY_PATH
9933  else
9934    # With GCC up to 2.95.x, collect2 would create an import file
9935    # for dependence libraries.  The import file would start with
9936    # the line `#! .'.  This would cause the generated library to
9937    # depend on `.', always an invalid library.  This was fixed in
9938    # development snapshots of GCC prior to 3.0.
9939    case $host_os in
9940      aix4 | aix4.[01] | aix4.[01].*)
9941      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9942           echo ' yes '
9943           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9944        :
9945      else
9946        can_build_shared=no
9947      fi
9948      ;;
9949    esac
9950    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9951    # soname into executable. Probably we can add versioning support to
9952    # collect2, so additional links can be useful in future.
9953    if test "$aix_use_runtimelinking" = yes; then
9954      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9955      # instead of lib<name>.a to let people know that these are not
9956      # typical AIX shared libraries.
9957      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958    else
9959      # We preserve .a as extension for shared libraries through AIX4.2
9960      # and later when we are not doing run time linking.
9961      library_names_spec='${libname}${release}.a $libname.a'
9962      soname_spec='${libname}${release}${shared_ext}$major'
9963    fi
9964    shlibpath_var=LIBPATH
9965  fi
9966  ;;
9967
9968amigaos*)
9969  library_names_spec='$libname.ixlibrary $libname.a'
9970  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9971  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'
9972  ;;
9973
9974beos*)
9975  library_names_spec='${libname}${shared_ext}'
9976  dynamic_linker="$host_os ld.so"
9977  shlibpath_var=LIBRARY_PATH
9978  ;;
9979
9980bsdi[45]*)
9981  version_type=linux
9982  need_version=no
9983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984  soname_spec='${libname}${release}${shared_ext}$major'
9985  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9986  shlibpath_var=LD_LIBRARY_PATH
9987  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9988  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9989  # the default ld.so.conf also contains /usr/contrib/lib and
9990  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9991  # libtool to hard-code these into programs
9992  ;;
9993
9994cygwin* | mingw* | pw32*)
9995  version_type=windows
9996  shrext_cmds=".dll"
9997  need_version=no
9998  need_lib_prefix=no
9999
10000  case $GCC,$host_os in
10001  yes,cygwin* | yes,mingw* | yes,pw32*)
10002    library_names_spec='$libname.dll.a'
10003    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10004    postinstall_cmds='base_file=`basename \${file}`~
10005      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10006      dldir=$destdir/`dirname \$dlpath`~
10007      test -d \$dldir || mkdir -p \$dldir~
10008      $install_prog $dir/$dlname \$dldir/$dlname~
10009      chmod a+x \$dldir/$dlname'
10010    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10011      dlpath=$dir/\$dldll~
10012       $rm \$dlpath'
10013    shlibpath_overrides_runpath=yes
10014
10015    case $host_os in
10016    cygwin*)
10017      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10018      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10019      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10020      ;;
10021    mingw*)
10022      # MinGW DLLs use traditional 'lib' prefix
10023      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10024      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10025      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10026        # It is most probably a Windows format PATH printed by
10027        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10028        # path with ; separators, and with drive letters. We can handle the
10029        # drive letters (cygwin fileutils understands them), so leave them,
10030        # especially as we might pass files found there to a mingw objdump,
10031        # which wouldn't understand a cygwinified path. Ahh.
10032        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10033      else
10034        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10035      fi
10036      ;;
10037    pw32*)
10038      # pw32 DLLs use 'pw' prefix rather than 'lib'
10039      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10040      ;;
10041    esac
10042    ;;
10043
10044  *)
10045    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10046    ;;
10047  esac
10048  dynamic_linker='Win32 ld.exe'
10049  # FIXME: first we should search . and the directory the executable is in
10050  shlibpath_var=PATH
10051  ;;
10052
10053darwin* | rhapsody*)
10054  dynamic_linker="$host_os dyld"
10055  version_type=darwin
10056  need_lib_prefix=no
10057  need_version=no
10058  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10059  soname_spec='${libname}${release}${major}$shared_ext'
10060  shlibpath_overrides_runpath=yes
10061  shlibpath_var=DYLD_LIBRARY_PATH
10062  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10063  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10064  if test "$GCC" = yes; then
10065    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"`
10066  else
10067    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10068  fi
10069  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10070  ;;
10071
10072dgux*)
10073  version_type=linux
10074  need_lib_prefix=no
10075  need_version=no
10076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10077  soname_spec='${libname}${release}${shared_ext}$major'
10078  shlibpath_var=LD_LIBRARY_PATH
10079  ;;
10080
10081freebsd1*)
10082  dynamic_linker=no
10083  ;;
10084
10085kfreebsd*-gnu)
10086  version_type=linux
10087  need_lib_prefix=no
10088  need_version=no
10089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10090  soname_spec='${libname}${release}${shared_ext}$major'
10091  shlibpath_var=LD_LIBRARY_PATH
10092  shlibpath_overrides_runpath=no
10093  hardcode_into_libs=yes
10094  dynamic_linker='GNU ld.so'
10095  ;;
10096
10097freebsd* | dragonfly*)
10098  # DragonFly does not have aout.  When/if they implement a new
10099  # versioning mechanism, adjust this.
10100  if test -x /usr/bin/objformat; then
10101    objformat=`/usr/bin/objformat`
10102  else
10103    case $host_os in
10104    freebsd[123]*) objformat=aout ;;
10105    *) objformat=elf ;;
10106    esac
10107  fi
10108  version_type=freebsd-$objformat
10109  case $version_type in
10110    freebsd-elf*)
10111      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10112      need_version=no
10113      need_lib_prefix=no
10114      ;;
10115    freebsd-*)
10116      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10117      need_version=yes
10118      ;;
10119  esac
10120  shlibpath_var=LD_LIBRARY_PATH
10121  case $host_os in
10122  freebsd2*)
10123    shlibpath_overrides_runpath=yes
10124    ;;
10125  freebsd3.[01]* | freebsdelf3.[01]*)
10126    shlibpath_overrides_runpath=yes
10127    hardcode_into_libs=yes
10128    ;;
10129  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10130  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10131    shlibpath_overrides_runpath=no
10132    hardcode_into_libs=yes
10133    ;;
10134  freebsd*) # from 4.6 on
10135    shlibpath_overrides_runpath=yes
10136    hardcode_into_libs=yes
10137    ;;
10138  esac
10139  ;;
10140
10141gnu*)
10142  version_type=linux
10143  need_lib_prefix=no
10144  need_version=no
10145  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10146  soname_spec='${libname}${release}${shared_ext}$major'
10147  shlibpath_var=LD_LIBRARY_PATH
10148  hardcode_into_libs=yes
10149  ;;
10150
10151hpux9* | hpux10* | hpux11*)
10152  # Give a soname corresponding to the major version so that dld.sl refuses to
10153  # link against other versions.
10154  version_type=sunos
10155  need_lib_prefix=no
10156  need_version=no
10157  case $host_cpu in
10158  ia64*)
10159    shrext_cmds='.so'
10160    hardcode_into_libs=yes
10161    dynamic_linker="$host_os dld.so"
10162    shlibpath_var=LD_LIBRARY_PATH
10163    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10164    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165    soname_spec='${libname}${release}${shared_ext}$major'
10166    if test "X$HPUX_IA64_MODE" = X32; then
10167      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10168    else
10169      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10170    fi
10171    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10172    ;;
10173   hppa*64*)
10174     shrext_cmds='.sl'
10175     hardcode_into_libs=yes
10176     dynamic_linker="$host_os dld.sl"
10177     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10178     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10179     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180     soname_spec='${libname}${release}${shared_ext}$major'
10181     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10182     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10183     ;;
10184   *)
10185    shrext_cmds='.sl'
10186    dynamic_linker="$host_os dld.sl"
10187    shlibpath_var=SHLIB_PATH
10188    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10189    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10190    soname_spec='${libname}${release}${shared_ext}$major'
10191    ;;
10192  esac
10193  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10194  postinstall_cmds='chmod 555 $lib'
10195  ;;
10196
10197interix3*)
10198  version_type=linux
10199  need_lib_prefix=no
10200  need_version=no
10201  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10202  soname_spec='${libname}${release}${shared_ext}$major'
10203  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10204  shlibpath_var=LD_LIBRARY_PATH
10205  shlibpath_overrides_runpath=no
10206  hardcode_into_libs=yes
10207  ;;
10208
10209irix5* | irix6* | nonstopux*)
10210  case $host_os in
10211    nonstopux*) version_type=nonstopux ;;
10212    *)
10213        if test "$lt_cv_prog_gnu_ld" = yes; then
10214                version_type=linux
10215        else
10216                version_type=irix
10217        fi ;;
10218  esac
10219  need_lib_prefix=no
10220  need_version=no
10221  soname_spec='${libname}${release}${shared_ext}$major'
10222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10223  case $host_os in
10224  irix5* | nonstopux*)
10225    libsuff= shlibsuff=
10226    ;;
10227  *)
10228    case $LD in # libtool.m4 will add one of these switches to LD
10229    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10230      libsuff= shlibsuff= libmagic=32-bit;;
10231    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10232      libsuff=32 shlibsuff=N32 libmagic=N32;;
10233    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10234      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10235    *) libsuff= shlibsuff= libmagic=never-match;;
10236    esac
10237    ;;
10238  esac
10239  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10240  shlibpath_overrides_runpath=no
10241  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10242  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10243  hardcode_into_libs=yes
10244  ;;
10245
10246# No shared lib support for Linux oldld, aout, or coff.
10247linux*oldld* | linux*aout* | linux*coff*)
10248  dynamic_linker=no
10249  ;;
10250
10251# This must be Linux ELF.
10252linux*)
10253  version_type=linux
10254  need_lib_prefix=no
10255  need_version=no
10256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257  soname_spec='${libname}${release}${shared_ext}$major'
10258  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10259  shlibpath_var=LD_LIBRARY_PATH
10260  shlibpath_overrides_runpath=no
10261  # This implies no fast_install, which is unacceptable.
10262  # Some rework will be needed to allow for fast_install
10263  # before this can be enabled.
10264  hardcode_into_libs=yes
10265
10266  # Append ld.so.conf contents to the search path
10267  if test -f /etc/ld.so.conf; then
10268    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' ' '`
10269    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10270  fi
10271
10272  # We used to test for /lib/ld.so.1 and disable shared libraries on
10273  # powerpc, because MkLinux only supported shared libraries with the
10274  # GNU dynamic linker.  Since this was broken with cross compilers,
10275  # most powerpc-linux boxes support dynamic linking these days and
10276  # people can always --disable-shared, the test was removed, and we
10277  # assume the GNU/Linux dynamic linker is in use.
10278  dynamic_linker='GNU/Linux ld.so'
10279  ;;
10280
10281knetbsd*-gnu)
10282  version_type=linux
10283  need_lib_prefix=no
10284  need_version=no
10285  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10286  soname_spec='${libname}${release}${shared_ext}$major'
10287  shlibpath_var=LD_LIBRARY_PATH
10288  shlibpath_overrides_runpath=no
10289  hardcode_into_libs=yes
10290  dynamic_linker='GNU ld.so'
10291  ;;
10292
10293netbsd*)
10294  version_type=sunos
10295  need_lib_prefix=no
10296  need_version=no
10297  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10298    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10299    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10300    dynamic_linker='NetBSD (a.out) ld.so'
10301  else
10302    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10303    soname_spec='${libname}${release}${shared_ext}$major'
10304    dynamic_linker='NetBSD ld.elf_so'
10305  fi
10306  shlibpath_var=LD_LIBRARY_PATH
10307  shlibpath_overrides_runpath=yes
10308  hardcode_into_libs=yes
10309  ;;
10310
10311newsos6)
10312  version_type=linux
10313  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10314  shlibpath_var=LD_LIBRARY_PATH
10315  shlibpath_overrides_runpath=yes
10316  ;;
10317
10318nto-qnx*)
10319  version_type=linux
10320  need_lib_prefix=no
10321  need_version=no
10322  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10323  soname_spec='${libname}${release}${shared_ext}$major'
10324  shlibpath_var=LD_LIBRARY_PATH
10325  shlibpath_overrides_runpath=yes
10326  ;;
10327
10328openbsd*)
10329  version_type=sunos
10330  sys_lib_dlsearch_path_spec="/usr/lib"
10331  need_lib_prefix=no
10332  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10333  case $host_os in
10334    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10335    *)                         need_version=no  ;;
10336  esac
10337  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10338  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10339  shlibpath_var=LD_LIBRARY_PATH
10340  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10341    case $host_os in
10342      openbsd2.[89] | openbsd2.[89].*)
10343        shlibpath_overrides_runpath=no
10344        ;;
10345      *)
10346        shlibpath_overrides_runpath=yes
10347        ;;
10348      esac
10349  else
10350    shlibpath_overrides_runpath=yes
10351  fi
10352  ;;
10353
10354os2*)
10355  libname_spec='$name'
10356  shrext_cmds=".dll"
10357  need_lib_prefix=no
10358  library_names_spec='$libname${shared_ext} $libname.a'
10359  dynamic_linker='OS/2 ld.exe'
10360  shlibpath_var=LIBPATH
10361  ;;
10362
10363osf3* | osf4* | osf5*)
10364  version_type=osf
10365  need_lib_prefix=no
10366  need_version=no
10367  soname_spec='${libname}${release}${shared_ext}$major'
10368  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369  shlibpath_var=LD_LIBRARY_PATH
10370  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10371  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10372  ;;
10373
10374solaris*)
10375  version_type=linux
10376  need_lib_prefix=no
10377  need_version=no
10378  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379  soname_spec='${libname}${release}${shared_ext}$major'
10380  shlibpath_var=LD_LIBRARY_PATH
10381  shlibpath_overrides_runpath=yes
10382  hardcode_into_libs=yes
10383  # ldd complains unless libraries are executable
10384  postinstall_cmds='chmod +x $lib'
10385  ;;
10386
10387sunos4*)
10388  version_type=sunos
10389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10390  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10391  shlibpath_var=LD_LIBRARY_PATH
10392  shlibpath_overrides_runpath=yes
10393  if test "$with_gnu_ld" = yes; then
10394    need_lib_prefix=no
10395  fi
10396  need_version=yes
10397  ;;
10398
10399sysv4 | sysv4.3*)
10400  version_type=linux
10401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10402  soname_spec='${libname}${release}${shared_ext}$major'
10403  shlibpath_var=LD_LIBRARY_PATH
10404  case $host_vendor in
10405    sni)
10406      shlibpath_overrides_runpath=no
10407      need_lib_prefix=no
10408      export_dynamic_flag_spec='${wl}-Blargedynsym'
10409      runpath_var=LD_RUN_PATH
10410      ;;
10411    siemens)
10412      need_lib_prefix=no
10413      ;;
10414    motorola)
10415      need_lib_prefix=no
10416      need_version=no
10417      shlibpath_overrides_runpath=no
10418      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10419      ;;
10420  esac
10421  ;;
10422
10423sysv4*MP*)
10424  if test -d /usr/nec ;then
10425    version_type=linux
10426    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10427    soname_spec='$libname${shared_ext}.$major'
10428    shlibpath_var=LD_LIBRARY_PATH
10429  fi
10430  ;;
10431
10432sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10433  version_type=freebsd-elf
10434  need_lib_prefix=no
10435  need_version=no
10436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10437  soname_spec='${libname}${release}${shared_ext}$major'
10438  shlibpath_var=LD_LIBRARY_PATH
10439  hardcode_into_libs=yes
10440  if test "$with_gnu_ld" = yes; then
10441    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10442    shlibpath_overrides_runpath=no
10443  else
10444    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10445    shlibpath_overrides_runpath=yes
10446    case $host_os in
10447      sco3.2v5*)
10448        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10449        ;;
10450    esac
10451  fi
10452  sys_lib_dlsearch_path_spec='/usr/lib'
10453  ;;
10454
10455uts4*)
10456  version_type=linux
10457  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458  soname_spec='${libname}${release}${shared_ext}$major'
10459  shlibpath_var=LD_LIBRARY_PATH
10460  ;;
10461
10462*)
10463  dynamic_linker=no
10464  ;;
10465esac
10466echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10467echo "${ECHO_T}$dynamic_linker" >&6
10468test "$dynamic_linker" = no && can_build_shared=no
10469
10470variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10471if test "$GCC" = yes; then
10472  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10473fi
10474
10475echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10476echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10477hardcode_action=
10478if test -n "$hardcode_libdir_flag_spec" || \
10479   test -n "$runpath_var" || \
10480   test "X$hardcode_automatic" = "Xyes" ; then
10481
10482  # We can hardcode non-existant directories.
10483  if test "$hardcode_direct" != no &&
10484     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10485     # have to relink, otherwise we might link with an installed library
10486     # when we should be linking with a yet-to-be-installed one
10487     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10488     test "$hardcode_minus_L" != no; then
10489    # Linking always hardcodes the temporary library directory.
10490    hardcode_action=relink
10491  else
10492    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10493    hardcode_action=immediate
10494  fi
10495else
10496  # We cannot hardcode anything, or else we can only hardcode existing
10497  # directories.
10498  hardcode_action=unsupported
10499fi
10500echo "$as_me:$LINENO: result: $hardcode_action" >&5
10501echo "${ECHO_T}$hardcode_action" >&6
10502
10503if test "$hardcode_action" = relink; then
10504  # Fast installation is not supported
10505  enable_fast_install=no
10506elif test "$shlibpath_overrides_runpath" = yes ||
10507     test "$enable_shared" = no; then
10508  # Fast installation is not necessary
10509  enable_fast_install=needless
10510fi
10511
10512striplib=
10513old_striplib=
10514echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10515echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10516if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10517  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10518  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10519  echo "$as_me:$LINENO: result: yes" >&5
10520echo "${ECHO_T}yes" >&6
10521else
10522# FIXME - insert some real tests, host_os isn't really good enough
10523  case $host_os in
10524   darwin*)
10525       if test -n "$STRIP" ; then
10526         striplib="$STRIP -x"
10527         echo "$as_me:$LINENO: result: yes" >&5
10528echo "${ECHO_T}yes" >&6
10529       else
10530  echo "$as_me:$LINENO: result: no" >&5
10531echo "${ECHO_T}no" >&6
10532fi
10533       ;;
10534   *)
10535  echo "$as_me:$LINENO: result: no" >&5
10536echo "${ECHO_T}no" >&6
10537    ;;
10538  esac
10539fi
10540
10541if test "x$enable_dlopen" != xyes; then
10542  enable_dlopen=unknown
10543  enable_dlopen_self=unknown
10544  enable_dlopen_self_static=unknown
10545else
10546  lt_cv_dlopen=no
10547  lt_cv_dlopen_libs=
10548
10549  case $host_os in
10550  beos*)
10551    lt_cv_dlopen="load_add_on"
10552    lt_cv_dlopen_libs=
10553    lt_cv_dlopen_self=yes
10554    ;;
10555
10556  mingw* | pw32*)
10557    lt_cv_dlopen="LoadLibrary"
10558    lt_cv_dlopen_libs=
10559   ;;
10560
10561  cygwin*)
10562    lt_cv_dlopen="dlopen"
10563    lt_cv_dlopen_libs=
10564   ;;
10565
10566  darwin*)
10567  # if libdl is installed we need to link against it
10568    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10569echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10570if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10571  echo $ECHO_N "(cached) $ECHO_C" >&6
10572else
10573  ac_check_lib_save_LIBS=$LIBS
10574LIBS="-ldl  $LIBS"
10575cat >conftest.$ac_ext <<_ACEOF
10576/* confdefs.h.  */
10577_ACEOF
10578cat confdefs.h >>conftest.$ac_ext
10579cat >>conftest.$ac_ext <<_ACEOF
10580/* end confdefs.h.  */
10581
10582/* Override any gcc2 internal prototype to avoid an error.  */
10583#ifdef __cplusplus
10584extern "C"
10585#endif
10586/* We use char because int might match the return type of a gcc2
10587   builtin and then its argument prototype would still apply.  */
10588char dlopen ();
10589int
10590main ()
10591{
10592dlopen ();
10593  ;
10594  return 0;
10595}
10596_ACEOF
10597rm -f conftest.$ac_objext conftest$ac_exeext
10598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10599  (eval $ac_link) 2>conftest.er1
10600  ac_status=$?
10601  grep -v '^ *+' conftest.er1 >conftest.err
10602  rm -f conftest.er1
10603  cat conftest.err >&5
10604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605  (exit $ac_status); } &&
10606         { ac_try='test -z "$ac_c_werror_flag"
10607                         || test ! -s conftest.err'
10608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609  (eval $ac_try) 2>&5
10610  ac_status=$?
10611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612  (exit $ac_status); }; } &&
10613         { ac_try='test -s conftest$ac_exeext'
10614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10615  (eval $ac_try) 2>&5
10616  ac_status=$?
10617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618  (exit $ac_status); }; }; then
10619  ac_cv_lib_dl_dlopen=yes
10620else
10621  echo "$as_me: failed program was:" >&5
10622sed 's/^/| /' conftest.$ac_ext >&5
10623
10624ac_cv_lib_dl_dlopen=no
10625fi
10626rm -f conftest.err conftest.$ac_objext \
10627      conftest$ac_exeext conftest.$ac_ext
10628LIBS=$ac_check_lib_save_LIBS
10629fi
10630echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10631echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10632if test $ac_cv_lib_dl_dlopen = yes; then
10633  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10634else
10635
10636    lt_cv_dlopen="dyld"
10637    lt_cv_dlopen_libs=
10638    lt_cv_dlopen_self=yes
10639
10640fi
10641
10642   ;;
10643
10644  *)
10645    echo "$as_me:$LINENO: checking for shl_load" >&5
10646echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10647if test "${ac_cv_func_shl_load+set}" = set; then
10648  echo $ECHO_N "(cached) $ECHO_C" >&6
10649else
10650  cat >conftest.$ac_ext <<_ACEOF
10651/* confdefs.h.  */
10652_ACEOF
10653cat confdefs.h >>conftest.$ac_ext
10654cat >>conftest.$ac_ext <<_ACEOF
10655/* end confdefs.h.  */
10656/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10657   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10658#define shl_load innocuous_shl_load
10659
10660/* System header to define __stub macros and hopefully few prototypes,
10661    which can conflict with char shl_load (); below.
10662    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10663    <limits.h> exists even on freestanding compilers.  */
10664
10665#ifdef __STDC__
10666# include <limits.h>
10667#else
10668# include <assert.h>
10669#endif
10670
10671#undef shl_load
10672
10673/* Override any gcc2 internal prototype to avoid an error.  */
10674#ifdef __cplusplus
10675extern "C"
10676{
10677#endif
10678/* We use char because int might match the return type of a gcc2
10679   builtin and then its argument prototype would still apply.  */
10680char shl_load ();
10681/* The GNU C library defines this for functions which it implements
10682    to always fail with ENOSYS.  Some functions are actually named
10683    something starting with __ and the normal name is an alias.  */
10684#if defined (__stub_shl_load) || defined (__stub___shl_load)
10685choke me
10686#else
10687char (*f) () = shl_load;
10688#endif
10689#ifdef __cplusplus
10690}
10691#endif
10692
10693int
10694main ()
10695{
10696return f != shl_load;
10697  ;
10698  return 0;
10699}
10700_ACEOF
10701rm -f conftest.$ac_objext conftest$ac_exeext
10702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10703  (eval $ac_link) 2>conftest.er1
10704  ac_status=$?
10705  grep -v '^ *+' conftest.er1 >conftest.err
10706  rm -f conftest.er1
10707  cat conftest.err >&5
10708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709  (exit $ac_status); } &&
10710         { ac_try='test -z "$ac_c_werror_flag"
10711                         || test ! -s conftest.err'
10712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713  (eval $ac_try) 2>&5
10714  ac_status=$?
10715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716  (exit $ac_status); }; } &&
10717         { ac_try='test -s conftest$ac_exeext'
10718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10719  (eval $ac_try) 2>&5
10720  ac_status=$?
10721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722  (exit $ac_status); }; }; then
10723  ac_cv_func_shl_load=yes
10724else
10725  echo "$as_me: failed program was:" >&5
10726sed 's/^/| /' conftest.$ac_ext >&5
10727
10728ac_cv_func_shl_load=no
10729fi
10730rm -f conftest.err conftest.$ac_objext \
10731      conftest$ac_exeext conftest.$ac_ext
10732fi
10733echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10734echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10735if test $ac_cv_func_shl_load = yes; then
10736  lt_cv_dlopen="shl_load"
10737else
10738  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10739echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10740if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10741  echo $ECHO_N "(cached) $ECHO_C" >&6
10742else
10743  ac_check_lib_save_LIBS=$LIBS
10744LIBS="-ldld  $LIBS"
10745cat >conftest.$ac_ext <<_ACEOF
10746/* confdefs.h.  */
10747_ACEOF
10748cat confdefs.h >>conftest.$ac_ext
10749cat >>conftest.$ac_ext <<_ACEOF
10750/* end confdefs.h.  */
10751