source: trunk/configure @ 527

Last change on this file since 527 was 527, checked in by andreasw, 12 years ago

reran autotools with latest coin.m4 in stable; replaced make by $(MAKE); generate libtool in base directory

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