source: stable/1.3/configure @ 1766

Last change on this file since 1766 was 1022, checked in by andreasw, 13 years ago

automatically regenerated autotools files

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