source: trunk/configure @ 1029

Last change on this file since 1029 was 1027, checked in by pbelotti, 6 years ago

ran autotools

File size: 783.9 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 "$CXX" 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          *)
4729            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4730echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4731            ;;
4732        esac
4733      fi
4734    ;;
4735    *-aix*)
4736      coin_disable_shared=yes
4737      platform=AIX
4738      if test x"$enable_shared" = xyes; then
4739        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
4740echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
4741      fi
4742    ;;
4743  esac
4744fi
4745if test x"$coin_disable_shared" = xyes; then
4746  if test x"$enable_shared" = xyes; then
4747    :
4748  else
4749    # we don't disable shared, because it was not selected anyway
4750    coin_disable_shared=no
4751  fi
4752  enable_shared=no
4753fi
4754# By default, we only want the shared objects to be compiled
4755# Check whether --enable-static or --disable-static was given.
4756if test "${enable_static+set}" = set; then
4757  enableval="$enable_static"
4758  p=${PACKAGE-default}
4759    case $enableval in
4760    yes) enable_static=yes ;;
4761    no) enable_static=no ;;
4762    *)
4763     enable_static=no
4764      # Look at the argument we got.  We use all the common list separators.
4765      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4766      for pkg in $enableval; do
4767        IFS="$lt_save_ifs"
4768        if test "X$pkg" = "X$p"; then
4769          enable_static=yes
4770        fi
4771      done
4772      IFS="$lt_save_ifs"
4773      ;;
4774    esac
4775else
4776  enable_static=no
4777fi;
4778
4779
4780
4781
4782# Initialize automake
4783echo "$as_me:$LINENO: checking for egrep" >&5
4784echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4785if test "${ac_cv_prog_egrep+set}" = set; then
4786  echo $ECHO_N "(cached) $ECHO_C" >&6
4787else
4788  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4789    then ac_cv_prog_egrep='grep -E'
4790    else ac_cv_prog_egrep='egrep'
4791    fi
4792fi
4793echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4794echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4795 EGREP=$ac_cv_prog_egrep
4796
4797
4798echo "$as_me:$LINENO: checking whether ln -s works" >&5
4799echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4800LN_S=$as_ln_s
4801if test "$LN_S" = "ln -s"; then
4802  echo "$as_me:$LINENO: result: yes" >&5
4803echo "${ECHO_T}yes" >&6
4804else
4805  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4806echo "${ECHO_T}no, using $LN_S" >&6
4807fi
4808
4809am__api_version="1.9"
4810# Find a good install program.  We prefer a C program (faster),
4811# so one script is as good as another.  But avoid the broken or
4812# incompatible versions:
4813# SysV /etc/install, /usr/sbin/install
4814# SunOS /usr/etc/install
4815# IRIX /sbin/install
4816# AIX /bin/install
4817# AmigaOS /C/install, which installs bootblocks on floppy discs
4818# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4819# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4820# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4821# OS/2's system install, which has a completely different semantic
4822# ./install, which can be erroneously created by make from ./install.sh.
4823echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4824echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4825if test -z "$INSTALL"; then
4826if test "${ac_cv_path_install+set}" = set; then
4827  echo $ECHO_N "(cached) $ECHO_C" >&6
4828else
4829  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830for as_dir in $PATH
4831do
4832  IFS=$as_save_IFS
4833  test -z "$as_dir" && as_dir=.
4834  # Account for people who put trailing slashes in PATH elements.
4835case $as_dir/ in
4836  ./ | .// | /cC/* | \
4837  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4838  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4839  /usr/ucb/* ) ;;
4840  *)
4841    # OSF1 and SCO ODT 3.0 have their own names for install.
4842    # Don't use installbsd from OSF since it installs stuff as root
4843    # by default.
4844    for ac_prog in ginstall scoinst install; do
4845      for ac_exec_ext in '' $ac_executable_extensions; do
4846        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4847          if test $ac_prog = install &&
4848            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4849            # AIX install.  It has an incompatible calling convention.
4850            :
4851          elif test $ac_prog = install &&
4852            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4853            # program-specific install script used by HP pwplus--don't use.
4854            :
4855          else
4856            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4857            break 3
4858          fi
4859        fi
4860      done
4861    done
4862    ;;
4863esac
4864done
4865
4866
4867fi
4868  if test "${ac_cv_path_install+set}" = set; then
4869    INSTALL=$ac_cv_path_install
4870  else
4871    # As a last resort, use the slow shell script.  We don't cache a
4872    # path for INSTALL within a source directory, because that will
4873    # break other packages using the cache if that directory is
4874    # removed, or if the path is relative.
4875    INSTALL=$ac_install_sh
4876  fi
4877fi
4878echo "$as_me:$LINENO: result: $INSTALL" >&5
4879echo "${ECHO_T}$INSTALL" >&6
4880
4881# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4882# It thinks the first close brace ends the variable substitution.
4883test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4884
4885test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4886
4887test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4888
4889echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4890echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4891# Just in case
4892sleep 1
4893echo timestamp > conftest.file
4894# Do `set' in a subshell so we don't clobber the current shell's
4895# arguments.  Must try -L first in case configure is actually a
4896# symlink; some systems play weird games with the mod time of symlinks
4897# (eg FreeBSD returns the mod time of the symlink's containing
4898# directory).
4899if (
4900   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4901   if test "$*" = "X"; then
4902      # -L didn't work.
4903      set X `ls -t $srcdir/configure conftest.file`
4904   fi
4905   rm -f conftest.file
4906   if test "$*" != "X $srcdir/configure conftest.file" \
4907      && test "$*" != "X conftest.file $srcdir/configure"; then
4908
4909      # If neither matched, then we have a broken ls.  This can happen
4910      # if, for instance, CONFIG_SHELL is bash and it inherits a
4911      # broken ls alias from the environment.  This has actually
4912      # happened.  Such a system could not be considered "sane".
4913      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4914alias in your environment" >&5
4915echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4916alias in your environment" >&2;}
4917   { (exit 1); exit 1; }; }
4918   fi
4919
4920   test "$2" = conftest.file
4921   )
4922then
4923   # Ok.
4924   :
4925else
4926   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4927Check your system clock" >&5
4928echo "$as_me: error: newly created file is older than distributed files!
4929Check your system clock" >&2;}
4930   { (exit 1); exit 1; }; }
4931fi
4932echo "$as_me:$LINENO: result: yes" >&5
4933echo "${ECHO_T}yes" >&6
4934test "$program_prefix" != NONE &&
4935  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4936# Use a double $ so make ignores it.
4937test "$program_suffix" != NONE &&
4938  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4939# Double any \ or $.  echo might interpret backslashes.
4940# By default was `s,x,x', remove it if useless.
4941cat <<\_ACEOF >conftest.sed
4942s/[\\$]/&&/g;s/;s,x,x,$//
4943_ACEOF
4944program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4945rm conftest.sed
4946
4947# expand $ac_aux_dir to an absolute path
4948am_aux_dir=`cd $ac_aux_dir && pwd`
4949
4950test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4951# Use eval to expand $SHELL
4952if eval "$MISSING --run true"; then
4953  am_missing_run="$MISSING --run "
4954else
4955  am_missing_run=
4956  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4957echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4958fi
4959
4960if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4961  # We used to keeping the `.' as first argument, in order to
4962  # allow $(mkdir_p) to be used without argument.  As in
4963  #   $(mkdir_p) $(somedir)
4964  # where $(somedir) is conditionally defined.  However this is wrong
4965  # for two reasons:
4966  #  1. if the package is installed by a user who cannot write `.'
4967  #     make install will fail,
4968  #  2. the above comment should most certainly read
4969  #     $(mkdir_p) $(DESTDIR)$(somedir)
4970  #     so it does not work when $(somedir) is undefined and
4971  #     $(DESTDIR) is not.
4972  #  To support the latter case, we have to write
4973  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4974  #  so the `.' trick is pointless.
4975  mkdir_p='mkdir -p --'
4976else
4977  # On NextStep and OpenStep, the `mkdir' command does not
4978  # recognize any option.  It will interpret all options as
4979  # directories to create, and then abort because `.' already
4980  # exists.
4981  for d in ./-p ./--version;
4982  do
4983    test -d $d && rmdir $d
4984  done
4985  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4986  if test -f "$ac_aux_dir/mkinstalldirs"; then
4987    mkdir_p='$(mkinstalldirs)'
4988  else
4989    mkdir_p='$(install_sh) -d'
4990  fi
4991fi
4992
4993for ac_prog in gawk mawk nawk awk
4994do
4995  # Extract the first word of "$ac_prog", so it can be a program name with args.
4996set dummy $ac_prog; ac_word=$2
4997echo "$as_me:$LINENO: checking for $ac_word" >&5
4998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4999if test "${ac_cv_prog_AWK+set}" = set; then
5000  echo $ECHO_N "(cached) $ECHO_C" >&6
5001else
5002  if test -n "$AWK"; then
5003  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5004else
5005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006for as_dir in $PATH
5007do
5008  IFS=$as_save_IFS
5009  test -z "$as_dir" && as_dir=.
5010  for ac_exec_ext in '' $ac_executable_extensions; do
5011  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5012    ac_cv_prog_AWK="$ac_prog"
5013    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5014    break 2
5015  fi
5016done
5017done
5018
5019fi
5020fi
5021AWK=$ac_cv_prog_AWK
5022if test -n "$AWK"; then
5023  echo "$as_me:$LINENO: result: $AWK" >&5
5024echo "${ECHO_T}$AWK" >&6
5025else
5026  echo "$as_me:$LINENO: result: no" >&5
5027echo "${ECHO_T}no" >&6
5028fi
5029
5030  test -n "$AWK" && break
5031done
5032
5033echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5034echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5035set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5036if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5037  echo $ECHO_N "(cached) $ECHO_C" >&6
5038else
5039  cat >conftest.make <<\_ACEOF
5040all:
5041        @echo 'ac_maketemp="$(MAKE)"'
5042_ACEOF
5043# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5044eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5045if test -n "$ac_maketemp"; then
5046  eval ac_cv_prog_make_${ac_make}_set=yes
5047else
5048  eval ac_cv_prog_make_${ac_make}_set=no
5049fi
5050rm -f conftest.make
5051fi
5052if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5053  echo "$as_me:$LINENO: result: yes" >&5
5054echo "${ECHO_T}yes" >&6
5055  SET_MAKE=
5056else
5057  echo "$as_me:$LINENO: result: no" >&5
5058echo "${ECHO_T}no" >&6
5059  SET_MAKE="MAKE=${MAKE-make}"
5060fi
5061
5062rm -rf .tst 2>/dev/null
5063mkdir .tst 2>/dev/null
5064if test -d .tst; then
5065  am__leading_dot=.
5066else
5067  am__leading_dot=_
5068fi
5069rmdir .tst 2>/dev/null
5070
5071DEPDIR="${am__leading_dot}deps"
5072
5073          ac_config_commands="$ac_config_commands depfiles"
5074
5075
5076am_make=${MAKE-make}
5077cat > confinc << 'END'
5078am__doit:
5079        @echo done
5080.PHONY: am__doit
5081END
5082# If we don't find an include directive, just comment out the code.
5083echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5084echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5085am__include="#"
5086am__quote=
5087_am_result=none
5088# First try GNU make style include.
5089echo "include confinc" > confmf
5090# We grep out `Entering directory' and `Leaving directory'
5091# messages which can occur if `w' ends up in MAKEFLAGS.
5092# In particular we don't look at `^make:' because GNU make might
5093# be invoked under some other name (usually "gmake"), in which
5094# case it prints its new name instead of `make'.
5095if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5096   am__include=include
5097   am__quote=
5098   _am_result=GNU
5099fi
5100# Now try BSD make style include.
5101if test "$am__include" = "#"; then
5102   echo '.include "confinc"' > confmf
5103   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5104      am__include=.include
5105      am__quote="\""
5106      _am_result=BSD
5107   fi
5108fi
5109
5110
5111echo "$as_me:$LINENO: result: $_am_result" >&5
5112echo "${ECHO_T}$_am_result" >&6
5113rm -f confinc confmf
5114
5115# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5116if test "${enable_dependency_tracking+set}" = set; then
5117  enableval="$enable_dependency_tracking"
5118
5119fi;
5120if test "x$enable_dependency_tracking" != xno; then
5121  am_depcomp="$ac_aux_dir/depcomp"
5122  AMDEPBACKSLASH='\'
5123fi
5124
5125
5126if test "x$enable_dependency_tracking" != xno; then
5127  AMDEP_TRUE=
5128  AMDEP_FALSE='#'
5129else
5130  AMDEP_TRUE='#'
5131  AMDEP_FALSE=
5132fi
5133
5134
5135
5136
5137
5138
5139# AC_MSG_NOTICE([Beginning automake initialisation.])
5140# Stuff for automake
5141# test to see if srcdir already configured
5142if test "`cd $srcdir && pwd`" != "`pwd`" &&
5143   test -f $srcdir/config.status; then
5144  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5145echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5146   { (exit 1); exit 1; }; }
5147fi
5148
5149# test whether we have cygpath
5150if test -z "$CYGPATH_W"; then
5151  if (cygpath --version) >/dev/null 2>/dev/null; then
5152    CYGPATH_W='cygpath -w'
5153  else
5154    CYGPATH_W=echo
5155  fi
5156fi
5157
5158
5159# Define the identity of the package.
5160 PACKAGE='couenne'
5161 VERSION='trunk'
5162
5163
5164cat >>confdefs.h <<_ACEOF
5165#define PACKAGE "$PACKAGE"
5166_ACEOF
5167
5168
5169cat >>confdefs.h <<_ACEOF
5170#define VERSION "$VERSION"
5171_ACEOF
5172
5173# Some tools Automake needs.
5174
5175ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5176
5177
5178AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5179
5180
5181AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5182
5183
5184AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5185
5186
5187MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5188
5189install_sh=${install_sh-"$am_aux_dir/install-sh"}
5190
5191# Installed binaries are usually stripped using `strip' when the user
5192# run `make install-strip'.  However `strip' might not be the right
5193# tool to use in cross-compilation environments, therefore Automake
5194# will honor the `STRIP' environment variable to overrule this program.
5195if test "$cross_compiling" != no; then
5196  if test -n "$ac_tool_prefix"; then
5197  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5198set dummy ${ac_tool_prefix}strip; ac_word=$2
5199echo "$as_me:$LINENO: checking for $ac_word" >&5
5200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5201if test "${ac_cv_prog_STRIP+set}" = set; then
5202  echo $ECHO_N "(cached) $ECHO_C" >&6
5203else
5204  if test -n "$STRIP"; then
5205  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5206else
5207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208for as_dir in $PATH
5209do
5210  IFS=$as_save_IFS
5211  test -z "$as_dir" && as_dir=.
5212  for ac_exec_ext in '' $ac_executable_extensions; do
5213  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5215    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5216    break 2
5217  fi
5218done
5219done
5220
5221fi
5222fi
5223STRIP=$ac_cv_prog_STRIP
5224if test -n "$STRIP"; then
5225  echo "$as_me:$LINENO: result: $STRIP" >&5
5226echo "${ECHO_T}$STRIP" >&6
5227else
5228  echo "$as_me:$LINENO: result: no" >&5
5229echo "${ECHO_T}no" >&6
5230fi
5231
5232fi
5233if test -z "$ac_cv_prog_STRIP"; then
5234  ac_ct_STRIP=$STRIP
5235  # Extract the first word of "strip", so it can be a program name with args.
5236set dummy strip; ac_word=$2
5237echo "$as_me:$LINENO: checking for $ac_word" >&5
5238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5239if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5240  echo $ECHO_N "(cached) $ECHO_C" >&6
5241else
5242  if test -n "$ac_ct_STRIP"; then
5243  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5244else
5245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246for as_dir in $PATH
5247do
5248  IFS=$as_save_IFS
5249  test -z "$as_dir" && as_dir=.
5250  for ac_exec_ext in '' $ac_executable_extensions; do
5251  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252    ac_cv_prog_ac_ct_STRIP="strip"
5253    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254    break 2
5255  fi
5256done
5257done
5258
5259  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5260fi
5261fi
5262ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5263if test -n "$ac_ct_STRIP"; then
5264  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5265echo "${ECHO_T}$ac_ct_STRIP" >&6
5266else
5267  echo "$as_me:$LINENO: result: no" >&5
5268echo "${ECHO_T}no" >&6
5269fi
5270
5271  STRIP=$ac_ct_STRIP
5272else
5273  STRIP="$ac_cv_prog_STRIP"
5274fi
5275
5276fi
5277INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5278
5279# We need awk for the "check" target.  The system "awk" is bad on
5280# some platforms.
5281# Always define AMTAR for backward compatibility.
5282
5283AMTAR=${AMTAR-"${am_missing_run}tar"}
5284
5285am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5286
5287
5288
5289
5290depcc="$CC"   am_compiler_list=
5291
5292echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5293echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5294if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5295  echo $ECHO_N "(cached) $ECHO_C" >&6
5296else
5297  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5298  # We make a subdir and do the tests there.  Otherwise we can end up
5299  # making bogus files that we don't know about and never remove.  For
5300  # instance it was reported that on HP-UX the gcc test will end up
5301  # making a dummy file named `D' -- because `-MD' means `put the output
5302  # in D'.
5303  mkdir conftest.dir
5304  # Copy depcomp to subdir because otherwise we won't find it if we're
5305  # using a relative directory.
5306  cp "$am_depcomp" conftest.dir
5307  cd conftest.dir
5308  # We will build objects and dependencies in a subdirectory because
5309  # it helps to detect inapplicable dependency modes.  For instance
5310  # both Tru64's cc and ICC support -MD to output dependencies as a
5311  # side effect of compilation, but ICC will put the dependencies in
5312  # the current directory while Tru64 will put them in the object
5313  # directory.
5314  mkdir sub
5315
5316  am_cv_CC_dependencies_compiler_type=none
5317  if test "$am_compiler_list" = ""; then
5318     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5319  fi
5320  for depmode in $am_compiler_list; do
5321    # Setup a source with many dependencies, because some compilers
5322    # like to wrap large dependency lists on column 80 (with \), and
5323    # we should not choose a depcomp mode which is confused by this.
5324    #
5325    # We need to recreate these files for each test, as the compiler may
5326    # overwrite some of them when testing with obscure command lines.
5327    # This happens at least with the AIX C compiler.
5328    : > sub/conftest.c
5329    for i in 1 2 3 4 5 6; do
5330      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5331      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5332      # Solaris 8's {/usr,}/bin/sh.
5333      touch sub/conftst$i.h
5334    done
5335    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5336
5337    case $depmode in
5338    nosideeffect)
5339      # after this tag, mechanisms are not by side-effect, so they'll
5340      # only be used when explicitly requested
5341      if test "x$enable_dependency_tracking" = xyes; then
5342        continue
5343      else
5344        break
5345      fi
5346      ;;
5347    none) break ;;
5348    esac
5349    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5350    # mode.  It turns out that the SunPro C++ compiler does not properly
5351    # handle `-M -o', and we need to detect this.
5352    if depmode=$depmode \
5353       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5354       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5355       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5356         >/dev/null 2>conftest.err &&
5357       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5358       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5359       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5360      # icc doesn't choke on unknown options, it will just issue warnings
5361      # or remarks (even with -Werror).  So we grep stderr for any message
5362      # that says an option was ignored or not supported.
5363      # When given -MP, icc 7.0 and 7.1 complain thusly:
5364      #   icc: Command line warning: ignoring option '-M'; no argument required
5365      # The diagnosis changed in icc 8.0:
5366      #   icc: Command line remark: option '-MP' not supported
5367      if (grep 'ignoring option' conftest.err ||
5368          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5369        am_cv_CC_dependencies_compiler_type=$depmode
5370        break
5371      fi
5372    fi
5373  done
5374
5375  cd ..
5376  rm -rf conftest.dir
5377else
5378  am_cv_CC_dependencies_compiler_type=none
5379fi
5380
5381fi
5382echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5383echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5384CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5385
5386
5387
5388if
5389  test "x$enable_dependency_tracking" != xno \
5390  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5391  am__fastdepCC_TRUE=
5392  am__fastdepCC_FALSE='#'
5393else
5394  am__fastdepCC_TRUE='#'
5395  am__fastdepCC_FALSE=
5396fi
5397
5398
5399depcc="$CXX"  am_compiler_list=
5400
5401echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5402echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5403if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5404  echo $ECHO_N "(cached) $ECHO_C" >&6
5405else
5406  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5407  # We make a subdir and do the tests there.  Otherwise we can end up
5408  # making bogus files that we don't know about and never remove.  For
5409  # instance it was reported that on HP-UX the gcc test will end up
5410  # making a dummy file named `D' -- because `-MD' means `put the output
5411  # in D'.
5412  mkdir conftest.dir
5413  # Copy depcomp to subdir because otherwise we won't find it if we're
5414  # using a relative directory.
5415  cp "$am_depcomp" conftest.dir
5416  cd conftest.dir
5417  # We will build objects and dependencies in a subdirectory because
5418  # it helps to detect inapplicable dependency modes.  For instance
5419  # both Tru64's cc and ICC support -MD to output dependencies as a
5420  # side effect of compilation, but ICC will put the dependencies in
5421  # the current directory while Tru64 will put them in the object
5422  # directory.
5423  mkdir sub
5424
5425  am_cv_CXX_dependencies_compiler_type=none
5426  if test "$am_compiler_list" = ""; then
5427     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5428  fi
5429  for depmode in $am_compiler_list; do
5430    # Setup a source with many dependencies, because some compilers
5431    # like to wrap large dependency lists on column 80 (with \), and
5432    # we should not choose a depcomp mode which is confused by this.
5433    #
5434    # We need to recreate these files for each test, as the compiler may
5435    # overwrite some of them when testing with obscure command lines.
5436    # This happens at least with the AIX C compiler.
5437    : > sub/conftest.c
5438    for i in 1 2 3 4 5 6; do
5439      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5440      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5441      # Solaris 8's {/usr,}/bin/sh.
5442      touch sub/conftst$i.h
5443    done
5444    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5445
5446    case $depmode in
5447    nosideeffect)
5448      # after this tag, mechanisms are not by side-effect, so they'll
5449      # only be used when explicitly requested
5450      if test "x$enable_dependency_tracking" = xyes; then
5451        continue
5452      else
5453        break
5454      fi
5455      ;;
5456    none) break ;;
5457    esac
5458    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5459    # mode.  It turns out that the SunPro C++ compiler does not properly
5460    # handle `-M -o', and we need to detect this.
5461    if depmode=$depmode \
5462       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5463       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5464       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5465         >/dev/null 2>conftest.err &&
5466       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5467       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5468       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5469      # icc doesn't choke on unknown options, it will just issue warnings
5470      # or remarks (even with -Werror).  So we grep stderr for any message
5471      # that says an option was ignored or not supported.
5472      # When given -MP, icc 7.0 and 7.1 complain thusly:
5473      #   icc: Command line warning: ignoring option '-M'; no argument required
5474      # The diagnosis changed in icc 8.0:
5475      #   icc: Command line remark: option '-MP' not supported
5476      if (grep 'ignoring option' conftest.err ||
5477          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5478        am_cv_CXX_dependencies_compiler_type=$depmode
5479        break
5480      fi
5481    fi
5482  done
5483
5484  cd ..
5485  rm -rf conftest.dir
5486else
5487  am_cv_CXX_dependencies_compiler_type=none
5488fi
5489
5490fi
5491echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5492echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5493CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5494
5495
5496
5497if
5498  test "x$enable_dependency_tracking" != xno \
5499  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5500  am__fastdepCXX_TRUE=
5501  am__fastdepCXX_FALSE='#'
5502else
5503  am__fastdepCXX_TRUE='#'
5504  am__fastdepCXX_FALSE=
5505fi
5506
5507
5508
5509echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5510echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5511    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5512if test "${enable_maintainer_mode+set}" = set; then
5513  enableval="$enable_maintainer_mode"
5514  USE_MAINTAINER_MODE=$enableval
5515else
5516  USE_MAINTAINER_MODE=no
5517fi;
5518  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5519echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5520
5521
5522if test $USE_MAINTAINER_MODE = yes; then
5523  MAINTAINER_MODE_TRUE=
5524  MAINTAINER_MODE_FALSE='#'
5525else
5526  MAINTAINER_MODE_TRUE='#'
5527  MAINTAINER_MODE_FALSE=
5528fi
5529
5530  MAINT=$MAINTAINER_MODE_TRUE
5531
5532
5533
5534coin_have_externals=no
5535if test "$enable_maintainer_mode" = yes; then
5536
5537  # If maintainer mode is chosen, we make sure that the correct versions
5538  # of the tools are used, and that we know where libtool.m4 is (to
5539  # recreate acinclude.m4)
5540
5541
5542  LIBTOOLM4=
5543  # Normally, $HOME
5544  AUTOTOOLS_DFLT=$HOME
5545
5546  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5547echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5548if test "${ac_cv_use_correct_autotools+set}" = set; then
5549  echo $ECHO_N "(cached) $ECHO_C" >&6
5550else
5551  ac_cv_use_correct_autotools=check
5552fi
5553echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5554echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5555
5556  if test $ac_cv_use_correct_autotools = check; then
5557    ac_cv_use_correct_autotools=yes
5558    # Check if we have autoconf
5559    # Extract the first word of "autoconf", so it can be a program name with args.
5560set dummy autoconf; ac_word=$2
5561echo "$as_me:$LINENO: checking for $ac_word" >&5
5562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5563if test "${ac_cv_prog_have_autoconf+set}" = set; then
5564  echo $ECHO_N "(cached) $ECHO_C" >&6
5565else
5566  if test -n "$have_autoconf"; then
5567  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5568else
5569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570for as_dir in $PATH
5571do
5572  IFS=$as_save_IFS
5573  test -z "$as_dir" && as_dir=.
5574  for ac_exec_ext in '' $ac_executable_extensions; do
5575  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5576    ac_cv_prog_have_autoconf="yes"
5577    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5578    break 2
5579  fi
5580done
5581done
5582
5583  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5584fi
5585fi
5586have_autoconf=$ac_cv_prog_have_autoconf
5587if test -n "$have_autoconf"; then
5588  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5589echo "${ECHO_T}$have_autoconf" >&6
5590else
5591  echo "$as_me:$LINENO: result: no" >&5
5592echo "${ECHO_T}no" >&6
5593fi
5594
5595    if test $have_autoconf = no; then
5596      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5597echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5598   { (exit 1); exit 1; }; }
5599    fi
5600
5601    # Check whether autoconf is the correct version
5602    correct_version='2.59'
5603    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5604    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5605echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5606    autoconf --version > confauto.out 2>&1
5607    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5608      echo "$as_me:$LINENO: result: yes" >&5
5609echo "${ECHO_T}yes" >&6
5610    else
5611      rm -f confauto.out
5612      echo "$as_me:$LINENO: result: no" >&5
5613echo "${ECHO_T}no" >&6
5614      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5615echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5616   { (exit 1); exit 1; }; }
5617    fi
5618    rm -f confauto.out
5619
5620    # Check if the executable autoconf is picked up from the correct location
5621    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5622echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5623    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5624    autoconf_dir=`cd $autoconf_dir; pwd`
5625    if test x$AUTOTOOLS_DIR = x; then
5626      want_dir=$AUTOTOOLS_DFLT/bin
5627    else
5628      want_dir=$AUTOTOOLS_DIR/bin
5629    fi
5630    if test $autoconf_dir = `cd $want_dir; pwd`; then
5631      echo "$as_me:$LINENO: result: yes" >&5
5632echo "${ECHO_T}yes" >&6
5633    else
5634      rm -f confauto.out
5635      echo "$as_me:$LINENO: result: no" >&5
5636echo "${ECHO_T}no" >&6
5637      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5638echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5639   { (exit 1); exit 1; }; }
5640    fi
5641
5642    # Check if we have automake
5643    # Extract the first word of "automake", so it can be a program name with args.
5644set dummy automake; ac_word=$2
5645echo "$as_me:$LINENO: checking for $ac_word" >&5
5646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5647if test "${ac_cv_prog_have_automake+set}" = set; then
5648  echo $ECHO_N "(cached) $ECHO_C" >&6
5649else
5650  if test -n "$have_automake"; then
5651  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5652else
5653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654for as_dir in $PATH
5655do
5656  IFS=$as_save_IFS
5657  test -z "$as_dir" && as_dir=.
5658  for ac_exec_ext in '' $ac_executable_extensions; do
5659  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660    ac_cv_prog_have_automake="yes"
5661    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5662    break 2
5663  fi
5664done
5665done
5666
5667  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5668fi
5669fi
5670have_automake=$ac_cv_prog_have_automake
5671if test -n "$have_automake"; then
5672  echo "$as_me:$LINENO: result: $have_automake" >&5
5673echo "${ECHO_T}$have_automake" >&6
5674else
5675  echo "$as_me:$LINENO: result: no" >&5
5676echo "${ECHO_T}no" >&6
5677fi
5678
5679    if test $have_automake = no; then
5680      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5681echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5682   { (exit 1); exit 1; }; }
5683    fi
5684
5685    # Check whether automake is the correct version
5686    correct_version='1.9.6'
5687    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5688    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5689echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5690    automake --version > confauto.out 2>&1
5691    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5692      echo "$as_me:$LINENO: result: yes" >&5
5693echo "${ECHO_T}yes" >&6
5694    else
5695      rm -f confauto.out
5696      echo "$as_me:$LINENO: result: no" >&5
5697echo "${ECHO_T}no" >&6
5698      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5699echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5700   { (exit 1); exit 1; }; }
5701    fi
5702    rm -f confauto.out
5703
5704    # Check if the executable automake is picked up from the correct location
5705    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5706echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5707    automake_dir=`which automake | sed -e 's=/automake=='`
5708    automake_dir=`cd $automake_dir; pwd`
5709    if test x$AUTOTOOLS_DIR = x; then
5710      want_dir=$AUTOTOOLS_DFLT/bin
5711    else
5712      want_dir=$AUTOTOOLS_DIR/bin
5713    fi
5714    if test $automake_dir = `cd $want_dir; pwd`; then
5715      echo "$as_me:$LINENO: result: yes" >&5
5716echo "${ECHO_T}yes" >&6
5717    else
5718      rm -f confauto.out
5719      echo "$as_me:$LINENO: result: no" >&5
5720echo "${ECHO_T}no" >&6
5721      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5722echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5723   { (exit 1); exit 1; }; }
5724    fi
5725
5726    # Check if this is the correct version of libtool (with escaped dots)
5727    if test x$AUTOTOOLS_DIR = x; then
5728      want_dir=$AUTOTOOLS_DFLT/share
5729    else
5730      want_dir=$AUTOTOOLS_DIR/share
5731    fi
5732    correct_version='1.5.22'
5733    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5734    if test -r $want_dir/libtool/ltmain.sh; then
5735  have_ltmain=yes
5736  :
5737else
5738  have_ltmain=no
5739  :
5740fi
5741
5742    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5743echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5744    if test $have_ltmain = yes; then
5745    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5746        echo "$as_me:$LINENO: result: yes" >&5
5747echo "${ECHO_T}yes" >&6
5748      else
5749        echo "$as_me:$LINENO: result: no" >&5
5750echo "${ECHO_T}no" >&6
5751        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5752echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5753   { (exit 1); exit 1; }; }
5754      fi
5755    else
5756      echo "$as_me:$LINENO: result: no" >&5
5757echo "${ECHO_T}no" >&6
5758      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5759echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5760   { (exit 1); exit 1; }; }
5761    fi
5762  fi
5763
5764  # Check if we can find the libtool file
5765  if test x$AUTOTOOLS_DIR = x; then
5766    want_dir=$AUTOTOOLS_DFLT/share
5767  else
5768    want_dir=$AUTOTOOLS_DIR/share
5769  fi
5770  if test -r $want_dir/aclocal/libtool.m4; then
5771  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5772  :
5773else
5774  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5775echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5776   { (exit 1); exit 1; }; }
5777  :
5778fi
5779
5780
5781  # Check if we have an Dependencies file
5782  if test -r $srcdir/Dependencies; then
5783    coin_have_externals=yes
5784  fi
5785  # Check if subversion is installed and understands https
5786  # Extract the first word of "svn", so it can be a program name with args.
5787set dummy svn; ac_word=$2
5788echo "$as_me:$LINENO: checking for $ac_word" >&5
5789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5790if test "${ac_cv_prog_have_svn+set}" = set; then
5791  echo $ECHO_N "(cached) $ECHO_C" >&6
5792else
5793  if test -n "$have_svn"; then
5794  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5795else
5796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797for as_dir in $PATH
5798do
5799  IFS=$as_save_IFS
5800  test -z "$as_dir" && as_dir=.
5801  for ac_exec_ext in '' $ac_executable_extensions; do
5802  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803    ac_cv_prog_have_svn="yes"
5804    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5805    break 2
5806  fi
5807done
5808done
5809
5810  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5811fi
5812fi
5813have_svn=$ac_cv_prog_have_svn
5814if test -n "$have_svn"; then
5815  echo "$as_me:$LINENO: result: $have_svn" >&5
5816echo "${ECHO_T}$have_svn" >&6
5817else
5818  echo "$as_me:$LINENO: result: no" >&5
5819echo "${ECHO_T}no" >&6
5820fi
5821
5822  if test x$have_svn = xyes; then
5823    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5824echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5825if test "${ac_cv_svn_understands_https+set}" = set; then
5826  echo $ECHO_N "(cached) $ECHO_C" >&6
5827else
5828  svn --version > confauto.out 2>&1
5829                    if $EGREP https confauto.out >/dev/null 2>&1; then
5830                      ac_cv_svn_understands_https=yes
5831                    else
5832                      ac_cv_svn_understands_https=no
5833                      have_svn=no
5834                      ac_cv_prog_have_svn=no
5835                    fi
5836                    rm -f confauto.out
5837fi
5838echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5839echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5840  fi
5841
5842  # Find the location of the BuildTools directory
5843  BUILDTOOLSDIR=
5844  if test -r $srcdir/BuildTools/coin.m4; then
5845    BUILDTOOLSDIR=$srcdir/BuildTools
5846  else
5847    if test -r $srcdir/../BuildTools/coin.m4; then
5848      BUILDTOOLSDIR=$srcdir/../BuildTools
5849    else
5850      if test -r $srcdir/../../BuildTools/coin.m4; then
5851        BUILDTOOLSDIR=$srcdir/../../BuildTools
5852      else
5853        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5854echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5855   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5856      fi
5857    fi
5858  fi
5859
5860
5861  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5862  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5863    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5864  fi
5865
5866  # The following variable is set to the name of the directory where
5867  # the autotool scripts are located
5868
5869  AUX_DIR=$ac_aux_dir
5870fi
5871
5872# helpful variable for the base directory of this package
5873abs_source_dir=`cd $srcdir; pwd`
5874
5875
5876# Stuff for example Makefiles
5877if test x$prefix = xNONE; then
5878  full_prefix=$ac_default_prefix
5879else
5880  full_prefix=$prefix
5881fi
5882full_prefix=`cd $full_prefix ; pwd`
5883
5884abs_lib_dir=$full_prefix/lib
5885
5886abs_include_dir=$full_prefix/include
5887
5888abs_bin_dir=$full_prefix/bin
5889
5890
5891
5892if test $coin_have_externals = yes && test x$have_svn = xyes; then
5893  HAVE_EXTERNALS_TRUE=
5894  HAVE_EXTERNALS_FALSE='#'
5895else
5896  HAVE_EXTERNALS_TRUE='#'
5897  HAVE_EXTERNALS_FALSE=
5898fi
5899
5900
5901# AC_MSG_NOTICE([End automake initialisation.])
5902
5903
5904
5905LIBTOOL=
5906if test -f ../libtool; then
5907  coin_config_dir=..
5908  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5909fi
5910if test "x$LIBTOOL" = x; then
5911  if test -f ../../libtool; then
5912    coin_config_dir=../..
5913    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5914  fi
5915fi
5916
5917if test "x$LIBTOOL" = x; then
5918# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5919  # Stuff for libtool
5920  # Check whether --enable-shared or --disable-shared was given.
5921if test "${enable_shared+set}" = set; then
5922  enableval="$enable_shared"
5923  p=${PACKAGE-default}
5924    case $enableval in
5925    yes) enable_shared=yes ;;
5926    no) enable_shared=no ;;
5927    *)
5928      enable_shared=no
5929      # Look at the argument we got.  We use all the common list separators.
5930      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5931      for pkg in $enableval; do
5932        IFS="$lt_save_ifs"
5933        if test "X$pkg" = "X$p"; then
5934          enable_shared=yes
5935        fi
5936      done
5937      IFS="$lt_save_ifs"
5938      ;;
5939    esac
5940else
5941  enable_shared=yes
5942fi;
5943
5944# Check whether --enable-fast-install or --disable-fast-install was given.
5945if test "${enable_fast_install+set}" = set; then
5946  enableval="$enable_fast_install"
5947  p=${PACKAGE-default}
5948    case $enableval in
5949    yes) enable_fast_install=yes ;;
5950    no) enable_fast_install=no ;;
5951    *)
5952      enable_fast_install=no
5953      # Look at the argument we got.  We use all the common list separators.
5954      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5955      for pkg in $enableval; do
5956        IFS="$lt_save_ifs"
5957        if test "X$pkg" = "X$p"; then
5958          enable_fast_install=yes
5959        fi
5960      done
5961      IFS="$lt_save_ifs"
5962      ;;
5963    esac
5964else
5965  enable_fast_install=yes
5966fi;
5967
5968echo "$as_me:$LINENO: checking host system type" >&5
5969echo $ECHO_N "checking host system type... $ECHO_C" >&6
5970if test "${ac_cv_host+set}" = set; then
5971  echo $ECHO_N "(cached) $ECHO_C" >&6
5972else
5973  ac_cv_host_alias=$host_alias
5974test -z "$ac_cv_host_alias" &&
5975  ac_cv_host_alias=$ac_cv_build_alias
5976ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5977  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5978echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5979   { (exit 1); exit 1; }; }
5980
5981fi
5982echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5983echo "${ECHO_T}$ac_cv_host" >&6
5984host=$ac_cv_host
5985host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5986host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5987host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5988
5989
5990echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5991echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5992if test "${lt_cv_path_SED+set}" = set; then
5993  echo $ECHO_N "(cached) $ECHO_C" >&6
5994else
5995  # Loop through the user's path and test for sed and gsed.
5996# Then use that list of sed's as ones to test for truncation.
5997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998for as_dir in $PATH
5999do
6000  IFS=$as_save_IFS
6001  test -z "$as_dir" && as_dir=.
6002  for lt_ac_prog in sed gsed; do
6003    for ac_exec_ext in '' $ac_executable_extensions; do
6004      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6005        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6006      fi
6007    done
6008  done
6009done
6010lt_ac_max=0
6011lt_ac_count=0
6012# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6013# along with /bin/sed that truncates output.
6014for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6015  test ! -f $lt_ac_sed && continue
6016  cat /dev/null > conftest.in
6017  lt_ac_count=0
6018  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6019  # Check for GNU sed and select it if it is found.
6020  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6021    lt_cv_path_SED=$lt_ac_sed
6022    break
6023  fi
6024  while true; do
6025    cat conftest.in conftest.in >conftest.tmp
6026    mv conftest.tmp conftest.in
6027    cp conftest.in conftest.nl
6028    echo >>conftest.nl
6029    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6030    cmp -s conftest.out conftest.nl || break
6031    # 10000 chars as input seems more than enough
6032    test $lt_ac_count -gt 10 && break
6033    lt_ac_count=`expr $lt_ac_count + 1`
6034    if test $lt_ac_count -gt $lt_ac_max; then
6035      lt_ac_max=$lt_ac_count
6036      lt_cv_path_SED=$lt_ac_sed
6037    fi
6038  done
6039done
6040
6041fi
6042
6043SED=$lt_cv_path_SED
6044echo "$as_me:$LINENO: result: $SED" >&5
6045echo "${ECHO_T}$SED" >&6
6046
6047
6048# Check whether --with-gnu-ld or --without-gnu-ld was given.
6049if test "${with_gnu_ld+set}" = set; then
6050  withval="$with_gnu_ld"
6051  test "$withval" = no || with_gnu_ld=yes
6052else
6053  with_gnu_ld=no
6054fi;
6055ac_prog=ld
6056if test "$GCC" = yes; then
6057  # Check if gcc -print-prog-name=ld gives a path.
6058  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6059echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6060  case $host in
6061  *-*-mingw*)
6062    # gcc leaves a trailing carriage return which upsets mingw
6063    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6064  *)
6065    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6066  esac
6067  case $ac_prog in
6068    # Accept absolute paths.
6069    [\\/]* | ?:[\\/]*)
6070      re_direlt='/[^/][^/]*/\.\./'
6071      # Canonicalize the pathname of ld
6072      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6073      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6074        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6075      done
6076      test -z "$LD" && LD="$ac_prog"
6077      ;;
6078  "")
6079    # If it fails, then pretend we aren't using GCC.
6080    ac_prog=ld
6081    ;;
6082  *)
6083    # If it is relative, then search for the first ld in PATH.
6084    with_gnu_ld=unknown
6085    ;;
6086  esac
6087elif test "$with_gnu_ld" = yes; then
6088  echo "$as_me:$LINENO: checking for GNU ld" >&5
6089echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6090else
6091  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6092echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6093fi
6094if test "${lt_cv_path_LD+set}" = set; then
6095  echo $ECHO_N "(cached) $ECHO_C" >&6
6096else
6097  if test -z "$LD"; then
6098  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6099  for ac_dir in $PATH; do
6100    IFS="$lt_save_ifs"
6101    test -z "$ac_dir" && ac_dir=.
6102    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6103      lt_cv_path_LD="$ac_dir/$ac_prog"
6104      # Check to see if the program is GNU ld.  I'd rather use --version,
6105      # but apparently some variants of GNU ld only accept -v.
6106      # Break only if it was the GNU/non-GNU ld that we prefer.
6107      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6108      *GNU* | *'with BFD'*)
6109        test "$with_gnu_ld" != no && break
6110        ;;
6111      *)
6112        test "$with_gnu_ld" != yes && break
6113        ;;
6114      esac
6115    fi
6116  done
6117  IFS="$lt_save_ifs"
6118else
6119  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6120fi
6121fi
6122
6123LD="$lt_cv_path_LD"
6124if test -n "$LD"; then
6125  echo "$as_me:$LINENO: result: $LD" >&5
6126echo "${ECHO_T}$LD" >&6
6127else
6128  echo "$as_me:$LINENO: result: no" >&5
6129echo "${ECHO_T}no" >&6
6130fi
6131test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6132echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6133   { (exit 1); exit 1; }; }
6134echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6135echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6136if test "${lt_cv_prog_gnu_ld+set}" = set; then
6137  echo $ECHO_N "(cached) $ECHO_C" >&6
6138else
6139  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6140case `$LD -v 2>&1 </dev/null` in
6141*GNU* | *'with BFD'*)
6142  lt_cv_prog_gnu_ld=yes
6143  ;;
6144*)
6145  lt_cv_prog_gnu_ld=no
6146  ;;
6147esac
6148fi
6149echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6150echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6151with_gnu_ld=$lt_cv_prog_gnu_ld
6152
6153
6154echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6155echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6156if test "${lt_cv_ld_reload_flag+set}" = set; then
6157  echo $ECHO_N "(cached) $ECHO_C" >&6
6158else
6159  lt_cv_ld_reload_flag='-r'
6160fi
6161echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6162echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6163reload_flag=$lt_cv_ld_reload_flag
6164case $reload_flag in
6165"" | " "*) ;;
6166*) reload_flag=" $reload_flag" ;;
6167esac
6168reload_cmds='$LD$reload_flag -o $output$reload_objs'
6169case $host_os in
6170  darwin*)
6171    if test "$GCC" = yes; then
6172      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6173    else
6174      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6175    fi
6176    ;;
6177esac
6178
6179echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6180echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6181if test "${lt_cv_path_NM+set}" = set; then
6182  echo $ECHO_N "(cached) $ECHO_C" >&6
6183else
6184  if test -n "$NM"; then
6185  # Let the user override the test.
6186  lt_cv_path_NM="$NM"
6187else
6188  lt_nm_to_check="${ac_tool_prefix}nm"
6189  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6190    lt_nm_to_check="$lt_nm_to_check nm"
6191  fi
6192  for lt_tmp_nm in $lt_nm_to_check; do
6193    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6194    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6195      IFS="$lt_save_ifs"
6196      test -z "$ac_dir" && ac_dir=.
6197      tmp_nm="$ac_dir/$lt_tmp_nm"
6198      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6199        # Check to see if the nm accepts a BSD-compat flag.
6200        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6201        #   nm: unknown option "B" ignored
6202        # Tru64's nm complains that /dev/null is an invalid object file
6203        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6204        */dev/null* | *'Invalid file or object type'*)
6205          lt_cv_path_NM="$tmp_nm -B"
6206          break
6207          ;;
6208        *)
6209          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6210          */dev/null*)
6211            lt_cv_path_NM="$tmp_nm -p"
6212            break
6213            ;;
6214          *)
6215            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6216            continue # so that we can try to find one that supports BSD flags
6217            ;;
6218          esac
6219          ;;
6220        esac
6221      fi
6222    done
6223    IFS="$lt_save_ifs"
6224  done
6225  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6226fi
6227fi
6228echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6229echo "${ECHO_T}$lt_cv_path_NM" >&6
6230NM="$lt_cv_path_NM"
6231
6232echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6233echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6234if test "${lt_cv_deplibs_check_method+set}" = set; then
6235  echo $ECHO_N "(cached) $ECHO_C" >&6
6236else
6237  lt_cv_file_magic_cmd='$MAGIC_CMD'
6238lt_cv_file_magic_test_file=
6239lt_cv_deplibs_check_method='unknown'
6240# Need to set the preceding variable on all platforms that support
6241# interlibrary dependencies.
6242# 'none' -- dependencies not supported.
6243# `unknown' -- same as none, but documents that we really don't know.
6244# 'pass_all' -- all dependencies passed with no checks.
6245# 'test_compile' -- check by making test program.
6246# 'file_magic [[regex]]' -- check by looking for files in library path
6247# which responds to the $file_magic_cmd with a given extended regex.
6248# If you have `file' or equivalent on your system and you're not sure
6249# whether `pass_all' will *always* work, you probably want this one.
6250
6251case $host_os in
6252aix4* | aix5*)
6253  lt_cv_deplibs_check_method=pass_all
6254  ;;
6255
6256beos*)
6257  lt_cv_deplibs_check_method=pass_all
6258  ;;
6259
6260bsdi[45]*)
6261  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6262  lt_cv_file_magic_cmd='/usr/bin/file -L'
6263  lt_cv_file_magic_test_file=/shlib/libc.so
6264  ;;
6265
6266cygwin*)
6267  # func_win32_libid is a shell function defined in ltmain.sh
6268  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6269  lt_cv_file_magic_cmd='func_win32_libid'
6270  ;;
6271
6272mingw* | pw32*)
6273  # Base MSYS/MinGW do not provide the 'file' command needed by
6274  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6275  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6276  lt_cv_file_magic_cmd='$OBJDUMP -f'
6277  ;;
6278
6279darwin* | rhapsody*)
6280  lt_cv_deplibs_check_method=pass_all
6281  ;;
6282
6283freebsd* | kfreebsd*-gnu | dragonfly*)
6284  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6285    case $host_cpu in
6286    i*86 )
6287      # Not sure whether the presence of OpenBSD here was a mistake.
6288      # Let's accept both of them until this is cleared up.
6289      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6290      lt_cv_file_magic_cmd=/usr/bin/file
6291      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6292      ;;
6293    esac
6294  else
6295    lt_cv_deplibs_check_method=pass_all
6296  fi
6297  ;;
6298
6299gnu*)
6300  lt_cv_deplibs_check_method=pass_all
6301  ;;
6302
6303hpux10.20* | hpux11*)
6304  lt_cv_file_magic_cmd=/usr/bin/file
6305  case $host_cpu in
6306  ia64*)
6307    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6308    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6309    ;;
6310  hppa*64*)
6311    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]'
6312    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6313    ;;
6314  *)
6315    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6316    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6317    ;;
6318  esac
6319  ;;
6320
6321interix3*)
6322  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6323  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6324  ;;
6325
6326irix5* | irix6* | nonstopux*)
6327  case $LD in
6328  *-32|*"-32 ") libmagic=32-bit;;
6329  *-n32|*"-n32 ") libmagic=N32;;
6330  *-64|*"-64 ") libmagic=64-bit;;
6331  *) libmagic=never-match;;
6332  esac
6333  lt_cv_deplibs_check_method=pass_all
6334  ;;
6335
6336# This must be Linux ELF.
6337linux*)
6338  lt_cv_deplibs_check_method=pass_all
6339  ;;
6340
6341netbsd*)
6342  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6343    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6344  else
6345    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6346  fi
6347  ;;
6348
6349newos6*)
6350  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6351  lt_cv_file_magic_cmd=/usr/bin/file
6352  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6353  ;;
6354
6355nto-qnx*)
6356  lt_cv_deplibs_check_method=unknown
6357  ;;
6358
6359openbsd*)
6360  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6361    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6362  else
6363    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6364  fi
6365  ;;
6366
6367osf3* | osf4* | osf5*)
6368  lt_cv_deplibs_check_method=pass_all
6369  ;;
6370
6371solaris*)
6372  lt_cv_deplibs_check_method=pass_all
6373  ;;
6374
6375sysv4 | sysv4.3*)
6376  case $host_vendor in
6377  motorola)
6378    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]'
6379    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6380    ;;
6381  ncr)
6382    lt_cv_deplibs_check_method=pass_all
6383    ;;
6384  sequent)
6385    lt_cv_file_magic_cmd='/bin/file'
6386    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6387    ;;
6388  sni)
6389    lt_cv_file_magic_cmd='/bin/file'
6390    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6391    lt_cv_file_magic_test_file=/lib/libc.so
6392    ;;
6393  siemens)
6394    lt_cv_deplibs_check_method=pass_all
6395    ;;
6396  pc)
6397    lt_cv_deplibs_check_method=pass_all
6398    ;;
6399  esac
6400  ;;
6401
6402sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6403  lt_cv_deplibs_check_method=pass_all
6404  ;;
6405esac
6406
6407fi
6408echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6409echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6410file_magic_cmd=$lt_cv_file_magic_cmd
6411deplibs_check_method=$lt_cv_deplibs_check_method
6412test -z "$deplibs_check_method" && deplibs_check_method=unknown
6413
6414
6415
6416
6417# If no C compiler was specified, use CC.
6418LTCC=${LTCC-"$CC"}
6419
6420# If no C compiler flags were specified, use CFLAGS.
6421LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6422
6423# Allow CC to be a program name with arguments.
6424compiler=$CC
6425
6426# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6427if test "${enable_libtool_lock+set}" = set; then
6428  enableval="$enable_libtool_lock"
6429
6430fi;
6431test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6432
6433# Some flags need to be propagated to the compiler or linker for good
6434# libtool support.
6435case $host in
6436ia64-*-hpux*)
6437  # Find out which ABI we are using.
6438  echo 'int i;' > conftest.$ac_ext
6439  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6440  (eval $ac_compile) 2>&5
6441  ac_status=$?
6442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443  (exit $ac_status); }; then
6444    case `/usr/bin/file conftest.$ac_objext` in
6445    *ELF-32*)
6446      HPUX_IA64_MODE="32"
6447      ;;
6448    *ELF-64*)
6449      HPUX_IA64_MODE="64"
6450      ;;
6451    esac
6452  fi
6453  rm -rf conftest*
6454  ;;
6455*-*-irix6*)
6456  # Find out which ABI we are using.
6457  echo '#line 6457 "configure"' > conftest.$ac_ext
6458  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6459  (eval $ac_compile) 2>&5
6460  ac_status=$?
6461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462  (exit $ac_status); }; then
6463   if test "$lt_cv_prog_gnu_ld" = yes; then
6464    case `/usr/bin/file conftest.$ac_objext` in
6465    *32-bit*)
6466      LD="${LD-ld} -melf32bsmip"
6467      ;;
6468    *N32*)
6469      LD="${LD-ld} -melf32bmipn32"
6470      ;;
6471    *64-bit*)
6472      LD="${LD-ld} -melf64bmip"
6473      ;;
6474    esac
6475   else
6476    case `/usr/bin/file conftest.$ac_objext` in
6477    *32-bit*)
6478      LD="${LD-ld} -32"
6479      ;;
6480    *N32*)
6481      LD="${LD-ld} -n32"
6482      ;;
6483    *64-bit*)
6484      LD="${LD-ld} -64"
6485      ;;
6486    esac
6487   fi
6488  fi
6489  rm -rf conftest*
6490  ;;
6491
6492x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6493  # Find out which ABI we are using.
6494  echo 'int i;' > conftest.$ac_ext
6495  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6496  (eval $ac_compile) 2>&5
6497  ac_status=$?
6498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499  (exit $ac_status); }; then
6500    case `/usr/bin/file conftest.o` in
6501    *32-bit*)
6502      case $host in
6503        x86_64-*linux*)
6504          LD="${LD-ld} -m elf_i386"
6505          ;;
6506        ppc64-*linux*|powerpc64-*linux*)
6507          LD="${LD-ld} -m elf32ppclinux"
6508          ;;
6509        s390x-*linux*)
6510          LD="${LD-ld} -m elf_s390"
6511          ;;
6512        sparc64-*linux*)
6513          LD="${LD-ld} -m elf32_sparc"
6514          ;;
6515      esac
6516      ;;
6517    *64-bit*)
6518      case $host in
6519        x86_64-*linux*)
6520          LD="${LD-ld} -m elf_x86_64"
6521          ;;
6522        ppc*-*linux*|powerpc*-*linux*)
6523          LD="${LD-ld} -m elf64ppc"
6524          ;;
6525        s390*-*linux*)
6526          LD="${LD-ld} -m elf64_s390"
6527          ;;
6528        sparc*-*linux*)
6529          LD="${LD-ld} -m elf64_sparc"
6530          ;;
6531      esac
6532      ;;
6533    esac
6534  fi
6535  rm -rf conftest*
6536  ;;
6537
6538*-*-sco3.2v5*)
6539  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6540  SAVE_CFLAGS="$CFLAGS"
6541  CFLAGS="$CFLAGS -belf"
6542  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6543echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6544if test "${lt_cv_cc_needs_belf+set}" = set; then
6545  echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547  ac_ext=c
6548ac_cpp='$CPP $CPPFLAGS'
6549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6551ac_compiler_gnu=$ac_cv_c_compiler_gnu
6552
6553     cat >conftest.$ac_ext <<_ACEOF
6554/* confdefs.h.  */
6555_ACEOF
6556cat confdefs.h >>conftest.$ac_ext
6557cat >>conftest.$ac_ext <<_ACEOF
6558/* end confdefs.h.  */
6559
6560int
6561main ()
6562{
6563
6564  ;
6565  return 0;
6566}
6567_ACEOF
6568rm -f conftest.$ac_objext conftest$ac_exeext
6569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6570  (eval $ac_link) 2>conftest.er1
6571  ac_status=$?
6572  grep -v '^ *+' conftest.er1 >conftest.err
6573  rm -f conftest.er1
6574  cat conftest.err >&5
6575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576  (exit $ac_status); } &&
6577         { ac_try='test -z "$ac_c_werror_flag"
6578                         || test ! -s conftest.err'
6579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580  (eval $ac_try) 2>&5
6581  ac_status=$?
6582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583  (exit $ac_status); }; } &&
6584         { ac_try='test -s conftest$ac_exeext'
6585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586  (eval $ac_try) 2>&5
6587  ac_status=$?
6588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589  (exit $ac_status); }; }; then
6590  lt_cv_cc_needs_belf=yes
6591else
6592  echo "$as_me: failed program was:" >&5
6593sed 's/^/| /' conftest.$ac_ext >&5
6594
6595lt_cv_cc_needs_belf=no
6596fi
6597rm -f conftest.err conftest.$ac_objext \
6598      conftest$ac_exeext conftest.$ac_ext
6599     ac_ext=c
6600ac_cpp='$CPP $CPPFLAGS'
6601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6603ac_compiler_gnu=$ac_cv_c_compiler_gnu
6604
6605fi
6606echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6607echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6608  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6609    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6610    CFLAGS="$SAVE_CFLAGS"
6611  fi
6612  ;;
6613sparc*-*solaris*)
6614  # Find out which ABI we are using.
6615  echo 'int i;' > conftest.$ac_ext
6616  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6617  (eval $ac_compile) 2>&5
6618  ac_status=$?
6619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620  (exit $ac_status); }; then
6621    case `/usr/bin/file conftest.o` in
6622    *64-bit*)
6623      case $lt_cv_prog_gnu_ld in
6624      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6625      *)    LD="${LD-ld} -64" ;;
6626      esac
6627      ;;
6628    esac
6629  fi
6630  rm -rf conftest*
6631  ;;
6632
6633
6634esac
6635
6636need_locks="$enable_libtool_lock"
6637
6638
6639ac_ext=c
6640ac_cpp='$CPP $CPPFLAGS'
6641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6643ac_compiler_gnu=$ac_cv_c_compiler_gnu
6644echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6645echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6646# On Suns, sometimes $CPP names a directory.
6647if test -n "$CPP" && test -d "$CPP"; then
6648  CPP=
6649fi
6650if test -z "$CPP"; then
6651  if test "${ac_cv_prog_CPP+set}" = set; then
6652  echo $ECHO_N "(cached) $ECHO_C" >&6
6653else
6654      # Double quotes because CPP needs to be expanded
6655    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6656    do
6657      ac_preproc_ok=false
6658for ac_c_preproc_warn_flag in '' yes
6659do
6660  # Use a header file that comes with gcc, so configuring glibc
6661  # with a fresh cross-compiler works.
6662  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6663  # <limits.h> exists even on freestanding compilers.
6664  # On the NeXT, cc -E runs the code through the compiler's parser,
6665  # not just through cpp. "Syntax error" is here to catch this case.
6666  cat >conftest.$ac_ext <<_ACEOF
6667/* confdefs.h.  */
6668_ACEOF
6669cat confdefs.h >>conftest.$ac_ext
6670cat >>conftest.$ac_ext <<_ACEOF
6671/* end confdefs.h.  */
6672#ifdef __STDC__
6673# include <limits.h>
6674#else
6675# include <assert.h>
6676#endif
6677                     Syntax error
6678_ACEOF
6679if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6680  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6681  ac_status=$?
6682  grep -v '^ *+' conftest.er1 >conftest.err
6683  rm -f conftest.er1
6684  cat conftest.err >&5
6685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686  (exit $ac_status); } >/dev/null; then
6687  if test -s conftest.err; then
6688    ac_cpp_err=$ac_c_preproc_warn_flag
6689    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6690  else
6691    ac_cpp_err=
6692  fi
6693else
6694  ac_cpp_err=yes
6695fi
6696if test -z "$ac_cpp_err"; then
6697  :
6698else
6699  echo "$as_me: failed program was:" >&5
6700sed 's/^/| /' conftest.$ac_ext >&5
6701
6702  # Broken: fails on valid input.
6703continue
6704fi
6705rm -f conftest.err conftest.$ac_ext
6706
6707  # OK, works on sane cases.  Now check whether non-existent headers
6708  # can be detected and how.
6709  cat >conftest.$ac_ext <<_ACEOF
6710/* confdefs.h.  */
6711_ACEOF
6712cat confdefs.h >>conftest.$ac_ext
6713cat >>conftest.$ac_ext <<_ACEOF
6714/* end confdefs.h.  */
6715#include <ac_nonexistent.h>
6716_ACEOF
6717if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6718  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6719  ac_status=$?
6720  grep -v '^ *+' conftest.er1 >conftest.err
6721  rm -f conftest.er1
6722  cat conftest.err >&5
6723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724  (exit $ac_status); } >/dev/null; then
6725  if test -s conftest.err; then
6726    ac_cpp_err=$ac_c_preproc_warn_flag
6727    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6728  else
6729    ac_cpp_err=
6730  fi
6731else
6732  ac_cpp_err=yes
6733fi
6734if test -z "$ac_cpp_err"; then
6735  # Broken: success on invalid input.
6736continue
6737else
6738  echo "$as_me: failed program was:" >&5
6739sed 's/^/| /' conftest.$ac_ext >&5
6740
6741  # Passes both tests.
6742ac_preproc_ok=:
6743break
6744fi
6745rm -f conftest.err conftest.$ac_ext
6746
6747done
6748# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6749rm -f conftest.err conftest.$ac_ext
6750if $ac_preproc_ok; then
6751  break
6752fi
6753
6754    done
6755    ac_cv_prog_CPP=$CPP
6756
6757fi
6758  CPP=$ac_cv_prog_CPP
6759else
6760  ac_cv_prog_CPP=$CPP
6761fi
6762echo "$as_me:$LINENO: result: $CPP" >&5
6763echo "${ECHO_T}$CPP" >&6
6764ac_preproc_ok=false
6765for ac_c_preproc_warn_flag in '' yes
6766do
6767  # Use a header file that comes with gcc, so configuring glibc
6768  # with a fresh cross-compiler works.
6769  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6770  # <limits.h> exists even on freestanding compilers.
6771  # On the NeXT, cc -E runs the code through the compiler's parser,
6772  # not just through cpp. "Syntax error" is here to catch this case.
6773  cat >conftest.$ac_ext <<_ACEOF
6774/* confdefs.h.  */
6775_ACEOF
6776cat confdefs.h >>conftest.$ac_ext
6777cat >>conftest.$ac_ext <<_ACEOF
6778/* end confdefs.h.  */
6779#ifdef __STDC__
6780# include <limits.h>
6781#else
6782# include <assert.h>
6783#endif
6784                     Syntax error
6785_ACEOF
6786if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6787  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6788  ac_status=$?
6789  grep -v '^ *+' conftest.er1 >conftest.err
6790  rm -f conftest.er1
6791  cat conftest.err >&5
6792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793  (exit $ac_status); } >/dev/null; then
6794  if test -s conftest.err; then
6795    ac_cpp_err=$ac_c_preproc_warn_flag
6796    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6797  else
6798    ac_cpp_err=
6799  fi
6800else
6801  ac_cpp_err=yes
6802fi
6803if test -z "$ac_cpp_err"; then
6804  :
6805else
6806  echo "$as_me: failed program was:" >&5
6807sed 's/^/| /' conftest.$ac_ext >&5
6808
6809  # Broken: fails on valid input.
6810continue
6811fi
6812rm -f conftest.err conftest.$ac_ext
6813
6814  # OK, works on sane cases.  Now check whether non-existent headers
6815  # can be detected and how.
6816  cat >conftest.$ac_ext <<_ACEOF
6817/* confdefs.h.  */
6818_ACEOF
6819cat confdefs.h >>conftest.$ac_ext
6820cat >>conftest.$ac_ext <<_ACEOF
6821/* end confdefs.h.  */
6822#include <ac_nonexistent.h>
6823_ACEOF
6824if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6825  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6826  ac_status=$?
6827  grep -v '^ *+' conftest.er1 >conftest.err
6828  rm -f conftest.er1
6829  cat conftest.err >&5
6830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831  (exit $ac_status); } >/dev/null; then
6832  if test -s conftest.err; then
6833    ac_cpp_err=$ac_c_preproc_warn_flag
6834    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6835  else
6836    ac_cpp_err=
6837  fi
6838else
6839  ac_cpp_err=yes
6840fi
6841if test -z "$ac_cpp_err"; then
6842  # Broken: success on invalid input.
6843continue
6844else
6845  echo "$as_me: failed program was:" >&5
6846sed 's/^/| /' conftest.$ac_ext >&5
6847
6848  # Passes both tests.
6849ac_preproc_ok=:
6850break
6851fi
6852rm -f conftest.err conftest.$ac_ext
6853
6854done
6855# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6856rm -f conftest.err conftest.$ac_ext
6857if $ac_preproc_ok; then
6858  :
6859else
6860  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6861See \`config.log' for more details." >&5
6862echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6863See \`config.log' for more details." >&2;}
6864   { (exit 1); exit 1; }; }
6865fi
6866
6867ac_ext=c
6868ac_cpp='$CPP $CPPFLAGS'
6869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6871ac_compiler_gnu=$ac_cv_c_compiler_gnu
6872
6873
6874echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6875echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6876if test "${ac_cv_header_stdc+set}" = set; then
6877  echo $ECHO_N "(cached) $ECHO_C" >&6
6878else
6879  cat >conftest.$ac_ext <<_ACEOF
6880/* confdefs.h.  */
6881_ACEOF
6882cat confdefs.h >>conftest.$ac_ext
6883cat >>conftest.$ac_ext <<_ACEOF
6884/* end confdefs.h.  */
6885#include <stdlib.h>
6886#include <stdarg.h>
6887#include <string.h>
6888#include <float.h>
6889
6890int
6891main ()
6892{
6893
6894  ;
6895  return 0;
6896}
6897_ACEOF
6898rm -f conftest.$ac_objext
6899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6900  (eval $ac_compile) 2>conftest.er1
6901  ac_status=$?
6902  grep -v '^ *+' conftest.er1 >conftest.err
6903  rm -f conftest.er1
6904  cat conftest.err >&5
6905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906  (exit $ac_status); } &&
6907         { ac_try='test -z "$ac_c_werror_flag"
6908                         || test ! -s conftest.err'
6909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910  (eval $ac_try) 2>&5
6911  ac_status=$?
6912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913  (exit $ac_status); }; } &&
6914         { ac_try='test -s conftest.$ac_objext'
6915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916  (eval $ac_try) 2>&5
6917  ac_status=$?
6918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919  (exit $ac_status); }; }; then
6920  ac_cv_header_stdc=yes
6921else
6922  echo "$as_me: failed program was:" >&5
6923sed 's/^/| /' conftest.$ac_ext >&5
6924
6925ac_cv_header_stdc=no
6926fi
6927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6928
6929if test $ac_cv_header_stdc = yes; then
6930  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6931  cat >conftest.$ac_ext <<_ACEOF
6932/* confdefs.h.  */
6933_ACEOF
6934cat confdefs.h >>conftest.$ac_ext
6935cat >>conftest.$ac_ext <<_ACEOF
6936/* end confdefs.h.  */
6937#include <string.h>
6938
6939_ACEOF
6940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6941  $EGREP "memchr" >/dev/null 2>&1; then
6942  :
6943else
6944  ac_cv_header_stdc=no
6945fi
6946rm -f conftest*
6947
6948fi
6949
6950if test $ac_cv_header_stdc = yes; then
6951  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6952  cat >conftest.$ac_ext <<_ACEOF
6953/* confdefs.h.  */
6954_ACEOF
6955cat confdefs.h >>conftest.$ac_ext
6956cat >>conftest.$ac_ext <<_ACEOF
6957/* end confdefs.h.  */
6958#include <stdlib.h>
6959
6960_ACEOF
6961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6962  $EGREP "free" >/dev/null 2>&1; then
6963  :
6964else
6965  ac_cv_header_stdc=no
6966fi
6967rm -f conftest*
6968
6969fi
6970
6971if test $ac_cv_header_stdc = yes; then
6972  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6973  if test "$cross_compiling" = yes; then
6974  :
6975else
6976  cat >conftest.$ac_ext <<_ACEOF
6977/* confdefs.h.  */
6978_ACEOF
6979cat confdefs.h >>conftest.$ac_ext
6980cat >>conftest.$ac_ext <<_ACEOF
6981/* end confdefs.h.  */
6982#include <ctype.h>
6983#if ((' ' & 0x0FF) == 0x020)
6984# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6985# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6986#else
6987# define ISLOWER(c) \
6988                   (('a' <= (c) && (c) <= 'i') \
6989                     || ('j' <= (c) && (c) <= 'r') \
6990                     || ('s' <= (c) && (c) <= 'z'))
6991# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6992#endif
6993
6994#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6995int
6996main ()
6997{
6998  int i;
6999  for (i = 0; i < 256; i++)
7000    if (XOR (islower (i), ISLOWER (i))
7001        || toupper (i) != TOUPPER (i))
7002      exit(2);
7003  exit (0);
7004}
7005_ACEOF
7006rm -f conftest$ac_exeext
7007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7008  (eval $ac_link) 2>&5
7009  ac_status=$?
7010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013  (eval $ac_try) 2>&5
7014  ac_status=$?
7015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016  (exit $ac_status); }; }; then
7017  :
7018else
7019  echo "$as_me: program exited with status $ac_status" >&5
7020echo "$as_me: failed program was:" >&5
7021sed 's/^/| /' conftest.$ac_ext >&5
7022
7023( exit $ac_status )
7024ac_cv_header_stdc=no
7025fi
7026rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7027fi
7028fi
7029fi
7030echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7031echo "${ECHO_T}$ac_cv_header_stdc" >&6
7032if test $ac_cv_header_stdc = yes; then
7033
7034cat >>confdefs.h <<\_ACEOF
7035#define STDC_HEADERS 1
7036_ACEOF
7037
7038fi
7039
7040# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7051                  inttypes.h stdint.h unistd.h
7052do
7053as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7054echo "$as_me:$LINENO: checking for $ac_header" >&5
7055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7056if eval "test \"\${$as_ac_Header+set}\" = set"; then
7057  echo $ECHO_N "(cached) $ECHO_C" >&6
7058else
7059  cat >conftest.$ac_ext <<_ACEOF
7060/* confdefs.h.  */
7061_ACEOF
7062cat confdefs.h >>conftest.$ac_ext
7063cat >>conftest.$ac_ext <<_ACEOF
7064/* end confdefs.h.  */
7065$ac_includes_default
7066
7067#include <$ac_header>
7068_ACEOF
7069rm -f conftest.$ac_objext
7070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7071  (eval $ac_compile) 2>conftest.er1
7072  ac_status=$?
7073  grep -v '^ *+' conftest.er1 >conftest.err
7074  rm -f conftest.er1
7075  cat conftest.err >&5
7076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077  (exit $ac_status); } &&
7078         { ac_try='test -z "$ac_c_werror_flag"
7079                         || test ! -s conftest.err'
7080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081  (eval $ac_try) 2>&5
7082  ac_status=$?
7083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084  (exit $ac_status); }; } &&
7085         { ac_try='test -s conftest.$ac_objext'
7086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087  (eval $ac_try) 2>&5
7088  ac_status=$?
7089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090  (exit $ac_status); }; }; then
7091  eval "$as_ac_Header=yes"
7092else
7093  echo "$as_me: failed program was:" >&5
7094sed 's/^/| /' conftest.$ac_ext >&5
7095
7096eval "$as_ac_Header=no"
7097fi
7098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7099fi
7100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7101echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7102if test `eval echo '${'$as_ac_Header'}'` = yes; then
7103  cat >>confdefs.h <<_ACEOF
7104#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7105_ACEOF
7106
7107fi
7108
7109done
7110
7111
7112
7113for ac_header in dlfcn.h
7114do
7115as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7116if eval "test \"\${$as_ac_Header+set}\" = set"; then
7117  echo "$as_me:$LINENO: checking for $ac_header" >&5
7118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7119if eval "test \"\${$as_ac_Header+set}\" = set"; then
7120  echo $ECHO_N "(cached) $ECHO_C" >&6
7121fi
7122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7123echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7124else
7125  # Is the header compilable?
7126echo "$as_me:$LINENO: checking $ac_header usability" >&5
7127echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7128cat >conftest.$ac_ext <<_ACEOF
7129/* confdefs.h.  */
7130_ACEOF
7131cat confdefs.h >>conftest.$ac_ext
7132cat >>conftest.$ac_ext <<_ACEOF
7133/* end confdefs.h.  */
7134$ac_includes_default
7135#include <$ac_header>
7136_ACEOF
7137rm -f conftest.$ac_objext
7138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7139  (eval $ac_compile) 2>conftest.er1
7140  ac_status=$?
7141  grep -v '^ *+' conftest.er1 >conftest.err
7142  rm -f conftest.er1
7143  cat conftest.err >&5
7144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145  (exit $ac_status); } &&
7146         { ac_try='test -z "$ac_c_werror_flag"
7147                         || test ! -s conftest.err'
7148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149  (eval $ac_try) 2>&5
7150  ac_status=$?
7151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152  (exit $ac_status); }; } &&
7153         { ac_try='test -s conftest.$ac_objext'
7154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155  (eval $ac_try) 2>&5
7156  ac_status=$?
7157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158  (exit $ac_status); }; }; then
7159  ac_header_compiler=yes
7160else
7161  echo "$as_me: failed program was:" >&5
7162sed 's/^/| /' conftest.$ac_ext >&5
7163
7164ac_header_compiler=no
7165fi
7166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7167echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7168echo "${ECHO_T}$ac_header_compiler" >&6
7169
7170# Is the header present?
7171echo "$as_me:$LINENO: checking $ac_header presence" >&5
7172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7173cat >conftest.$ac_ext <<_ACEOF
7174/* confdefs.h.  */
7175_ACEOF
7176cat confdefs.h >>conftest.$ac_ext
7177cat >>conftest.$ac_ext <<_ACEOF
7178/* end confdefs.h.  */
7179#include <$ac_header>
7180_ACEOF
7181if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7182  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7183  ac_status=$?
7184  grep -v '^ *+' conftest.er1 >conftest.err
7185  rm -f conftest.er1
7186  cat conftest.err >&5
7187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188  (exit $ac_status); } >/dev/null; then
7189  if test -s conftest.err; then
7190    ac_cpp_err=$ac_c_preproc_warn_flag
7191    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7192  else
7193    ac_cpp_err=
7194  fi
7195else
7196  ac_cpp_err=yes
7197fi
7198if test -z "$ac_cpp_err"; then
7199  ac_header_preproc=yes
7200else
7201  echo "$as_me: failed program was:" >&5
7202sed 's/^/| /' conftest.$ac_ext >&5
7203
7204  ac_header_preproc=no
7205fi
7206rm -f conftest.err conftest.$ac_ext
7207echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7208echo "${ECHO_T}$ac_header_preproc" >&6
7209
7210# So?  What about this header?
7211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7212  yes:no: )
7213    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7214echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7215    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7216echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7217    ac_header_preproc=yes
7218    ;;
7219  no:yes:* )
7220    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7221echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7222    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7223echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7224    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7225echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7226    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7227echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7228    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7229echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7230    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7231echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7232    (
7233      cat <<\_ASBOX
7234## --------------------------------------- ##
7235## Report this to couenne@list.coin-or.org ##
7236## --------------------------------------- ##
7237_ASBOX
7238    ) |
7239      sed "s/^/$as_me: WARNING:     /" >&2
7240    ;;
7241esac
7242echo "$as_me:$LINENO: checking for $ac_header" >&5
7243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7244if eval "test \"\${$as_ac_Header+set}\" = set"; then
7245  echo $ECHO_N "(cached) $ECHO_C" >&6
7246else
7247  eval "$as_ac_Header=\$ac_header_preproc"
7248fi
7249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7251
7252fi
7253if test `eval echo '${'$as_ac_Header'}'` = yes; then
7254  cat >>confdefs.h <<_ACEOF
7255#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7256_ACEOF
7257
7258fi
7259
7260done
7261
7262
7263
7264if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7265    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7266    (test "X$CXX" != "Xg++"))) ; then
7267  ac_ext=cc
7268ac_cpp='$CXXCPP $CPPFLAGS'
7269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7272echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7273echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7274if test -z "$CXXCPP"; then
7275  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7276  echo $ECHO_N "(cached) $ECHO_C" >&6
7277else
7278      # Double quotes because CXXCPP needs to be expanded
7279    for CXXCPP in "$CXX -E" "/lib/cpp"
7280    do
7281      ac_preproc_ok=false
7282for ac_cxx_preproc_warn_flag in '' yes
7283do
7284  # Use a header file that comes with gcc, so configuring glibc
7285  # with a fresh cross-compiler works.
7286  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7287  # <limits.h> exists even on freestanding compilers.
7288  # On the NeXT, cc -E runs the code through the compiler's parser,
7289  # not just through cpp. "Syntax error" is here to catch this case.
7290  cat >conftest.$ac_ext <<_ACEOF
7291/* confdefs.h.  */
7292_ACEOF
7293cat confdefs.h >>conftest.$ac_ext
7294cat >>conftest.$ac_ext <<_ACEOF
7295/* end confdefs.h.  */
7296#ifdef __STDC__
7297# include <limits.h>
7298#else
7299# include <assert.h>
7300#endif
7301                     Syntax error
7302_ACEOF
7303if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7304  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7305  ac_status=$?
7306  grep -v '^ *+' conftest.er1 >conftest.err
7307  rm -f conftest.er1
7308  cat conftest.err >&5
7309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310  (exit $ac_status); } >/dev/null; then
7311  if test -s conftest.err; then
7312    ac_cpp_err=$ac_cxx_preproc_warn_flag
7313    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7314  else
7315    ac_cpp_err=
7316  fi
7317else
7318  ac_cpp_err=yes
7319fi
7320if test -z "$ac_cpp_err"; then
7321  :
7322else
7323  echo "$as_me: failed program was:" >&5
7324sed 's/^/| /' conftest.$ac_ext >&5
7325
7326  # Broken: fails on valid input.
7327continue
7328fi
7329rm -f conftest.err conftest.$ac_ext
7330
7331  # OK, works on sane cases.  Now check whether non-existent headers
7332  # can be detected and how.
7333  cat >conftest.$ac_ext <<_ACEOF
7334/* confdefs.h.  */
7335_ACEOF
7336cat confdefs.h >>conftest.$ac_ext
7337cat >>conftest.$ac_ext <<_ACEOF
7338/* end confdefs.h.  */
7339#include <ac_nonexistent.h>
7340_ACEOF
7341if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7342  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7343  ac_status=$?
7344  grep -v '^ *+' conftest.er1 >conftest.err
7345  rm -f conftest.er1
7346  cat conftest.err >&5
7347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348  (exit $ac_status); } >/dev/null; then
7349  if test -s conftest.err; then
7350    ac_cpp_err=$ac_cxx_preproc_warn_flag
7351    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7352  else
7353    ac_cpp_err=
7354  fi
7355else
7356  ac_cpp_err=yes
7357fi
7358if test -z "$ac_cpp_err"; then
7359  # Broken: success on invalid input.
7360continue
7361else
7362  echo "$as_me: failed program was:" >&5
7363sed 's/^/| /' conftest.$ac_ext >&5
7364
7365  # Passes both tests.
7366ac_preproc_ok=:
7367break
7368fi
7369rm -f conftest.err conftest.$ac_ext
7370
7371done
7372# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7373rm -f conftest.err conftest.$ac_ext
7374if $ac_preproc_ok; then
7375  break
7376fi
7377
7378    done
7379    ac_cv_prog_CXXCPP=$CXXCPP
7380
7381fi
7382  CXXCPP=$ac_cv_prog_CXXCPP
7383else
7384  ac_cv_prog_CXXCPP=$CXXCPP
7385fi
7386echo "$as_me:$LINENO: result: $CXXCPP" >&5
7387echo "${ECHO_T}$CXXCPP" >&6
7388ac_preproc_ok=false
7389for ac_cxx_preproc_warn_flag in '' yes
7390do
7391  # Use a header file that comes with gcc, so configuring glibc
7392  # with a fresh cross-compiler works.
7393  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7394  # <limits.h> exists even on freestanding compilers.
7395  # On the NeXT, cc -E runs the code through the compiler's parser,
7396  # not just through cpp. "Syntax error" is here to catch this case.
7397  cat >conftest.$ac_ext <<_ACEOF
7398/* confdefs.h.  */
7399_ACEOF
7400cat confdefs.h >>conftest.$ac_ext
7401cat >>conftest.$ac_ext <<_ACEOF
7402/* end confdefs.h.  */
7403#ifdef __STDC__
7404# include <limits.h>
7405#else
7406# include <assert.h>
7407#endif
7408                     Syntax error
7409_ACEOF
7410if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7411  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7412  ac_status=$?
7413  grep -v '^ *+' conftest.er1 >conftest.err
7414  rm -f conftest.er1
7415  cat conftest.err >&5
7416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417  (exit $ac_status); } >/dev/null; then
7418  if test -s conftest.err; then
7419    ac_cpp_err=$ac_cxx_preproc_warn_flag
7420    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7421  else
7422    ac_cpp_err=
7423  fi
7424else
7425  ac_cpp_err=yes
7426fi
7427if test -z "$ac_cpp_err"; then
7428  :
7429else
7430  echo "$as_me: failed program was:" >&5
7431sed 's/^/| /' conftest.$ac_ext >&5
7432
7433  # Broken: fails on valid input.
7434continue
7435fi
7436rm -f conftest.err conftest.$ac_ext
7437
7438  # OK, works on sane cases.  Now check whether non-existent headers
7439  # can be detected and how.
7440  cat >conftest.$ac_ext <<_ACEOF
7441/* confdefs.h.  */
7442_ACEOF
7443cat confdefs.h >>conftest.$ac_ext
7444cat >>conftest.$ac_ext <<_ACEOF
7445/* end confdefs.h.  */
7446#include <ac_nonexistent.h>
7447_ACEOF
7448if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7449  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7450  ac_status=$?
7451  grep -v '^ *+' conftest.er1 >conftest.err
7452  rm -f conftest.er1
7453  cat conftest.err >&5
7454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455  (exit $ac_status); } >/dev/null; then
7456  if test -s conftest.err; then
7457    ac_cpp_err=$ac_cxx_preproc_warn_flag
7458    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7459  else
7460    ac_cpp_err=
7461  fi
7462else
7463  ac_cpp_err=yes
7464fi
7465if test -z "$ac_cpp_err"; then
7466  # Broken: success on invalid input.
7467continue
7468else
7469  echo "$as_me: failed program was:" >&5
7470sed 's/^/| /' conftest.$ac_ext >&5
7471
7472  # Passes both tests.
7473ac_preproc_ok=:
7474break
7475fi
7476rm -f conftest.err conftest.$ac_ext
7477
7478done
7479# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7480rm -f conftest.err conftest.$ac_ext
7481if $ac_preproc_ok; then
7482  :
7483else
7484  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7485See \`config.log' for more details." >&5
7486echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7487See \`config.log' for more details." >&2;}
7488   { (exit 1); exit 1; }; }
7489fi
7490
7491ac_ext=cc
7492ac_cpp='$CXXCPP $CPPFLAGS'
7493ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7494ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7495ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7496
7497fi
7498
7499
7500# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7501
7502# find the maximum length of command line arguments
7503echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7504echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7505if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7506  echo $ECHO_N "(cached) $ECHO_C" >&6
7507else
7508    i=0
7509  teststring="ABCD"
7510
7511  case $build_os in
7512  msdosdjgpp*)
7513    # On DJGPP, this test can blow up pretty badly due to problems in libc
7514    # (any single argument exceeding 2000 bytes causes a buffer overrun
7515    # during glob expansion).  Even if it were fixed, the result of this
7516    # check would be larger than it should be.
7517    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7518    ;;
7519
7520  gnu*)
7521    # Under GNU Hurd, this test is not required because there is
7522    # no limit to the length of command line arguments.
7523    # Libtool will interpret -1 as no limit whatsoever
7524    lt_cv_sys_max_cmd_len=-1;
7525    ;;
7526
7527  cygwin* | mingw*)
7528    # On Win9x/ME, this test blows up -- it succeeds, but takes
7529    # about 5 minutes as the teststring grows exponentially.
7530    # Worse, since 9x/ME are not pre-emptively multitasking,
7531    # you end up with a "frozen" computer, even though with patience
7532    # the test eventually succeeds (with a max line length of 256k).
7533    # Instead, let's just punt: use the minimum linelength reported by
7534    # all of the supported platforms: 8192 (on NT/2K/XP).
7535    lt_cv_sys_max_cmd_len=8192;
7536    ;;
7537
7538  amigaos*)
7539    # On AmigaOS with pdksh, this test takes hours, literally.
7540    # So we just punt and use a minimum line length of 8192.
7541    lt_cv_sys_max_cmd_len=8192;
7542    ;;
7543
7544  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7545    # This has been around since 386BSD, at least.  Likely further.
7546    if test -x /sbin/sysctl; then
7547      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7548    elif test -x /usr/sbin/sysctl; then
7549      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7550    else
7551      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7552    fi
7553    # And add a safety zone
7554    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7555    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7556    ;;
7557
7558  interix*)
7559    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7560    lt_cv_sys_max_cmd_len=196608
7561    ;;
7562
7563  osf*)
7564    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7565    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7566    # nice to cause kernel panics so lets avoid the loop below.
7567    # First set a reasonable default.
7568    lt_cv_sys_max_cmd_len=16384
7569    #
7570    if test -x /sbin/sysconfig; then
7571      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7572        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7573      esac
7574    fi
7575    ;;
7576  sco3.2v5*)
7577    lt_cv_sys_max_cmd_len=102400
7578    ;;
7579  sysv5* | sco5v6* | sysv4.2uw2*)
7580    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7581    if test -n "$kargmax"; then
7582      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7583    else
7584      lt_cv_sys_max_cmd_len=32768
7585    fi
7586    ;;
7587  *)
7588    # If test is not a shell built-in, we'll probably end up computing a
7589    # maximum length that is only half of the actual maximum length, but
7590    # we can't tell.
7591    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7592    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7593               = "XX$teststring") >/dev/null 2>&1 &&
7594            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7595            lt_cv_sys_max_cmd_len=$new_result &&
7596            test $i != 17 # 1/2 MB should be enough
7597    do
7598      i=`expr $i + 1`
7599      teststring=$teststring$teststring
7600    done
7601    teststring=
7602    # Add a significant safety factor because C++ compilers can tack on massive
7603    # amounts of additional arguments before passing them to the linker.
7604    # It appears as though 1/2 is a usable value.
7605    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7606    ;;
7607  esac
7608
7609fi
7610
7611if test -n $lt_cv_sys_max_cmd_len ; then
7612  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7613echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7614else
7615  echo "$as_me:$LINENO: result: none" >&5
7616echo "${ECHO_T}none" >&6
7617fi
7618
7619
7620
7621
7622# Check for command to grab the raw symbol name followed by C symbol from nm.
7623echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7624echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7625if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7626  echo $ECHO_N "(cached) $ECHO_C" >&6
7627else
7628
7629# These are sane defaults that work on at least a few old systems.
7630# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7631
7632# Character class describing NM global symbol codes.
7633symcode='[BCDEGRST]'
7634
7635# Regexp to match symbols that can be accessed directly from C.
7636sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7637
7638# Transform an extracted symbol line into a proper C declaration
7639lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7640
7641# Transform an extracted symbol line into symbol name and symbol address
7642lt_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'"
7643
7644# Define system-specific variables.
7645case $host_os in
7646aix*)
7647  symcode='[BCDT]'
7648  ;;
7649cygwin* | mingw* | pw32*)
7650  symcode='[ABCDGISTW]'
7651  ;;
7652hpux*) # Its linker distinguishes data from code symbols
7653  if test "$host_cpu" = ia64; then
7654    symcode='[ABCDEGRST]'
7655  fi
7656  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7657  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'"
7658  ;;
7659linux*)
7660  if test "$host_cpu" = ia64; then
7661    symcode='[ABCDGIRSTW]'
7662    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7663    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'"
7664  fi
7665  ;;
7666irix* | nonstopux*)
7667  symcode='[BCDEGRST]'
7668  ;;
7669osf*)
7670  symcode='[BCDEGQRST]'
7671  ;;
7672solaris*)
7673  symcode='[BDRT]'
7674  ;;
7675sco3.2v5*)
7676  symcode='[DT]'
7677  ;;
7678sysv4.2uw2*)
7679  symcode='[DT]'
7680  ;;
7681sysv5* | sco5v6* | unixware* | OpenUNIX*)
7682  symcode='[ABDT]'
7683  ;;
7684sysv4)
7685  symcode='[DFNSTU]'
7686  ;;
7687esac
7688
7689# Handle CRLF in mingw tool chain
7690opt_cr=
7691case $build_os in
7692mingw*)
7693  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7694  ;;
7695esac
7696
7697# If we're using GNU nm, then use its standard symbol codes.
7698case `$NM -V 2>&1` in
7699*GNU* | *'with BFD'*)
7700  symcode='[ABCDGIRSTW]' ;;
7701esac
7702
7703# Try without a prefix undercore, then with it.
7704for ac_symprfx in "" "_"; do
7705
7706  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7707  symxfrm="\\1 $ac_symprfx\\2 \\2"
7708
7709  # Write the raw and C identifiers.
7710  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7711
7712  # Check to see that the pipe works correctly.
7713  pipe_works=no
7714
7715  rm -f conftest*
7716  cat > conftest.$ac_ext <<EOF
7717#ifdef __cplusplus
7718extern "C" {
7719#endif
7720char nm_test_var;
7721void nm_test_func(){}
7722#ifdef __cplusplus
7723}
7724#endif
7725int main(){nm_test_var='a';nm_test_func();return(0);}
7726EOF
7727
7728  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7729  (eval $ac_compile) 2>&5
7730  ac_status=$?
7731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732  (exit $ac_status); }; then
7733    # Now try to grab the symbols.
7734    nlist=conftest.nm
7735    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7736  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7737  ac_status=$?
7738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739  (exit $ac_status); } && test -s "$nlist"; then
7740      # Try sorting and uniquifying the output.
7741      if sort "$nlist" | uniq > "$nlist"T; then
7742        mv -f "$nlist"T "$nlist"
7743      else
7744        rm -f "$nlist"T
7745      fi
7746
7747      # Make sure that we snagged all the symbols we need.
7748      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7749        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7750          cat <<EOF > conftest.$ac_ext
7751#ifdef __cplusplus
7752extern "C" {
7753#endif
7754
7755EOF
7756          # Now generate the symbol file.
7757          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7758
7759          cat <<EOF >> conftest.$ac_ext
7760#if defined (__STDC__) && __STDC__
7761# define lt_ptr_t void *
7762#else
7763# define lt_ptr_t char *
7764# define const
7765#endif
7766
7767/* The mapping between symbol names and symbols. */
7768const struct {
7769  const char *name;
7770  lt_ptr_t address;
7771}
7772lt_preloaded_symbols[] =
7773{
7774EOF
7775          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7776          cat <<\EOF >> conftest.$ac_ext
7777  {0, (lt_ptr_t) 0}
7778};
7779
7780#ifdef __cplusplus
7781}
7782#endif
7783EOF
7784          # Now try linking the two files.
7785          mv conftest.$ac_objext conftstm.$ac_objext
7786          lt_save_LIBS="$LIBS"
7787          lt_save_CFLAGS="$CFLAGS"
7788          LIBS="conftstm.$ac_objext"
7789          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7790          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7791  (eval $ac_link) 2>&5
7792  ac_status=$?
7793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7795            pipe_works=yes
7796          fi
7797          LIBS="$lt_save_LIBS"
7798          CFLAGS="$lt_save_CFLAGS"
7799        else
7800          echo "cannot find nm_test_func in $nlist" >&5
7801        fi
7802      else
7803        echo "cannot find nm_test_var in $nlist" >&5
7804      fi
7805    else
7806      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7807    fi
7808  else
7809    echo "$progname: failed program was:" >&5
7810    cat conftest.$ac_ext >&5
7811  fi
7812  rm -f conftest* conftst*
7813
7814  # Do not use the global_symbol_pipe unless it works.
7815  if test "$pipe_works" = yes; then
7816    break
7817  else
7818    lt_cv_sys_global_symbol_pipe=
7819  fi
7820done
7821
7822fi
7823
7824if test -z "$lt_cv_sys_global_symbol_pipe"; then
7825  lt_cv_sys_global_symbol_to_cdecl=
7826fi
7827if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7828  echo "$as_me:$LINENO: result: failed" >&5
7829echo "${ECHO_T}failed" >&6
7830else
7831  echo "$as_me:$LINENO: result: ok" >&5
7832echo "${ECHO_T}ok" >&6
7833fi
7834
7835echo "$as_me:$LINENO: checking for objdir" >&5
7836echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7837if test "${lt_cv_objdir+set}" = set; then
7838  echo $ECHO_N "(cached) $ECHO_C" >&6
7839else
7840  rm -f .libs 2>/dev/null
7841mkdir .libs 2>/dev/null
7842if test -d .libs; then
7843  lt_cv_objdir=.libs
7844else
7845  # MS-DOS does not allow filenames that begin with a dot.
7846  lt_cv_objdir=_libs
7847fi
7848rmdir .libs 2>/dev/null
7849fi
7850echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7851echo "${ECHO_T}$lt_cv_objdir" >&6
7852objdir=$lt_cv_objdir
7853
7854
7855
7856
7857
7858case $host_os in
7859aix3*)
7860  # AIX sometimes has problems with the GCC collect2 program.  For some
7861  # reason, if we set the COLLECT_NAMES environment variable, the problems
7862  # vanish in a puff of smoke.
7863  if test "X${COLLECT_NAMES+set}" != Xset; then
7864    COLLECT_NAMES=
7865    export COLLECT_NAMES
7866  fi
7867  ;;
7868esac
7869
7870# Sed substitution that helps us do robust quoting.  It backslashifies
7871# metacharacters that are still active within double-quoted strings.
7872Xsed='sed -e 1s/^X//'
7873sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7874
7875# Same as above, but do not quote variable references.
7876double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7877
7878# Sed substitution to delay expansion of an escaped shell variable in a
7879# double_quote_subst'ed string.
7880delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7881
7882# Sed substitution to avoid accidental globbing in evaled expressions
7883no_glob_subst='s/\*/\\\*/g'
7884
7885# Constants:
7886rm="rm -f"
7887
7888# Global variables:
7889default_ofile=libtool
7890can_build_shared=yes
7891
7892# All known linkers require a `.a' archive for static linking (except MSVC,
7893# which needs '.lib').
7894libext=a
7895ltmain="$ac_aux_dir/ltmain.sh"
7896ofile="$default_ofile"
7897with_gnu_ld="$lt_cv_prog_gnu_ld"
7898
7899if test -n "$ac_tool_prefix"; then
7900  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7901set dummy ${ac_tool_prefix}ar; ac_word=$2
7902echo "$as_me:$LINENO: checking for $ac_word" >&5
7903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7904if test "${ac_cv_prog_AR+set}" = set; then
7905  echo $ECHO_N "(cached) $ECHO_C" >&6
7906else
7907  if test -n "$AR"; then
7908  ac_cv_prog_AR="$AR" # Let the user override the test.
7909else
7910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911for as_dir in $PATH
7912do
7913  IFS=$as_save_IFS
7914  test -z "$as_dir" && as_dir=.
7915  for ac_exec_ext in '' $ac_executable_extensions; do
7916  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7917    ac_cv_prog_AR="${ac_tool_prefix}ar"
7918    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7919    break 2
7920  fi
7921done
7922done
7923
7924fi
7925fi
7926AR=$ac_cv_prog_AR
7927if test -n "$AR"; then
7928  echo "$as_me:$LINENO: result: $AR" >&5
7929echo "${ECHO_T}$AR" >&6
7930else
7931  echo "$as_me:$LINENO: result: no" >&5
7932echo "${ECHO_T}no" >&6
7933fi
7934
7935fi
7936if test -z "$ac_cv_prog_AR"; then
7937  ac_ct_AR=$AR
7938  # Extract the first word of "ar", so it can be a program name with args.
7939set dummy ar; ac_word=$2
7940echo "$as_me:$LINENO: checking for $ac_word" >&5
7941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7942if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7943  echo $ECHO_N "(cached) $ECHO_C" >&6
7944else
7945  if test -n "$ac_ct_AR"; then
7946  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7947else
7948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949for as_dir in $PATH
7950do
7951  IFS=$as_save_IFS
7952  test -z "$as_dir" && as_dir=.
7953  for ac_exec_ext in '' $ac_executable_extensions; do
7954  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7955    ac_cv_prog_ac_ct_AR="ar"
7956    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7957    break 2
7958  fi
7959done
7960done
7961
7962  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7963fi
7964fi
7965ac_ct_AR=$ac_cv_prog_ac_ct_AR
7966if test -n "$ac_ct_AR"; then
7967  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7968echo "${ECHO_T}$ac_ct_AR" >&6
7969else
7970  echo "$as_me:$LINENO: result: no" >&5
7971echo "${ECHO_T}no" >&6
7972fi
7973
7974  AR=$ac_ct_AR
7975else
7976  AR="$ac_cv_prog_AR"
7977fi
7978
7979if test -n "$ac_tool_prefix"; then
7980  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7981set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7982echo "$as_me:$LINENO: checking for $ac_word" >&5
7983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7984if test "${ac_cv_prog_RANLIB+set}" = set; then
7985  echo $ECHO_N "(cached) $ECHO_C" >&6
7986else
7987  if test -n "$RANLIB"; then
7988  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7989else
7990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991for as_dir in $PATH
7992do
7993  IFS=$as_save_IFS
7994  test -z "$as_dir" && as_dir=.
7995  for ac_exec_ext in '' $ac_executable_extensions; do
7996  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7997    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7998    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7999    break 2
8000  fi
8001done
8002done
8003
8004fi
8005fi
8006RANLIB=$ac_cv_prog_RANLIB
8007if test -n "$RANLIB"; then
8008  echo "$as_me:$LINENO: result: $RANLIB" >&5
8009echo "${ECHO_T}$RANLIB" >&6
8010else
8011  echo "$as_me:$LINENO: result: no" >&5
8012echo "${ECHO_T}no" >&6
8013fi
8014
8015fi
8016if test -z "$ac_cv_prog_RANLIB"; then
8017  ac_ct_RANLIB=$RANLIB
8018  # Extract the first word of "ranlib", so it can be a program name with args.
8019set dummy ranlib; ac_word=$2
8020echo "$as_me:$LINENO: checking for $ac_word" >&5
8021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8022if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8023  echo $ECHO_N "(cached) $ECHO_C" >&6
8024else
8025  if test -n "$ac_ct_RANLIB"; then
8026  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8027else
8028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029for as_dir in $PATH
8030do
8031  IFS=$as_save_IFS
8032  test -z "$as_dir" && as_dir=.
8033  for ac_exec_ext in '' $ac_executable_extensions; do
8034  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8035    ac_cv_prog_ac_ct_RANLIB="ranlib"
8036    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8037    break 2
8038  fi
8039done
8040done
8041
8042  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8043fi
8044fi
8045ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8046if test -n "$ac_ct_RANLIB"; then
8047  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8048echo "${ECHO_T}$ac_ct_RANLIB" >&6
8049else
8050  echo "$as_me:$LINENO: result: no" >&5
8051echo "${ECHO_T}no" >&6
8052fi
8053
8054  RANLIB=$ac_ct_RANLIB
8055else
8056  RANLIB="$ac_cv_prog_RANLIB"
8057fi
8058
8059if test -n "$ac_tool_prefix"; then
8060  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8061set dummy ${ac_tool_prefix}strip; ac_word=$2
8062echo "$as_me:$LINENO: checking for $ac_word" >&5
8063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8064if test "${ac_cv_prog_STRIP+set}" = set; then
8065  echo $ECHO_N "(cached) $ECHO_C" >&6
8066else
8067  if test -n "$STRIP"; then
8068  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8069else
8070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071for as_dir in $PATH
8072do
8073  IFS=$as_save_IFS
8074  test -z "$as_dir" && as_dir=.
8075  for ac_exec_ext in '' $ac_executable_extensions; do
8076  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8077    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8078    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8079    break 2
8080  fi
8081done
8082done
8083
8084fi
8085fi
8086STRIP=$ac_cv_prog_STRIP
8087if test -n "$STRIP"; then
8088  echo "$as_me:$LINENO: result: $STRIP" >&5
8089echo "${ECHO_T}$STRIP" >&6
8090else
8091  echo "$as_me:$LINENO: result: no" >&5
8092echo "${ECHO_T}no" >&6
8093fi
8094
8095fi
8096if test -z "$ac_cv_prog_STRIP"; then
8097  ac_ct_STRIP=$STRIP
8098  # Extract the first word of "strip", so it can be a program name with args.
8099set dummy strip; ac_word=$2
8100echo "$as_me:$LINENO: checking for $ac_word" >&5
8101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8102if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8103  echo $ECHO_N "(cached) $ECHO_C" >&6
8104else
8105  if test -n "$ac_ct_STRIP"; then
8106  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8107else
8108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109for as_dir in $PATH
8110do
8111  IFS=$as_save_IFS
8112  test -z "$as_dir" && as_dir=.
8113  for ac_exec_ext in '' $ac_executable_extensions; do
8114  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8115    ac_cv_prog_ac_ct_STRIP="strip"
8116    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8117    break 2
8118  fi
8119done
8120done
8121
8122  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8123fi
8124fi
8125ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8126if test -n "$ac_ct_STRIP"; then
8127  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8128echo "${ECHO_T}$ac_ct_STRIP" >&6
8129else
8130  echo "$as_me:$LINENO: result: no" >&5
8131echo "${ECHO_T}no" >&6
8132fi
8133
8134  STRIP=$ac_ct_STRIP
8135else
8136  STRIP="$ac_cv_prog_STRIP"
8137fi
8138
8139
8140old_CC="$CC"
8141old_CFLAGS="$CFLAGS"
8142
8143# Set sane defaults for various variables
8144test -z "$AR" && AR=ar
8145test -z "$AR_FLAGS" && AR_FLAGS=cru
8146test -z "$AS" && AS=as
8147test -z "$CC" && CC=cc
8148test -z "$LTCC" && LTCC=$CC
8149test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8150test -z "$DLLTOOL" && DLLTOOL=dlltool
8151test -z "$LD" && LD=ld
8152test -z "$LN_S" && LN_S="ln -s"
8153test -z "$MAGIC_CMD" && MAGIC_CMD=file
8154test -z "$NM" && NM=nm
8155test -z "$SED" && SED=sed
8156test -z "$OBJDUMP" && OBJDUMP=objdump
8157test -z "$RANLIB" && RANLIB=:
8158test -z "$STRIP" && STRIP=:
8159test -z "$ac_objext" && ac_objext=o
8160
8161# Determine commands to create old-style static archives.
8162old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8163old_postinstall_cmds='chmod 644 $oldlib'
8164old_postuninstall_cmds=
8165
8166if test -n "$RANLIB"; then
8167  case $host_os in
8168  openbsd*)
8169    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8170    ;;
8171  *)
8172    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8173    ;;
8174  esac
8175  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8176fi
8177
8178for cc_temp in $compiler""; do
8179  case $cc_temp in
8180    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8181    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8182    \-*) ;;
8183    *) break;;
8184  esac
8185done
8186cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8187
8188
8189# Only perform the check for file, if the check method requires it
8190case $deplibs_check_method in
8191file_magic*)
8192  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8193    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8194echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8195if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8196  echo $ECHO_N "(cached) $ECHO_C" >&6
8197else
8198  case $MAGIC_CMD in
8199[\\/*] |  ?:[\\/]*)
8200  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8201  ;;
8202*)
8203  lt_save_MAGIC_CMD="$MAGIC_CMD"
8204  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8205  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8206  for ac_dir in $ac_dummy; do
8207    IFS="$lt_save_ifs"
8208    test -z "$ac_dir" && ac_dir=.
8209    if test -f $ac_dir/${ac_tool_prefix}file; then
8210      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8211      if test -n "$file_magic_test_file"; then
8212        case $deplibs_check_method in
8213        "file_magic "*)
8214          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8215          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8216          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8217            $EGREP "$file_magic_regex" > /dev/null; then
8218            :
8219          else
8220            cat <<EOF 1>&2
8221
8222*** Warning: the command libtool uses to detect shared libraries,
8223*** $file_magic_cmd, produces output that libtool cannot recognize.
8224*** The result is that libtool may fail to recognize shared libraries
8225*** as such.  This will affect the creation of libtool libraries that
8226*** depend on shared libraries, but programs linked with such libtool
8227*** libraries will work regardless of this problem.  Nevertheless, you
8228*** may want to report the problem to your system manager and/or to
8229*** bug-libtool@gnu.org
8230
8231EOF
8232          fi ;;
8233        esac
8234      fi
8235      break
8236    fi
8237  done
8238  IFS="$lt_save_ifs"
8239  MAGIC_CMD="$lt_save_MAGIC_CMD"
8240  ;;
8241esac
8242fi
8243
8244MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8245if test -n "$MAGIC_CMD"; then
8246  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8247echo "${ECHO_T}$MAGIC_CMD" >&6
8248else
8249  echo "$as_me:$LINENO: result: no" >&5
8250echo "${ECHO_T}no" >&6
8251fi
8252
8253if test -z "$lt_cv_path_MAGIC_CMD"; then
8254  if test -n "$ac_tool_prefix"; then
8255    echo "$as_me:$LINENO: checking for file" >&5
8256echo $ECHO_N "checking for file... $ECHO_C" >&6
8257if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8258  echo $ECHO_N "(cached) $ECHO_C" >&6
8259else
8260  case $MAGIC_CMD in
8261[\\/*] |  ?:[\\/]*)
8262  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8263  ;;
8264*)
8265  lt_save_MAGIC_CMD="$MAGIC_CMD"
8266  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8267  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8268  for ac_dir in $ac_dummy; do
8269    IFS="$lt_save_ifs"
8270    test -z "$ac_dir" && ac_dir=.
8271    if test -f $ac_dir/file; then
8272      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8273      if test -n "$file_magic_test_file"; then
8274        case $deplibs_check_method in
8275        "file_magic "*)
8276          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8277          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8278          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8279            $EGREP "$file_magic_regex" > /dev/null; then
8280            :
8281          else
8282            cat <<EOF 1>&2
8283
8284*** Warning: the command libtool uses to detect shared libraries,
8285*** $file_magic_cmd, produces output that libtool cannot recognize.
8286*** The result is that libtool may fail to recognize shared libraries
8287*** as such.  This will affect the creation of libtool libraries that
8288*** depend on shared libraries, but programs linked with such libtool
8289*** libraries will work regardless of this problem.  Nevertheless, you
8290*** may want to report the problem to your system manager and/or to
8291*** bug-libtool@gnu.org
8292
8293EOF
8294          fi ;;
8295        esac
8296      fi
8297      break
8298    fi
8299  done
8300  IFS="$lt_save_ifs"
8301  MAGIC_CMD="$lt_save_MAGIC_CMD"
8302  ;;
8303esac
8304fi
8305
8306MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8307if test -n "$MAGIC_CMD"; then
8308  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8309echo "${ECHO_T}$MAGIC_CMD" >&6
8310else
8311  echo "$as_me:$LINENO: result: no" >&5
8312echo "${ECHO_T}no" >&6
8313fi
8314
8315  else
8316    MAGIC_CMD=:
8317  fi
8318fi
8319
8320  fi
8321  ;;
8322esac
8323
8324enable_dlopen=no
8325enable_win32_dll=no
8326
8327# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8328if test "${enable_libtool_lock+set}" = set; then
8329  enableval="$enable_libtool_lock"
8330
8331fi;
8332test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8333
8334
8335# Check whether --with-pic or --without-pic was given.
8336if test "${with_pic+set}" = set; then
8337  withval="$with_pic"
8338  pic_mode="$withval"
8339else
8340  pic_mode=default
8341fi;
8342test -z "$pic_mode" && pic_mode=default
8343
8344# Use C for the default configuration in the libtool script
8345tagname=
8346lt_save_CC="$CC"
8347ac_ext=c
8348ac_cpp='$CPP $CPPFLAGS'
8349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8351ac_compiler_gnu=$ac_cv_c_compiler_gnu
8352
8353
8354# Source file extension for C test sources.
8355ac_ext=c
8356
8357# Object file extension for compiled C test sources.
8358objext=o
8359objext=$objext
8360
8361# Code to be used in simple compile tests
8362lt_simple_compile_test_code="int some_variable = 0;\n"
8363
8364# Code to be used in simple link tests
8365lt_simple_link_test_code='int main(){return(0);}\n'
8366
8367
8368# If no C compiler was specified, use CC.
8369LTCC=${LTCC-"$CC"}
8370
8371# If no C compiler flags were specified, use CFLAGS.
8372LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8373
8374# Allow CC to be a program name with arguments.
8375compiler=$CC
8376
8377
8378# save warnings/boilerplate of simple test code
8379ac_outfile=conftest.$ac_objext
8380printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8381eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8382_lt_compiler_boilerplate=`cat conftest.err`
8383$rm conftest*
8384
8385ac_outfile=conftest.$ac_objext
8386printf "$lt_simple_link_test_code" >conftest.$ac_ext
8387eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8388_lt_linker_boilerplate=`cat conftest.err`
8389$rm conftest*
8390
8391
8392## CAVEAT EMPTOR:
8393## There is no encapsulation within the following macros, do not change
8394## the running order or otherwise move them around unless you know exactly
8395## what you are doing...
8396
8397lt_prog_compiler_no_builtin_flag=
8398
8399if test "$GCC" = yes; then
8400  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8401
8402
8403echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8404echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8405if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8406  echo $ECHO_N "(cached) $ECHO_C" >&6
8407else
8408  lt_cv_prog_compiler_rtti_exceptions=no
8409  ac_outfile=conftest.$ac_objext
8410   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8411   lt_compiler_flag="-fno-rtti -fno-exceptions"
8412   # Insert the option either (1) after the last *FLAGS variable, or
8413   # (2) before a word containing "conftest.", or (3) at the end.
8414   # Note that $ac_compile itself does not contain backslashes and begins
8415   # with a dollar sign (not a hyphen), so the echo should work correctly.
8416   # The option is referenced via a variable to avoid confusing sed.
8417   lt_compile=`echo "$ac_compile" | $SED \
8418   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8419   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8420   -e 's:$: $lt_compiler_flag:'`
8421   (eval echo "\"\$as_me:8421: $lt_compile\"" >&5)
8422   (eval "$lt_compile" 2>conftest.err)
8423   ac_status=$?
8424   cat conftest.err >&5
8425   echo "$as_me:8425: \$? = $ac_status" >&5
8426   if (exit $ac_status) && test -s "$ac_outfile"; then
8427     # The compiler can only warn and ignore the option if not recognized
8428     # So say no if there are warnings other than the usual output.
8429     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8430     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8431     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8432       lt_cv_prog_compiler_rtti_exceptions=yes
8433     fi
8434   fi
8435   $rm conftest*
8436
8437fi
8438echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8439echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8440
8441if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8442    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8443else
8444    :
8445fi
8446
8447fi
8448
8449lt_prog_compiler_wl=
8450lt_prog_compiler_pic=
8451lt_prog_compiler_static=
8452
8453echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8454echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8455
8456  if test "$GCC" = yes; then
8457    lt_prog_compiler_wl='-Wl,'
8458    lt_prog_compiler_static='-static'
8459
8460    case $host_os in
8461      aix*)
8462      # All AIX code is PIC.
8463      if test "$host_cpu" = ia64; then
8464        # AIX 5 now supports IA64 processor
8465        lt_prog_compiler_static='-Bstatic'
8466      fi
8467      ;;
8468
8469    amigaos*)
8470      # FIXME: we need at least 68020 code to build shared libraries, but
8471      # adding the `-m68020' flag to GCC prevents building anything better,
8472      # like `-m68040'.
8473      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8474      ;;
8475
8476    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8477      # PIC is the default for these OSes.
8478      ;;
8479
8480    mingw* | pw32* | os2*)
8481      # This hack is so that the source file can tell whether it is being
8482      # built for inclusion in a dll (and should export symbols for example).
8483      lt_prog_compiler_pic='-DDLL_EXPORT'
8484      ;;
8485
8486    darwin* | rhapsody*)
8487      # PIC is the default on this platform
8488      # Common symbols not allowed in MH_DYLIB files
8489      lt_prog_compiler_pic='-fno-common'
8490      ;;
8491
8492    interix3*)
8493      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8494      # Instead, we relocate shared libraries at runtime.
8495      ;;
8496
8497    msdosdjgpp*)
8498      # Just because we use GCC doesn't mean we suddenly get shared libraries
8499      # on systems that don't support them.
8500      lt_prog_compiler_can_build_shared=no
8501      enable_shared=no
8502      ;;
8503
8504    sysv4*MP*)
8505      if test -d /usr/nec; then
8506        lt_prog_compiler_pic=-Kconform_pic
8507      fi
8508      ;;
8509
8510    hpux*)
8511      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8512      # not for PA HP-UX.
8513      case $host_cpu in
8514      hppa*64*|ia64*)
8515        # +Z the default
8516        ;;
8517      *)
8518        lt_prog_compiler_pic='-fPIC'
8519        ;;
8520      esac
8521      ;;
8522
8523    *)
8524      lt_prog_compiler_pic='-fPIC'
8525      ;;
8526    esac
8527  else
8528    # PORTME Check for flag to pass linker flags through the system compiler.
8529    case $host_os in
8530    aix*)
8531      lt_prog_compiler_wl='-Wl,'
8532      if test "$host_cpu" = ia64; then
8533        # AIX 5 now supports IA64 processor
8534        lt_prog_compiler_static='-Bstatic'
8535      else
8536        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8537      fi
8538      ;;
8539      darwin*)
8540        # PIC is the default on this platform
8541        # Common symbols not allowed in MH_DYLIB files
8542       case $cc_basename in
8543         xlc*)
8544         lt_prog_compiler_pic='-qnocommon'
8545         lt_prog_compiler_wl='-Wl,'
8546         ;;
8547       esac
8548       ;;
8549
8550    mingw* | pw32* | os2*)
8551      # This hack is so that the source file can tell whether it is being
8552      # built for inclusion in a dll (and should export symbols for example).
8553      lt_prog_compiler_pic='-DDLL_EXPORT'
8554      ;;
8555
8556    hpux9* | hpux10* | hpux11*)
8557      lt_prog_compiler_wl='-Wl,'
8558      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8559      # not for PA HP-UX.
8560      case $host_cpu in
8561      hppa*64*|ia64*)
8562        # +Z the default
8563        ;;
8564      *)
8565        lt_prog_compiler_pic='+Z'
8566        ;;
8567      esac
8568      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8569      lt_prog_compiler_static='${wl}-a ${wl}archive'
8570      ;;
8571
8572    irix5* | irix6* | nonstopux*)
8573      lt_prog_compiler_wl='-Wl,'
8574      # PIC (with -KPIC) is the default.
8575      lt_prog_compiler_static='-non_shared'
8576      ;;
8577
8578    newsos6)
8579      lt_prog_compiler_pic='-KPIC'
8580      lt_prog_compiler_static='-Bstatic'
8581      ;;
8582
8583    linux*)
8584      case $cc_basename in
8585      icc* | ecc*)
8586        lt_prog_compiler_wl='-Wl,'
8587        lt_prog_compiler_pic='-KPIC'
8588        lt_prog_compiler_static='-static'
8589        ;;
8590      pgcc* | pgf77* | pgf90* | pgf95*)
8591        # Portland Group compilers (*not* the Pentium gcc compiler,
8592        # which looks to be a dead project)
8593        lt_prog_compiler_wl='-Wl,'
8594        lt_prog_compiler_pic='-fpic'
8595        lt_prog_compiler_static='-Bstatic'
8596        ;;
8597      ccc*)
8598        lt_prog_compiler_wl='-Wl,'
8599        # All Alpha code is PIC.
8600        lt_prog_compiler_static='-non_shared'
8601        ;;
8602      esac
8603      ;;
8604
8605    osf3* | osf4* | osf5*)
8606      lt_prog_compiler_wl='-Wl,'
8607      # All OSF/1 code is PIC.
8608      lt_prog_compiler_static='-non_shared'
8609      ;;
8610
8611    solaris*)
8612      lt_prog_compiler_pic='-KPIC'
8613      lt_prog_compiler_static='-Bstatic'
8614      case $cc_basename in
8615      f77* | f90* | f95*)
8616        lt_prog_compiler_wl='-Qoption ld ';;
8617      *)
8618        lt_prog_compiler_wl='-Wl,';;
8619      esac
8620      ;;
8621
8622    sunos4*)
8623      lt_prog_compiler_wl='-Qoption ld '
8624      lt_prog_compiler_pic='-PIC'
8625      lt_prog_compiler_static='-Bstatic'
8626      ;;
8627
8628    sysv4 | sysv4.2uw2* | sysv4.3*)
8629      lt_prog_compiler_wl='-Wl,'
8630      lt_prog_compiler_pic='-KPIC'
8631      lt_prog_compiler_static='-Bstatic'
8632      ;;
8633
8634    sysv4*MP*)
8635      if test -d /usr/nec ;then
8636        lt_prog_compiler_pic='-Kconform_pic'
8637        lt_prog_compiler_static='-Bstatic'
8638      fi
8639      ;;
8640
8641    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8642      lt_prog_compiler_wl='-Wl,'
8643      lt_prog_compiler_pic='-KPIC'
8644      lt_prog_compiler_static='-Bstatic'
8645      ;;
8646
8647    unicos*)
8648      lt_prog_compiler_wl='-Wl,'
8649      lt_prog_compiler_can_build_shared=no
8650      ;;
8651
8652    uts4*)
8653      lt_prog_compiler_pic='-pic'
8654      lt_prog_compiler_static='-Bstatic'
8655      ;;
8656
8657    *)
8658      lt_prog_compiler_can_build_shared=no
8659      ;;
8660    esac
8661  fi
8662
8663echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8664echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8665
8666#
8667# Check to make sure the PIC flag actually works.
8668#
8669if test -n "$lt_prog_compiler_pic"; then
8670
8671echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8672echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8673if test "${lt_prog_compiler_pic_works+set}" = set; then
8674  echo $ECHO_N "(cached) $ECHO_C" >&6
8675else
8676  lt_prog_compiler_pic_works=no
8677  ac_outfile=conftest.$ac_objext
8678   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8679   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8680   # Insert the option either (1) after the last *FLAGS variable, or
8681   # (2) before a word containing "conftest.", or (3) at the end.
8682   # Note that $ac_compile itself does not contain backslashes and begins
8683   # with a dollar sign (not a hyphen), so the echo should work correctly.
8684   # The option is referenced via a variable to avoid confusing sed.
8685   lt_compile=`echo "$ac_compile" | $SED \
8686   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8687   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8688   -e 's:$: $lt_compiler_flag:'`
8689   (eval echo "\"\$as_me:8689: $lt_compile\"" >&5)
8690   (eval "$lt_compile" 2>conftest.err)
8691   ac_status=$?
8692   cat conftest.err >&5
8693   echo "$as_me:8693: \$? = $ac_status" >&5
8694   if (exit $ac_status) && test -s "$ac_outfile"; then
8695     # The compiler can only warn and ignore the option if not recognized
8696     # So say no if there are warnings other than the usual output.
8697     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8698     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8699     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8700       lt_prog_compiler_pic_works=yes
8701     fi
8702   fi
8703   $rm conftest*
8704
8705fi
8706echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8707echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8708
8709if test x"$lt_prog_compiler_pic_works" = xyes; then
8710    case $lt_prog_compiler_pic in
8711     "" | " "*) ;;
8712     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8713     esac
8714else
8715    lt_prog_compiler_pic=
8716     lt_prog_compiler_can_build_shared=no
8717fi
8718
8719fi
8720case $host_os in
8721  # For platforms which do not support PIC, -DPIC is meaningless:
8722  *djgpp*)
8723    lt_prog_compiler_pic=
8724    ;;
8725  *)
8726    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8727    ;;
8728esac
8729
8730#
8731# Check to make sure the static flag actually works.
8732#
8733wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8734echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8735echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8736if test "${lt_prog_compiler_static_works+set}" = set; then
8737  echo $ECHO_N "(cached) $ECHO_C" >&6
8738else
8739  lt_prog_compiler_static_works=no
8740   save_LDFLAGS="$LDFLAGS"
8741   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8742   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8743   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8744     # The linker can only warn and ignore the option if not recognized
8745     # So say no if there are warnings
8746     if test -s conftest.err; then
8747       # Append any errors to the config.log.
8748       cat conftest.err 1>&5
8749       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8750       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8751       if diff conftest.exp conftest.er2 >/dev/null; then
8752         lt_prog_compiler_static_works=yes
8753       fi
8754     else
8755       lt_prog_compiler_static_works=yes
8756     fi
8757   fi
8758   $rm conftest*
8759   LDFLAGS="$save_LDFLAGS"
8760
8761fi
8762echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8763echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8764
8765if test x"$lt_prog_compiler_static_works" = xyes; then
8766    :
8767else
8768    lt_prog_compiler_static=
8769fi
8770
8771
8772echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8773echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8774if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8775  echo $ECHO_N "(cached) $ECHO_C" >&6
8776else
8777  lt_cv_prog_compiler_c_o=no
8778   $rm -r conftest 2>/dev/null
8779   mkdir conftest
8780   cd conftest
8781   mkdir out
8782   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8783
8784   lt_compiler_flag="-o out/conftest2.$ac_objext"
8785   # Insert the option either (1) after the last *FLAGS variable, or
8786   # (2) before a word containing "conftest.", or (3) at the end.
8787   # Note that $ac_compile itself does not contain backslashes and begins
8788   # with a dollar sign (not a hyphen), so the echo should work correctly.
8789   lt_compile=`echo "$ac_compile" | $SED \
8790   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8791   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8792   -e 's:$: $lt_compiler_flag:'`
8793   (eval echo "\"\$as_me:8793: $lt_compile\"" >&5)
8794   (eval "$lt_compile" 2>out/conftest.err)
8795   ac_status=$?
8796   cat out/conftest.err >&5
8797   echo "$as_me:8797: \$? = $ac_status" >&5
8798   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8799   then
8800     # The compiler can only warn and ignore the option if not recognized
8801     # So say no if there are warnings
8802     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8803     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8804     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8805       lt_cv_prog_compiler_c_o=yes
8806     fi
8807   fi
8808   chmod u+w . 2>&5
8809   $rm conftest*
8810   # SGI C++ compiler will create directory out/ii_files/ for
8811   # template instantiation
8812   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8813   $rm out/* && rmdir out
8814   cd ..
8815   rmdir conftest
8816   $rm conftest*
8817
8818fi
8819echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8820echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8821
8822
8823hard_links="nottested"
8824if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8825  # do not overwrite the value of need_locks provided by the user
8826  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8827echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8828  hard_links=yes
8829  $rm conftest*
8830  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8831  touch conftest.a
8832  ln conftest.a conftest.b 2>&5 || hard_links=no
8833  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8834  echo "$as_me:$LINENO: result: $hard_links" >&5
8835echo "${ECHO_T}$hard_links" >&6
8836  if test "$hard_links" = no; then
8837    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8838echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8839    need_locks=warn
8840  fi
8841else
8842  need_locks=no
8843fi
8844
8845echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8846echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8847
8848  runpath_var=
8849  allow_undefined_flag=
8850  enable_shared_with_static_runtimes=no
8851  archive_cmds=
8852  archive_expsym_cmds=
8853  old_archive_From_new_cmds=
8854  old_archive_from_expsyms_cmds=
8855  export_dynamic_flag_spec=
8856  whole_archive_flag_spec=
8857  thread_safe_flag_spec=
8858  hardcode_libdir_flag_spec=
8859  hardcode_libdir_flag_spec_ld=
8860  hardcode_libdir_separator=
8861  hardcode_direct=no
8862  hardcode_minus_L=no
8863  hardcode_shlibpath_var=unsupported
8864  link_all_deplibs=unknown
8865  hardcode_automatic=no
8866  module_cmds=
8867  module_expsym_cmds=
8868  always_export_symbols=no
8869  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8870  # include_expsyms should be a list of space-separated symbols to be *always*
8871  # included in the symbol list
8872  include_expsyms=
8873  # exclude_expsyms can be an extended regexp of symbols to exclude
8874  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8875  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8876  # as well as any symbol that contains `d'.
8877  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8878  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8879  # platforms (ab)use it in PIC code, but their linkers get confused if
8880  # the symbol is explicitly referenced.  Since portable code cannot
8881  # rely on this symbol name, it's probably fine to never include it in
8882  # preloaded symbol tables.
8883  extract_expsyms_cmds=
8884  # Just being paranoid about ensuring that cc_basename is set.
8885  for cc_temp in $compiler""; do
8886  case $cc_temp in
8887    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8888    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8889    \-*) ;;
8890    *) break;;
8891  esac
8892done
8893cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8894
8895  case $host_os in
8896  cygwin* | mingw* | pw32*)
8897    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8898    # When not using gcc, we currently assume that we are using
8899    # Microsoft Visual C++.
8900    if test "$GCC" != yes; then
8901      with_gnu_ld=no
8902    fi
8903    ;;
8904  interix*)
8905    # we just hope/assume this is gcc and not c89 (= MSVC++)
8906    with_gnu_ld=yes
8907    ;;
8908  openbsd*)
8909    with_gnu_ld=no
8910    ;;
8911  esac
8912
8913  ld_shlibs=yes
8914  if test "$with_gnu_ld" = yes; then
8915    # If archive_cmds runs LD, not CC, wlarc should be empty
8916    wlarc='${wl}'
8917
8918    # Set some defaults for GNU ld with shared library support. These
8919    # are reset later if shared libraries are not supported. Putting them
8920    # here allows them to be overridden if necessary.
8921    runpath_var=LD_RUN_PATH
8922    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8923    export_dynamic_flag_spec='${wl}--export-dynamic'
8924    # ancient GNU ld didn't support --whole-archive et. al.
8925    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8926        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8927      else
8928        whole_archive_flag_spec=
8929    fi
8930    supports_anon_versioning=no
8931    case `$LD -v 2>/dev/null` in
8932      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8933      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8934      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8935      *\ 2.11.*) ;; # other 2.11 versions
8936      *) supports_anon_versioning=yes ;;
8937    esac
8938
8939    # See if GNU ld supports shared libraries.
8940    case $host_os in
8941    aix3* | aix4* | aix5*)
8942      # On AIX/PPC, the GNU linker is very broken
8943      if test "$host_cpu" != ia64; then
8944        ld_shlibs=no
8945        cat <<EOF 1>&2
8946
8947*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8948*** to be unable to reliably create shared libraries on AIX.
8949*** Therefore, libtool is disabling shared libraries support.  If you
8950*** really care for shared libraries, you may want to modify your PATH
8951*** so that a non-GNU linker is found, and then restart.
8952
8953EOF
8954      fi
8955      ;;
8956
8957    amigaos*)
8958      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)'
8959      hardcode_libdir_flag_spec='-L$libdir'
8960      hardcode_minus_L=yes
8961
8962      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8963      # that the semantics of dynamic libraries on AmigaOS, at least up
8964      # to version 4, is to share data among multiple programs linked
8965      # with the same dynamic library.  Since this doesn't match the
8966      # behavior of shared libraries on other platforms, we can't use
8967      # them.
8968      ld_shlibs=no
8969      ;;
8970
8971    beos*)
8972      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8973        allow_undefined_flag=unsupported
8974        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8975        # support --undefined.  This deserves some investigation.  FIXME
8976        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8977      else
8978        ld_shlibs=no
8979      fi
8980      ;;
8981
8982    cygwin* | mingw* | pw32*)
8983      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8984      # as there is no search path for DLLs.
8985      hardcode_libdir_flag_spec='-L$libdir'
8986      allow_undefined_flag=unsupported
8987      always_export_symbols=no
8988      enable_shared_with_static_runtimes=yes
8989      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8990
8991      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8992        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8993        # If the export-symbols file already is a .def file (1st line
8994        # is EXPORTS), use it as is; otherwise, prepend...
8995        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8996          cp $export_symbols $output_objdir/$soname.def;
8997        else
8998          echo EXPORTS > $output_objdir/$soname.def;
8999          cat $export_symbols >> $output_objdir/$soname.def;
9000        fi~
9001        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9002      else
9003        ld_shlibs=no
9004      fi
9005      ;;
9006
9007    interix3*)
9008      hardcode_direct=no
9009      hardcode_shlibpath_var=no
9010      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9011      export_dynamic_flag_spec='${wl}-E'
9012      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9013      # Instead, shared libraries are loaded at an image base (0x10000000 by
9014      # default) and relocated if they conflict, which is a slow very memory
9015      # consuming and fragmenting process.  To avoid this, we pick a random,
9016      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9017      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9018      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9019      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'
9020      ;;
9021
9022    linux*)
9023      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9024        tmp_addflag=
9025        case $cc_basename,$host_cpu in
9026        pgcc*)                          # Portland Group C compiler
9027          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'
9028          tmp_addflag=' $pic_flag'
9029          ;;
9030        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9031          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'
9032          tmp_addflag=' $pic_flag -Mnomain' ;;
9033        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9034          tmp_addflag=' -i_dynamic' ;;
9035        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9036          tmp_addflag=' -i_dynamic -nofor_main' ;;
9037        ifc* | ifort*)                  # Intel Fortran compiler
9038          tmp_addflag=' -nofor_main' ;;
9039        esac
9040        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9041
9042        if test $supports_anon_versioning = yes; then
9043          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9044  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9045  $echo "local: *; };" >> $output_objdir/$libname.ver~
9046          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9047        fi
9048      else
9049        ld_shlibs=no
9050      fi
9051      ;;
9052
9053    netbsd*)
9054      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9055        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9056        wlarc=
9057      else
9058        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9059        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9060      fi
9061      ;;
9062
9063    solaris*)
9064      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9065        ld_shlibs=no
9066        cat <<EOF 1>&2
9067
9068*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9069*** create shared libraries on Solaris systems.  Therefore, libtool
9070*** is disabling shared libraries support.  We urge you to upgrade GNU
9071*** binutils to release 2.9.1 or newer.  Another option is to modify
9072*** your PATH or compiler configuration so that the native linker is
9073*** used, and then restart.
9074
9075EOF
9076      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9077        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9078        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9079      else
9080        ld_shlibs=no
9081      fi
9082      ;;
9083
9084    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9085      case `$LD -v 2>&1` in
9086        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9087        ld_shlibs=no
9088        cat <<_LT_EOF 1>&2
9089
9090*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9091*** reliably create shared libraries on SCO systems.  Therefore, libtool
9092*** is disabling shared libraries support.  We urge you to upgrade GNU
9093*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9094*** your PATH or compiler configuration so that the native linker is
9095*** used, and then restart.
9096
9097_LT_EOF
9098        ;;
9099        *)
9100          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9101            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9102            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9103            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9104          else
9105            ld_shlibs=no
9106          fi
9107        ;;
9108      esac
9109      ;;
9110
9111    sunos4*)
9112      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9113      wlarc=
9114      hardcode_direct=yes
9115      hardcode_shlibpath_var=no
9116      ;;
9117
9118    *)
9119      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9120        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9121        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9122      else
9123        ld_shlibs=no
9124      fi
9125      ;;
9126    esac
9127
9128    if test "$ld_shlibs" = no; then
9129      runpath_var=
9130      hardcode_libdir_flag_spec=
9131      export_dynamic_flag_spec=
9132      whole_archive_flag_spec=
9133    fi
9134  else
9135    # PORTME fill in a description of your system's linker (not GNU ld)
9136    case $host_os in
9137    aix3*)
9138      allow_undefined_flag=unsupported
9139      always_export_symbols=yes
9140      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'
9141      # Note: this linker hardcodes the directories in LIBPATH if there
9142      # are no directories specified by -L.
9143      hardcode_minus_L=yes
9144      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9145        # Neither direct hardcoding nor static linking is supported with a
9146        # broken collect2.
9147        hardcode_direct=unsupported
9148      fi
9149      ;;
9150
9151    aix4* | aix5*)
9152      if test "$host_cpu" = ia64; then
9153        # On IA64, the linker does run time linking by default, so we don't
9154        # have to do anything special.
9155        aix_use_runtimelinking=no
9156        exp_sym_flag='-Bexport'
9157        no_entry_flag=""
9158      else
9159        # If we're using GNU nm, then we don't want the "-C" option.
9160        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9161        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9162          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'
9163        else
9164          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'
9165        fi
9166        aix_use_runtimelinking=no
9167
9168        # Test if we are trying to use run time linking or normal
9169        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9170        # need to do runtime linking.
9171        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9172          for ld_flag in $LDFLAGS; do
9173          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9174            aix_use_runtimelinking=yes
9175            break
9176          fi
9177          done
9178          ;;
9179        esac
9180
9181        exp_sym_flag='-bexport'
9182        no_entry_flag='-bnoentry'
9183      fi
9184
9185      # When large executables or shared objects are built, AIX ld can
9186      # have problems creating the table of contents.  If linking a library
9187      # or program results in "error TOC overflow" add -mminimal-toc to
9188      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9189      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9190
9191      archive_cmds=''
9192      hardcode_direct=yes
9193      hardcode_libdir_separator=':'
9194      link_all_deplibs=yes
9195
9196      if test "$GCC" = yes; then
9197        case $host_os in aix4.[012]|aix4.[012].*)
9198        # We only want to do this on AIX 4.2 and lower, the check
9199        # below for broken collect2 doesn't work under 4.3+
9200          collect2name=`${CC} -print-prog-name=collect2`
9201          if test -f "$collect2name" && \
9202           strings "$collect2name" | grep resolve_lib_name >/dev/null
9203          then
9204          # We have reworked collect2
9205          hardcode_direct=yes
9206          else
9207          # We have old collect2
9208          hardcode_direct=unsupported
9209          # It fails to find uninstalled libraries when the uninstalled
9210          # path is not listed in the libpath.  Setting hardcode_minus_L
9211          # to unsupported forces relinking
9212          hardcode_minus_L=yes
9213          hardcode_libdir_flag_spec='-L$libdir'
9214          hardcode_libdir_separator=
9215          fi
9216          ;;
9217        esac
9218        shared_flag='-shared'
9219        if test "$aix_use_runtimelinking" = yes; then
9220          shared_flag="$shared_flag "'${wl}-G'
9221        fi
9222      else
9223        # not using gcc
9224        if test "$host_cpu" = ia64; then
9225        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9226        # chokes on -Wl,-G. The following line is correct:
9227          shared_flag='-G'
9228        else
9229          if test "$aix_use_runtimelinking" = yes; then
9230            shared_flag='${wl}-G'
9231          else
9232            shared_flag='${wl}-bM:SRE'
9233          fi
9234        fi
9235      fi
9236
9237      # It seems that -bexpall does not export symbols beginning with
9238      # underscore (_), so it is better to generate a list of symbols to export.
9239      always_export_symbols=yes
9240      if test "$aix_use_runtimelinking" = yes; then
9241        # Warning - without using the other runtime loading flags (-brtl),
9242        # -berok will link without error, but may produce a broken library.
9243        allow_undefined_flag='-berok'
9244       # Determine the default libpath from the value encoded in an empty executable.
9245       cat >conftest.$ac_ext <<_ACEOF
9246/* confdefs.h.  */
9247_ACEOF
9248cat confdefs.h >>conftest.$ac_ext
9249cat >>conftest.$ac_ext <<_ACEOF
9250/* end confdefs.h.  */
9251
9252int
9253main ()
9254{
9255
9256  ;
9257  return 0;
9258}
9259_ACEOF
9260rm -f conftest.$ac_objext conftest$ac_exeext
9261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9262  (eval $ac_link) 2>conftest.er1
9263  ac_status=$?
9264  grep -v '^ *+' conftest.er1 >conftest.err
9265  rm -f conftest.er1
9266  cat conftest.err >&5
9267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268  (exit $ac_status); } &&
9269         { ac_try='test -z "$ac_c_werror_flag"
9270                         || test ! -s conftest.err'
9271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272  (eval $ac_try) 2>&5
9273  ac_status=$?
9274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275  (exit $ac_status); }; } &&
9276         { ac_try='test -s conftest$ac_exeext'
9277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278  (eval $ac_try) 2>&5
9279  ac_status=$?
9280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281  (exit $ac_status); }; }; then
9282
9283aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9284}'`
9285# Check for a 64-bit object if we didn't find anything.
9286if 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; }
9287}'`; fi
9288else
9289  echo "$as_me: failed program was:" >&5
9290sed 's/^/| /' conftest.$ac_ext >&5
9291
9292fi
9293rm -f conftest.err conftest.$ac_objext \
9294      conftest$ac_exeext conftest.$ac_ext
9295if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9296
9297       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9298        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"
9299       else
9300        if test "$host_cpu" = ia64; then
9301          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9302          allow_undefined_flag="-z nodefs"
9303          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"
9304        else
9305         # Determine the default libpath from the value encoded in an empty executable.
9306         cat >conftest.$ac_ext <<_ACEOF
9307/* confdefs.h.  */
9308_ACEOF
9309cat confdefs.h >>conftest.$ac_ext
9310cat >>conftest.$ac_ext <<_ACEOF
9311/* end confdefs.h.  */
9312
9313int
9314main ()
9315{
9316
9317  ;
9318  return 0;
9319}
9320_ACEOF
9321rm -f conftest.$ac_objext conftest$ac_exeext
9322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9323  (eval $ac_link) 2>conftest.er1
9324  ac_status=$?
9325  grep -v '^ *+' conftest.er1 >conftest.err
9326  rm -f conftest.er1
9327  cat conftest.err >&5
9328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329  (exit $ac_status); } &&
9330         { ac_try='test -z "$ac_c_werror_flag"
9331                         || test ! -s conftest.err'
9332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333  (eval $ac_try) 2>&5
9334  ac_status=$?
9335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336  (exit $ac_status); }; } &&
9337         { ac_try='test -s conftest$ac_exeext'
9338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339  (eval $ac_try) 2>&5
9340  ac_status=$?
9341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342  (exit $ac_status); }; }; then
9343
9344aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9345}'`
9346# Check for a 64-bit object if we didn't find anything.
9347if 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; }
9348}'`; fi
9349else
9350  echo "$as_me: failed program was:" >&5
9351sed 's/^/| /' conftest.$ac_ext >&5
9352
9353fi
9354rm -f conftest.err conftest.$ac_objext \
9355      conftest$ac_exeext conftest.$ac_ext
9356if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9357
9358         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9359          # Warning - without using the other run time loading flags,
9360          # -berok will link without error, but may produce a broken library.
9361          no_undefined_flag=' ${wl}-bernotok'
9362          allow_undefined_flag=' ${wl}-berok'
9363          # Exported symbols can be pulled into shared objects from archives
9364          whole_archive_flag_spec='$convenience'
9365          archive_cmds_need_lc=yes
9366          # This is similar to how AIX traditionally builds its shared libraries.
9367          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'
9368        fi
9369      fi
9370      ;;
9371
9372    amigaos*)
9373      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)'
9374      hardcode_libdir_flag_spec='-L$libdir'
9375      hardcode_minus_L=yes
9376      # see comment about different semantics on the GNU ld section
9377      ld_shlibs=no
9378      ;;
9379
9380    bsdi[45]*)
9381      export_dynamic_flag_spec=-rdynamic
9382      ;;
9383
9384    cygwin* | mingw* | pw32*)
9385      # When not using gcc, we currently assume that we are using
9386      # Microsoft Visual C++.
9387      # hardcode_libdir_flag_spec is actually meaningless, as there is
9388      # no search path for DLLs.
9389      hardcode_libdir_flag_spec=' '
9390      allow_undefined_flag=unsupported
9391      # Tell ltmain to make .lib files, not .a files.
9392      libext=lib
9393      # Tell ltmain to make .dll files, not .so files.
9394      shrext_cmds=".dll"
9395      # FIXME: Setting linknames here is a bad hack.
9396      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9397      # The linker will automatically build a .lib file if we build a DLL.
9398      old_archive_From_new_cmds='true'
9399      # FIXME: Should let the user specify the lib program.
9400      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9401      fix_srcfile_path='`cygpath -w "$srcfile"`'
9402      enable_shared_with_static_runtimes=yes
9403      ;;
9404
9405    darwin* | rhapsody*)
9406      case $host_os in
9407        rhapsody* | darwin1.[012])
9408         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9409         ;;
9410       *) # Darwin 1.3 on
9411         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9412           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9413         else
9414           case ${MACOSX_DEPLOYMENT_TARGET} in
9415             10.[012])
9416               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9417               ;;
9418             10.*)
9419               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9420               ;;
9421           esac
9422         fi
9423         ;;
9424      esac
9425      archive_cmds_need_lc=no
9426      hardcode_direct=no
9427      hardcode_automatic=yes
9428      hardcode_shlibpath_var=unsupported
9429      whole_archive_flag_spec=''
9430      link_all_deplibs=yes
9431    if test "$GCC" = yes ; then
9432        output_verbose_link_cmd='echo'
9433        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9434      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9435      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9436      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}'
9437      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}'
9438    else
9439      case $cc_basename in
9440        xlc*)
9441         output_verbose_link_cmd='echo'
9442         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9443         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9444          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9445         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}'
9446          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}'
9447          ;;
9448       *)
9449         ld_shlibs=no
9450          ;;
9451      esac
9452    fi
9453      ;;
9454
9455    dgux*)
9456      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9457      hardcode_libdir_flag_spec='-L$libdir'
9458      hardcode_shlibpath_var=no
9459      ;;
9460
9461    freebsd1*)
9462      ld_shlibs=no
9463      ;;
9464
9465    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9466    # support.  Future versions do this automatically, but an explicit c++rt0.o
9467    # does not break anything, and helps significantly (at the cost of a little
9468    # extra space).
9469    freebsd2.2*)
9470      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9471      hardcode_libdir_flag_spec='-R$libdir'
9472      hardcode_direct=yes
9473      hardcode_shlibpath_var=no
9474      ;;
9475
9476    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9477    freebsd2*)
9478      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9479      hardcode_direct=yes
9480      hardcode_minus_L=yes
9481      hardcode_shlibpath_var=no
9482      ;;
9483
9484    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9485    freebsd* | kfreebsd*-gnu | dragonfly*)
9486      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9487      hardcode_libdir_flag_spec='-R$libdir'
9488      hardcode_direct=yes
9489      hardcode_shlibpath_var=no
9490      ;;
9491
9492    hpux9*)
9493      if test "$GCC" = yes; then
9494        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'
9495      else
9496        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'
9497      fi
9498      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9499      hardcode_libdir_separator=:
9500      hardcode_direct=yes
9501
9502      # hardcode_minus_L: Not really in the search PATH,
9503      # but as the default location of the library.
9504      hardcode_minus_L=yes
9505      export_dynamic_flag_spec='${wl}-E'
9506      ;;
9507
9508    hpux10*)
9509      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9510        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9511      else
9512        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9513      fi
9514      if test "$with_gnu_ld" = no; then
9515        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9516        hardcode_libdir_separator=:
9517
9518        hardcode_direct=yes
9519        export_dynamic_flag_spec='${wl}-E'
9520
9521        # hardcode_minus_L: Not really in the search PATH,
9522        # but as the default location of the library.
9523        hardcode_minus_L=yes
9524      fi
9525      ;;
9526
9527    hpux11*)
9528      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9529        case $host_cpu in
9530        hppa*64*)
9531          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9532          ;;
9533        ia64*)
9534          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9535          ;;
9536        *)
9537          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9538          ;;
9539        esac
9540      else
9541        case $host_cpu in
9542        hppa*64*)
9543          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9544          ;;
9545        ia64*)
9546          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9547          ;;
9548        *)
9549          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9550          ;;
9551        esac
9552      fi
9553      if test "$with_gnu_ld" = no; then
9554        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9555        hardcode_libdir_separator=:
9556
9557        case $host_cpu in
9558        hppa*64*|ia64*)
9559          hardcode_libdir_flag_spec_ld='+b $libdir'
9560          hardcode_direct=no
9561          hardcode_shlibpath_var=no
9562          ;;
9563        *)
9564          hardcode_direct=yes
9565          export_dynamic_flag_spec='${wl}-E'
9566
9567          # hardcode_minus_L: Not really in the search PATH,
9568          # but as the default location of the library.
9569          hardcode_minus_L=yes
9570          ;;
9571        esac
9572      fi
9573      ;;
9574
9575    irix5* | irix6* | nonstopux*)
9576      if test "$GCC" = yes; then
9577        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'
9578      else
9579        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'
9580        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9581      fi
9582      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9583      hardcode_libdir_separator=:
9584      link_all_deplibs=yes
9585      ;;
9586
9587    netbsd*)
9588      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9589        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9590      else
9591        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9592      fi
9593      hardcode_libdir_flag_spec='-R$libdir'
9594      hardcode_direct=yes
9595      hardcode_shlibpath_var=no
9596      ;;
9597
9598    newsos6)
9599      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9600      hardcode_direct=yes
9601      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9602      hardcode_libdir_separator=:
9603      hardcode_shlibpath_var=no
9604      ;;
9605
9606    openbsd*)
9607      hardcode_direct=yes
9608      hardcode_shlibpath_var=no
9609      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9610        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9611        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9612        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9613        export_dynamic_flag_spec='${wl}-E'
9614      else
9615       case $host_os in
9616         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9617           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9618           hardcode_libdir_flag_spec='-R$libdir'
9619           ;;
9620         *)
9621           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9622           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9623           ;;
9624       esac
9625      fi
9626      ;;
9627
9628    os2*)
9629      hardcode_libdir_flag_spec='-L$libdir'
9630      hardcode_minus_L=yes
9631      allow_undefined_flag=unsupported
9632      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'
9633      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9634      ;;
9635
9636    osf3*)
9637      if test "$GCC" = yes; then
9638        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9639        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'
9640      else
9641        allow_undefined_flag=' -expect_unresolved \*'
9642        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'
9643      fi
9644      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9645      hardcode_libdir_separator=:
9646      ;;
9647
9648    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9649      if test "$GCC" = yes; then
9650        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9651        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'
9652        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9653      else
9654        allow_undefined_flag=' -expect_unresolved \*'
9655        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'
9656        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9657        $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'
9658
9659        # Both c and cxx compiler support -rpath directly
9660        hardcode_libdir_flag_spec='-rpath $libdir'
9661      fi
9662      hardcode_libdir_separator=:
9663      ;;
9664
9665    solaris*)
9666      no_undefined_flag=' -z text'
9667      if test "$GCC" = yes; then
9668        wlarc='${wl}'
9669        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9670        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9671          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9672      else
9673        wlarc=''
9674        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9676        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9677      fi
9678      hardcode_libdir_flag_spec='-R$libdir'
9679      hardcode_shlibpath_var=no
9680      case $host_os in
9681      solaris2.[0-5] | solaris2.[0-5].*) ;;
9682      *)
9683        # The compiler driver will combine linker options so we
9684        # cannot just pass the convience library names through
9685        # without $wl, iff we do not link with $LD.
9686        # Luckily, gcc supports the same syntax we need for Sun Studio.
9687        # Supported since Solaris 2.6 (maybe 2.5.1?)
9688        case $wlarc in
9689        '')
9690          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9691        *)
9692          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' ;;
9693        esac ;;
9694      esac
9695      link_all_deplibs=yes
9696      ;;
9697
9698    sunos4*)
9699      if test "x$host_vendor" = xsequent; then
9700        # Use $CC to link under sequent, because it throws in some extra .o
9701        # files that make .init and .fini sections work.
9702        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9703      else
9704        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9705      fi
9706      hardcode_libdir_flag_spec='-L$libdir'
9707      hardcode_direct=yes
9708      hardcode_minus_L=yes
9709      hardcode_shlibpath_var=no
9710      ;;
9711
9712    sysv4)
9713      case $host_vendor in
9714        sni)
9715          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9716          hardcode_direct=yes # is this really true???
9717        ;;
9718        siemens)
9719          ## LD is ld it makes a PLAMLIB
9720          ## CC just makes a GrossModule.
9721          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9722          reload_cmds='$CC -r -o $output$reload_objs'
9723          hardcode_direct=no
9724        ;;
9725        motorola)
9726          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9727          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9728        ;;
9729      esac
9730      runpath_var='LD_RUN_PATH'
9731      hardcode_shlibpath_var=no
9732      ;;
9733
9734    sysv4.3*)
9735      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9736      hardcode_shlibpath_var=no
9737      export_dynamic_flag_spec='-Bexport'
9738      ;;
9739
9740    sysv4*MP*)
9741      if test -d /usr/nec; then
9742        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9743        hardcode_shlibpath_var=no
9744        runpath_var=LD_RUN_PATH
9745        hardcode_runpath_var=yes
9746        ld_shlibs=yes
9747      fi
9748      ;;
9749
9750    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9751      no_undefined_flag='${wl}-z,text'
9752      archive_cmds_need_lc=no
9753      hardcode_shlibpath_var=no
9754      runpath_var='LD_RUN_PATH'
9755
9756      if test "$GCC" = yes; then
9757        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9758        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9759      else
9760        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9761        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9762      fi
9763      ;;
9764
9765    sysv5* | sco3.2v5* | sco5v6*)
9766      # Note: We can NOT use -z defs as we might desire, because we do not
9767      # link with -lc, and that would cause any symbols used from libc to
9768      # always be unresolved, which means just about no library would
9769      # ever link correctly.  If we're not using GNU ld we use -z text
9770      # though, which does catch some bad symbols but isn't as heavy-handed
9771      # as -z defs.
9772      no_undefined_flag='${wl}-z,text'
9773      allow_undefined_flag='${wl}-z,nodefs'
9774      archive_cmds_need_lc=no
9775      hardcode_shlibpath_var=no
9776      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9777      hardcode_libdir_separator=':'
9778      link_all_deplibs=yes
9779      export_dynamic_flag_spec='${wl}-Bexport'
9780      runpath_var='LD_RUN_PATH'
9781
9782      if test "$GCC" = yes; then
9783        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9784        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9785      else
9786        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9787        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9788      fi
9789      ;;
9790
9791    uts4*)
9792      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9793      hardcode_libdir_flag_spec='-L$libdir'
9794      hardcode_shlibpath_var=no
9795      ;;
9796
9797    *)
9798      ld_shlibs=no
9799      ;;
9800    esac
9801  fi
9802
9803echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9804echo "${ECHO_T}$ld_shlibs" >&6
9805test "$ld_shlibs" = no && can_build_shared=no
9806
9807#
9808# Do we need to explicitly link libc?
9809#
9810case "x$archive_cmds_need_lc" in
9811x|xyes)
9812  # Assume -lc should be added
9813  archive_cmds_need_lc=yes
9814
9815  if test "$enable_shared" = yes && test "$GCC" = yes; then
9816    case $archive_cmds in
9817    *'~'*)
9818      # FIXME: we may have to deal with multi-command sequences.
9819      ;;
9820    '$CC '*)
9821      # Test whether the compiler implicitly links with -lc since on some
9822      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9823      # to ld, don't add -lc before -lgcc.
9824      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9825echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9826      $rm conftest*
9827      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9828
9829      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9830  (eval $ac_compile) 2>&5
9831  ac_status=$?
9832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833  (exit $ac_status); } 2>conftest.err; then
9834        soname=conftest
9835        lib=conftest
9836        libobjs=conftest.$ac_objext
9837        deplibs=
9838        wl=$lt_prog_compiler_wl
9839        pic_flag=$lt_prog_compiler_pic
9840        compiler_flags=-v
9841        linker_flags=-v
9842        verstring=
9843        output_objdir=.
9844        libname=conftest
9845        lt_save_allow_undefined_flag=$allow_undefined_flag
9846        allow_undefined_flag=
9847        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9848  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9849  ac_status=$?
9850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851  (exit $ac_status); }
9852        then
9853          archive_cmds_need_lc=no
9854        else
9855          archive_cmds_need_lc=yes
9856        fi
9857        allow_undefined_flag=$lt_save_allow_undefined_flag
9858      else
9859        cat conftest.err 1>&5
9860      fi
9861      $rm conftest*
9862      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9863echo "${ECHO_T}$archive_cmds_need_lc" >&6
9864      ;;
9865    esac
9866  fi
9867  ;;
9868esac
9869
9870echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9871echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9872library_names_spec=
9873libname_spec='lib$name'
9874soname_spec=
9875shrext_cmds=".so"
9876postinstall_cmds=
9877postuninstall_cmds=
9878finish_cmds=
9879finish_eval=
9880shlibpath_var=
9881shlibpath_overrides_runpath=unknown
9882version_type=none
9883dynamic_linker="$host_os ld.so"
9884sys_lib_dlsearch_path_spec="/lib /usr/lib"
9885if test "$GCC" = yes; then
9886  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9887  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9888    # if the path contains ";" then we assume it to be the separator
9889    # otherwise default to the standard path separator (i.e. ":") - it is
9890    # assumed that no part of a normal pathname contains ";" but that should
9891    # okay in the real world where ";" in dirpaths is itself problematic.
9892    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9893  else
9894    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9895  fi
9896else
9897  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9898fi
9899need_lib_prefix=unknown
9900hardcode_into_libs=no
9901
9902# when you set need_version to no, make sure it does not cause -set_version
9903# flags to be left without arguments
9904need_version=unknown
9905
9906case $host_os in
9907aix3*)
9908  version_type=linux
9909  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9910  shlibpath_var=LIBPATH
9911
9912  # AIX 3 has no versioning support, so we append a major version to the name.
9913  soname_spec='${libname}${release}${shared_ext}$major'
9914  ;;
9915
9916aix4* | aix5*)
9917  version_type=linux
9918  need_lib_prefix=no
9919  need_version=no
9920  hardcode_into_libs=yes
9921  if test "$host_cpu" = ia64; then
9922    # AIX 5 supports IA64
9923    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9924    shlibpath_var=LD_LIBRARY_PATH
9925  else
9926    # With GCC up to 2.95.x, collect2 would create an import file
9927    # for dependence libraries.  The import file would start with
9928    # the line `#! .'.  This would cause the generated library to
9929    # depend on `.', always an invalid library.  This was fixed in
9930    # development snapshots of GCC prior to 3.0.
9931    case $host_os in
9932      aix4 | aix4.[01] | aix4.[01].*)
9933      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9934           echo ' yes '
9935           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9936        :
9937      else
9938        can_build_shared=no
9939      fi
9940      ;;
9941    esac
9942    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9943    # soname into executable. Probably we can add versioning support to
9944    # collect2, so additional links can be useful in future.
9945    if test "$aix_use_runtimelinking" = yes; then
9946      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9947      # instead of lib<name>.a to let people know that these are not
9948      # typical AIX shared libraries.
9949      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9950    else
9951      # We preserve .a as extension for shared libraries through AIX4.2
9952      # and later when we are not doing run time linking.
9953      library_names_spec='${libname}${release}.a $libname.a'
9954      soname_spec='${libname}${release}${shared_ext}$major'
9955    fi
9956    shlibpath_var=LIBPATH
9957  fi
9958  ;;
9959
9960amigaos*)
9961  library_names_spec='$libname.ixlibrary $libname.a'
9962  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9963  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'
9964  ;;
9965
9966beos*)
9967  library_names_spec='${libname}${shared_ext}'
9968  dynamic_linker="$host_os ld.so"
9969  shlibpath_var=LIBRARY_PATH
9970  ;;
9971
9972bsdi[45]*)
9973  version_type=linux
9974  need_version=no
9975  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9976  soname_spec='${libname}${release}${shared_ext}$major'
9977  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9978  shlibpath_var=LD_LIBRARY_PATH
9979  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9980  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9981  # the default ld.so.conf also contains /usr/contrib/lib and
9982  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9983  # libtool to hard-code these into programs
9984  ;;
9985
9986cygwin* | mingw* | pw32*)
9987  version_type=windows
9988  shrext_cmds=".dll"
9989  need_version=no
9990  need_lib_prefix=no
9991
9992  case $GCC,$host_os in
9993  yes,cygwin* | yes,mingw* | yes,pw32*)
9994    library_names_spec='$libname.dll.a'
9995    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9996    postinstall_cmds='base_file=`basename \${file}`~
9997      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9998      dldir=$destdir/`dirname \$dlpath`~
9999      test -d \$dldir || mkdir -p \$dldir~
10000      $install_prog $dir/$dlname \$dldir/$dlname~
10001      chmod a+x \$dldir/$dlname'
10002    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10003      dlpath=$dir/\$dldll~
10004       $rm \$dlpath'
10005    shlibpath_overrides_runpath=yes
10006
10007    case $host_os in
10008    cygwin*)
10009      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10010      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10011      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10012      ;;
10013    mingw*)
10014      # MinGW DLLs use traditional 'lib' prefix
10015      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10016      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10017      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10018        # It is most probably a Windows format PATH printed by
10019        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10020        # path with ; separators, and with drive letters. We can handle the
10021        # drive letters (cygwin fileutils understands them), so leave them,
10022        # especially as we might pass files found there to a mingw objdump,
10023        # which wouldn't understand a cygwinified path. Ahh.
10024        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10025      else
10026        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10027      fi
10028      ;;
10029    pw32*)
10030      # pw32 DLLs use 'pw' prefix rather than 'lib'
10031      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10032      ;;
10033    esac
10034    ;;
10035
10036  *)
10037    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10038    ;;
10039  esac
10040  dynamic_linker='Win32 ld.exe'
10041  # FIXME: first we should search . and the directory the executable is in
10042  shlibpath_var=PATH
10043  ;;
10044
10045darwin* | rhapsody*)
10046  dynamic_linker="$host_os dyld"
10047  version_type=darwin
10048  need_lib_prefix=no
10049  need_version=no
10050  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10051  soname_spec='${libname}${release}${major}$shared_ext'
10052  shlibpath_overrides_runpath=yes
10053  shlibpath_var=DYLD_LIBRARY_PATH
10054  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10055  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10056  if test "$GCC" = yes; then
10057    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"`
10058  else
10059    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10060  fi
10061  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10062  ;;
10063
10064dgux*)
10065  version_type=linux
10066  need_lib_prefix=no
10067  need_version=no
10068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10069  soname_spec='${libname}${release}${shared_ext}$major'
10070  shlibpath_var=LD_LIBRARY_PATH
10071  ;;
10072
10073freebsd1*)
10074  dynamic_linker=no
10075  ;;
10076
10077kfreebsd*-gnu)
10078  version_type=linux
10079  need_lib_prefix=no
10080  need_version=no
10081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10082  soname_spec='${libname}${release}${shared_ext}$major'
10083  shlibpath_var=LD_LIBRARY_PATH
10084  shlibpath_overrides_runpath=no
10085  hardcode_into_libs=yes
10086  dynamic_linker='GNU ld.so'
10087  ;;
10088
10089freebsd* | dragonfly*)
10090  # DragonFly does not have aout.  When/if they implement a new
10091  # versioning mechanism, adjust this.
10092  if test -x /usr/bin/objformat; then
10093    objformat=`/usr/bin/objformat`
10094  else
10095    case $host_os in
10096    freebsd[123]*) objformat=aout ;;
10097    *) objformat=elf ;;
10098    esac
10099  fi
10100  version_type=freebsd-$objformat
10101  case $version_type in
10102    freebsd-elf*)
10103      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10104      need_version=no
10105      need_lib_prefix=no
10106      ;;
10107    freebsd-*)
10108      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10109      need_version=yes
10110      ;;
10111  esac
10112  shlibpath_var=LD_LIBRARY_PATH
10113  case $host_os in
10114  freebsd2*)
10115    shlibpath_overrides_runpath=yes
10116    ;;
10117  freebsd3.[01]* | freebsdelf3.[01]*)
10118    shlibpath_overrides_runpath=yes
10119    hardcode_into_libs=yes
10120    ;;
10121  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10122  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10123    shlibpath_overrides_runpath=no
10124    hardcode_into_libs=yes
10125    ;;
10126  freebsd*) # from 4.6 on
10127    shlibpath_overrides_runpath=yes
10128    hardcode_into_libs=yes
10129    ;;
10130  esac
10131  ;;
10132
10133gnu*)
10134  version_type=linux
10135  need_lib_prefix=no
10136  need_version=no
10137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10138  soname_spec='${libname}${release}${shared_ext}$major'
10139  shlibpath_var=LD_LIBRARY_PATH
10140  hardcode_into_libs=yes
10141  ;;
10142
10143hpux9* | hpux10* | hpux11*)
10144  # Give a soname corresponding to the major version so that dld.sl refuses to
10145  # link against other versions.
10146  version_type=sunos
10147  need_lib_prefix=no
10148  need_version=no
10149  case $host_cpu in
10150  ia64*)
10151    shrext_cmds='.so'
10152    hardcode_into_libs=yes
10153    dynamic_linker="$host_os dld.so"
10154    shlibpath_var=LD_LIBRARY_PATH
10155    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10156    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157    soname_spec='${libname}${release}${shared_ext}$major'
10158    if test "X$HPUX_IA64_MODE" = X32; then
10159      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10160    else
10161      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10162    fi
10163    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10164    ;;
10165   hppa*64*)
10166     shrext_cmds='.sl'
10167     hardcode_into_libs=yes
10168     dynamic_linker="$host_os dld.sl"
10169     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10170     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10171     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172     soname_spec='${libname}${release}${shared_ext}$major'
10173     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10174     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10175     ;;
10176   *)
10177    shrext_cmds='.sl'
10178    dynamic_linker="$host_os dld.sl"
10179    shlibpath_var=SHLIB_PATH
10180    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10181    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182    soname_spec='${libname}${release}${shared_ext}$major'
10183    ;;
10184  esac
10185  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10186  postinstall_cmds='chmod 555 $lib'
10187  ;;
10188
10189interix3*)
10190  version_type=linux
10191  need_lib_prefix=no
10192  need_version=no
10193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10194  soname_spec='${libname}${release}${shared_ext}$major'
10195  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10196  shlibpath_var=LD_LIBRARY_PATH
10197  shlibpath_overrides_runpath=no
10198  hardcode_into_libs=yes
10199  ;;
10200
10201irix5* | irix6* | nonstopux*)
10202  case $host_os in
10203    nonstopux*) version_type=nonstopux ;;
10204    *)
10205        if test "$lt_cv_prog_gnu_ld" = yes; then
10206                version_type=linux
10207        else
10208                version_type=irix
10209        fi ;;
10210  esac
10211  need_lib_prefix=no
10212  need_version=no
10213  soname_spec='${libname}${release}${shared_ext}$major'
10214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10215  case $host_os in
10216  irix5* | nonstopux*)
10217    libsuff= shlibsuff=
10218    ;;
10219  *)
10220    case $LD in # libtool.m4 will add one of these switches to LD
10221    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10222      libsuff= shlibsuff= libmagic=32-bit;;
10223    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10224      libsuff=32 shlibsuff=N32 libmagic=N32;;
10225    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10226      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10227    *) libsuff= shlibsuff= libmagic=never-match;;
10228    esac
10229    ;;
10230  esac
10231  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10232  shlibpath_overrides_runpath=no
10233  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10234  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10235  hardcode_into_libs=yes
10236  ;;
10237
10238# No shared lib support for Linux oldld, aout, or coff.
10239linux*oldld* | linux*aout* | linux*coff*)
10240  dynamic_linker=no
10241  ;;
10242
10243# This must be Linux ELF.
10244linux*)
10245  version_type=linux
10246  need_lib_prefix=no
10247  need_version=no
10248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10249  soname_spec='${libname}${release}${shared_ext}$major'
10250  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10251  shlibpath_var=LD_LIBRARY_PATH
10252  shlibpath_overrides_runpath=no
10253  # This implies no fast_install, which is unacceptable.
10254  # Some rework will be needed to allow for fast_install
10255  # before this can be enabled.
10256  hardcode_into_libs=yes
10257
10258  # Append ld.so.conf contents to the search path
10259  if test -f /etc/ld.so.conf; then
10260    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' ' '`
10261    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10262  fi
10263
10264  # We used to test for /lib/ld.so.1 and disable shared libraries on
10265  # powerpc, because MkLinux only supported shared libraries with the
10266  # GNU dynamic linker.  Since this was broken with cross compilers,
10267  # most powerpc-linux boxes support dynamic linking these days and
10268  # people can always --disable-shared, the test was removed, and we
10269  # assume the GNU/Linux dynamic linker is in use.
10270  dynamic_linker='GNU/Linux ld.so'
10271  ;;
10272
10273knetbsd*-gnu)
10274  version_type=linux
10275  need_lib_prefix=no
10276  need_version=no
10277  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10278  soname_spec='${libname}${release}${shared_ext}$major'
10279  shlibpath_var=LD_LIBRARY_PATH
10280  shlibpath_overrides_runpath=no
10281  hardcode_into_libs=yes
10282  dynamic_linker='GNU ld.so'
10283  ;;
10284
10285netbsd*)
10286  version_type=sunos
10287  need_lib_prefix=no
10288  need_version=no
10289  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10290    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10291    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10292    dynamic_linker='NetBSD (a.out) ld.so'
10293  else
10294    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10295    soname_spec='${libname}${release}${shared_ext}$major'
10296    dynamic_linker='NetBSD ld.elf_so'
10297  fi
10298  shlibpath_var=LD_LIBRARY_PATH
10299  shlibpath_overrides_runpath=yes
10300  hardcode_into_libs=yes
10301  ;;
10302
10303newsos6)
10304  version_type=linux
10305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306  shlibpath_var=LD_LIBRARY_PATH
10307  shlibpath_overrides_runpath=yes
10308  ;;
10309
10310nto-qnx*)
10311  version_type=linux
10312  need_lib_prefix=no
10313  need_version=no
10314  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10315  soname_spec='${libname}${release}${shared_ext}$major'
10316  shlibpath_var=LD_LIBRARY_PATH
10317  shlibpath_overrides_runpath=yes
10318  ;;
10319
10320openbsd*)
10321  version_type=sunos
10322  sys_lib_dlsearch_path_spec="/usr/lib"
10323  need_lib_prefix=no
10324  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10325  case $host_os in
10326    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10327    *)                         need_version=no  ;;
10328  esac
10329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10330  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10331  shlibpath_var=LD_LIBRARY_PATH
10332  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10333    case $host_os in
10334      openbsd2.[89] | openbsd2.[89].*)
10335        shlibpath_overrides_runpath=no
10336        ;;
10337      *)
10338        shlibpath_overrides_runpath=yes
10339        ;;
10340      esac
10341  else
10342    shlibpath_overrides_runpath=yes
10343  fi
10344  ;;
10345
10346os2*)
10347  libname_spec='$name'
10348  shrext_cmds=".dll"
10349  need_lib_prefix=no
10350  library_names_spec='$libname${shared_ext} $libname.a'
10351  dynamic_linker='OS/2 ld.exe'
10352  shlibpath_var=LIBPATH
10353  ;;
10354
10355osf3* | osf4* | osf5*)
10356  version_type=osf
10357  need_lib_prefix=no
10358  need_version=no
10359  soname_spec='${libname}${release}${shared_ext}$major'
10360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361  shlibpath_var=LD_LIBRARY_PATH
10362  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10363  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10364  ;;
10365
10366solaris*)
10367  version_type=linux
10368  need_lib_prefix=no
10369  need_version=no
10370  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371  soname_spec='${libname}${release}${shared_ext}$major'
10372  shlibpath_var=LD_LIBRARY_PATH
10373  shlibpath_overrides_runpath=yes
10374  hardcode_into_libs=yes
10375  # ldd complains unless libraries are executable
10376  postinstall_cmds='chmod +x $lib'
10377  ;;
10378
10379sunos4*)
10380  version_type=sunos
10381  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10382  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10383  shlibpath_var=LD_LIBRARY_PATH
10384  shlibpath_overrides_runpath=yes
10385  if test "$with_gnu_ld" = yes; then
10386    need_lib_prefix=no
10387  fi
10388  need_version=yes
10389  ;;
10390
10391sysv4 | sysv4.3*)
10392  version_type=linux
10393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394  soname_spec='${libname}${release}${shared_ext}$major'
10395  shlibpath_var=LD_LIBRARY_PATH
10396  case $host_vendor in
10397    sni)
10398      shlibpath_overrides_runpath=no
10399      need_lib_prefix=no
10400      export_dynamic_flag_spec='${wl}-Blargedynsym'
10401      runpath_var=LD_RUN_PATH
10402      ;;
10403    siemens)
10404      need_lib_prefix=no
10405      ;;
10406    motorola)
10407      need_lib_prefix=no
10408      need_version=no
10409      shlibpath_overrides_runpath=no
10410      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10411      ;;
10412  esac
10413  ;;
10414
10415sysv4*MP*)
10416  if test -d /usr/nec ;then
10417    version_type=linux
10418    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10419    soname_spec='$libname${shared_ext}.$major'
10420    shlibpath_var=LD_LIBRARY_PATH
10421  fi
10422  ;;
10423
10424sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10425  version_type=freebsd-elf
10426  need_lib_prefix=no
10427  need_version=no
10428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10429  soname_spec='${libname}${release}${shared_ext}$major'
10430  shlibpath_var=LD_LIBRARY_PATH
10431  hardcode_into_libs=yes
10432  if test "$with_gnu_ld" = yes; then
10433    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10434    shlibpath_overrides_runpath=no
10435  else
10436    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10437    shlibpath_overrides_runpath=yes
10438    case $host_os in
10439      sco3.2v5*)
10440        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10441        ;;
10442    esac
10443  fi
10444  sys_lib_dlsearch_path_spec='/usr/lib'
10445  ;;
10446
10447uts4*)
10448  version_type=linux
10449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450  soname_spec='${libname}${release}${shared_ext}$major'
10451  shlibpath_var=LD_LIBRARY_PATH
10452  ;;
10453
10454*)
10455  dynamic_linker=no
10456  ;;
10457esac
10458echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10459echo "${ECHO_T}$dynamic_linker" >&6
10460test "$dynamic_linker" = no && can_build_shared=no
10461
10462variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10463if test "$GCC" = yes; then
10464  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10465fi
10466
10467echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10468echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10469hardcode_action=
10470if test -n "$hardcode_libdir_flag_spec" || \
10471   test -n "$runpath_var" || \
10472   test "X$hardcode_automatic" = "Xyes" ; then
10473
10474  # We can hardcode non-existant directories.
10475  if test "$hardcode_direct" != no &&
10476     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10477     # have to relink, otherwise we might link with an installed library
10478     # when we should be linking with a yet-to-be-installed one
10479     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10480     test "$hardcode_minus_L" != no; then
10481    # Linking always hardcodes the temporary library directory.
10482    hardcode_action=relink
10483  else
10484    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10485    hardcode_action=immediate
10486  fi
10487else
10488  # We cannot hardcode anything, or else we can only hardcode existing
10489  # directories.
10490  hardcode_action=unsupported
10491fi
10492echo "$as_me:$LINENO: result: $hardcode_action" >&5
10493echo "${ECHO_T}$hardcode_action" >&6
10494
10495if test "$hardcode_action" = relink; then
10496  # Fast installation is not supported
10497  enable_fast_install=no
10498elif test "$shlibpath_overrides_runpath" = yes ||
10499     test "$enable_shared" = no; then
10500  # Fast installation is not necessary
10501  enable_fast_install=needless
10502fi
10503
10504striplib=
10505old_striplib=
10506echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10507echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10508if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10509  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10510  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10511  echo "$as_me:$LINENO: result: yes" >&5
10512echo "${ECHO_T}yes" >&6
10513else
10514# FIXME - insert some real tests, host_os isn't really good enough
10515  case $host_os in
10516   darwin*)
10517       if test -n "$STRIP" ; then
10518         striplib="$STRIP -x"
10519         echo "$as_me:$LINENO: result: yes" >&5
10520echo "${ECHO_T}yes" >&6
10521       else
10522  echo "$as_me:$LINENO: result: no" >&5
10523echo "${ECHO_T}no" >&6
10524fi
10525       ;;
10526   *)
10527  echo "$as_me:$LINENO: result: no" >&5
10528echo "${ECHO_T}no" >&6
10529    ;;
10530  esac
10531fi
10532
10533if test "x$enable_dlopen" != xyes; then
10534  enable_dlopen=unknown
10535  enable_dlopen_self=unknown
10536  enable_dlopen_self_static=unknown
10537else
10538  lt_cv_dlopen=no
10539  lt_cv_dlopen_libs=
10540
10541  case $host_os in
10542  beos*)
10543    lt_cv_dlopen="load_add_on"
10544    lt_cv_dlopen_libs=
10545    lt_cv_dlopen_self=yes
10546    ;;
10547
10548  mingw* | pw32*)
10549    lt_cv_dlopen="LoadLibrary"
10550    lt_cv_dlopen_libs=
10551   ;;
10552
10553  cygwin*)
10554    lt_cv_dlopen="dlopen"
10555    lt_cv_dlopen_libs=
10556   ;;
10557
10558  darwin*)
10559  # if libdl is installed we need to link against it
10560    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10561echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10562if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10563  echo $ECHO_N "(cached) $ECHO_C" >&6
10564else
10565  ac_check_lib_save_LIBS=$LIBS
10566LIBS="-ldl  $LIBS"
10567cat >conftest.$ac_ext <<_ACEOF
10568/* confdefs.h.  */
10569_ACEOF
10570cat confdefs.h >>conftest.$ac_ext
10571cat >>conftest.$ac_ext <<_ACEOF
10572/* end confdefs.h.  */
10573
10574/* Override any gcc2 internal prototype to avoid an error.  */
10575#ifdef __cplusplus
10576extern "C"
10577#endif
10578/* We use char because int might match the return type of a gcc2
10579   builtin and then its argument prototype would still apply.  */
10580char dlopen ();
10581int
10582main ()
10583{
10584dlopen ();
10585  ;
10586  return 0;
10587}
10588_ACEOF
10589rm -f conftest.$ac_objext conftest$ac_exeext
10590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10591  (eval $ac_link) 2>conftest.er1
10592  ac_status=$?
10593  grep -v '^ *+' conftest.er1 >conftest.err
10594  rm -f conftest.er1
10595  cat conftest.err >&5
10596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597  (exit $ac_status); } &&
10598         { ac_try='test -z "$ac_c_werror_flag"
10599                         || test ! -s conftest.err'
10600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601  (eval $ac_try) 2>&5
10602  ac_status=$?
10603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604  (exit $ac_status); }; } &&
10605         { ac_try='test -s conftest$ac_exeext'
10606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607  (eval $ac_try) 2>&5
10608  ac_status=$?
10609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610  (exit $ac_status); }; }; then
10611  ac_cv_lib_dl_dlopen=yes
10612else
10613  echo "$as_me: failed program was:" >&5
10614sed 's/^/| /' conftest.$ac_ext >&5
10615
10616ac_cv_lib_dl_dlopen=no
10617fi
10618rm -f conftest.err conftest.$ac_objext \
10619      conftest$ac_exeext conftest.$ac_ext
10620LIBS=$ac_check_lib_save_LIBS
10621fi
10622echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10623echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10624if test $ac_cv_lib_dl_dlopen = yes; then
10625  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10626else
10627
10628    lt_cv_dlopen="dyld"
10629    lt_cv_dlopen_libs=
10630    lt_cv_dlopen_self=yes
10631
10632fi
10633
10634   ;;
10635
10636  *)
10637    echo "$as_me:$LINENO: checking for shl_load" >&5
10638echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10639if test "${ac_cv_func_shl_load+set}" = set; then
10640  echo $ECHO_N "(cached) $ECHO_C" >&6
10641else
10642  cat >conftest.$ac_ext <<_ACEOF
10643/* confdefs.h.  */
10644_ACEOF
10645cat confdefs.h >>conftest.$ac_ext
10646cat >>conftest.$ac_ext <<_ACEOF
10647/* end confdefs.h.  */
10648/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10649   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10650#define shl_load innocuous_shl_load
10651
10652/* System header to define __stub macros and hopefully few prototypes,
10653    which can conflict with char shl_load (); below.
10654    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10655    <limits.h> exists even on freestanding compilers.  */
10656
10657#ifdef __STDC__
10658# include <limits.h>
10659#else
10660# include <assert.h>
10661#endif
10662
10663#undef shl_load
10664
10665/* Override any gcc2 internal prototype to avoid an error.  */
10666#ifdef __cplusplus
10667extern "C"
10668{
10669#endif
10670/* We use char because int might match the return type of a gcc2
10671   builtin and then its argument prototype would still apply.  */
10672char shl_load ();
10673/* The GNU C library defines this for functions which it implements
10674    to always fail with ENOSYS.  Some functions are actually named
10675    something starting with __ and the normal name is an alias.  */
10676#if defined (__stub_shl_load) || defined (__stub___shl_load)
10677choke me
10678#else
10679char (*f) () = shl_load;
10680#endif
10681#ifdef __cplusplus
10682}
10683#endif
10684
10685int
10686main ()
10687{
10688return f != shl_load;
10689  ;
10690  return 0;
10691}
10692_ACEOF
10693rm -f conftest.$ac_objext conftest$ac_exeext
10694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10695  (eval $ac_link) 2>conftest.er1
10696  ac_status=$?
10697  grep -v '^ *+' conftest.er1 >conftest.err
10698  rm -f conftest.er1
10699  cat conftest.err >&5
10700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701  (exit $ac_status); } &&
10702         { ac_try='test -z "$ac_c_werror_flag"
10703                         || test ! -s conftest.err'
10704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705  (eval $ac_try) 2>&5
10706  ac_status=$?
10707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708  (exit $ac_status); }; } &&
10709         { ac_try='test -s conftest$ac_exeext'
10710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711  (eval $ac_try) 2>&5
10712  ac_status=$?
10713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714  (exit $ac_status); }; }; then
10715  ac_cv_func_shl_load=yes
10716else
10717  echo "$as_me: failed program was:" >&5
10718sed 's/^/| /' conftest.$ac_ext >&5
10719
10720ac_cv_func_shl_load=no
10721fi
10722rm -f conftest.err conftest.$ac_objext \
10723      conftest$ac_exeext conftest.$ac_ext
10724fi
10725echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10726echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10727if test $ac_cv_func_shl_load = yes; then
10728  lt_cv_dlopen="shl_load"
10729else
10730  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10731echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10732if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10733  echo $ECHO_N "(cached) $ECHO_C" >&6
10734else
10735  ac_check_lib_save_LIBS=$LIBS
10736LIBS="-ldld  $LIBS"
10737cat >conftest.$ac_ext <<_ACEOF
10738/* confdefs.h.  */
10739_ACEOF
10740cat confdefs.h >>conftest.$ac_ext
10741cat >>conftest.$ac_ext <<_ACEOF
10742/* end confdefs.h.  */
10743
10744/* Override any gcc2 internal prototype to avoid an error.  */
10745#ifdef __cplusplus
10746extern "C"
10747#endif
10748/* We use char because int might match the return type of a gcc2
10749   builtin and then its argument prototype would still apply.  */
10750char shl_load ();
10751int
10752main ()
10753{
10754shl_load ();
10755  ;
10756  return 0;
10757}