source: trunk/configure @ 2036

Last change on this file since 2036 was 1946, checked in by forrest, 7 years ago

allow AMPL in Clp

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