source: trunk/configure @ 526

Last change on this file since 526 was 526, checked in by pbelotti, 9 years ago

fixed bug in checkNLP. Thanks again to Francois Margot

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