source: trunk/configure @ 915

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

reran autotools with latest coin.m4 in trunk; replaced make by $(MAKE); set all externals to trunk

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