source: stable/1.10/configure @ 1349

Last change on this file since 1349 was 1349, checked in by ladanyi, 11 years ago

temporarily committing release candidate to stable

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