source: trunk/Clp/configure @ 994

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

reran autotools; added support for WSMP (--with-wsmp as configure option)

  • Property svn:executable set to *
File size: 725.4 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Clp 0.1.
4#
5# Report bugs to <coin-clp@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Clp'
431PACKAGE_TARNAME='clp'
432PACKAGE_VERSION='0.1'
433PACKAGE_STRING='Clp 0.1'
434PACKAGE_BUGREPORT='coin-clp@list.coin-or.org'
435
436ac_unique_file="src/ClpCholeskyBase.cpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE 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 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 F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COINUTILSSRCDIR COINUTILSOBJDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE CLPSRCDIR CLPOBJDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures Clp 0.1 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of Clp 0.1:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-clp compile this project (Clp) with debug options
1079  --enable-doscompile     Under Cygwin, compile so that executables run under
1080                          DOS. Set to mingw to use gcc/g++/ld with
1081                          -mno-cygwin. Set to msvc to use cl/link. Default
1082                          when mentioned: mingw. Default when not mentioned:
1083                          disabled.
1084  --enable-static[=PKGS]
1085                          build static libraries [default=no]
1086  --disable-dependency-tracking  speeds up one-time build
1087  --enable-dependency-tracking   do not reject slow dependency extractors
1088  --enable-maintainer-mode  enable make rules and dependencies not useful
1089                          (and sometimes confusing) to the casual installer
1090  --enable-shared[=PKGS]
1091                          build shared libraries [default=yes]
1092  --enable-fast-install[=PKGS]
1093                          optimize for fast installation [default=yes]
1094  --disable-libtool-lock  avoid locking (might break parallel builds)
1095  --enable-gnu-packages   compile with GNU packages (disabled by default)
1096
1097Optional Packages:
1098  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1099  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1100  --with-clp-verbosity specify the debug verbosity level for project Clp
1101  --with-clp-checklevel specify the sanity check level for project Clp
1102  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1103  --with-pic              try to use only PIC/non-PIC objects [default=use
1104                          both]
1105  --with-tags[=TAGS]
1106                          include additional configurations [automatic]
1107  --with-wsmp             specify WSMP library
1108
1109Some influential environment variables:
1110  CDEFS       Additional -D flags to be used when compiling C code.
1111  ADD_CFLAGS  Additional C compiler options
1112  DBG_CFLAGS  Debug C compiler options
1113  OPT_CFLAGS  Optimize C compiler options
1114  CC          C compiler command
1115  CFLAGS      C compiler flags
1116  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1117              nonstandard directory <lib dir>
1118  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1119              headers in a nonstandard directory <include dir>
1120  MPICC       C MPI Compiler
1121  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1122  ADD_CXXFLAGS
1123              Additional C++ compiler options
1124  DBG_CXXFLAGS
1125              Debug C++ compiler options
1126  OPT_CXXFLAGS
1127              Optimize C++ compiler options
1128  CXX         C++ compiler command
1129  CXXFLAGS    C++ compiler flags
1130  MPICXX      C++ MPI Compiler
1131  CPP         C preprocessor
1132  CXXCPP      C++ preprocessor
1133  F77         Fortran 77 compiler command
1134  FFLAGS      Fortran 77 compiler flags
1135
1136Use these variables to override the choices made by `configure' or to help
1137it to find libraries and programs with nonstandard names/locations.
1138
1139Report bugs to <coin-clp@list.coin-or.org>.
1140_ACEOF
1141fi
1142
1143if test "$ac_init_help" = "recursive"; then
1144  # If there are subdirs, report their specific --help.
1145  ac_popdir=`pwd`
1146  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1147    test -d $ac_dir || continue
1148    ac_builddir=.
1149
1150if test "$ac_dir" != .; then
1151  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1152  # A "../" for each directory in $ac_dir_suffix.
1153  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1154else
1155  ac_dir_suffix= ac_top_builddir=
1156fi
1157
1158case $srcdir in
1159  .)  # No --srcdir option.  We are building in place.
1160    ac_srcdir=.
1161    if test -z "$ac_top_builddir"; then
1162       ac_top_srcdir=.
1163    else
1164       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1165    fi ;;
1166  [\\/]* | ?:[\\/]* )  # Absolute path.
1167    ac_srcdir=$srcdir$ac_dir_suffix;
1168    ac_top_srcdir=$srcdir ;;
1169  *) # Relative path.
1170    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1171    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1172esac
1173
1174# Do not use `cd foo && pwd` to compute absolute paths, because
1175# the directories may not exist.
1176case `pwd` in
1177.) ac_abs_builddir="$ac_dir";;
1178*)
1179  case "$ac_dir" in
1180  .) ac_abs_builddir=`pwd`;;
1181  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1182  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1183  esac;;
1184esac
1185case $ac_abs_builddir in
1186.) ac_abs_top_builddir=${ac_top_builddir}.;;
1187*)
1188  case ${ac_top_builddir}. in
1189  .) ac_abs_top_builddir=$ac_abs_builddir;;
1190  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1191  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1192  esac;;
1193esac
1194case $ac_abs_builddir in
1195.) ac_abs_srcdir=$ac_srcdir;;
1196*)
1197  case $ac_srcdir in
1198  .) ac_abs_srcdir=$ac_abs_builddir;;
1199  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1200  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1201  esac;;
1202esac
1203case $ac_abs_builddir in
1204.) ac_abs_top_srcdir=$ac_top_srcdir;;
1205*)
1206  case $ac_top_srcdir in
1207  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1208  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1209  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1210  esac;;
1211esac
1212
1213    cd $ac_dir
1214    # Check for guested configure; otherwise get Cygnus style configure.
1215    if test -f $ac_srcdir/configure.gnu; then
1216      echo
1217      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1218    elif test -f $ac_srcdir/configure; then
1219      echo
1220      $SHELL $ac_srcdir/configure  --help=recursive
1221    elif test -f $ac_srcdir/configure.ac ||
1222           test -f $ac_srcdir/configure.in; then
1223      echo
1224      $ac_configure --help
1225    else
1226      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1227    fi
1228    cd $ac_popdir
1229  done
1230fi
1231
1232test -n "$ac_init_help" && exit 0
1233if $ac_init_version; then
1234  cat <<\_ACEOF
1235Clp configure 0.1
1236generated by GNU Autoconf 2.59
1237
1238Copyright (C) 2003 Free Software Foundation, Inc.
1239This configure script is free software; the Free Software Foundation
1240gives unlimited permission to copy, distribute and modify it.
1241
1242
1243Copyright 2006 International Business Machines and others.
1244All Rights Reserved.
1245This file is part of the open source package Coin which is distributed
1246under the Common Public License.
1247_ACEOF
1248  exit 0
1249fi
1250exec 5>config.log
1251cat >&5 <<_ACEOF
1252This file contains any messages produced by compilers while
1253running configure, to aid debugging if configure makes a mistake.
1254
1255It was created by Clp $as_me 0.1, which was
1256generated by GNU Autoconf 2.59.  Invocation command line was
1257
1258  $ $0 $@
1259
1260_ACEOF
1261{
1262cat <<_ASUNAME
1263## --------- ##
1264## Platform. ##
1265## --------- ##
1266
1267hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1268uname -m = `(uname -m) 2>/dev/null || echo unknown`
1269uname -r = `(uname -r) 2>/dev/null || echo unknown`
1270uname -s = `(uname -s) 2>/dev/null || echo unknown`
1271uname -v = `(uname -v) 2>/dev/null || echo unknown`
1272
1273/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1274/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1275
1276/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1277/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1278/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1279hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1280/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1281/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1282/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1283
1284_ASUNAME
1285
1286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1287for as_dir in $PATH
1288do
1289  IFS=$as_save_IFS
1290  test -z "$as_dir" && as_dir=.
1291  echo "PATH: $as_dir"
1292done
1293
1294} >&5
1295
1296cat >&5 <<_ACEOF
1297
1298
1299## ----------- ##
1300## Core tests. ##
1301## ----------- ##
1302
1303_ACEOF
1304
1305
1306# Keep a trace of the command line.
1307# Strip out --no-create and --no-recursion so they do not pile up.
1308# Strip out --silent because we don't want to record it for future runs.
1309# Also quote any args containing shell meta-characters.
1310# Make two passes to allow for proper duplicate-argument suppression.
1311ac_configure_args=
1312ac_configure_args0=
1313ac_configure_args1=
1314ac_sep=
1315ac_must_keep_next=false
1316for ac_pass in 1 2
1317do
1318  for ac_arg
1319  do
1320    case $ac_arg in
1321    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1322    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1323    | -silent | --silent | --silen | --sile | --sil)
1324      continue ;;
1325    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1326      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1327    esac
1328    case $ac_pass in
1329    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1330    2)
1331      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1332      if test $ac_must_keep_next = true; then
1333        ac_must_keep_next=false # Got value, back to normal.
1334      else
1335        case $ac_arg in
1336          *=* | --config-cache | -C | -disable-* | --disable-* \
1337          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1338          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1339          | -with-* | --with-* | -without-* | --without-* | --x)
1340            case "$ac_configure_args0 " in
1341              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1342            esac
1343            ;;
1344          -* ) ac_must_keep_next=true ;;
1345        esac
1346      fi
1347      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1348      # Get rid of the leading space.
1349      ac_sep=" "
1350      ;;
1351    esac
1352  done
1353done
1354$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1355$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1356
1357# When interrupted or exit'd, cleanup temporary files, and complete
1358# config.log.  We remove comments because anyway the quotes in there
1359# would cause problems or look ugly.
1360# WARNING: Be sure not to use single quotes in there, as some shells,
1361# such as our DU 5.0 friend, will then `close' the trap.
1362trap 'exit_status=$?
1363  # Save into config.log some information that might help in debugging.
1364  {
1365    echo
1366
1367    cat <<\_ASBOX
1368## ---------------- ##
1369## Cache variables. ##
1370## ---------------- ##
1371_ASBOX
1372    echo
1373    # The following way of writing the cache mishandles newlines in values,
1374{
1375  (set) 2>&1 |
1376    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1377    *ac_space=\ *)
1378      sed -n \
1379        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1380          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1381      ;;
1382    *)
1383      sed -n \
1384        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1385      ;;
1386    esac;
1387}
1388    echo
1389
1390    cat <<\_ASBOX
1391## ----------------- ##
1392## Output variables. ##
1393## ----------------- ##
1394_ASBOX
1395    echo
1396    for ac_var in $ac_subst_vars
1397    do
1398      eval ac_val=$`echo $ac_var`
1399      echo "$ac_var='"'"'$ac_val'"'"'"
1400    done | sort
1401    echo
1402
1403    if test -n "$ac_subst_files"; then
1404      cat <<\_ASBOX
1405## ------------- ##
1406## Output files. ##
1407## ------------- ##
1408_ASBOX
1409      echo
1410      for ac_var in $ac_subst_files
1411      do
1412        eval ac_val=$`echo $ac_var`
1413        echo "$ac_var='"'"'$ac_val'"'"'"
1414      done | sort
1415      echo
1416    fi
1417
1418    if test -s confdefs.h; then
1419      cat <<\_ASBOX
1420## ----------- ##
1421## confdefs.h. ##
1422## ----------- ##
1423_ASBOX
1424      echo
1425      sed "/^$/d" confdefs.h | sort
1426      echo
1427    fi
1428    test "$ac_signal" != 0 &&
1429      echo "$as_me: caught signal $ac_signal"
1430    echo "$as_me: exit $exit_status"
1431  } >&5
1432  rm -f core *.core &&
1433  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1434    exit $exit_status
1435     ' 0
1436for ac_signal in 1 2 13 15; do
1437  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1438done
1439ac_signal=0
1440
1441# confdefs.h avoids OS command line length limits that DEFS can exceed.
1442rm -rf conftest* confdefs.h
1443# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1444echo >confdefs.h
1445
1446# Predefined preprocessor variables.
1447
1448cat >>confdefs.h <<_ACEOF
1449#define PACKAGE_NAME "$PACKAGE_NAME"
1450_ACEOF
1451
1452
1453cat >>confdefs.h <<_ACEOF
1454#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1455_ACEOF
1456
1457
1458cat >>confdefs.h <<_ACEOF
1459#define PACKAGE_VERSION "$PACKAGE_VERSION"
1460_ACEOF
1461
1462
1463cat >>confdefs.h <<_ACEOF
1464#define PACKAGE_STRING "$PACKAGE_STRING"
1465_ACEOF
1466
1467
1468cat >>confdefs.h <<_ACEOF
1469#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1470_ACEOF
1471
1472
1473# Let the site file select an alternate cache file if it wants to.
1474# Prefer explicitly selected file to automatically selected ones.
1475if test -z "$CONFIG_SITE"; then
1476  if test "x$prefix" != xNONE; then
1477    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1478  else
1479    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1480  fi
1481fi
1482for ac_site_file in $CONFIG_SITE; do
1483  if test -r "$ac_site_file"; then
1484    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1485echo "$as_me: loading site script $ac_site_file" >&6;}
1486    sed 's/^/| /' "$ac_site_file" >&5
1487    . "$ac_site_file"
1488  fi
1489done
1490
1491if test -r "$cache_file"; then
1492  # Some versions of bash will fail to source /dev/null (special
1493  # files actually), so we avoid doing that.
1494  if test -f "$cache_file"; then
1495    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1496echo "$as_me: loading cache $cache_file" >&6;}
1497    case $cache_file in
1498      [\\/]* | ?:[\\/]* ) . $cache_file;;
1499      *)                      . ./$cache_file;;
1500    esac
1501  fi
1502else
1503  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1504echo "$as_me: creating cache $cache_file" >&6;}
1505  >$cache_file
1506fi
1507
1508# Check that the precious variables saved in the cache have kept the same
1509# value.
1510ac_cache_corrupted=false
1511for ac_var in `(set) 2>&1 |
1512               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1513  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1514  eval ac_new_set=\$ac_env_${ac_var}_set
1515  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1516  eval ac_new_val="\$ac_env_${ac_var}_value"
1517  case $ac_old_set,$ac_new_set in
1518    set,)
1519      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1520echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1521      ac_cache_corrupted=: ;;
1522    ,set)
1523      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1524echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1525      ac_cache_corrupted=: ;;
1526    ,);;
1527    *)
1528      if test "x$ac_old_val" != "x$ac_new_val"; then
1529        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1530echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1531        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1532echo "$as_me:   former value:  $ac_old_val" >&2;}
1533        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1534echo "$as_me:   current value: $ac_new_val" >&2;}
1535        ac_cache_corrupted=:
1536      fi;;
1537  esac
1538  # Pass precious variables to config.status.
1539  if test "$ac_new_set" = set; then
1540    case $ac_new_val in
1541    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1542      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1543    *) ac_arg=$ac_var=$ac_new_val ;;
1544    esac
1545    case " $ac_configure_args " in
1546      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1547      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1548    esac
1549  fi
1550done
1551if $ac_cache_corrupted; then
1552  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1553echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1554  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1555echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1556   { (exit 1); exit 1; }; }
1557fi
1558
1559ac_ext=c
1560ac_cpp='$CPP $CPPFLAGS'
1561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1563ac_compiler_gnu=$ac_cv_c_compiler_gnu
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594# List one file in the package so that the configure script can test
1595# whether the package is actually there
1596
1597
1598# Where should everything be installed by default?  Here, we want it
1599# to be installed directly in 'bin', 'lib', 'include' subdirectories
1600# of the directory where configure is run.  The default would be
1601# /usr/local.
1602
1603
1604#############################################################################
1605#                         Standard build tool stuff                         #
1606#############################################################################
1607
1608# Get the system type
1609ac_aux_dir=
1610for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1611  if test -f $ac_dir/install-sh; then
1612    ac_aux_dir=$ac_dir
1613    ac_install_sh="$ac_aux_dir/install-sh -c"
1614    break
1615  elif test -f $ac_dir/install.sh; then
1616    ac_aux_dir=$ac_dir
1617    ac_install_sh="$ac_aux_dir/install.sh -c"
1618    break
1619  elif test -f $ac_dir/shtool; then
1620    ac_aux_dir=$ac_dir
1621    ac_install_sh="$ac_aux_dir/shtool install -c"
1622    break
1623  fi
1624done
1625if test -z "$ac_aux_dir"; then
1626  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1627echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1628   { (exit 1); exit 1; }; }
1629fi
1630ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1631ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1632ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1633
1634# Make sure we can run config.sub.
1635$ac_config_sub sun4 >/dev/null 2>&1 ||
1636  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1637echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1638   { (exit 1); exit 1; }; }
1639
1640echo "$as_me:$LINENO: checking build system type" >&5
1641echo $ECHO_N "checking build system type... $ECHO_C" >&6
1642if test "${ac_cv_build+set}" = set; then
1643  echo $ECHO_N "(cached) $ECHO_C" >&6
1644else
1645  ac_cv_build_alias=$build_alias
1646test -z "$ac_cv_build_alias" &&
1647  ac_cv_build_alias=`$ac_config_guess`
1648test -z "$ac_cv_build_alias" &&
1649  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1650echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1651   { (exit 1); exit 1; }; }
1652ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1653  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1654echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1655   { (exit 1); exit 1; }; }
1656
1657fi
1658echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1659echo "${ECHO_T}$ac_cv_build" >&6
1660build=$ac_cv_build
1661build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1662build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1663build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1664
1665
1666
1667# If this project depends on external projects, the Externals file in
1668# the source root directory contains definition of where to find those
1669# externals.  The following macro ensures that those externals are
1670# retrieved by svn if they are not there yet.
1671# Initialize the ADDLIBS variable
1672ADDLIBS="-lm $LIBS"
1673
1674
1675# Initialize the FADDLIBS variable (which is to be used with a fortran
1676# compiler and will not include FLIBS)
1677FADDLIBS="$LIBS"
1678
1679
1680# A useful makefile conditional that is always false
1681
1682
1683if false; then
1684  ALWAYS_FALSE_TRUE=
1685  ALWAYS_FALSE_FALSE='#'
1686else
1687  ALWAYS_FALSE_TRUE='#'
1688  ALWAYS_FALSE_FALSE=
1689fi
1690
1691
1692# We set the following variable so that we know later in AC_COIN_FINALIZE
1693# that we are in a project main directory
1694coin_projectdir=yes
1695
1696
1697# Check if user wants to produce debugging code
1698
1699echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1700echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1701
1702# Check whether --enable-debug or --disable-debug was given.
1703if test "${enable_debug+set}" = set; then
1704  enableval="$enable_debug"
1705  case "${enableval}" in
1706   yes) coin_debug_compile=true
1707        enable_shared=no
1708        ;;
1709   no)  coin_debug_compile=false
1710        ;;
1711   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1712echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1713   { (exit 1); exit 1; }; }
1714        ;;
1715esac
1716else
1717  coin_debug_compile=false
1718fi;
1719
1720# Check whether --enable-debug-clp or --disable-debug-clp was given.
1721if test "${enable_debug_clp+set}" = set; then
1722  enableval="$enable_debug_clp"
1723  case "${enableval}" in
1724    yes) coin_debug_compile=true
1725         enable_shared=no
1726         ;;
1727    no)  coin_debug_compile=false
1728         ;;
1729    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-clp" >&5
1730echo "$as_me: error: bad value ${enableval} for --enable-debug-clp" >&2;}
1731   { (exit 1); exit 1; }; }
1732         ;;
1733 esac
1734else
1735  :
1736fi;
1737
1738 # m4_ifvaln([Clp],
1739
1740if test $coin_debug_compile = true; then
1741  echo "$as_me:$LINENO: result: yes" >&5
1742echo "${ECHO_T}yes" >&6
1743else
1744  echo "$as_me:$LINENO: result: no" >&5
1745echo "${ECHO_T}no" >&6
1746fi
1747
1748
1749# Check whether --with-clp-verbosity or --without-clp-verbosity was given.
1750if test "${with_clp_verbosity+set}" = set; then
1751  withval="$with_clp_verbosity"
1752  if test "$withval" = yes; then
1753                withval=1
1754              fi
1755              coin_clp_verbosity=$withval
1756else
1757  coin_clp_verbosity=0
1758fi;
1759
1760cat >>confdefs.h <<_ACEOF
1761#define COIN_CLP_VERBOSITY $coin_clp_verbosity
1762_ACEOF
1763
1764
1765
1766# Check whether --with-clp-checklevel or --without-clp-checklevel was given.
1767if test "${with_clp_checklevel+set}" = set; then
1768  withval="$with_clp_checklevel"
1769  if test "$withval" = yes; then
1770                withval=1
1771              fi
1772              coin_clp_checklevel=$withval
1773else
1774  coin_clp_checklevel=0
1775fi;
1776
1777cat >>confdefs.h <<_ACEOF
1778#define COIN_CLP_CHECKLEVEL $coin_clp_checklevel
1779_ACEOF
1780
1781
1782# We use the following variable to have a string with the upper case
1783# version of the project name
1784COIN_PRJCT=CLP
1785
1786
1787 # m4_ifvaln([Clp],
1788
1789
1790
1791# Get the name of the C++ compiler and appropriate compiler options
1792case $build in
1793  *-mingw*)
1794    if test "${LD+set}" = set; then :; else
1795      LD=link
1796    fi
1797    ;;
1798 esac
1799 case $enable_doscompile in
1800   msvc)
1801     if test "x${LD+set}" = xset; then :; else
1802       LD=link
1803     fi
1804     ;;
1805 esac
1806
1807
1808 # Check whether --enable-doscompile or --disable-doscompile was given.
1809if test "${enable_doscompile+set}" = set; then
1810  enableval="$enable_doscompile"
1811  if test "$enable_doscompile" != no; then
1812     case $build in
1813       *-cygwin*) ;;
1814       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5
1815echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;}
1816   { (exit 1); exit 1; }; } ;;
1817     esac
1818   fi
1819else
1820  enable_doscompile=no
1821fi;
1822 case "$enable_doscompile" in
1823   msvc|mingw|no) ;;
1824   yes) enable_doscompile=mingw ;;
1825   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1826                    Try configure --help=recursive." >&5
1827echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1828                    Try configure --help=recursive." >&2;}
1829   { (exit 1); exit 1; }; }
1830      ;;
1831  esac
1832  if test "$enable_doscompile" != no ; then
1833    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1834echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1835  fi
1836
1837
1838
1839
1840ac_ext=c
1841ac_cpp='$CPP $CPPFLAGS'
1842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1844ac_compiler_gnu=$ac_cv_c_compiler_gnu
1845
1846
1847# For consistency, we set the C compiler to the same value of the C++
1848# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1849if test x"$CXX" != x; then
1850  case "$CXX" in
1851    cl* | */cl* | CL* | */CL*)
1852      if test x"$CC" = x; then
1853        CC="$CXX"
1854        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1855echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1856      fi
1857      ;;
1858  esac
1859fi
1860
1861
1862
1863
1864
1865
1866coin_has_cc=yes
1867
1868save_cflags="$CFLAGS"
1869# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
1870# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
1871# is likely to be a non-functional shell. But many installations will have
1872# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
1873case $build in
1874  *-cygwin* | *-mingw*)
1875             if test "$enable_doscompile" = msvc ; then
1876               comps="cl"
1877             else
1878               comps="gcc cl"
1879             fi ;;
1880  sparc-sun-solaris*)
1881             comps="cc xlc gcc pgcc icc" ;;
1882  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1883  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1884esac
1885
1886# We delete the cached value, since the test might not have been
1887# performed with our choice of compilers earlier
1888$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1889# AC_MSG_NOTICE([C compiler candidates: $comps])
1890ac_ext=c
1891ac_cpp='$CPP $CPPFLAGS'
1892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1894ac_compiler_gnu=$ac_cv_c_compiler_gnu
1895if test -n "$ac_tool_prefix"; then
1896  for ac_prog in $comps
1897  do
1898    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1899set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1900echo "$as_me:$LINENO: checking for $ac_word" >&5
1901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902if test "${ac_cv_prog_CC+set}" = set; then
1903  echo $ECHO_N "(cached) $ECHO_C" >&6
1904else
1905  if test -n "$CC"; then
1906  ac_cv_prog_CC="$CC" # Let the user override the test.
1907else
1908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909for as_dir in $PATH
1910do
1911  IFS=$as_save_IFS
1912  test -z "$as_dir" && as_dir=.
1913  for ac_exec_ext in '' $ac_executable_extensions; do
1914  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1916    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917    break 2
1918  fi
1919done
1920done
1921
1922fi
1923fi
1924CC=$ac_cv_prog_CC
1925if test -n "$CC"; then
1926  echo "$as_me:$LINENO: result: $CC" >&5
1927echo "${ECHO_T}$CC" >&6
1928else
1929  echo "$as_me:$LINENO: result: no" >&5
1930echo "${ECHO_T}no" >&6
1931fi
1932
1933    test -n "$CC" && break
1934  done
1935fi
1936if test -z "$CC"; then
1937  ac_ct_CC=$CC
1938  for ac_prog in $comps
1939do
1940  # Extract the first word of "$ac_prog", so it can be a program name with args.
1941set dummy $ac_prog; ac_word=$2
1942echo "$as_me:$LINENO: checking for $ac_word" >&5
1943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1945  echo $ECHO_N "(cached) $ECHO_C" >&6
1946else
1947  if test -n "$ac_ct_CC"; then
1948  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1949else
1950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951for as_dir in $PATH
1952do
1953  IFS=$as_save_IFS
1954  test -z "$as_dir" && as_dir=.
1955  for ac_exec_ext in '' $ac_executable_extensions; do
1956  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957    ac_cv_prog_ac_ct_CC="$ac_prog"
1958    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959    break 2
1960  fi
1961done
1962done
1963
1964fi
1965fi
1966ac_ct_CC=$ac_cv_prog_ac_ct_CC
1967if test -n "$ac_ct_CC"; then
1968  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1969echo "${ECHO_T}$ac_ct_CC" >&6
1970else
1971  echo "$as_me:$LINENO: result: no" >&5
1972echo "${ECHO_T}no" >&6
1973fi
1974
1975  test -n "$ac_ct_CC" && break
1976done
1977
1978  CC=$ac_ct_CC
1979fi
1980
1981
1982test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1983See \`config.log' for more details." >&5
1984echo "$as_me: error: no acceptable C compiler found in \$PATH
1985See \`config.log' for more details." >&2;}
1986   { (exit 1); exit 1; }; }
1987
1988# Provide some information about the compiler.
1989echo "$as_me:$LINENO:" \
1990     "checking for C compiler version" >&5
1991ac_compiler=`set X $ac_compile; echo $2`
1992{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1993  (eval $ac_compiler --version </dev/null >&5) 2>&5
1994  ac_status=$?
1995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996  (exit $ac_status); }
1997{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1998  (eval $ac_compiler -v </dev/null >&5) 2>&5
1999  ac_status=$?
2000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001  (exit $ac_status); }
2002{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2003  (eval $ac_compiler -V </dev/null >&5) 2>&5
2004  ac_status=$?
2005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006  (exit $ac_status); }
2007
2008cat >conftest.$ac_ext <<_ACEOF
2009/* confdefs.h.  */
2010_ACEOF
2011cat confdefs.h >>conftest.$ac_ext
2012cat >>conftest.$ac_ext <<_ACEOF
2013/* end confdefs.h.  */
2014
2015int
2016main ()
2017{
2018
2019  ;
2020  return 0;
2021}
2022_ACEOF
2023ac_clean_files_save=$ac_clean_files
2024ac_clean_files="$ac_clean_files a.out a.exe b.out"
2025# Try to create an executable without -o first, disregard a.out.
2026# It will help us diagnose broken compilers, and finding out an intuition
2027# of exeext.
2028echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2029echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2030ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2031if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2032  (eval $ac_link_default) 2>&5
2033  ac_status=$?
2034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035  (exit $ac_status); }; then
2036  # Find the output, starting from the most likely.  This scheme is
2037# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2038# resort.
2039
2040# Be careful to initialize this variable, since it used to be cached.
2041# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2042ac_cv_exeext=
2043# b.out is created by i960 compilers.
2044for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2045do
2046  test -f "$ac_file" || continue
2047  case $ac_file in
2048    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2049        ;;
2050    conftest.$ac_ext )
2051        # This is the source file.
2052        ;;
2053    [ab].out )
2054        # We found the default executable, but exeext='' is most
2055        # certainly right.
2056        break;;
2057    *.* )
2058        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2059        # FIXME: I believe we export ac_cv_exeext for Libtool,
2060        # but it would be cool to find out if it's true.  Does anybody
2061        # maintain Libtool? --akim.
2062        export ac_cv_exeext
2063        break;;
2064    * )
2065        break;;
2066  esac
2067done
2068else
2069  echo "$as_me: failed program was:" >&5
2070sed 's/^/| /' conftest.$ac_ext >&5
2071
2072{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2073See \`config.log' for more details." >&5
2074echo "$as_me: error: C compiler cannot create executables
2075See \`config.log' for more details." >&2;}
2076   { (exit 77); exit 77; }; }
2077fi
2078
2079ac_exeext=$ac_cv_exeext
2080echo "$as_me:$LINENO: result: $ac_file" >&5
2081echo "${ECHO_T}$ac_file" >&6
2082
2083# Check the compiler produces executables we can run.  If not, either
2084# the compiler is broken, or we cross compile.
2085echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2086echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2087# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2088# If not cross compiling, check that we can run a simple program.
2089if test "$cross_compiling" != yes; then
2090  if { ac_try='./$ac_file'
2091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092  (eval $ac_try) 2>&5
2093  ac_status=$?
2094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095  (exit $ac_status); }; }; then
2096    cross_compiling=no
2097  else
2098    if test "$cross_compiling" = maybe; then
2099        cross_compiling=yes
2100    else
2101        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2102If you meant to cross compile, use \`--host'.
2103See \`config.log' for more details." >&5
2104echo "$as_me: error: cannot run C compiled programs.
2105If you meant to cross compile, use \`--host'.
2106See \`config.log' for more details." >&2;}
2107   { (exit 1); exit 1; }; }
2108    fi
2109  fi
2110fi
2111echo "$as_me:$LINENO: result: yes" >&5
2112echo "${ECHO_T}yes" >&6
2113
2114rm -f a.out a.exe conftest$ac_cv_exeext b.out
2115ac_clean_files=$ac_clean_files_save
2116# Check the compiler produces executables we can run.  If not, either
2117# the compiler is broken, or we cross compile.
2118echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2119echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2120echo "$as_me:$LINENO: result: $cross_compiling" >&5
2121echo "${ECHO_T}$cross_compiling" >&6
2122
2123echo "$as_me:$LINENO: checking for suffix of executables" >&5
2124echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2126  (eval $ac_link) 2>&5
2127  ac_status=$?
2128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129  (exit $ac_status); }; then
2130  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2131# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2132# work properly (i.e., refer to `conftest.exe'), while it won't with
2133# `rm'.
2134for ac_file in conftest.exe conftest conftest.*; do
2135  test -f "$ac_file" || continue
2136  case $ac_file in
2137    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2138    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2139          export ac_cv_exeext
2140          break;;
2141    * ) break;;
2142  esac
2143done
2144else
2145  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2146See \`config.log' for more details." >&5
2147echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2148See \`config.log' for more details." >&2;}
2149   { (exit 1); exit 1; }; }
2150fi
2151
2152rm -f conftest$ac_cv_exeext
2153echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2154echo "${ECHO_T}$ac_cv_exeext" >&6
2155
2156rm -f conftest.$ac_ext
2157EXEEXT=$ac_cv_exeext
2158ac_exeext=$EXEEXT
2159echo "$as_me:$LINENO: checking for suffix of object files" >&5
2160echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2161if test "${ac_cv_objext+set}" = set; then
2162  echo $ECHO_N "(cached) $ECHO_C" >&6
2163else
2164  cat >conftest.$ac_ext <<_ACEOF
2165/* confdefs.h.  */
2166_ACEOF
2167cat confdefs.h >>conftest.$ac_ext
2168cat >>conftest.$ac_ext <<_ACEOF
2169/* end confdefs.h.  */
2170
2171int
2172main ()
2173{
2174
2175  ;
2176  return 0;
2177}
2178_ACEOF
2179rm -f conftest.o conftest.obj
2180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181  (eval $ac_compile) 2>&5
2182  ac_status=$?
2183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184  (exit $ac_status); }; then
2185  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2186  case $ac_file in
2187    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2188    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2189       break;;
2190  esac
2191done
2192else
2193  echo "$as_me: failed program was:" >&5
2194sed 's/^/| /' conftest.$ac_ext >&5
2195
2196{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2197See \`config.log' for more details." >&5
2198echo "$as_me: error: cannot compute suffix of object files: cannot compile
2199See \`config.log' for more details." >&2;}
2200   { (exit 1); exit 1; }; }
2201fi
2202
2203rm -f conftest.$ac_cv_objext conftest.$ac_ext
2204fi
2205echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2206echo "${ECHO_T}$ac_cv_objext" >&6
2207OBJEXT=$ac_cv_objext
2208ac_objext=$OBJEXT
2209echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2210echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2211if test "${ac_cv_c_compiler_gnu+set}" = set; then
2212  echo $ECHO_N "(cached) $ECHO_C" >&6
2213else
2214  cat >conftest.$ac_ext <<_ACEOF
2215/* confdefs.h.  */
2216_ACEOF
2217cat confdefs.h >>conftest.$ac_ext
2218cat >>conftest.$ac_ext <<_ACEOF
2219/* end confdefs.h.  */
2220
2221int
2222main ()
2223{
2224#ifndef __GNUC__
2225       choke me
2226#endif
2227
2228  ;
2229  return 0;
2230}
2231_ACEOF
2232rm -f conftest.$ac_objext
2233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2234  (eval $ac_compile) 2>conftest.er1
2235  ac_status=$?
2236  grep -v '^ *+' conftest.er1 >conftest.err
2237  rm -f conftest.er1
2238  cat conftest.err >&5
2239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240  (exit $ac_status); } &&
2241         { ac_try='test -z "$ac_c_werror_flag"
2242                         || test ! -s conftest.err'
2243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244  (eval $ac_try) 2>&5
2245  ac_status=$?
2246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247  (exit $ac_status); }; } &&
2248         { ac_try='test -s conftest.$ac_objext'
2249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250  (eval $ac_try) 2>&5
2251  ac_status=$?
2252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253  (exit $ac_status); }; }; then
2254  ac_compiler_gnu=yes
2255else
2256  echo "$as_me: failed program was:" >&5
2257sed 's/^/| /' conftest.$ac_ext >&5
2258
2259ac_compiler_gnu=no
2260fi
2261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2262ac_cv_c_compiler_gnu=$ac_compiler_gnu
2263
2264fi
2265echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2266echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2267GCC=`test $ac_compiler_gnu = yes && echo yes`
2268ac_test_CFLAGS=${CFLAGS+set}
2269ac_save_CFLAGS=$CFLAGS
2270CFLAGS="-g"
2271echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2272echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2273if test "${ac_cv_prog_cc_g+set}" = set; then
2274  echo $ECHO_N "(cached) $ECHO_C" >&6
2275else
2276  cat >conftest.$ac_ext <<_ACEOF
2277/* confdefs.h.  */
2278_ACEOF
2279cat confdefs.h >>conftest.$ac_ext
2280cat >>conftest.$ac_ext <<_ACEOF
2281/* end confdefs.h.  */
2282
2283int
2284main ()
2285{
2286
2287  ;
2288  return 0;
2289}
2290_ACEOF
2291rm -f conftest.$ac_objext
2292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293  (eval $ac_compile) 2>conftest.er1
2294  ac_status=$?
2295  grep -v '^ *+' conftest.er1 >conftest.err
2296  rm -f conftest.er1
2297  cat conftest.err >&5
2298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299  (exit $ac_status); } &&
2300         { ac_try='test -z "$ac_c_werror_flag"
2301                         || test ! -s conftest.err'
2302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303  (eval $ac_try) 2>&5
2304  ac_status=$?
2305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306  (exit $ac_status); }; } &&
2307         { ac_try='test -s conftest.$ac_objext'
2308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309  (eval $ac_try) 2>&5
2310  ac_status=$?
2311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312  (exit $ac_status); }; }; then
2313  ac_cv_prog_cc_g=yes
2314else
2315  echo "$as_me: failed program was:" >&5
2316sed 's/^/| /' conftest.$ac_ext >&5
2317
2318ac_cv_prog_cc_g=no
2319fi
2320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2321fi
2322echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2323echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2324if test "$ac_test_CFLAGS" = set; then
2325  CFLAGS=$ac_save_CFLAGS
2326elif test $ac_cv_prog_cc_g = yes; then
2327  if test "$GCC" = yes; then
2328    CFLAGS="-g -O2"
2329  else
2330    CFLAGS="-g"
2331  fi
2332else
2333  if test "$GCC" = yes; then
2334    CFLAGS="-O2"
2335  else
2336    CFLAGS=
2337  fi
2338fi
2339echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2340echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2341if test "${ac_cv_prog_cc_stdc+set}" = set; then
2342  echo $ECHO_N "(cached) $ECHO_C" >&6
2343else
2344  ac_cv_prog_cc_stdc=no
2345ac_save_CC=$CC
2346cat >conftest.$ac_ext <<_ACEOF
2347/* confdefs.h.  */
2348_ACEOF
2349cat confdefs.h >>conftest.$ac_ext
2350cat >>conftest.$ac_ext <<_ACEOF
2351/* end confdefs.h.  */
2352#include <stdarg.h>
2353#include <stdio.h>
2354#include <sys/types.h>
2355#include <sys/stat.h>
2356/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2357struct buf { int x; };
2358FILE * (*rcsopen) (struct buf *, struct stat *, int);
2359static char *e (p, i)
2360     char **p;
2361     int i;
2362{
2363  return p[i];
2364}
2365static char *f (char * (*g) (char **, int), char **p, ...)
2366{
2367  char *s;
2368  va_list v;
2369  va_start (v,p);
2370  s = g (p, va_arg (v,int));
2371  va_end (v);
2372  return s;
2373}
2374
2375/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2376   function prototypes and stuff, but not '\xHH' hex character constants.
2377   These don't provoke an error unfortunately, instead are silently treated
2378   as 'x'.  The following induces an error, until -std1 is added to get
2379   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2380   array size at least.  It's necessary to write '\x00'==0 to get something
2381   that's true only with -std1.  */
2382int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2383
2384int test (int i, double x);
2385struct s1 {int (*f) (int a);};
2386struct s2 {int (*f) (double a);};
2387int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2388int argc;
2389char **argv;
2390int
2391main ()
2392{
2393return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2394  ;
2395  return 0;
2396}
2397_ACEOF
2398# Don't try gcc -ansi; that turns off useful extensions and
2399# breaks some systems' header files.
2400# AIX                   -qlanglvl=ansi
2401# Ultrix and OSF/1      -std1
2402# HP-UX 10.20 and later -Ae
2403# HP-UX older versions  -Aa -D_HPUX_SOURCE
2404# SVR4                  -Xc -D__EXTENSIONS__
2405for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2406do
2407  CC="$ac_save_CC $ac_arg"
2408  rm -f conftest.$ac_objext
2409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410  (eval $ac_compile) 2>conftest.er1
2411  ac_status=$?
2412  grep -v '^ *+' conftest.er1 >conftest.err
2413  rm -f conftest.er1
2414  cat conftest.err >&5
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); } &&
2417         { ac_try='test -z "$ac_c_werror_flag"
2418                         || test ! -s conftest.err'
2419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420  (eval $ac_try) 2>&5
2421  ac_status=$?
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); }; } &&
2424         { ac_try='test -s conftest.$ac_objext'
2425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426  (eval $ac_try) 2>&5
2427  ac_status=$?
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); }; }; then
2430  ac_cv_prog_cc_stdc=$ac_arg
2431break
2432else
2433  echo "$as_me: failed program was:" >&5
2434sed 's/^/| /' conftest.$ac_ext >&5
2435
2436fi
2437rm -f conftest.err conftest.$ac_objext
2438done
2439rm -f conftest.$ac_ext conftest.$ac_objext
2440CC=$ac_save_CC
2441
2442fi
2443
2444case "x$ac_cv_prog_cc_stdc" in
2445  x|xno)
2446    echo "$as_me:$LINENO: result: none needed" >&5
2447echo "${ECHO_T}none needed" >&6 ;;
2448  *)
2449    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2450echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2451    CC="$CC $ac_cv_prog_cc_stdc" ;;
2452esac
2453
2454# Some people use a C++ compiler to compile C.  Since we use `exit',
2455# in C++ we need to declare it.  In case someone uses the same compiler
2456# for both compiling C and C++ we need to have the C++ compiler decide
2457# the declaration of exit, since it's the most demanding environment.
2458cat >conftest.$ac_ext <<_ACEOF
2459#ifndef __cplusplus
2460  choke me
2461#endif
2462_ACEOF
2463rm -f conftest.$ac_objext
2464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2465  (eval $ac_compile) 2>conftest.er1
2466  ac_status=$?
2467  grep -v '^ *+' conftest.er1 >conftest.err
2468  rm -f conftest.er1
2469  cat conftest.err >&5
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); } &&
2472         { ac_try='test -z "$ac_c_werror_flag"
2473                         || test ! -s conftest.err'
2474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475  (eval $ac_try) 2>&5
2476  ac_status=$?
2477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478  (exit $ac_status); }; } &&
2479         { ac_try='test -s conftest.$ac_objext'
2480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481  (eval $ac_try) 2>&5
2482  ac_status=$?
2483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484  (exit $ac_status); }; }; then
2485  for ac_declaration in \
2486   '' \
2487   'extern "C" void std::exit (int) throw (); using std::exit;' \
2488   'extern "C" void std::exit (int); using std::exit;' \
2489   'extern "C" void exit (int) throw ();' \
2490   'extern "C" void exit (int);' \
2491   'void exit (int);'
2492do
2493  cat >conftest.$ac_ext <<_ACEOF
2494/* confdefs.h.  */
2495_ACEOF
2496cat confdefs.h >>conftest.$ac_ext
2497cat >>conftest.$ac_ext <<_ACEOF
2498/* end confdefs.h.  */
2499$ac_declaration
2500#include <stdlib.h>
2501int
2502main ()
2503{
2504exit (42);
2505  ;
2506  return 0;
2507}
2508_ACEOF
2509rm -f conftest.$ac_objext
2510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511  (eval $ac_compile) 2>conftest.er1
2512  ac_status=$?
2513  grep -v '^ *+' conftest.er1 >conftest.err
2514  rm -f conftest.er1
2515  cat conftest.err >&5
2516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517  (exit $ac_status); } &&
2518         { ac_try='test -z "$ac_c_werror_flag"
2519                         || test ! -s conftest.err'
2520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521  (eval $ac_try) 2>&5
2522  ac_status=$?
2523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524  (exit $ac_status); }; } &&
2525         { ac_try='test -s conftest.$ac_objext'
2526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527  (eval $ac_try) 2>&5
2528  ac_status=$?
2529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530  (exit $ac_status); }; }; then
2531  :
2532else
2533  echo "$as_me: failed program was:" >&5
2534sed 's/^/| /' conftest.$ac_ext >&5
2535
2536continue
2537fi
2538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2539  cat >conftest.$ac_ext <<_ACEOF
2540/* confdefs.h.  */
2541_ACEOF
2542cat confdefs.h >>conftest.$ac_ext
2543cat >>conftest.$ac_ext <<_ACEOF
2544/* end confdefs.h.  */
2545$ac_declaration
2546int
2547main ()
2548{
2549exit (42);
2550  ;
2551  return 0;
2552}
2553_ACEOF
2554rm -f conftest.$ac_objext
2555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556  (eval $ac_compile) 2>conftest.er1
2557  ac_status=$?
2558  grep -v '^ *+' conftest.er1 >conftest.err
2559  rm -f conftest.er1
2560  cat conftest.err >&5
2561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562  (exit $ac_status); } &&
2563         { ac_try='test -z "$ac_c_werror_flag"
2564                         || test ! -s conftest.err'
2565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566  (eval $ac_try) 2>&5
2567  ac_status=$?
2568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569  (exit $ac_status); }; } &&
2570         { ac_try='test -s conftest.$ac_objext'
2571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572  (eval $ac_try) 2>&5
2573  ac_status=$?
2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575  (exit $ac_status); }; }; then
2576  break
2577else
2578  echo "$as_me: failed program was:" >&5
2579sed 's/^/| /' conftest.$ac_ext >&5
2580
2581fi
2582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2583done
2584rm -f conftest*
2585if test -n "$ac_declaration"; then
2586  echo '#ifdef __cplusplus' >>confdefs.h
2587  echo $ac_declaration      >>confdefs.h
2588  echo '#endif'             >>confdefs.h
2589fi
2590
2591else
2592  echo "$as_me: failed program was:" >&5
2593sed 's/^/| /' conftest.$ac_ext >&5
2594
2595fi
2596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2597ac_ext=c
2598ac_cpp='$CPP $CPPFLAGS'
2599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602
2603if test -z "$CC" ; then
2604  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2605echo "$as_me: error: Failed to find a C compiler!" >&2;}
2606   { (exit 1); exit 1; }; }
2607fi
2608# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2609case "$CC" in
2610  cl* | */cl* | CL* | */CL* )
2611    if test "$ac_cv_prog_cc_g" = yes ; then
2612      ac_cv_prog_cc_g=no
2613      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2614echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2615    fi ;;
2616esac
2617CFLAGS="$save_cflags"
2618
2619# Check if a project specific CFLAGS variable has been set
2620if test x$COIN_PRJCT != x; then
2621  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2622  if test x$coin_tmp = xset; then
2623    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2624  fi
2625fi
2626
2627if test x"$CFLAGS" = x; then
2628
2629  coin_add_cflags=
2630  coin_opt_cflags=
2631  coin_dbg_cflags=
2632  coin_warn_cflags=
2633
2634  if test "$GCC" = "yes"; then
2635    case "$CC" in
2636      icc* | */icc*)
2637        ;;
2638      *)
2639        coin_opt_cflags="-O3 -fomit-frame-pointer"
2640        coin_add_cflags="-pipe"
2641        coin_dbg_cflags="-g"
2642        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2643        case $enable_doscompile in
2644          mingw)
2645            CFLAGS="-mno-cygwin"
2646            cat >conftest.$ac_ext <<_ACEOF
2647/* confdefs.h.  */
2648_ACEOF
2649cat confdefs.h >>conftest.$ac_ext
2650cat >>conftest.$ac_ext <<_ACEOF
2651/* end confdefs.h.  */
2652
2653int
2654main ()
2655{
2656int i=0; i++;
2657  ;
2658  return 0;
2659}
2660_ACEOF
2661rm -f conftest.$ac_objext conftest$ac_exeext
2662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2663  (eval $ac_link) 2>conftest.er1
2664  ac_status=$?
2665  grep -v '^ *+' conftest.er1 >conftest.err
2666  rm -f conftest.er1
2667  cat conftest.err >&5
2668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669  (exit $ac_status); } &&
2670         { ac_try='test -z "$ac_c_werror_flag"
2671                         || test ! -s conftest.err'
2672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673  (eval $ac_try) 2>&5
2674  ac_status=$?
2675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676  (exit $ac_status); }; } &&
2677         { ac_try='test -s conftest$ac_exeext'
2678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679  (eval $ac_try) 2>&5
2680  ac_status=$?
2681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682  (exit $ac_status); }; }; then
2683  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2684else
2685  echo "$as_me: failed program was:" >&5
2686sed 's/^/| /' conftest.$ac_ext >&5
2687
2688fi
2689rm -f conftest.err conftest.$ac_objext \
2690      conftest$ac_exeext conftest.$ac_ext
2691            CFLAGS=
2692          ;;
2693        esac
2694    esac
2695  fi
2696  if test -z "$coin_opt_cflags"; then
2697    case $build in
2698      *-cygwin* | *-mingw*)
2699        case "$CC" in
2700          cl* | */cl* | CL* | */CL*)
2701            coin_opt_cflags='-MT -O2'
2702            coin_add_cflags='-nologo -wd4996'
2703            coin_dbg_cflags='-MTd'
2704            ;;
2705        esac
2706        ;;
2707      *-linux-*)
2708        case "$CC" in
2709          icc* | */icc*)
2710            coin_opt_cflags="-O3 -ip"
2711            coin_add_cflags=""
2712            coin_dbg_cflags="-g"
2713            # Check if -i_dynamic is necessary (for new glibc library)
2714            CFLAGS=
2715            cat >conftest.$ac_ext <<_ACEOF
2716/* confdefs.h.  */
2717_ACEOF
2718cat confdefs.h >>conftest.$ac_ext
2719cat >>conftest.$ac_ext <<_ACEOF
2720/* end confdefs.h.  */
2721
2722int
2723main ()
2724{
2725int i=0; i++;
2726  ;
2727  return 0;
2728}
2729_ACEOF
2730rm -f conftest.$ac_objext conftest$ac_exeext
2731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2732  (eval $ac_link) 2>conftest.er1
2733  ac_status=$?
2734  grep -v '^ *+' conftest.er1 >conftest.err
2735  rm -f conftest.er1
2736  cat conftest.err >&5
2737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738  (exit $ac_status); } &&
2739         { ac_try='test -z "$ac_c_werror_flag"
2740                         || test ! -s conftest.err'
2741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742  (eval $ac_try) 2>&5
2743  ac_status=$?
2744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745  (exit $ac_status); }; } &&
2746         { ac_try='test -s conftest$ac_exeext'
2747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748  (eval $ac_try) 2>&5
2749  ac_status=$?
2750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751  (exit $ac_status); }; }; then
2752  :
2753else
2754  echo "$as_me: failed program was:" >&5
2755sed 's/^/| /' conftest.$ac_ext >&5
2756
2757coin_add_cflags="-i_dynamic $coin_add_cflags"
2758fi
2759rm -f conftest.err conftest.$ac_objext \
2760      conftest$ac_exeext conftest.$ac_ext
2761            ;;
2762          pgcc* | */pgcc*)
2763            coin_opt_cflags="-fast"
2764            coin_add_cflags="-Kieee -pc 64"
2765            coin_dbg_cflags="-g"
2766            ;;
2767        esac
2768        ;;
2769      *-ibm-*)
2770        case "$CC" in
2771          xlc* | */xlc* | mpxlc* | */mpxlc*)
2772            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2773            coin_add_cflags="-bmaxdata:0x80000000"
2774            coin_dbg_cflags="-g"
2775          ;;
2776        esac
2777        ;;
2778      *-hp-*)
2779        coin_opt_cflags="-O"
2780        coin_add_cflags="-Ae"
2781        coin_dbg_cflags="-g"
2782        ;;
2783      *-sun-*)
2784        coin_opt_cflags="-xO4"
2785        coin_dbg_cflags="-g"
2786        ;;
2787      *-sgi-*)
2788        coin_opt_cflags="-O -OPT:Olimit=0"
2789        coin_dbg_cflags="-g"
2790        ;;
2791    esac
2792  fi
2793
2794  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2795    coin_dbg_cflags="-g"
2796  fi
2797
2798  if test -z "$coin_opt_cflags"; then
2799    # Try if -O option works if nothing else is set
2800    CFLAGS="-O"
2801    cat >conftest.$ac_ext <<_ACEOF
2802/* confdefs.h.  */
2803_ACEOF
2804cat confdefs.h >>conftest.$ac_ext
2805cat >>conftest.$ac_ext <<_ACEOF
2806/* end confdefs.h.  */
2807
2808int
2809main ()
2810{
2811int i=0; i++;
2812  ;
2813  return 0;
2814}
2815_ACEOF
2816rm -f conftest.$ac_objext conftest$ac_exeext
2817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2818  (eval $ac_link) 2>conftest.er1
2819  ac_status=$?
2820  grep -v '^ *+' conftest.er1 >conftest.err
2821  rm -f conftest.er1
2822  cat conftest.err >&5
2823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824  (exit $ac_status); } &&
2825         { ac_try='test -z "$ac_c_werror_flag"
2826                         || test ! -s conftest.err'
2827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828  (eval $ac_try) 2>&5
2829  ac_status=$?
2830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831  (exit $ac_status); }; } &&
2832         { ac_try='test -s conftest$ac_exeext'
2833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834  (eval $ac_try) 2>&5
2835  ac_status=$?
2836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837  (exit $ac_status); }; }; then
2838  coin_opt_cflags="-O"
2839else
2840  echo "$as_me: failed program was:" >&5
2841sed 's/^/| /' conftest.$ac_ext >&5
2842
2843fi
2844rm -f conftest.err conftest.$ac_objext \
2845      conftest$ac_exeext conftest.$ac_ext
2846  fi
2847
2848  # if PM doesn't want the warning messages, take them out
2849  if test x"$coin_skip_warn_cflags" = xyes; then
2850    coin_warn_cflags=
2851  fi
2852
2853  if test x${DBG_CFLAGS+set} != xset; then
2854    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2855  fi
2856  if test x${OPT_CFLAGS+set} != xset; then
2857    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2858  fi
2859
2860  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2861  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2862
2863  if test "$coin_debug_compile" = "true"; then
2864    CFLAGS="$DBG_CFLAGS"
2865  else
2866    CFLAGS="$OPT_CFLAGS"
2867  fi
2868else
2869  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2870  if test x${DBG_CFLAGS+set} != xset; then
2871    DBG_CFLAGS="$CFLAGS"
2872  fi
2873  if test x${OPT_CFLAGS+set} != xset; then
2874    OPT_CFLAGS="$CFLAGS"
2875  fi
2876fi
2877
2878# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2879
2880case "$CFLAGS" in
2881  *-mno-cygwin*)
2882    if test x${CPPFLAGS+set} != xset ; then
2883      CPPFLAGS="-mno-cygwin"
2884    else
2885      case "$CPPFLAGS" in
2886        *-mno-cygwin*)
2887          ;;
2888        *)
2889          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2890          ;;
2891      esac
2892    fi ;;
2893esac
2894
2895# Try if CFLAGS works
2896save_CFLAGS="$CFLAGS"
2897cat >conftest.$ac_ext <<_ACEOF
2898/* confdefs.h.  */
2899_ACEOF
2900cat confdefs.h >>conftest.$ac_ext
2901cat >>conftest.$ac_ext <<_ACEOF
2902/* end confdefs.h.  */
2903
2904int
2905main ()
2906{
2907int i=0; i++;
2908  ;
2909  return 0;
2910}
2911_ACEOF
2912rm -f conftest.$ac_objext conftest$ac_exeext
2913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2914  (eval $ac_link) 2>conftest.er1
2915  ac_status=$?
2916  grep -v '^ *+' conftest.er1 >conftest.err
2917  rm -f conftest.er1
2918  cat conftest.err >&5
2919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920  (exit $ac_status); } &&
2921         { ac_try='test -z "$ac_c_werror_flag"
2922                         || test ! -s conftest.err'
2923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924  (eval $ac_try) 2>&5
2925  ac_status=$?
2926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927  (exit $ac_status); }; } &&
2928         { ac_try='test -s conftest$ac_exeext'
2929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930  (eval $ac_try) 2>&5
2931  ac_status=$?
2932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933  (exit $ac_status); }; }; then
2934  :
2935else
2936  echo "$as_me: failed program was:" >&5
2937sed 's/^/| /' conftest.$ac_ext >&5
2938
2939CFLAGS=
2940fi
2941rm -f conftest.err conftest.$ac_objext \
2942      conftest$ac_exeext conftest.$ac_ext
2943if test -z "$CFLAGS"; then
2944  { 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
2945echo "$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;}
2946  CFLAGS='-O'
2947  cat >conftest.$ac_ext <<_ACEOF
2948/* confdefs.h.  */
2949_ACEOF
2950cat confdefs.h >>conftest.$ac_ext
2951cat >>conftest.$ac_ext <<_ACEOF
2952/* end confdefs.h.  */
2953
2954int
2955main ()
2956{
2957int i=0; i++;
2958  ;
2959  return 0;
2960}
2961_ACEOF
2962rm -f conftest.$ac_objext conftest$ac_exeext
2963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2964  (eval $ac_link) 2>conftest.er1
2965  ac_status=$?
2966  grep -v '^ *+' conftest.er1 >conftest.err
2967  rm -f conftest.er1
2968  cat conftest.err >&5
2969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970  (exit $ac_status); } &&
2971         { ac_try='test -z "$ac_c_werror_flag"
2972                         || test ! -s conftest.err'
2973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974  (eval $ac_try) 2>&5
2975  ac_status=$?
2976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977  (exit $ac_status); }; } &&
2978         { ac_try='test -s conftest$ac_exeext'
2979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980  (eval $ac_try) 2>&5
2981  ac_status=$?
2982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983  (exit $ac_status); }; }; then
2984  :
2985else
2986  echo "$as_me: failed program was:" >&5
2987sed 's/^/| /' conftest.$ac_ext >&5
2988
2989CFLAGS=
2990fi
2991rm -f conftest.err conftest.$ac_objext \
2992      conftest$ac_exeext conftest.$ac_ext
2993  if test -z "$CFLAGS"; then
2994    { 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
2995echo "$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;}
2996  fi
2997fi
2998
2999{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3000echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3001
3002
3003if test x"$MPICC" = x; then :; else
3004  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3005echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3006  CC="$MPICC"
3007fi
3008
3009# Correct ADDLIBS initialization if we are using the MS compiler
3010case "$CC" in
3011  cl* | */cl* | CL* | */CL*)
3012    ADDLIBS=
3013    case $build in
3014  *-mingw*)
3015    if test "${LD+set}" = set; then :; else
3016      LD=link
3017    fi
3018    ;;
3019 esac
3020 case $enable_doscompile in
3021   msvc)
3022     if test "x${LD+set}" = xset; then :; else
3023       LD=link
3024     fi
3025     ;;
3026 esac
3027
3028    ;;
3029esac
3030
3031ac_ext=c
3032ac_cpp='$CPP $CPPFLAGS'
3033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036
3037
3038
3039 #Let's try if that overcomes configuration problem with VC++ 6.0
3040
3041ac_ext=cc
3042ac_cpp='$CXXCPP $CPPFLAGS'
3043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3046
3047
3048
3049
3050
3051
3052
3053coin_has_cxx=yes
3054
3055save_cxxflags="$CXXFLAGS"
3056# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
3057case $build in
3058  *-cygwin* | *-mingw*)
3059             if test "$enable_doscompile" = msvc ; then
3060               comps="cl"
3061             else
3062               comps="g++ cl"
3063             fi ;;
3064  sparc-sun-solaris*)
3065             comps="CC xlC aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3066  *-darwin*) comps="g++ c++ CC" ;;
3067          *) comps="xlC aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3068esac
3069
3070# We delete the cached value, since the test might not have been
3071# performed with our choice of compilers earlier
3072$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3073# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3074ac_ext=cc
3075ac_cpp='$CXXCPP $CPPFLAGS'
3076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3079if test -n "$ac_tool_prefix"; then
3080  for ac_prog in $CCC $comps
3081  do
3082    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3083set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3084echo "$as_me:$LINENO: checking for $ac_word" >&5
3085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3086if test "${ac_cv_prog_CXX+set}" = set; then
3087  echo $ECHO_N "(cached) $ECHO_C" >&6
3088else
3089  if test -n "$CXX"; then
3090  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3091else
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095  IFS=$as_save_IFS
3096  test -z "$as_dir" && as_dir=.
3097  for ac_exec_ext in '' $ac_executable_extensions; do
3098  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3100    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101    break 2
3102  fi
3103done
3104done
3105
3106fi
3107fi
3108CXX=$ac_cv_prog_CXX
3109if test -n "$CXX"; then
3110  echo "$as_me:$LINENO: result: $CXX" >&5
3111echo "${ECHO_T}$CXX" >&6
3112else
3113  echo "$as_me:$LINENO: result: no" >&5
3114echo "${ECHO_T}no" >&6
3115fi
3116
3117    test -n "$CXX" && break
3118  done
3119fi
3120if test -z "$CXX"; then
3121  ac_ct_CXX=$CXX
3122  for ac_prog in $CCC $comps
3123do
3124  # Extract the first word of "$ac_prog", so it can be a program name with args.
3125set dummy $ac_prog; ac_word=$2
3126echo "$as_me:$LINENO: checking for $ac_word" >&5
3127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3128if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3129  echo $ECHO_N "(cached) $ECHO_C" >&6
3130else
3131  if test -n "$ac_ct_CXX"; then
3132  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3133else
3134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135for as_dir in $PATH
3136do
3137  IFS=$as_save_IFS
3138  test -z "$as_dir" && as_dir=.
3139  for ac_exec_ext in '' $ac_executable_extensions; do
3140  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141    ac_cv_prog_ac_ct_CXX="$ac_prog"
3142    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3143    break 2
3144  fi
3145done
3146done
3147
3148fi
3149fi
3150ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3151if test -n "$ac_ct_CXX"; then
3152  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3153echo "${ECHO_T}$ac_ct_CXX" >&6
3154else
3155  echo "$as_me:$LINENO: result: no" >&5
3156echo "${ECHO_T}no" >&6
3157fi
3158
3159  test -n "$ac_ct_CXX" && break
3160done
3161test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3162
3163  CXX=$ac_ct_CXX
3164fi
3165
3166
3167# Provide some information about the compiler.
3168echo "$as_me:$LINENO:" \
3169     "checking for C++ compiler version" >&5
3170ac_compiler=`set X $ac_compile; echo $2`
3171{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3172  (eval $ac_compiler --version </dev/null >&5) 2>&5
3173  ac_status=$?
3174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175  (exit $ac_status); }
3176{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3177  (eval $ac_compiler -v </dev/null >&5) 2>&5
3178  ac_status=$?
3179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180  (exit $ac_status); }
3181{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3182  (eval $ac_compiler -V </dev/null >&5) 2>&5
3183  ac_status=$?
3184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185  (exit $ac_status); }
3186
3187echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3188echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3189if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3190  echo $ECHO_N "(cached) $ECHO_C" >&6
3191else
3192  cat >conftest.$ac_ext <<_ACEOF
3193/* confdefs.h.  */
3194_ACEOF
3195cat confdefs.h >>conftest.$ac_ext
3196cat >>conftest.$ac_ext <<_ACEOF
3197/* end confdefs.h.  */
3198
3199int
3200main ()
3201{
3202#ifndef __GNUC__
3203       choke me
3204#endif
3205
3206  ;
3207  return 0;
3208}
3209_ACEOF
3210rm -f conftest.$ac_objext
3211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3212  (eval $ac_compile) 2>conftest.er1
3213  ac_status=$?
3214  grep -v '^ *+' conftest.er1 >conftest.err
3215  rm -f conftest.er1
3216  cat conftest.err >&5
3217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218  (exit $ac_status); } &&
3219         { ac_try='test -z "$ac_cxx_werror_flag"
3220                         || test ! -s conftest.err'
3221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222  (eval $ac_try) 2>&5
3223  ac_status=$?
3224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225  (exit $ac_status); }; } &&
3226         { ac_try='test -s conftest.$ac_objext'
3227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228  (eval $ac_try) 2>&5
3229  ac_status=$?
3230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231  (exit $ac_status); }; }; then
3232  ac_compiler_gnu=yes
3233else
3234  echo "$as_me: failed program was:" >&5
3235sed 's/^/| /' conftest.$ac_ext >&5
3236
3237ac_compiler_gnu=no
3238fi
3239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3240ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3241
3242fi
3243echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3244echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3245GXX=`test $ac_compiler_gnu = yes && echo yes`
3246ac_test_CXXFLAGS=${CXXFLAGS+set}
3247ac_save_CXXFLAGS=$CXXFLAGS
3248CXXFLAGS="-g"
3249echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3250echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3251if test "${ac_cv_prog_cxx_g+set}" = set; then
3252  echo $ECHO_N "(cached) $ECHO_C" >&6
3253else
3254  cat >conftest.$ac_ext <<_ACEOF
3255/* confdefs.h.  */
3256_ACEOF
3257cat confdefs.h >>conftest.$ac_ext
3258cat >>conftest.$ac_ext <<_ACEOF
3259/* end confdefs.h.  */
3260
3261int
3262main ()
3263{
3264
3265  ;
3266  return 0;
3267}
3268_ACEOF
3269rm -f conftest.$ac_objext
3270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3271  (eval $ac_compile) 2>conftest.er1
3272  ac_status=$?
3273  grep -v '^ *+' conftest.er1 >conftest.err
3274  rm -f conftest.er1
3275  cat conftest.err >&5
3276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277  (exit $ac_status); } &&
3278         { ac_try='test -z "$ac_cxx_werror_flag"
3279                         || test ! -s conftest.err'
3280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281  (eval $ac_try) 2>&5
3282  ac_status=$?
3283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284  (exit $ac_status); }; } &&
3285         { ac_try='test -s conftest.$ac_objext'
3286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287  (eval $ac_try) 2>&5
3288  ac_status=$?
3289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290  (exit $ac_status); }; }; then
3291  ac_cv_prog_cxx_g=yes
3292else
3293  echo "$as_me: failed program was:" >&5
3294sed 's/^/| /' conftest.$ac_ext >&5
3295
3296ac_cv_prog_cxx_g=no
3297fi
3298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3299fi
3300echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3301echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3302if test "$ac_test_CXXFLAGS" = set; then
3303  CXXFLAGS=$ac_save_CXXFLAGS
3304elif test $ac_cv_prog_cxx_g = yes; then
3305  if test "$GXX" = yes; then
3306    CXXFLAGS="-g -O2"
3307  else
3308    CXXFLAGS="-g"
3309  fi
3310else
3311  if test "$GXX" = yes; then
3312    CXXFLAGS="-O2"
3313  else
3314    CXXFLAGS=
3315  fi
3316fi
3317for ac_declaration in \
3318   '' \
3319   'extern "C" void std::exit (int) throw (); using std::exit;' \
3320   'extern "C" void std::exit (int); using std::exit;' \
3321   'extern "C" void exit (int) throw ();' \
3322   'extern "C" void exit (int);' \
3323   'void exit (int);'
3324do
3325  cat >conftest.$ac_ext <<_ACEOF
3326/* confdefs.h.  */
3327_ACEOF
3328cat confdefs.h >>conftest.$ac_ext
3329cat >>conftest.$ac_ext <<_ACEOF
3330/* end confdefs.h.  */
3331$ac_declaration
3332#include <stdlib.h>
3333int
3334main ()
3335{
3336exit (42);
3337  ;
3338  return 0;
3339}
3340_ACEOF
3341rm -f conftest.$ac_objext
3342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343  (eval $ac_compile) 2>conftest.er1
3344  ac_status=$?
3345  grep -v '^ *+' conftest.er1 >conftest.err
3346  rm -f conftest.er1
3347  cat conftest.err >&5
3348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349  (exit $ac_status); } &&
3350         { ac_try='test -z "$ac_cxx_werror_flag"
3351                         || test ! -s conftest.err'
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); }; } &&
3357         { ac_try='test -s conftest.$ac_objext'
3358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359  (eval $ac_try) 2>&5
3360  ac_status=$?
3361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362  (exit $ac_status); }; }; then
3363  :
3364else
3365  echo "$as_me: failed program was:" >&5
3366sed 's/^/| /' conftest.$ac_ext >&5
3367
3368continue
3369fi
3370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3371  cat >conftest.$ac_ext <<_ACEOF
3372/* confdefs.h.  */
3373_ACEOF
3374cat confdefs.h >>conftest.$ac_ext
3375cat >>conftest.$ac_ext <<_ACEOF
3376/* end confdefs.h.  */
3377$ac_declaration
3378int
3379main ()
3380{
3381exit (42);
3382  ;
3383  return 0;
3384}
3385_ACEOF
3386rm -f conftest.$ac_objext
3387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3388  (eval $ac_compile) 2>conftest.er1
3389  ac_status=$?
3390  grep -v '^ *+' conftest.er1 >conftest.err
3391  rm -f conftest.er1
3392  cat conftest.err >&5
3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394  (exit $ac_status); } &&
3395         { ac_try='test -z "$ac_cxx_werror_flag"
3396                         || test ! -s conftest.err'
3397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398  (eval $ac_try) 2>&5
3399  ac_status=$?
3400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); }; } &&
3402         { ac_try='test -s conftest.$ac_objext'
3403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404  (eval $ac_try) 2>&5
3405  ac_status=$?
3406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407  (exit $ac_status); }; }; then
3408  break
3409else
3410  echo "$as_me: failed program was:" >&5
3411sed 's/^/| /' conftest.$ac_ext >&5
3412
3413fi
3414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3415done
3416rm -f conftest*
3417if test -n "$ac_declaration"; then
3418  echo '#ifdef __cplusplus' >>confdefs.h
3419  echo $ac_declaration      >>confdefs.h
3420  echo '#endif'             >>confdefs.h
3421fi
3422
3423ac_ext=cc
3424ac_cpp='$CXXCPP $CPPFLAGS'
3425ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3428
3429if test -z "$CXX" ; then
3430  { { echo "$as_me:$LINENO: error: Failed to find a C++ compiler!" >&5
3431echo "$as_me: error: Failed to find a C++ compiler!" >&2;}
3432   { (exit 1); exit 1; }; }
3433fi
3434
3435# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3436case "$CXX" in
3437  cl* | */cl* | CL* | */CL* )
3438    if test "$ac_cv_prog_cxx_g" = yes ; then
3439      ac_cv_prog_cxx_g=no
3440      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3441echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3442    fi ;;
3443esac
3444CXXFLAGS="$save_cxxflags"
3445
3446# Check if a project specific CXXFLAGS variable has been set
3447if test x$COIN_PRJCT != x; then
3448  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3449  if test x$coin_tmp = xset; then
3450    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3451  fi
3452fi
3453
3454if test x"$CXXFLAGS" = x; then
3455
3456# ToDo decide whether we want -DNDEBUG for optimization
3457  coin_add_cxxflags=
3458  coin_opt_cxxflags=
3459  coin_dbg_cxxflags=
3460  coin_warn_cxxflags=
3461
3462  if test "$GXX" = "yes"; then
3463    case "$CXX" in
3464      icpc* | */icpc*)
3465        ;;
3466      *)
3467# ToDo decide about unroll-loops
3468        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3469        coin_add_cxxflags="-pipe"
3470        coin_dbg_cxxflags="-g"
3471        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
3472        case $enable_doscompile in
3473          mingw)
3474            CXXFLAGS="-mno-cygwin"
3475            cat >conftest.$ac_ext <<_ACEOF
3476/* confdefs.h.  */
3477_ACEOF
3478cat confdefs.h >>conftest.$ac_ext
3479cat >>conftest.$ac_ext <<_ACEOF
3480/* end confdefs.h.  */
3481
3482int
3483main ()
3484{
3485int i=0; i++;
3486  ;
3487  return 0;
3488}
3489_ACEOF
3490rm -f conftest.$ac_objext conftest$ac_exeext
3491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3492  (eval $ac_link) 2>conftest.er1
3493  ac_status=$?
3494  grep -v '^ *+' conftest.er1 >conftest.err
3495  rm -f conftest.er1
3496  cat conftest.err >&5
3497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498  (exit $ac_status); } &&
3499         { ac_try='test -z "$ac_cxx_werror_flag"
3500                         || test ! -s conftest.err'
3501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502  (eval $ac_try) 2>&5
3503  ac_status=$?
3504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505  (exit $ac_status); }; } &&
3506         { ac_try='test -s conftest$ac_exeext'
3507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508  (eval $ac_try) 2>&5
3509  ac_status=$?
3510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511  (exit $ac_status); }; }; then
3512  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3513else
3514  echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517fi
3518rm -f conftest.err conftest.$ac_objext \
3519      conftest$ac_exeext conftest.$ac_ext
3520            CXXFLAGS=
3521            ;;
3522        esac
3523    esac
3524  fi
3525
3526# Note that we do not need to cover GCC in the following tests.
3527
3528  if test -z "$coin_opt_cxxflags"; then
3529    case $build in
3530      *-cygwin* | *-mingw*)
3531        case "$CXX" in
3532          cl* | */cl* | CL* | */CL*)
3533            # The MT and MTd options are mutually exclusive
3534            coin_opt_cxxflags='-MT -O2'
3535            coin_add_cxxflags='-nologo -EHsc -GR -wd4996'
3536            coin_dbg_cxxflags='-MTd'
3537            ;;
3538        esac
3539        ;;
3540      *-linux-*)
3541        case "$CXX" in
3542          icpc* | */icpc*)
3543            coin_opt_cxxflags="-O3 -ip"
3544            coin_add_cxxflags=""
3545            coin_dbg_cxxflags="-g"
3546            # Check if -i_dynamic is necessary (for new glibc library)
3547            CXXFLAGS=
3548            cat >conftest.$ac_ext <<_ACEOF
3549/* confdefs.h.  */
3550_ACEOF
3551cat confdefs.h >>conftest.$ac_ext
3552cat >>conftest.$ac_ext <<_ACEOF
3553/* end confdefs.h.  */
3554
3555int
3556main ()
3557{
3558int i=0; i++;
3559  ;
3560  return 0;
3561}
3562_ACEOF
3563rm -f conftest.$ac_objext conftest$ac_exeext
3564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3565  (eval $ac_link) 2>conftest.er1
3566  ac_status=$?
3567  grep -v '^ *+' conftest.er1 >conftest.err
3568  rm -f conftest.er1
3569  cat conftest.err >&5
3570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571  (exit $ac_status); } &&
3572         { ac_try='test -z "$ac_cxx_werror_flag"
3573                         || test ! -s conftest.err'
3574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575  (eval $ac_try) 2>&5
3576  ac_status=$?
3577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578  (exit $ac_status); }; } &&
3579         { ac_try='test -s conftest$ac_exeext'
3580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581  (eval $ac_try) 2>&5
3582  ac_status=$?
3583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584  (exit $ac_status); }; }; then
3585  :
3586else
3587  echo "$as_me: failed program was:" >&5
3588sed 's/^/| /' conftest.$ac_ext >&5
3589
3590coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3591fi
3592rm -f conftest.err conftest.$ac_objext \
3593      conftest$ac_exeext conftest.$ac_ext
3594            ;;
3595          pgCC* | */pgCC*)
3596            coin_opt_cxxflags="-fast"
3597            coin_add_cxxflags="-Kieee -pc 64"
3598            coin_dbg_cxxflags="-g"
3599            ;;
3600        esac
3601        ;;
3602      *-ibm-*)
3603        case "$CXX" in
3604          xlC* | */xlC* | mpxlC* | */mpxlC*)
3605            coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3606            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna"
3607            coin_dbg_cxxflags="-g"
3608            ;;
3609        esac
3610        ;;
3611      *-hp-*)
3612        case "$CXX" in
3613          aCC* | */aCC* )
3614            coin_opt_cxxflags="-O"
3615            coin_add_cxxflags="-AA"
3616            coin_dbg_cxxflags="-g"
3617            ;;
3618        esac
3619        ;;
3620      *-sun-*)
3621          coin_opt_cxxflags="-O4"
3622          coin_dbg_cxxflags="-g"
3623        ;;
3624    esac
3625  fi
3626
3627# Generic flag settings. If these don't work, add a case above.
3628
3629  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3630    coin_dbg_cxxflags="-g"
3631  fi
3632
3633  if test -z "$coin_opt_cxxflags"; then
3634    # Try if -O option works if nothing else is set
3635    CXXFLAGS=-O
3636    cat >conftest.$ac_ext <<_ACEOF
3637/* confdefs.h.  */
3638_ACEOF
3639cat confdefs.h >>conftest.$ac_ext
3640cat >>conftest.$ac_ext <<_ACEOF
3641/* end confdefs.h.  */
3642
3643int
3644main ()
3645{
3646int i=0; i++;
3647  ;
3648  return 0;
3649}
3650_ACEOF
3651rm -f conftest.$ac_objext conftest$ac_exeext
3652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3653  (eval $ac_link) 2>conftest.er1
3654  ac_status=$?
3655  grep -v '^ *+' conftest.er1 >conftest.err
3656  rm -f conftest.er1
3657  cat conftest.err >&5
3658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659  (exit $ac_status); } &&
3660         { ac_try='test -z "$ac_cxx_werror_flag"
3661                         || test ! -s conftest.err'
3662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663  (eval $ac_try) 2>&5
3664  ac_status=$?
3665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666  (exit $ac_status); }; } &&
3667         { ac_try='test -s conftest$ac_exeext'
3668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669  (eval $ac_try) 2>&5
3670  ac_status=$?
3671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672  (exit $ac_status); }; }; then
3673  coin_opt_cxxflags="-O"
3674else
3675  echo "$as_me: failed program was:" >&5
3676sed 's/^/| /' conftest.$ac_ext >&5
3677
3678fi
3679rm -f conftest.err conftest.$ac_objext \
3680      conftest$ac_exeext conftest.$ac_ext
3681  fi
3682
3683  # if PM doesn't want the warning messages, take them out
3684  if test x"$coin_skip_warn_cxxflags" = xyes; then
3685    coin_warn_cxxflags=
3686  fi
3687
3688# Do final setup of flags based on values determined above.
3689
3690  if test x${DBG_CXXFLAGS+set} != xset; then
3691    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3692  fi
3693  if test x${OPT_CXXFLAGS+set} != xset; then
3694    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3695  fi
3696
3697  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3698  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3699
3700  if test "$coin_debug_compile" = "true"; then
3701    CXXFLAGS="$DBG_CXXFLAGS"
3702  else
3703    CXXFLAGS="$OPT_CXXFLAGS"
3704  fi
3705
3706# Handle the case where CXXFLAGS was set externally.
3707else
3708  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3709  if test x${DBG_CXXFLAGS+set} != xset; then
3710    DBG_CXXFLAGS="$CXXFLAGS"
3711  fi
3712  if test x${OPT_CXXFLAGS+set} != xset; then
3713    OPT_CXXFLAGS="$CXXFLAGS"
3714  fi
3715fi
3716
3717# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3718
3719case "$CXXFLAGS" in
3720  *-mno-cygwin*)
3721    if test x${CPPFLAGS+set} != xset ; then
3722      CPPFLAGS="-mno-cygwin"
3723    else
3724      case "$CPPFLAGS" in
3725        *-mno-cygwin*)
3726          ;;
3727        *)
3728          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3729          ;;
3730      esac
3731    fi ;;
3732esac
3733
3734# Try if CXXFLAGS works
3735save_CXXFLAGS="$CXXFLAGS"
3736cat >conftest.$ac_ext <<_ACEOF
3737/* confdefs.h.  */
3738_ACEOF
3739cat confdefs.h >>conftest.$ac_ext
3740cat >>conftest.$ac_ext <<_ACEOF
3741/* end confdefs.h.  */
3742
3743int
3744main ()
3745{
3746int i=0; i++;
3747  ;
3748  return 0;
3749}
3750_ACEOF
3751rm -f conftest.$ac_objext conftest$ac_exeext
3752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3753  (eval $ac_link) 2>conftest.er1
3754  ac_status=$?
3755  grep -v '^ *+' conftest.er1 >conftest.err
3756  rm -f conftest.er1
3757  cat conftest.err >&5
3758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759  (exit $ac_status); } &&
3760         { ac_try='test -z "$ac_cxx_werror_flag"
3761                         || test ! -s conftest.err'
3762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763  (eval $ac_try) 2>&5
3764  ac_status=$?
3765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766  (exit $ac_status); }; } &&
3767         { ac_try='test -s conftest$ac_exeext'
3768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769  (eval $ac_try) 2>&5
3770  ac_status=$?
3771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772  (exit $ac_status); }; }; then
3773  :
3774else
3775  echo "$as_me: failed program was:" >&5
3776sed 's/^/| /' conftest.$ac_ext >&5
3777
3778CXXFLAGS=
3779fi
3780rm -f conftest.err conftest.$ac_objext \
3781      conftest$ac_exeext conftest.$ac_ext
3782if test -z "$CXXFLAGS"; then
3783  { 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
3784echo "$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;}
3785  CXXFLAGS='-O'
3786  cat >conftest.$ac_ext <<_ACEOF
3787/* confdefs.h.  */
3788_ACEOF
3789cat confdefs.h >>conftest.$ac_ext
3790cat >>conftest.$ac_ext <<_ACEOF
3791/* end confdefs.h.  */
3792
3793int
3794main ()
3795{
3796int i=0; i++;
3797  ;
3798  return 0;
3799}
3800_ACEOF
3801rm -f conftest.$ac_objext conftest$ac_exeext
3802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3803  (eval $ac_link) 2>conftest.er1
3804  ac_status=$?
3805  grep -v '^ *+' conftest.er1 >conftest.err
3806  rm -f conftest.er1
3807  cat conftest.err >&5
3808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809  (exit $ac_status); } &&
3810         { ac_try='test -z "$ac_cxx_werror_flag"
3811                         || test ! -s conftest.err'
3812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813  (eval $ac_try) 2>&5
3814  ac_status=$?
3815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816  (exit $ac_status); }; } &&
3817         { ac_try='test -s conftest$ac_exeext'
3818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819  (eval $ac_try) 2>&5
3820  ac_status=$?
3821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822  (exit $ac_status); }; }; then
3823  :
3824else
3825  echo "$as_me: failed program was:" >&5
3826sed 's/^/| /' conftest.$ac_ext >&5
3827
3828CXXFLAGS=
3829fi
3830rm -f conftest.err conftest.$ac_objext \
3831      conftest$ac_exeext conftest.$ac_ext
3832  if test -z "$CXXFLAGS"; then
3833    { 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
3834echo "$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;}
3835  fi
3836fi
3837
3838{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3839echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3840
3841
3842if test x"$MPICXX" = x; then :; else
3843  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3844echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3845  CXX="$MPICXX"
3846fi
3847
3848case "$CXX" in
3849  cl* | */cl* | CL* | */CL* )
3850    case $build in
3851  *-mingw*)
3852    if test "${LD+set}" = set; then :; else
3853      LD=link
3854    fi
3855    ;;
3856 esac
3857 case $enable_doscompile in
3858   msvc)
3859     if test "x${LD+set}" = xset; then :; else
3860       LD=link
3861     fi
3862     ;;
3863 esac
3864
3865    ;;
3866esac
3867
3868ac_ext=c
3869ac_cpp='$CPP $CPPFLAGS'
3870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872ac_compiler_gnu=$ac_cv_c_compiler_gnu
3873
3874
3875
3876# Initialize automake and libtool
3877{
3878
3879
3880
3881# START
3882
3883# On Cygwin, building DLLs doesn't work
3884case $build in
3885  *-cygwin*)
3886    coin_disable_shared=yes
3887    platform=Cygwin
3888  ;;
3889  *-mingw*)
3890    coin_disable_shared=yes
3891    platform="Msys"
3892#    case "$CXX" in
3893#      cl*)
3894#        coin_disable_shared=yes
3895#        platform="Msys with cl"
3896#    ;;
3897#    esac
3898  ;;
3899esac
3900if test x"$coin_disable_shared" = xyes; then
3901  if test x"$enable_shared" = xyes; then
3902    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3903echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3904  fi
3905  enable_shared=no
3906fi
3907# By default, we only want the shared objects to be compiled
3908# Check whether --enable-static or --disable-static was given.
3909if test "${enable_static+set}" = set; then
3910  enableval="$enable_static"
3911  p=${PACKAGE-default}
3912    case $enableval in
3913    yes) enable_static=yes ;;
3914    no) enable_static=no ;;
3915    *)
3916     enable_static=no
3917      # Look at the argument we got.  We use all the common list separators.
3918      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3919      for pkg in $enableval; do
3920        IFS="$lt_save_ifs"
3921        if test "X$pkg" = "X$p"; then
3922          enable_static=yes
3923        fi
3924      done
3925      IFS="$lt_save_ifs"
3926      ;;
3927    esac
3928else
3929  enable_static=no
3930fi;
3931
3932
3933
3934
3935# Initialize automake
3936echo "$as_me:$LINENO: checking for egrep" >&5
3937echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3938if test "${ac_cv_prog_egrep+set}" = set; then
3939  echo $ECHO_N "(cached) $ECHO_C" >&6
3940else
3941  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3942    then ac_cv_prog_egrep='grep -E'
3943    else ac_cv_prog_egrep='egrep'
3944    fi
3945fi
3946echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3947echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3948 EGREP=$ac_cv_prog_egrep
3949
3950
3951am__api_version="1.9"
3952# Find a good install program.  We prefer a C program (faster),
3953# so one script is as good as another.  But avoid the broken or
3954# incompatible versions:
3955# SysV /etc/install, /usr/sbin/install
3956# SunOS /usr/etc/install
3957# IRIX /sbin/install
3958# AIX /bin/install
3959# AmigaOS /C/install, which installs bootblocks on floppy discs
3960# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3961# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3962# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3963# OS/2's system install, which has a completely different semantic
3964# ./install, which can be erroneously created by make from ./install.sh.
3965echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3966echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3967if test -z "$INSTALL"; then
3968if test "${ac_cv_path_install+set}" = set; then
3969  echo $ECHO_N "(cached) $ECHO_C" >&6
3970else
3971  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972for as_dir in $PATH
3973do
3974  IFS=$as_save_IFS
3975  test -z "$as_dir" && as_dir=.
3976  # Account for people who put trailing slashes in PATH elements.
3977case $as_dir/ in
3978  ./ | .// | /cC/* | \
3979  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3980  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3981  /usr/ucb/* ) ;;
3982  *)
3983    # OSF1 and SCO ODT 3.0 have their own names for install.
3984    # Don't use installbsd from OSF since it installs stuff as root
3985    # by default.
3986    for ac_prog in ginstall scoinst install; do
3987      for ac_exec_ext in '' $ac_executable_extensions; do
3988        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3989          if test $ac_prog = install &&
3990            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3991            # AIX install.  It has an incompatible calling convention.
3992            :
3993          elif test $ac_prog = install &&
3994            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3995            # program-specific install script used by HP pwplus--don't use.
3996            :
3997          else
3998            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3999            break 3
4000          fi
4001        fi
4002      done
4003    done
4004    ;;
4005esac
4006done
4007
4008
4009fi
4010  if test "${ac_cv_path_install+set}" = set; then
4011    INSTALL=$ac_cv_path_install
4012  else
4013    # As a last resort, use the slow shell script.  We don't cache a
4014    # path for INSTALL within a source directory, because that will
4015    # break other packages using the cache if that directory is
4016    # removed, or if the path is relative.
4017    INSTALL=$ac_install_sh
4018  fi
4019fi
4020echo "$as_me:$LINENO: result: $INSTALL" >&5
4021echo "${ECHO_T}$INSTALL" >&6
4022
4023# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4024# It thinks the first close brace ends the variable substitution.
4025test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4026
4027test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4028
4029test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4030
4031echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4032echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4033# Just in case
4034sleep 1
4035echo timestamp > conftest.file
4036# Do `set' in a subshell so we don't clobber the current shell's
4037# arguments.  Must try -L first in case configure is actually a
4038# symlink; some systems play weird games with the mod time of symlinks
4039# (eg FreeBSD returns the mod time of the symlink's containing
4040# directory).
4041if (
4042   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4043   if test "$*" = "X"; then
4044      # -L didn't work.
4045      set X `ls -t $srcdir/configure conftest.file`
4046   fi
4047   rm -f conftest.file
4048   if test "$*" != "X $srcdir/configure conftest.file" \
4049      && test "$*" != "X conftest.file $srcdir/configure"; then
4050
4051      # If neither matched, then we have a broken ls.  This can happen
4052      # if, for instance, CONFIG_SHELL is bash and it inherits a
4053      # broken ls alias from the environment.  This has actually
4054      # happened.  Such a system could not be considered "sane".
4055      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4056alias in your environment" >&5
4057echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4058alias in your environment" >&2;}
4059   { (exit 1); exit 1; }; }
4060   fi
4061
4062   test "$2" = conftest.file
4063   )
4064then
4065   # Ok.
4066   :
4067else
4068   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4069Check your system clock" >&5
4070echo "$as_me: error: newly created file is older than distributed files!
4071Check your system clock" >&2;}
4072   { (exit 1); exit 1; }; }
4073fi
4074echo "$as_me:$LINENO: result: yes" >&5
4075echo "${ECHO_T}yes" >&6
4076test "$program_prefix" != NONE &&
4077  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4078# Use a double $ so make ignores it.
4079test "$program_suffix" != NONE &&
4080  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4081# Double any \ or $.  echo might interpret backslashes.
4082# By default was `s,x,x', remove it if useless.
4083cat <<\_ACEOF >conftest.sed
4084s/[\\$]/&&/g;s/;s,x,x,$//
4085_ACEOF
4086program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4087rm conftest.sed
4088
4089# expand $ac_aux_dir to an absolute path
4090am_aux_dir=`cd $ac_aux_dir && pwd`
4091
4092test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4093# Use eval to expand $SHELL
4094if eval "$MISSING --run true"; then
4095  am_missing_run="$MISSING --run "
4096else
4097  am_missing_run=
4098  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4099echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4100fi
4101
4102if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4103  # We used to keeping the `.' as first argument, in order to
4104  # allow $(mkdir_p) to be used without argument.  As in
4105  #   $(mkdir_p) $(somedir)
4106  # where $(somedir) is conditionally defined.  However this is wrong
4107  # for two reasons:
4108  #  1. if the package is installed by a user who cannot write `.'
4109  #     make install will fail,
4110  #  2. the above comment should most certainly read
4111  #     $(mkdir_p) $(DESTDIR)$(somedir)
4112  #     so it does not work when $(somedir) is undefined and
4113  #     $(DESTDIR) is not.
4114  #  To support the latter case, we have to write
4115  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4116  #  so the `.' trick is pointless.
4117  mkdir_p='mkdir -p --'
4118else
4119  # On NextStep and OpenStep, the `mkdir' command does not
4120  # recognize any option.  It will interpret all options as
4121  # directories to create, and then abort because `.' already
4122  # exists.
4123  for d in ./-p ./--version;
4124  do
4125    test -d $d && rmdir $d
4126  done
4127  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4128  if test -f "$ac_aux_dir/mkinstalldirs"; then
4129    mkdir_p='$(mkinstalldirs)'
4130  else
4131    mkdir_p='$(install_sh) -d'
4132  fi
4133fi
4134
4135for ac_prog in gawk mawk nawk awk
4136do
4137  # Extract the first word of "$ac_prog", so it can be a program name with args.
4138set dummy $ac_prog; ac_word=$2
4139echo "$as_me:$LINENO: checking for $ac_word" >&5
4140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4141if test "${ac_cv_prog_AWK+set}" = set; then
4142  echo $ECHO_N "(cached) $ECHO_C" >&6
4143else
4144  if test -n "$AWK"; then
4145  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4146else
4147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148for as_dir in $PATH
4149do
4150  IFS=$as_save_IFS
4151  test -z "$as_dir" && as_dir=.
4152  for ac_exec_ext in '' $ac_executable_extensions; do
4153  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4154    ac_cv_prog_AWK="$ac_prog"
4155    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4156    break 2
4157  fi
4158done
4159done
4160
4161fi
4162fi
4163AWK=$ac_cv_prog_AWK
4164if test -n "$AWK"; then
4165  echo "$as_me:$LINENO: result: $AWK" >&5
4166echo "${ECHO_T}$AWK" >&6
4167else
4168  echo "$as_me:$LINENO: result: no" >&5
4169echo "${ECHO_T}no" >&6
4170fi
4171
4172  test -n "$AWK" && break
4173done
4174
4175echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4176echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4177set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4178if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4179  echo $ECHO_N "(cached) $ECHO_C" >&6
4180else
4181  cat >conftest.make <<\_ACEOF
4182all:
4183        @echo 'ac_maketemp="$(MAKE)"'
4184_ACEOF
4185# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4186eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4187if test -n "$ac_maketemp"; then
4188  eval ac_cv_prog_make_${ac_make}_set=yes
4189else
4190  eval ac_cv_prog_make_${ac_make}_set=no
4191fi
4192rm -f conftest.make
4193fi
4194if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4195  echo "$as_me:$LINENO: result: yes" >&5
4196echo "${ECHO_T}yes" >&6
4197  SET_MAKE=
4198else
4199  echo "$as_me:$LINENO: result: no" >&5
4200echo "${ECHO_T}no" >&6
4201  SET_MAKE="MAKE=${MAKE-make}"
4202fi
4203
4204rm -rf .tst 2>/dev/null
4205mkdir .tst 2>/dev/null
4206if test -d .tst; then
4207  am__leading_dot=.
4208else
4209  am__leading_dot=_
4210fi
4211rmdir .tst 2>/dev/null
4212
4213DEPDIR="${am__leading_dot}deps"
4214
4215          ac_config_commands="$ac_config_commands depfiles"
4216
4217
4218am_make=${MAKE-make}
4219cat > confinc << 'END'
4220am__doit:
4221        @echo done
4222.PHONY: am__doit
4223END
4224# If we don't find an include directive, just comment out the code.
4225echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4226echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4227am__include="#"
4228am__quote=
4229_am_result=none
4230# First try GNU make style include.
4231echo "include confinc" > confmf
4232# We grep out `Entering directory' and `Leaving directory'
4233# messages which can occur if `w' ends up in MAKEFLAGS.
4234# In particular we don't look at `^make:' because GNU make might
4235# be invoked under some other name (usually "gmake"), in which
4236# case it prints its new name instead of `make'.
4237if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4238   am__include=include
4239   am__quote=
4240   _am_result=GNU
4241fi
4242# Now try BSD make style include.
4243if test "$am__include" = "#"; then
4244   echo '.include "confinc"' > confmf
4245   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4246      am__include=.include
4247      am__quote="\""
4248      _am_result=BSD
4249   fi
4250fi
4251
4252
4253echo "$as_me:$LINENO: result: $_am_result" >&5
4254echo "${ECHO_T}$_am_result" >&6
4255rm -f confinc confmf
4256
4257# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4258if test "${enable_dependency_tracking+set}" = set; then
4259  enableval="$enable_dependency_tracking"
4260
4261fi;
4262if test "x$enable_dependency_tracking" != xno; then
4263  am_depcomp="$ac_aux_dir/depcomp"
4264  AMDEPBACKSLASH='\'
4265fi
4266
4267
4268if test "x$enable_dependency_tracking" != xno; then
4269  AMDEP_TRUE=
4270  AMDEP_FALSE='#'
4271else
4272  AMDEP_TRUE='#'
4273  AMDEP_FALSE=
4274fi
4275
4276
4277
4278
4279
4280# AC_MSG_NOTICE([Beginning automake initialisation.])
4281# Stuff for automake
4282# test to see if srcdir already configured
4283if test "`cd $srcdir && pwd`" != "`pwd`" &&
4284   test -f $srcdir/config.status; then
4285  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4286echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4287   { (exit 1); exit 1; }; }
4288fi
4289
4290# test whether we have cygpath
4291if test -z "$CYGPATH_W"; then
4292  if (cygpath --version) >/dev/null 2>/dev/null; then
4293    CYGPATH_W='cygpath -w'
4294  else
4295    CYGPATH_W=echo
4296  fi
4297fi
4298
4299
4300# Define the identity of the package.
4301 PACKAGE='clp'
4302 VERSION='0.1'
4303
4304
4305cat >>confdefs.h <<_ACEOF
4306#define PACKAGE "$PACKAGE"
4307_ACEOF
4308
4309
4310cat >>confdefs.h <<_ACEOF
4311#define VERSION "$VERSION"
4312_ACEOF
4313
4314# Some tools Automake needs.
4315
4316ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4317
4318
4319AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4320
4321
4322AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4323
4324
4325AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4326
4327
4328MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4329
4330install_sh=${install_sh-"$am_aux_dir/install-sh"}
4331
4332# Installed binaries are usually stripped using `strip' when the user
4333# run `make install-strip'.  However `strip' might not be the right
4334# tool to use in cross-compilation environments, therefore Automake
4335# will honor the `STRIP' environment variable to overrule this program.
4336if test "$cross_compiling" != no; then
4337  if test -n "$ac_tool_prefix"; then
4338  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4339set dummy ${ac_tool_prefix}strip; ac_word=$2
4340echo "$as_me:$LINENO: checking for $ac_word" >&5
4341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4342if test "${ac_cv_prog_STRIP+set}" = set; then
4343  echo $ECHO_N "(cached) $ECHO_C" >&6
4344else
4345  if test -n "$STRIP"; then
4346  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4347else
4348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349for as_dir in $PATH
4350do
4351  IFS=$as_save_IFS
4352  test -z "$as_dir" && as_dir=.
4353  for ac_exec_ext in '' $ac_executable_extensions; do
4354  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4355    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4356    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4357    break 2
4358  fi
4359done
4360done
4361
4362fi
4363fi
4364STRIP=$ac_cv_prog_STRIP
4365if test -n "$STRIP"; then
4366  echo "$as_me:$LINENO: result: $STRIP" >&5
4367echo "${ECHO_T}$STRIP" >&6
4368else
4369  echo "$as_me:$LINENO: result: no" >&5
4370echo "${ECHO_T}no" >&6
4371fi
4372
4373fi
4374if test -z "$ac_cv_prog_STRIP"; then
4375  ac_ct_STRIP=$STRIP
4376  # Extract the first word of "strip", so it can be a program name with args.
4377set dummy strip; ac_word=$2
4378echo "$as_me:$LINENO: checking for $ac_word" >&5
4379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4380if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4381  echo $ECHO_N "(cached) $ECHO_C" >&6
4382else
4383  if test -n "$ac_ct_STRIP"; then
4384  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4385else
4386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387for as_dir in $PATH
4388do
4389  IFS=$as_save_IFS
4390  test -z "$as_dir" && as_dir=.
4391  for ac_exec_ext in '' $ac_executable_extensions; do
4392  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4393    ac_cv_prog_ac_ct_STRIP="strip"
4394    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4395    break 2
4396  fi
4397done
4398done
4399
4400  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4401fi
4402fi
4403ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4404if test -n "$ac_ct_STRIP"; then
4405  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4406echo "${ECHO_T}$ac_ct_STRIP" >&6
4407else
4408  echo "$as_me:$LINENO: result: no" >&5
4409echo "${ECHO_T}no" >&6
4410fi
4411
4412  STRIP=$ac_ct_STRIP
4413else
4414  STRIP="$ac_cv_prog_STRIP"
4415fi
4416
4417fi
4418INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4419
4420# We need awk for the "check" target.  The system "awk" is bad on
4421# some platforms.
4422# Always define AMTAR for backward compatibility.
4423
4424AMTAR=${AMTAR-"${am_missing_run}tar"}
4425
4426am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4427
4428
4429
4430
4431depcc="$CC"   am_compiler_list=
4432
4433echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4434echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4435if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4436  echo $ECHO_N "(cached) $ECHO_C" >&6
4437else
4438  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4439  # We make a subdir and do the tests there.  Otherwise we can end up
4440  # making bogus files that we don't know about and never remove.  For
4441  # instance it was reported that on HP-UX the gcc test will end up
4442  # making a dummy file named `D' -- because `-MD' means `put the output
4443  # in D'.
4444  mkdir conftest.dir
4445  # Copy depcomp to subdir because otherwise we won't find it if we're
4446  # using a relative directory.
4447  cp "$am_depcomp" conftest.dir
4448  cd conftest.dir
4449  # We will build objects and dependencies in a subdirectory because
4450  # it helps to detect inapplicable dependency modes.  For instance
4451  # both Tru64's cc and ICC support -MD to output dependencies as a
4452  # side effect of compilation, but ICC will put the dependencies in
4453  # the current directory while Tru64 will put them in the object
4454  # directory.
4455  mkdir sub
4456
4457  am_cv_CC_dependencies_compiler_type=none
4458  if test "$am_compiler_list" = ""; then
4459     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4460  fi
4461  for depmode in $am_compiler_list; do
4462    # Setup a source with many dependencies, because some compilers
4463    # like to wrap large dependency lists on column 80 (with \), and
4464    # we should not choose a depcomp mode which is confused by this.
4465    #
4466    # We need to recreate these files for each test, as the compiler may
4467    # overwrite some of them when testing with obscure command lines.
4468    # This happens at least with the AIX C compiler.
4469    : > sub/conftest.c
4470    for i in 1 2 3 4 5 6; do
4471      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4472      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4473      # Solaris 8's {/usr,}/bin/sh.
4474      touch sub/conftst$i.h
4475    done
4476    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4477
4478    case $depmode in
4479    nosideeffect)
4480      # after this tag, mechanisms are not by side-effect, so they'll
4481      # only be used when explicitly requested
4482      if test "x$enable_dependency_tracking" = xyes; then
4483        continue
4484      else
4485        break
4486      fi
4487      ;;
4488    none) break ;;
4489    esac
4490    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4491    # mode.  It turns out that the SunPro C++ compiler does not properly
4492    # handle `-M -o', and we need to detect this.
4493    if depmode=$depmode \
4494       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4495       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4496       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4497         >/dev/null 2>conftest.err &&
4498       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4499       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4500       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4501      # icc doesn't choke on unknown options, it will just issue warnings
4502      # or remarks (even with -Werror).  So we grep stderr for any message
4503      # that says an option was ignored or not supported.
4504      # When given -MP, icc 7.0 and 7.1 complain thusly:
4505      #   icc: Command line warning: ignoring option '-M'; no argument required
4506      # The diagnosis changed in icc 8.0:
4507      #   icc: Command line remark: option '-MP' not supported
4508      if (grep 'ignoring option' conftest.err ||
4509          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4510        am_cv_CC_dependencies_compiler_type=$depmode
4511        break
4512      fi
4513    fi
4514  done
4515
4516  cd ..
4517  rm -rf conftest.dir
4518else
4519  am_cv_CC_dependencies_compiler_type=none
4520fi
4521
4522fi
4523echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4524echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4525CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4526
4527
4528
4529if
4530  test "x$enable_dependency_tracking" != xno \
4531  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4532  am__fastdepCC_TRUE=
4533  am__fastdepCC_FALSE='#'
4534else
4535  am__fastdepCC_TRUE='#'
4536  am__fastdepCC_FALSE=
4537fi
4538
4539
4540depcc="$CXX"  am_compiler_list=
4541
4542echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4543echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4544if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4545  echo $ECHO_N "(cached) $ECHO_C" >&6
4546else
4547  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4548  # We make a subdir and do the tests there.  Otherwise we can end up
4549  # making bogus files that we don't know about and never remove.  For
4550  # instance it was reported that on HP-UX the gcc test will end up
4551  # making a dummy file named `D' -- because `-MD' means `put the output
4552  # in D'.
4553  mkdir conftest.dir
4554  # Copy depcomp to subdir because otherwise we won't find it if we're
4555  # using a relative directory.
4556  cp "$am_depcomp" conftest.dir
4557  cd conftest.dir
4558  # We will build objects and dependencies in a subdirectory because
4559  # it helps to detect inapplicable dependency modes.  For instance
4560  # both Tru64's cc and ICC support -MD to output dependencies as a
4561  # side effect of compilation, but ICC will put the dependencies in
4562  # the current directory while Tru64 will put them in the object
4563  # directory.
4564  mkdir sub
4565
4566  am_cv_CXX_dependencies_compiler_type=none
4567  if test "$am_compiler_list" = ""; then
4568     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4569  fi
4570  for depmode in $am_compiler_list; do
4571    # Setup a source with many dependencies, because some compilers
4572    # like to wrap large dependency lists on column 80 (with \), and
4573    # we should not choose a depcomp mode which is confused by this.
4574    #
4575    # We need to recreate these files for each test, as the compiler may
4576    # overwrite some of them when testing with obscure command lines.
4577    # This happens at least with the AIX C compiler.
4578    : > sub/conftest.c
4579    for i in 1 2 3 4 5 6; do
4580      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4581      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4582      # Solaris 8's {/usr,}/bin/sh.
4583      touch sub/conftst$i.h
4584    done
4585    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4586
4587    case $depmode in
4588    nosideeffect)
4589      # after this tag, mechanisms are not by side-effect, so they'll
4590      # only be used when explicitly requested
4591      if test "x$enable_dependency_tracking" = xyes; then
4592        continue
4593      else
4594        break
4595      fi
4596      ;;
4597    none) break ;;
4598    esac
4599    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4600    # mode.  It turns out that the SunPro C++ compiler does not properly
4601    # handle `-M -o', and we need to detect this.
4602    if depmode=$depmode \
4603       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4604       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4605       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4606         >/dev/null 2>conftest.err &&
4607       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4608       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4609       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4610      # icc doesn't choke on unknown options, it will just issue warnings
4611      # or remarks (even with -Werror).  So we grep stderr for any message
4612      # that says an option was ignored or not supported.
4613      # When given -MP, icc 7.0 and 7.1 complain thusly:
4614      #   icc: Command line warning: ignoring option '-M'; no argument required
4615      # The diagnosis changed in icc 8.0:
4616      #   icc: Command line remark: option '-MP' not supported
4617      if (grep 'ignoring option' conftest.err ||
4618          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4619        am_cv_CXX_dependencies_compiler_type=$depmode
4620        break
4621      fi
4622    fi
4623  done
4624
4625  cd ..
4626  rm -rf conftest.dir
4627else
4628  am_cv_CXX_dependencies_compiler_type=none
4629fi
4630
4631fi
4632echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4633echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4634CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4635
4636
4637
4638if
4639  test "x$enable_dependency_tracking" != xno \
4640  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4641  am__fastdepCXX_TRUE=
4642  am__fastdepCXX_FALSE='#'
4643else
4644  am__fastdepCXX_TRUE='#'
4645  am__fastdepCXX_FALSE=
4646fi
4647
4648
4649
4650echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4651echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4652    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4653if test "${enable_maintainer_mode+set}" = set; then
4654  enableval="$enable_maintainer_mode"
4655  USE_MAINTAINER_MODE=$enableval
4656else
4657  USE_MAINTAINER_MODE=no
4658fi;
4659  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4660echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4661
4662
4663if test $USE_MAINTAINER_MODE = yes; then
4664  MAINTAINER_MODE_TRUE=
4665  MAINTAINER_MODE_FALSE='#'
4666else
4667  MAINTAINER_MODE_TRUE='#'
4668  MAINTAINER_MODE_FALSE=
4669fi
4670
4671  MAINT=$MAINTAINER_MODE_TRUE
4672
4673
4674
4675coin_have_externals=no
4676if test "$enable_maintainer_mode" = yes; then
4677
4678  # If maintainer mode is chosen, we make sure that the correct versions
4679  # of the tools are used, and that we know where libtool.m4 is (to
4680  # recreate acinclude.m4)
4681
4682
4683  LIBTOOLM4=
4684  # Normally, $HOME
4685  AUTOTOOLS_DFLT=$HOME
4686
4687  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4688echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4689if test "${ac_cv_use_correct_autotools+set}" = set; then
4690  echo $ECHO_N "(cached) $ECHO_C" >&6
4691else
4692  ac_cv_use_correct_autotools=check
4693fi
4694echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4695echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4696
4697  if test $ac_cv_use_correct_autotools = check; then
4698    ac_cv_use_correct_autotools=yes
4699    # Check if we have autoconf
4700    # Extract the first word of "autoconf", so it can be a program name with args.
4701set dummy autoconf; ac_word=$2
4702echo "$as_me:$LINENO: checking for $ac_word" >&5
4703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4704if test "${ac_cv_prog_have_autoconf+set}" = set; then
4705  echo $ECHO_N "(cached) $ECHO_C" >&6
4706else
4707  if test -n "$have_autoconf"; then
4708  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4709else
4710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711for as_dir in $PATH
4712do
4713  IFS=$as_save_IFS
4714  test -z "$as_dir" && as_dir=.
4715  for ac_exec_ext in '' $ac_executable_extensions; do
4716  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4717    ac_cv_prog_have_autoconf="yes"
4718    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4719    break 2
4720  fi
4721done
4722done
4723
4724  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4725fi
4726fi
4727have_autoconf=$ac_cv_prog_have_autoconf
4728if test -n "$have_autoconf"; then
4729  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4730echo "${ECHO_T}$have_autoconf" >&6
4731else
4732  echo "$as_me:$LINENO: result: no" >&5
4733echo "${ECHO_T}no" >&6
4734fi
4735
4736    if test $have_autoconf = no; then
4737      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4738echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4739   { (exit 1); exit 1; }; }
4740    fi
4741
4742    # Check whether autoconf is the correct version
4743    correct_version='2.59'
4744    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4745    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4746echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4747    autoconf --version > confauto.out 2>&1
4748    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4749      echo "$as_me:$LINENO: result: yes" >&5
4750echo "${ECHO_T}yes" >&6
4751    else
4752      rm -f confauto.out
4753      echo "$as_me:$LINENO: result: no" >&5
4754echo "${ECHO_T}no" >&6
4755      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4756echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4757   { (exit 1); exit 1; }; }
4758    fi
4759    rm -f confauto.out
4760
4761    # Check if the executable autoconf is picked up from the correct location
4762    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4763echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4764    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4765    autoconf_dir=`cd $autoconf_dir; pwd`
4766    if test x$AUTOTOOLS_DIR = x; then
4767      want_dir=$AUTOTOOLS_DFLT/bin
4768    else
4769      want_dir=$AUTOTOOLS_DIR/bin
4770    fi
4771    if test $autoconf_dir = `cd $want_dir; pwd`; then
4772      echo "$as_me:$LINENO: result: yes" >&5
4773echo "${ECHO_T}yes" >&6
4774    else
4775      rm -f confauto.out
4776      echo "$as_me:$LINENO: result: no" >&5
4777echo "${ECHO_T}no" >&6
4778      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4779echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4780   { (exit 1); exit 1; }; }
4781    fi
4782
4783    # Check if we have automake
4784    # Extract the first word of "automake", so it can be a program name with args.
4785set dummy automake; ac_word=$2
4786echo "$as_me:$LINENO: checking for $ac_word" >&5
4787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4788if test "${ac_cv_prog_have_automake+set}" = set; then
4789  echo $ECHO_N "(cached) $ECHO_C" >&6
4790else
4791  if test -n "$have_automake"; then
4792  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4793else
4794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795for as_dir in $PATH
4796do
4797  IFS=$as_save_IFS
4798  test -z "$as_dir" && as_dir=.
4799  for ac_exec_ext in '' $ac_executable_extensions; do
4800  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4801    ac_cv_prog_have_automake="yes"
4802    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803    break 2
4804  fi
4805done
4806done
4807
4808  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4809fi
4810fi
4811have_automake=$ac_cv_prog_have_automake
4812if test -n "$have_automake"; then
4813  echo "$as_me:$LINENO: result: $have_automake" >&5
4814echo "${ECHO_T}$have_automake" >&6
4815else
4816  echo "$as_me:$LINENO: result: no" >&5
4817echo "${ECHO_T}no" >&6
4818fi
4819
4820    if test $have_automake = no; then
4821      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4822echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4823   { (exit 1); exit 1; }; }
4824    fi
4825
4826    # Check whether automake is the correct version
4827    correct_version='1.9.6'
4828    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4829    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4830echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4831    automake --version > confauto.out 2>&1
4832    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4833      echo "$as_me:$LINENO: result: yes" >&5
4834echo "${ECHO_T}yes" >&6
4835    else
4836      rm -f confauto.out
4837      echo "$as_me:$LINENO: result: no" >&5
4838echo "${ECHO_T}no" >&6
4839      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4840echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4841   { (exit 1); exit 1; }; }
4842    fi
4843    rm -f confauto.out
4844
4845    # Check if the executable automake is picked up from the correct location
4846    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4847echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4848    automake_dir=`which automake | sed -e 's=/automake=='`
4849    automake_dir=`cd $automake_dir; pwd`
4850    if test x$AUTOTOOLS_DIR = x; then
4851      want_dir=$AUTOTOOLS_DFLT/bin
4852    else
4853      want_dir=$AUTOTOOLS_DIR/bin
4854    fi
4855    if test $automake_dir = `cd $want_dir; pwd`; then
4856      echo "$as_me:$LINENO: result: yes" >&5
4857echo "${ECHO_T}yes" >&6
4858    else
4859      rm -f confauto.out
4860      echo "$as_me:$LINENO: result: no" >&5
4861echo "${ECHO_T}no" >&6
4862      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4863echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4864   { (exit 1); exit 1; }; }
4865    fi
4866
4867    # Check if this is the correct version of libtool (with escaped dots)
4868    if test x$AUTOTOOLS_DIR = x; then
4869      want_dir=$AUTOTOOLS_DFLT/share
4870    else
4871      want_dir=$AUTOTOOLS_DIR/share
4872    fi
4873    correct_version='1.5.22'
4874    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4875    as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
4876echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
4877echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
4878if eval "test \"\${$as_ac_File+set}\" = set"; then
4879  echo $ECHO_N "(cached) $ECHO_C" >&6
4880else
4881  test "$cross_compiling" = yes &&
4882  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4883echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4884   { (exit 1); exit 1; }; }
4885if test -r "$want_dir/libtool/ltmain.sh"; then
4886  eval "$as_ac_File=yes"
4887else
4888  eval "$as_ac_File=no"
4889fi
4890fi
4891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4892echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4893if test `eval echo '${'$as_ac_File'}'` = yes; then
4894  have_ltmain=yes
4895else
4896  have_ltmain=no
4897fi
4898
4899    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4900echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4901    if test $have_ltmain = yes; then
4902    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4903        echo "$as_me:$LINENO: result: yes" >&5
4904echo "${ECHO_T}yes" >&6
4905      else
4906        echo "$as_me:$LINENO: result: no" >&5
4907echo "${ECHO_T}no" >&6
4908        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4909echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4910   { (exit 1); exit 1; }; }
4911      fi
4912    else
4913      echo "$as_me:$LINENO: result: no" >&5
4914echo "${ECHO_T}no" >&6
4915      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4916echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4917   { (exit 1); exit 1; }; }
4918    fi
4919  fi
4920
4921  # Check if we can find the libtool file
4922  if test x$AUTOTOOLS_DIR = x; then
4923    want_dir=$AUTOTOOLS_DFLT/share
4924  else
4925    want_dir=$AUTOTOOLS_DIR/share
4926  fi
4927  as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
4928echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
4929echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
4930if eval "test \"\${$as_ac_File+set}\" = set"; then
4931  echo $ECHO_N "(cached) $ECHO_C" >&6
4932else
4933  test "$cross_compiling" = yes &&
4934  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4935echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4936   { (exit 1); exit 1; }; }
4937if test -r "$want_dir/aclocal/libtool.m4"; then
4938  eval "$as_ac_File=yes"
4939else
4940  eval "$as_ac_File=no"
4941fi
4942fi
4943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4944echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4945if test `eval echo '${'$as_ac_File'}'` = yes; then
4946  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4947else
4948  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4949echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4950   { (exit 1); exit 1; }; }
4951fi
4952
4953
4954  # Check if we have an Externals file
4955  if test -r $srcdir/Externals; then
4956    coin_have_externals=yes
4957  fi
4958  # Check if subversion is installed and understands https
4959  # Extract the first word of "svn", so it can be a program name with args.
4960set dummy svn; ac_word=$2
4961echo "$as_me:$LINENO: checking for $ac_word" >&5
4962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4963if test "${ac_cv_prog_have_svn+set}" = set; then
4964  echo $ECHO_N "(cached) $ECHO_C" >&6
4965else
4966  if test -n "$have_svn"; then
4967  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4968else
4969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970for as_dir in $PATH
4971do
4972  IFS=$as_save_IFS
4973  test -z "$as_dir" && as_dir=.
4974  for ac_exec_ext in '' $ac_executable_extensions; do
4975  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4976    ac_cv_prog_have_svn="yes"
4977    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4978    break 2
4979  fi
4980done
4981done
4982
4983  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4984fi
4985fi
4986have_svn=$ac_cv_prog_have_svn
4987if test -n "$have_svn"; then
4988  echo "$as_me:$LINENO: result: $have_svn" >&5
4989echo "${ECHO_T}$have_svn" >&6
4990else
4991  echo "$as_me:$LINENO: result: no" >&5
4992echo "${ECHO_T}no" >&6
4993fi
4994
4995  if test x$have_svn = xyes; then
4996    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4997echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4998if test "${ac_cv_svn_understands_https+set}" = set; then
4999  echo $ECHO_N "(cached) $ECHO_C" >&6
5000else
5001  svn --version > confauto.out 2>&1
5002                    if $EGREP https confauto.out >/dev/null 2>&1; then
5003                      ac_cv_svn_understands_https=yes
5004                    else
5005                      ac_cv_svn_understands_https=no
5006                      have_svn=no
5007                      ac_cv_prog_have_svn=no
5008                    fi
5009                    rm -f confauto.out
5010fi
5011echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5012echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5013  fi
5014
5015  # Find the location of the BuildTools directory
5016  BUILDTOOLSDIR=
5017  if test -r $srcdir/BuildTools/coin.m4; then
5018    BUILDTOOLSDIR=$srcdir/BuildTools
5019  else
5020    if test -r $srcdir/../BuildTools/coin.m4; then
5021      BUILDTOOLSDIR=$srcdir/../BuildTools
5022    else
5023      if test -r $srcdir/../../BuildTools/coin.m4; then
5024        BUILDTOOLSDIR=$srcdir/../../BuildTools
5025      else
5026        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5027echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5028   { (exit 1); exit 1; }; }
5029      fi
5030    fi
5031  fi
5032
5033
5034  # The following variable is set to the name of the directory where
5035  # the autotool scripts are located
5036
5037  AUX_DIR=$ac_aux_dir
5038fi
5039
5040# helpful variable for the base directory of this package
5041abs_source_dir=`cd $srcdir; pwd`
5042
5043
5044# Stuff for example Makefiles
5045if test x$prefix = xNONE; then
5046  full_prefix=$ac_default_prefix
5047else
5048  full_prefix=$prefix
5049fi
5050full_prefix=`cd $full_prefix ; pwd`
5051
5052abs_lib_dir=$full_prefix/lib
5053
5054abs_include_dir=$full_prefix/include
5055
5056abs_bin_dir=$full_prefix/bin
5057
5058
5059
5060if test $coin_have_externals = yes && test x$have_svn = xyes; then
5061  HAVE_EXTERNALS_TRUE=
5062  HAVE_EXTERNALS_FALSE='#'
5063else
5064  HAVE_EXTERNALS_TRUE='#'
5065  HAVE_EXTERNALS_FALSE=
5066fi
5067
5068
5069# AC_MSG_NOTICE([End automake initialisation.])
5070
5071
5072
5073LIBTOOL=
5074if test -r ../libtool; then
5075  coin_config_dir=..
5076  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5077fi
5078if test "x$LIBTOOL" = x; then
5079  if test -r ../../libtool; then
5080    coin_config_dir=../..
5081    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5082  fi
5083fi
5084
5085if test "x$LIBTOOL" = x; then
5086# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5087  # Stuff for libtool
5088  # Check whether --enable-shared or --disable-shared was given.
5089if test "${enable_shared+set}" = set; then
5090  enableval="$enable_shared"
5091  p=${PACKAGE-default}
5092    case $enableval in
5093    yes) enable_shared=yes ;;
5094    no) enable_shared=no ;;
5095    *)
5096      enable_shared=no
5097      # Look at the argument we got.  We use all the common list separators.
5098      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5099      for pkg in $enableval; do
5100        IFS="$lt_save_ifs"
5101        if test "X$pkg" = "X$p"; then
5102          enable_shared=yes
5103        fi
5104      done
5105      IFS="$lt_save_ifs"
5106      ;;
5107    esac
5108else
5109  enable_shared=yes
5110fi;
5111
5112# Check whether --enable-fast-install or --disable-fast-install was given.
5113if test "${enable_fast_install+set}" = set; then
5114  enableval="$enable_fast_install"
5115  p=${PACKAGE-default}
5116    case $enableval in
5117    yes) enable_fast_install=yes ;;
5118    no) enable_fast_install=no ;;
5119    *)
5120      enable_fast_install=no
5121      # Look at the argument we got.  We use all the common list separators.
5122      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5123      for pkg in $enableval; do
5124        IFS="$lt_save_ifs"
5125        if test "X$pkg" = "X$p"; then
5126          enable_fast_install=yes
5127        fi
5128      done
5129      IFS="$lt_save_ifs"
5130      ;;
5131    esac
5132else
5133  enable_fast_install=yes
5134fi;
5135
5136echo "$as_me:$LINENO: checking host system type" >&5
5137echo $ECHO_N "checking host system type... $ECHO_C" >&6
5138if test "${ac_cv_host+set}" = set; then
5139  echo $ECHO_N "(cached) $ECHO_C" >&6
5140else
5141  ac_cv_host_alias=$host_alias
5142test -z "$ac_cv_host_alias" &&
5143  ac_cv_host_alias=$ac_cv_build_alias
5144ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5145  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5146echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5147   { (exit 1); exit 1; }; }
5148
5149fi
5150echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5151echo "${ECHO_T}$ac_cv_host" >&6
5152host=$ac_cv_host
5153host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5154host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5155host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5156
5157
5158echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5159echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5160if test "${lt_cv_path_SED+set}" = set; then
5161  echo $ECHO_N "(cached) $ECHO_C" >&6
5162else
5163  # Loop through the user's path and test for sed and gsed.
5164# Then use that list of sed's as ones to test for truncation.
5165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166for as_dir in $PATH
5167do
5168  IFS=$as_save_IFS
5169  test -z "$as_dir" && as_dir=.
5170  for lt_ac_prog in sed gsed; do
5171    for ac_exec_ext in '' $ac_executable_extensions; do
5172      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5173        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5174      fi
5175    done
5176  done
5177done
5178lt_ac_max=0
5179lt_ac_count=0
5180# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5181# along with /bin/sed that truncates output.
5182for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5183  test ! -f $lt_ac_sed && continue
5184  cat /dev/null > conftest.in
5185  lt_ac_count=0
5186  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5187  # Check for GNU sed and select it if it is found.
5188  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5189    lt_cv_path_SED=$lt_ac_sed
5190    break
5191  fi
5192  while true; do
5193    cat conftest.in conftest.in >conftest.tmp
5194    mv conftest.tmp conftest.in
5195    cp conftest.in conftest.nl
5196    echo >>conftest.nl
5197    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5198    cmp -s conftest.out conftest.nl || break
5199    # 10000 chars as input seems more than enough
5200    test $lt_ac_count -gt 10 && break
5201    lt_ac_count=`expr $lt_ac_count + 1`
5202    if test $lt_ac_count -gt $lt_ac_max; then
5203      lt_ac_max=$lt_ac_count
5204      lt_cv_path_SED=$lt_ac_sed
5205    fi
5206  done
5207done
5208
5209fi
5210
5211SED=$lt_cv_path_SED
5212echo "$as_me:$LINENO: result: $SED" >&5
5213echo "${ECHO_T}$SED" >&6
5214
5215
5216# Check whether --with-gnu-ld or --without-gnu-ld was given.
5217if test "${with_gnu_ld+set}" = set; then
5218  withval="$with_gnu_ld"
5219  test "$withval" = no || with_gnu_ld=yes
5220else
5221  with_gnu_ld=no
5222fi;
5223ac_prog=ld
5224if test "$GCC" = yes; then
5225  # Check if gcc -print-prog-name=ld gives a path.
5226  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5227echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5228  case $host in
5229  *-*-mingw*)
5230    # gcc leaves a trailing carriage return which upsets mingw
5231    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5232  *)
5233    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5234  esac
5235  case $ac_prog in
5236    # Accept absolute paths.
5237    [\\/]* | ?:[\\/]*)
5238      re_direlt='/[^/][^/]*/\.\./'
5239      # Canonicalize the pathname of ld
5240      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5241      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5242        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5243      done
5244      test -z "$LD" && LD="$ac_prog"
5245      ;;
5246  "")
5247    # If it fails, then pretend we aren't using GCC.
5248    ac_prog=ld
5249    ;;
5250  *)
5251    # If it is relative, then search for the first ld in PATH.
5252    with_gnu_ld=unknown
5253    ;;
5254  esac
5255elif test "$with_gnu_ld" = yes; then
5256  echo "$as_me:$LINENO: checking for GNU ld" >&5
5257echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5258else
5259  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5260echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5261fi
5262if test "${lt_cv_path_LD+set}" = set; then
5263  echo $ECHO_N "(cached) $ECHO_C" >&6
5264else
5265  if test -z "$LD"; then
5266  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5267  for ac_dir in $PATH; do
5268    IFS="$lt_save_ifs"
5269    test -z "$ac_dir" && ac_dir=.
5270    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5271      lt_cv_path_LD="$ac_dir/$ac_prog"
5272      # Check to see if the program is GNU ld.  I'd rather use --version,
5273      # but apparently some variants of GNU ld only accept -v.
5274      # Break only if it was the GNU/non-GNU ld that we prefer.
5275      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5276      *GNU* | *'with BFD'*)
5277        test "$with_gnu_ld" != no && break
5278        ;;
5279      *)
5280        test "$with_gnu_ld" != yes && break
5281        ;;
5282      esac
5283    fi
5284  done
5285  IFS="$lt_save_ifs"
5286else
5287  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5288fi
5289fi
5290
5291LD="$lt_cv_path_LD"
5292if test -n "$LD"; then
5293  echo "$as_me:$LINENO: result: $LD" >&5
5294echo "${ECHO_T}$LD" >&6
5295else
5296  echo "$as_me:$LINENO: result: no" >&5
5297echo "${ECHO_T}no" >&6
5298fi
5299test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5300echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5301   { (exit 1); exit 1; }; }
5302echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5303echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5304if test "${lt_cv_prog_gnu_ld+set}" = set; then
5305  echo $ECHO_N "(cached) $ECHO_C" >&6
5306else
5307  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5308case `$LD -v 2>&1 </dev/null` in
5309*GNU* | *'with BFD'*)
5310  lt_cv_prog_gnu_ld=yes
5311  ;;
5312*)
5313  lt_cv_prog_gnu_ld=no
5314  ;;
5315esac
5316fi
5317echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5318echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5319with_gnu_ld=$lt_cv_prog_gnu_ld
5320
5321
5322echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5323echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5324if test "${lt_cv_ld_reload_flag+set}" = set; then
5325  echo $ECHO_N "(cached) $ECHO_C" >&6
5326else
5327  lt_cv_ld_reload_flag='-r'
5328fi
5329echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5330echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5331reload_flag=$lt_cv_ld_reload_flag
5332case $reload_flag in
5333"" | " "*) ;;
5334*) reload_flag=" $reload_flag" ;;
5335esac
5336reload_cmds='$LD$reload_flag -o $output$reload_objs'
5337case $host_os in
5338  darwin*)
5339    if test "$GCC" = yes; then
5340      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5341    else
5342      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5343    fi
5344    ;;
5345esac
5346
5347echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5348echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5349if test "${lt_cv_path_NM+set}" = set; then
5350  echo $ECHO_N "(cached) $ECHO_C" >&6
5351else
5352  if test -n "$NM"; then
5353  # Let the user override the test.
5354  lt_cv_path_NM="$NM"
5355else
5356  lt_nm_to_check="${ac_tool_prefix}nm"
5357  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5358    lt_nm_to_check="$lt_nm_to_check nm"
5359  fi
5360  for lt_tmp_nm in $lt_nm_to_check; do
5361    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5362    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5363      IFS="$lt_save_ifs"
5364      test -z "$ac_dir" && ac_dir=.
5365      tmp_nm="$ac_dir/$lt_tmp_nm"
5366      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5367        # Check to see if the nm accepts a BSD-compat flag.
5368        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5369        #   nm: unknown option "B" ignored
5370        # Tru64's nm complains that /dev/null is an invalid object file
5371        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5372        */dev/null* | *'Invalid file or object type'*)
5373          lt_cv_path_NM="$tmp_nm -B"
5374          break
5375          ;;
5376        *)
5377          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5378          */dev/null*)
5379            lt_cv_path_NM="$tmp_nm -p"
5380            break
5381            ;;
5382          *)
5383            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5384            continue # so that we can try to find one that supports BSD flags
5385            ;;
5386          esac
5387          ;;
5388        esac
5389      fi
5390    done
5391    IFS="$lt_save_ifs"
5392  done
5393  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5394fi
5395fi
5396echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5397echo "${ECHO_T}$lt_cv_path_NM" >&6
5398NM="$lt_cv_path_NM"
5399
5400echo "$as_me:$LINENO: checking whether ln -s works" >&5
5401echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5402LN_S=$as_ln_s
5403if test "$LN_S" = "ln -s"; then
5404  echo "$as_me:$LINENO: result: yes" >&5
5405echo "${ECHO_T}yes" >&6
5406else
5407  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5408echo "${ECHO_T}no, using $LN_S" >&6
5409fi
5410
5411echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5412echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5413if test "${lt_cv_deplibs_check_method+set}" = set; then
5414  echo $ECHO_N "(cached) $ECHO_C" >&6
5415else
5416  lt_cv_file_magic_cmd='$MAGIC_CMD'
5417lt_cv_file_magic_test_file=
5418lt_cv_deplibs_check_method='unknown'
5419# Need to set the preceding variable on all platforms that support
5420# interlibrary dependencies.
5421# 'none' -- dependencies not supported.
5422# `unknown' -- same as none, but documents that we really don't know.
5423# 'pass_all' -- all dependencies passed with no checks.
5424# 'test_compile' -- check by making test program.
5425# 'file_magic [[regex]]' -- check by looking for files in library path
5426# which responds to the $file_magic_cmd with a given extended regex.
5427# If you have `file' or equivalent on your system and you're not sure
5428# whether `pass_all' will *always* work, you probably want this one.
5429
5430case $host_os in
5431aix4* | aix5*)
5432  lt_cv_deplibs_check_method=pass_all
5433  ;;
5434
5435beos*)
5436  lt_cv_deplibs_check_method=pass_all
5437  ;;
5438
5439bsdi[45]*)
5440  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5441  lt_cv_file_magic_cmd='/usr/bin/file -L'
5442  lt_cv_file_magic_test_file=/shlib/libc.so
5443  ;;
5444
5445cygwin*)
5446  # func_win32_libid is a shell function defined in ltmain.sh
5447  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5448  lt_cv_file_magic_cmd='func_win32_libid'
5449  ;;
5450
5451mingw* | pw32*)
5452  # Base MSYS/MinGW do not provide the 'file' command needed by
5453  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5454  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5455  lt_cv_file_magic_cmd='$OBJDUMP -f'
5456  ;;
5457
5458darwin* | rhapsody*)
5459  lt_cv_deplibs_check_method=pass_all
5460  ;;
5461
5462freebsd* | kfreebsd*-gnu | dragonfly*)
5463  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5464    case $host_cpu in
5465    i*86 )
5466      # Not sure whether the presence of OpenBSD here was a mistake.
5467      # Let's accept both of them until this is cleared up.
5468      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5469      lt_cv_file_magic_cmd=/usr/bin/file
5470      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5471      ;;
5472    esac
5473  else
5474    lt_cv_deplibs_check_method=pass_all
5475  fi
5476  ;;
5477
5478gnu*)
5479  lt_cv_deplibs_check_method=pass_all
5480  ;;
5481
5482hpux10.20* | hpux11*)
5483  lt_cv_file_magic_cmd=/usr/bin/file
5484  case $host_cpu in
5485  ia64*)
5486    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5487    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5488    ;;
5489  hppa*64*)
5490    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]'
5491    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5492    ;;
5493  *)
5494    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5495    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5496    ;;
5497  esac
5498  ;;
5499
5500interix3*)
5501  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5502  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5503  ;;
5504
5505irix5* | irix6* | nonstopux*)
5506  case $LD in
5507  *-32|*"-32 ") libmagic=32-bit;;
5508  *-n32|*"-n32 ") libmagic=N32;;
5509  *-64|*"-64 ") libmagic=64-bit;;
5510  *) libmagic=never-match;;
5511  esac
5512  lt_cv_deplibs_check_method=pass_all
5513  ;;
5514
5515# This must be Linux ELF.
5516linux*)
5517  lt_cv_deplibs_check_method=pass_all
5518  ;;
5519
5520netbsd*)
5521  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5522    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5523  else
5524    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5525  fi
5526  ;;
5527
5528newos6*)
5529  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5530  lt_cv_file_magic_cmd=/usr/bin/file
5531  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5532  ;;
5533
5534nto-qnx*)
5535  lt_cv_deplibs_check_method=unknown
5536  ;;
5537
5538openbsd*)
5539  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5540    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5541  else
5542    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5543  fi
5544  ;;
5545
5546osf3* | osf4* | osf5*)
5547  lt_cv_deplibs_check_method=pass_all
5548  ;;
5549
5550solaris*)
5551  lt_cv_deplibs_check_method=pass_all
5552  ;;
5553
5554sysv4 | sysv4.3*)
5555  case $host_vendor in
5556  motorola)
5557    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]'
5558    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5559    ;;
5560  ncr)
5561    lt_cv_deplibs_check_method=pass_all
5562    ;;
5563  sequent)
5564    lt_cv_file_magic_cmd='/bin/file'
5565    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5566    ;;
5567  sni)
5568    lt_cv_file_magic_cmd='/bin/file'
5569    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5570    lt_cv_file_magic_test_file=/lib/libc.so
5571    ;;
5572  siemens)
5573    lt_cv_deplibs_check_method=pass_all
5574    ;;
5575  pc)
5576    lt_cv_deplibs_check_method=pass_all
5577    ;;
5578  esac
5579  ;;
5580
5581sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5582  lt_cv_deplibs_check_method=pass_all
5583  ;;
5584esac
5585
5586fi
5587echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5588echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5589file_magic_cmd=$lt_cv_file_magic_cmd
5590deplibs_check_method=$lt_cv_deplibs_check_method
5591test -z "$deplibs_check_method" && deplibs_check_method=unknown
5592
5593
5594
5595
5596# If no C compiler was specified, use CC.
5597LTCC=${LTCC-"$CC"}
5598
5599# If no C compiler flags were specified, use CFLAGS.
5600LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5601
5602# Allow CC to be a program name with arguments.
5603compiler=$CC
5604
5605# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5606if test "${enable_libtool_lock+set}" = set; then
5607  enableval="$enable_libtool_lock"
5608
5609fi;
5610test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5611
5612# Some flags need to be propagated to the compiler or linker for good
5613# libtool support.
5614case $host in
5615ia64-*-hpux*)
5616  # Find out which ABI we are using.
5617  echo 'int i;' > conftest.$ac_ext
5618  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5619  (eval $ac_compile) 2>&5
5620  ac_status=$?
5621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622  (exit $ac_status); }; then
5623    case `/usr/bin/file conftest.$ac_objext` in
5624    *ELF-32*)
5625      HPUX_IA64_MODE="32"
5626      ;;
5627    *ELF-64*)
5628      HPUX_IA64_MODE="64"
5629      ;;
5630    esac
5631  fi
5632  rm -rf conftest*
5633  ;;
5634*-*-irix6*)
5635  # Find out which ABI we are using.
5636  echo '#line 5636 "configure"' > conftest.$ac_ext
5637  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5638  (eval $ac_compile) 2>&5
5639  ac_status=$?
5640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641  (exit $ac_status); }; then
5642   if test "$lt_cv_prog_gnu_ld" = yes; then
5643    case `/usr/bin/file conftest.$ac_objext` in
5644    *32-bit*)
5645      LD="${LD-ld} -melf32bsmip"
5646      ;;
5647    *N32*)
5648      LD="${LD-ld} -melf32bmipn32"
5649      ;;
5650    *64-bit*)
5651      LD="${LD-ld} -melf64bmip"
5652      ;;
5653    esac
5654   else
5655    case `/usr/bin/file conftest.$ac_objext` in
5656    *32-bit*)
5657      LD="${LD-ld} -32"
5658      ;;
5659    *N32*)
5660      LD="${LD-ld} -n32"
5661      ;;
5662    *64-bit*)
5663      LD="${LD-ld} -64"
5664      ;;
5665    esac
5666   fi
5667  fi
5668  rm -rf conftest*
5669  ;;
5670
5671x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5672  # Find out which ABI we are using.
5673  echo 'int i;' > conftest.$ac_ext
5674  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5675  (eval $ac_compile) 2>&5
5676  ac_status=$?
5677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678  (exit $ac_status); }; then
5679    case `/usr/bin/file conftest.o` in
5680    *32-bit*)
5681      case $host in
5682        x86_64-*linux*)
5683          LD="${LD-ld} -m elf_i386"
5684          ;;
5685        ppc64-*linux*|powerpc64-*linux*)
5686          LD="${LD-ld} -m elf32ppclinux"
5687          ;;
5688        s390x-*linux*)
5689          LD="${LD-ld} -m elf_s390"
5690          ;;
5691        sparc64-*linux*)
5692          LD="${LD-ld} -m elf32_sparc"
5693          ;;
5694      esac
5695      ;;
5696    *64-bit*)
5697      case $host in
5698        x86_64-*linux*)
5699          LD="${LD-ld} -m elf_x86_64"
5700          ;;
5701        ppc*-*linux*|powerpc*-*linux*)
5702          LD="${LD-ld} -m elf64ppc"
5703          ;;
5704        s390*-*linux*)
5705          LD="${LD-ld} -m elf64_s390"
5706          ;;
5707        sparc*-*linux*)
5708          LD="${LD-ld} -m elf64_sparc"
5709          ;;
5710      esac
5711      ;;
5712    esac
5713  fi
5714  rm -rf conftest*
5715  ;;
5716
5717*-*-sco3.2v5*)
5718  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5719  SAVE_CFLAGS="$CFLAGS"
5720  CFLAGS="$CFLAGS -belf"
5721  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5722echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5723if test "${lt_cv_cc_needs_belf+set}" = set; then
5724  echo $ECHO_N "(cached) $ECHO_C" >&6
5725else
5726  ac_ext=c
5727ac_cpp='$CPP $CPPFLAGS'
5728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730ac_compiler_gnu=$ac_cv_c_compiler_gnu
5731
5732     cat >conftest.$ac_ext <<_ACEOF
5733/* confdefs.h.  */
5734_ACEOF
5735cat confdefs.h >>conftest.$ac_ext
5736cat >>conftest.$ac_ext <<_ACEOF
5737/* end confdefs.h.  */
5738
5739int
5740main ()
5741{
5742
5743  ;
5744  return 0;
5745}
5746_ACEOF
5747rm -f conftest.$ac_objext conftest$ac_exeext
5748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5749  (eval $ac_link) 2>conftest.er1
5750  ac_status=$?
5751  grep -v '^ *+' conftest.er1 >conftest.err
5752  rm -f conftest.er1
5753  cat conftest.err >&5
5754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755  (exit $ac_status); } &&
5756         { ac_try='test -z "$ac_c_werror_flag"
5757                         || test ! -s conftest.err'
5758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759  (eval $ac_try) 2>&5
5760  ac_status=$?
5761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762  (exit $ac_status); }; } &&
5763         { ac_try='test -s conftest$ac_exeext'
5764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765  (eval $ac_try) 2>&5
5766  ac_status=$?
5767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768  (exit $ac_status); }; }; then
5769  lt_cv_cc_needs_belf=yes
5770else
5771  echo "$as_me: failed program was:" >&5
5772sed 's/^/| /' conftest.$ac_ext >&5
5773
5774lt_cv_cc_needs_belf=no
5775fi
5776rm -f conftest.err conftest.$ac_objext \
5777      conftest$ac_exeext conftest.$ac_ext
5778     ac_ext=c
5779ac_cpp='$CPP $CPPFLAGS'
5780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782ac_compiler_gnu=$ac_cv_c_compiler_gnu
5783
5784fi
5785echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5786echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5787  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5788    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5789    CFLAGS="$SAVE_CFLAGS"
5790  fi
5791  ;;
5792sparc*-*solaris*)
5793  # Find out which ABI we are using.
5794  echo 'int i;' > conftest.$ac_ext
5795  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5796  (eval $ac_compile) 2>&5
5797  ac_status=$?
5798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799  (exit $ac_status); }; then
5800    case `/usr/bin/file conftest.o` in
5801    *64-bit*)
5802      case $lt_cv_prog_gnu_ld in
5803      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5804      *)    LD="${LD-ld} -64" ;;
5805      esac
5806      ;;
5807    esac
5808  fi
5809  rm -rf conftest*
5810  ;;
5811
5812
5813esac
5814
5815need_locks="$enable_libtool_lock"
5816
5817
5818ac_ext=c
5819ac_cpp='$CPP $CPPFLAGS'
5820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5822ac_compiler_gnu=$ac_cv_c_compiler_gnu
5823echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5824echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5825# On Suns, sometimes $CPP names a directory.
5826if test -n "$CPP" && test -d "$CPP"; then
5827  CPP=
5828fi
5829if test -z "$CPP"; then
5830  if test "${ac_cv_prog_CPP+set}" = set; then
5831  echo $ECHO_N "(cached) $ECHO_C" >&6
5832else
5833      # Double quotes because CPP needs to be expanded
5834    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5835    do
5836      ac_preproc_ok=false
5837for ac_c_preproc_warn_flag in '' yes
5838do
5839  # Use a header file that comes with gcc, so configuring glibc
5840  # with a fresh cross-compiler works.
5841  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5842  # <limits.h> exists even on freestanding compilers.
5843  # On the NeXT, cc -E runs the code through the compiler's parser,
5844  # not just through cpp. "Syntax error" is here to catch this case.
5845  cat >conftest.$ac_ext <<_ACEOF
5846/* confdefs.h.  */
5847_ACEOF
5848cat confdefs.h >>conftest.$ac_ext
5849cat >>conftest.$ac_ext <<_ACEOF
5850/* end confdefs.h.  */
5851#ifdef __STDC__
5852# include <limits.h>
5853#else
5854# include <assert.h>
5855#endif
5856                     Syntax error
5857_ACEOF
5858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5859  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5860  ac_status=$?
5861  grep -v '^ *+' conftest.er1 >conftest.err
5862  rm -f conftest.er1
5863  cat conftest.err >&5
5864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865  (exit $ac_status); } >/dev/null; then
5866  if test -s conftest.err; then
5867    ac_cpp_err=$ac_c_preproc_warn_flag
5868    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5869  else
5870    ac_cpp_err=
5871  fi
5872else
5873  ac_cpp_err=yes
5874fi
5875if test -z "$ac_cpp_err"; then
5876  :
5877else
5878  echo "$as_me: failed program was:" >&5
5879sed 's/^/| /' conftest.$ac_ext >&5
5880
5881  # Broken: fails on valid input.
5882continue
5883fi
5884rm -f conftest.err conftest.$ac_ext
5885
5886  # OK, works on sane cases.  Now check whether non-existent headers
5887  # can be detected and how.
5888  cat >conftest.$ac_ext <<_ACEOF
5889/* confdefs.h.  */
5890_ACEOF
5891cat confdefs.h >>conftest.$ac_ext
5892cat >>conftest.$ac_ext <<_ACEOF
5893/* end confdefs.h.  */
5894#include <ac_nonexistent.h>
5895_ACEOF
5896if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5897  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5898  ac_status=$?
5899  grep -v '^ *+' conftest.er1 >conftest.err
5900  rm -f conftest.er1
5901  cat conftest.err >&5
5902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903  (exit $ac_status); } >/dev/null; then
5904  if test -s conftest.err; then
5905    ac_cpp_err=$ac_c_preproc_warn_flag
5906    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5907  else
5908    ac_cpp_err=
5909  fi
5910else
5911  ac_cpp_err=yes
5912fi
5913if test -z "$ac_cpp_err"; then
5914  # Broken: success on invalid input.
5915continue
5916else
5917  echo "$as_me: failed program was:" >&5
5918sed 's/^/| /' conftest.$ac_ext >&5
5919
5920  # Passes both tests.
5921ac_preproc_ok=:
5922break
5923fi
5924rm -f conftest.err conftest.$ac_ext
5925
5926done
5927# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5928rm -f conftest.err conftest.$ac_ext
5929if $ac_preproc_ok; then
5930  break
5931fi
5932
5933    done
5934    ac_cv_prog_CPP=$CPP
5935
5936fi
5937  CPP=$ac_cv_prog_CPP
5938else
5939  ac_cv_prog_CPP=$CPP
5940fi
5941echo "$as_me:$LINENO: result: $CPP" >&5
5942echo "${ECHO_T}$CPP" >&6
5943ac_preproc_ok=false
5944for ac_c_preproc_warn_flag in '' yes
5945do
5946  # Use a header file that comes with gcc, so configuring glibc
5947  # with a fresh cross-compiler works.
5948  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5949  # <limits.h> exists even on freestanding compilers.
5950  # On the NeXT, cc -E runs the code through the compiler's parser,
5951  # not just through cpp. "Syntax error" is here to catch this case.
5952  cat >conftest.$ac_ext <<_ACEOF
5953/* confdefs.h.  */
5954_ACEOF
5955cat confdefs.h >>conftest.$ac_ext
5956cat >>conftest.$ac_ext <<_ACEOF
5957/* end confdefs.h.  */
5958#ifdef __STDC__
5959# include <limits.h>
5960#else
5961# include <assert.h>
5962#endif
5963                     Syntax error
5964_ACEOF
5965if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5966  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5967  ac_status=$?
5968  grep -v '^ *+' conftest.er1 >conftest.err
5969  rm -f conftest.er1
5970  cat conftest.err >&5
5971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972  (exit $ac_status); } >/dev/null; then
5973  if test -s conftest.err; then
5974    ac_cpp_err=$ac_c_preproc_warn_flag
5975    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5976  else
5977    ac_cpp_err=
5978  fi
5979else
5980  ac_cpp_err=yes
5981fi
5982if test -z "$ac_cpp_err"; then
5983  :
5984else
5985  echo "$as_me: failed program was:" >&5
5986sed 's/^/| /' conftest.$ac_ext >&5
5987
5988  # Broken: fails on valid input.
5989continue
5990fi
5991rm -f conftest.err conftest.$ac_ext
5992
5993  # OK, works on sane cases.  Now check whether non-existent headers
5994  # can be detected and how.
5995  cat >conftest.$ac_ext <<_ACEOF
5996/* confdefs.h.  */
5997_ACEOF
5998cat confdefs.h >>conftest.$ac_ext
5999cat >>conftest.$ac_ext <<_ACEOF
6000/* end confdefs.h.  */
6001#include <ac_nonexistent.h>
6002_ACEOF
6003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6004  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6005  ac_status=$?
6006  grep -v '^ *+' conftest.er1 >conftest.err
6007  rm -f conftest.er1
6008  cat conftest.err >&5
6009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010  (exit $ac_status); } >/dev/null; then
6011  if test -s conftest.err; then
6012    ac_cpp_err=$ac_c_preproc_warn_flag
6013    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6014  else
6015    ac_cpp_err=
6016  fi
6017else
6018  ac_cpp_err=yes
6019fi
6020if test -z "$ac_cpp_err"; then
6021  # Broken: success on invalid input.
6022continue
6023else
6024  echo "$as_me: failed program was:" >&5
6025sed 's/^/| /' conftest.$ac_ext >&5
6026
6027  # Passes both tests.
6028ac_preproc_ok=:
6029break
6030fi
6031rm -f conftest.err conftest.$ac_ext
6032
6033done
6034# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6035rm -f conftest.err conftest.$ac_ext
6036if $ac_preproc_ok; then
6037  :
6038else
6039  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6040See \`config.log' for more details." >&5
6041echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6042See \`config.log' for more details." >&2;}
6043   { (exit 1); exit 1; }; }
6044fi
6045
6046ac_ext=c
6047ac_cpp='$CPP $CPPFLAGS'
6048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6050ac_compiler_gnu=$ac_cv_c_compiler_gnu
6051
6052
6053echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6054echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6055if test "${ac_cv_header_stdc+set}" = set; then
6056  echo $ECHO_N "(cached) $ECHO_C" >&6
6057else
6058  cat >conftest.$ac_ext <<_ACEOF
6059/* confdefs.h.  */
6060_ACEOF
6061cat confdefs.h >>conftest.$ac_ext
6062cat >>conftest.$ac_ext <<_ACEOF
6063/* end confdefs.h.  */
6064#include <stdlib.h>
6065#include <stdarg.h>
6066#include <string.h>
6067#include <float.h>
6068
6069int
6070main ()
6071{
6072
6073  ;
6074  return 0;
6075}
6076_ACEOF
6077rm -f conftest.$ac_objext
6078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6079  (eval $ac_compile) 2>conftest.er1
6080  ac_status=$?
6081  grep -v '^ *+' conftest.er1 >conftest.err
6082  rm -f conftest.er1
6083  cat conftest.err >&5
6084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085  (exit $ac_status); } &&
6086         { ac_try='test -z "$ac_c_werror_flag"
6087                         || test ! -s conftest.err'
6088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089  (eval $ac_try) 2>&5
6090  ac_status=$?
6091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092  (exit $ac_status); }; } &&
6093         { ac_try='test -s conftest.$ac_objext'
6094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095  (eval $ac_try) 2>&5
6096  ac_status=$?
6097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098  (exit $ac_status); }; }; then
6099  ac_cv_header_stdc=yes
6100else
6101  echo "$as_me: failed program was:" >&5
6102sed 's/^/| /' conftest.$ac_ext >&5
6103
6104ac_cv_header_stdc=no
6105fi
6106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6107
6108if test $ac_cv_header_stdc = yes; then
6109  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6110  cat >conftest.$ac_ext <<_ACEOF
6111/* confdefs.h.  */
6112_ACEOF
6113cat confdefs.h >>conftest.$ac_ext
6114cat >>conftest.$ac_ext <<_ACEOF
6115/* end confdefs.h.  */
6116#include <string.h>
6117
6118_ACEOF
6119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6120  $EGREP "memchr" >/dev/null 2>&1; then
6121  :
6122else
6123  ac_cv_header_stdc=no
6124fi
6125rm -f conftest*
6126
6127fi
6128
6129if test $ac_cv_header_stdc = yes; then
6130  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6131  cat >conftest.$ac_ext <<_ACEOF
6132/* confdefs.h.  */
6133_ACEOF
6134cat confdefs.h >>conftest.$ac_ext
6135cat >>conftest.$ac_ext <<_ACEOF
6136/* end confdefs.h.  */
6137#include <stdlib.h>
6138
6139_ACEOF
6140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6141  $EGREP "free" >/dev/null 2>&1; then
6142  :
6143else
6144  ac_cv_header_stdc=no
6145fi
6146rm -f conftest*
6147
6148fi
6149
6150if test $ac_cv_header_stdc = yes; then
6151  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6152  if test "$cross_compiling" = yes; then
6153  :
6154else
6155  cat >conftest.$ac_ext <<_ACEOF
6156/* confdefs.h.  */
6157_ACEOF
6158cat confdefs.h >>conftest.$ac_ext
6159cat >>conftest.$ac_ext <<_ACEOF
6160/* end confdefs.h.  */
6161#include <ctype.h>
6162#if ((' ' & 0x0FF) == 0x020)
6163# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6164# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6165#else
6166# define ISLOWER(c) \
6167                   (('a' <= (c) && (c) <= 'i') \
6168                     || ('j' <= (c) && (c) <= 'r') \
6169                     || ('s' <= (c) && (c) <= 'z'))
6170# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6171#endif
6172
6173#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6174int
6175main ()
6176{
6177  int i;
6178  for (i = 0; i < 256; i++)
6179    if (XOR (islower (i), ISLOWER (i))
6180        || toupper (i) != TOUPPER (i))
6181      exit(2);
6182  exit (0);
6183}
6184_ACEOF
6185rm -f conftest$ac_exeext
6186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6187  (eval $ac_link) 2>&5
6188  ac_status=$?
6189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192  (eval $ac_try) 2>&5
6193  ac_status=$?
6194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195  (exit $ac_status); }; }; then
6196  :
6197else
6198  echo "$as_me: program exited with status $ac_status" >&5
6199echo "$as_me: failed program was:" >&5
6200sed 's/^/| /' conftest.$ac_ext >&5
6201
6202( exit $ac_status )
6203ac_cv_header_stdc=no
6204fi
6205rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6206fi
6207fi
6208fi
6209echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6210echo "${ECHO_T}$ac_cv_header_stdc" >&6
6211if test $ac_cv_header_stdc = yes; then
6212
6213cat >>confdefs.h <<\_ACEOF
6214#define STDC_HEADERS 1
6215_ACEOF
6216
6217fi
6218
6219# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6230                  inttypes.h stdint.h unistd.h
6231do
6232as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6233echo "$as_me:$LINENO: checking for $ac_header" >&5
6234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6235if eval "test \"\${$as_ac_Header+set}\" = set"; then
6236  echo $ECHO_N "(cached) $ECHO_C" >&6
6237else
6238  cat >conftest.$ac_ext <<_ACEOF
6239/* confdefs.h.  */
6240_ACEOF
6241cat confdefs.h >>conftest.$ac_ext
6242cat >>conftest.$ac_ext <<_ACEOF
6243/* end confdefs.h.  */
6244$ac_includes_default
6245
6246#include <$ac_header>
6247_ACEOF
6248rm -f conftest.$ac_objext
6249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250  (eval $ac_compile) 2>conftest.er1
6251  ac_status=$?
6252  grep -v '^ *+' conftest.er1 >conftest.err
6253  rm -f conftest.er1
6254  cat conftest.err >&5
6255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256  (exit $ac_status); } &&
6257         { ac_try='test -z "$ac_c_werror_flag"
6258                         || test ! -s conftest.err'
6259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260  (eval $ac_try) 2>&5
6261  ac_status=$?
6262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263  (exit $ac_status); }; } &&
6264         { ac_try='test -s conftest.$ac_objext'
6265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266  (eval $ac_try) 2>&5
6267  ac_status=$?
6268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269  (exit $ac_status); }; }; then
6270  eval "$as_ac_Header=yes"
6271else
6272  echo "$as_me: failed program was:" >&5
6273sed 's/^/| /' conftest.$ac_ext >&5
6274
6275eval "$as_ac_Header=no"
6276fi
6277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6278fi
6279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6280echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6281if test `eval echo '${'$as_ac_Header'}'` = yes; then
6282  cat >>confdefs.h <<_ACEOF
6283#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6284_ACEOF
6285
6286fi
6287
6288done
6289
6290
6291
6292for ac_header in dlfcn.h
6293do
6294as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6295if eval "test \"\${$as_ac_Header+set}\" = set"; then
6296  echo "$as_me:$LINENO: checking for $ac_header" >&5
6297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6298if eval "test \"\${$as_ac_Header+set}\" = set"; then
6299  echo $ECHO_N "(cached) $ECHO_C" >&6
6300fi
6301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6302echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6303else
6304  # Is the header compilable?
6305echo "$as_me:$LINENO: checking $ac_header usability" >&5
6306echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6307cat >conftest.$ac_ext <<_ACEOF
6308/* confdefs.h.  */
6309_ACEOF
6310cat confdefs.h >>conftest.$ac_ext
6311cat >>conftest.$ac_ext <<_ACEOF
6312/* end confdefs.h.  */
6313$ac_includes_default
6314#include <$ac_header>
6315_ACEOF
6316rm -f conftest.$ac_objext
6317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6318  (eval $ac_compile) 2>conftest.er1
6319  ac_status=$?
6320  grep -v '^ *+' conftest.er1 >conftest.err
6321  rm -f conftest.er1
6322  cat conftest.err >&5
6323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324  (exit $ac_status); } &&
6325         { ac_try='test -z "$ac_c_werror_flag"
6326                         || test ! -s conftest.err'
6327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328  (eval $ac_try) 2>&5
6329  ac_status=$?
6330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331  (exit $ac_status); }; } &&
6332         { ac_try='test -s conftest.$ac_objext'
6333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334  (eval $ac_try) 2>&5
6335  ac_status=$?
6336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337  (exit $ac_status); }; }; then
6338  ac_header_compiler=yes
6339else
6340  echo "$as_me: failed program was:" >&5
6341sed 's/^/| /' conftest.$ac_ext >&5
6342
6343ac_header_compiler=no
6344fi
6345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6346echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6347echo "${ECHO_T}$ac_header_compiler" >&6
6348
6349# Is the header present?
6350echo "$as_me:$LINENO: checking $ac_header presence" >&5
6351echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6352cat >conftest.$ac_ext <<_ACEOF
6353/* confdefs.h.  */
6354_ACEOF
6355cat confdefs.h >>conftest.$ac_ext
6356cat >>conftest.$ac_ext <<_ACEOF
6357/* end confdefs.h.  */
6358#include <$ac_header>
6359_ACEOF
6360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6361  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6362  ac_status=$?
6363  grep -v '^ *+' conftest.er1 >conftest.err
6364  rm -f conftest.er1
6365  cat conftest.err >&5
6366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367  (exit $ac_status); } >/dev/null; then
6368  if test -s conftest.err; then
6369    ac_cpp_err=$ac_c_preproc_warn_flag
6370    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6371  else
6372    ac_cpp_err=
6373  fi
6374else
6375  ac_cpp_err=yes
6376fi
6377if test -z "$ac_cpp_err"; then
6378  ac_header_preproc=yes
6379else
6380  echo "$as_me: failed program was:" >&5
6381sed 's/^/| /' conftest.$ac_ext >&5
6382
6383  ac_header_preproc=no
6384fi
6385rm -f conftest.err conftest.$ac_ext
6386echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6387echo "${ECHO_T}$ac_header_preproc" >&6
6388
6389# So?  What about this header?
6390case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6391  yes:no: )
6392    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6393echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6394    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6395echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6396    ac_header_preproc=yes
6397    ;;
6398  no:yes:* )
6399    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6400echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6401    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6402echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6403    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6404echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6405    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6406echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6407    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6408echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6409    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6410echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6411    (
6412      cat <<\_ASBOX
6413## ---------------------------------------- ##
6414## Report this to coin-clp@list.coin-or.org ##
6415## ---------------------------------------- ##
6416_ASBOX
6417    ) |
6418      sed "s/^/$as_me: WARNING:     /" >&2
6419    ;;
6420esac
6421echo "$as_me:$LINENO: checking for $ac_header" >&5
6422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6423if eval "test \"\${$as_ac_Header+set}\" = set"; then
6424  echo $ECHO_N "(cached) $ECHO_C" >&6
6425else
6426  eval "$as_ac_Header=\$ac_header_preproc"
6427fi
6428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6429echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6430
6431fi
6432if test `eval echo '${'$as_ac_Header'}'` = yes; then
6433  cat >>confdefs.h <<_ACEOF
6434#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6435_ACEOF
6436
6437fi
6438
6439done
6440
6441
6442
6443if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6444    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6445    (test "X$CXX" != "Xg++"))) ; then
6446  ac_ext=cc
6447ac_cpp='$CXXCPP $CPPFLAGS'
6448ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6449ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6450ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6451echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6452echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6453if test -z "$CXXCPP"; then
6454  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6455  echo $ECHO_N "(cached) $ECHO_C" >&6
6456else
6457      # Double quotes because CXXCPP needs to be expanded
6458    for CXXCPP in "$CXX -E" "/lib/cpp"
6459    do
6460      ac_preproc_ok=false
6461for ac_cxx_preproc_warn_flag in '' yes
6462do
6463  # Use a header file that comes with gcc, so configuring glibc
6464  # with a fresh cross-compiler works.
6465  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6466  # <limits.h> exists even on freestanding compilers.
6467  # On the NeXT, cc -E runs the code through the compiler's parser,
6468  # not just through cpp. "Syntax error" is here to catch this case.
6469  cat >conftest.$ac_ext <<_ACEOF
6470/* confdefs.h.  */
6471_ACEOF
6472cat confdefs.h >>conftest.$ac_ext
6473cat >>conftest.$ac_ext <<_ACEOF
6474/* end confdefs.h.  */
6475#ifdef __STDC__
6476# include <limits.h>
6477#else
6478# include <assert.h>
6479#endif
6480                     Syntax error
6481_ACEOF
6482if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6483  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6484  ac_status=$?
6485  grep -v '^ *+' conftest.er1 >conftest.err
6486  rm -f conftest.er1
6487  cat conftest.err >&5
6488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489  (exit $ac_status); } >/dev/null; then
6490  if test -s conftest.err; then
6491    ac_cpp_err=$ac_cxx_preproc_warn_flag
6492    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6493  else
6494    ac_cpp_err=
6495  fi
6496else
6497  ac_cpp_err=yes
6498fi
6499if test -z "$ac_cpp_err"; then
6500  :
6501else
6502  echo "$as_me: failed program was:" >&5
6503sed 's/^/| /' conftest.$ac_ext >&5
6504
6505  # Broken: fails on valid input.
6506continue
6507fi
6508rm -f conftest.err conftest.$ac_ext
6509
6510  # OK, works on sane cases.  Now check whether non-existent headers
6511  # can be detected and how.
6512  cat >conftest.$ac_ext <<_ACEOF
6513/* confdefs.h.  */
6514_ACEOF
6515cat confdefs.h >>conftest.$ac_ext
6516cat >>conftest.$ac_ext <<_ACEOF
6517/* end confdefs.h.  */
6518#include <ac_nonexistent.h>
6519_ACEOF
6520if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6521  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6522  ac_status=$?
6523  grep -v '^ *+' conftest.er1 >conftest.err
6524  rm -f conftest.er1
6525  cat conftest.err >&5
6526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527  (exit $ac_status); } >/dev/null; then
6528  if test -s conftest.err; then
6529    ac_cpp_err=$ac_cxx_preproc_warn_flag
6530    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6531  else
6532    ac_cpp_err=
6533  fi
6534else
6535  ac_cpp_err=yes
6536fi
6537if test -z "$ac_cpp_err"; then
6538  # Broken: success on invalid input.
6539continue
6540else
6541  echo "$as_me: failed program was:" >&5
6542sed 's/^/| /' conftest.$ac_ext >&5
6543
6544  # Passes both tests.
6545ac_preproc_ok=:
6546break
6547fi
6548rm -f conftest.err conftest.$ac_ext
6549
6550done
6551# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6552rm -f conftest.err conftest.$ac_ext
6553if $ac_preproc_ok; then
6554  break
6555fi
6556
6557    done
6558    ac_cv_prog_CXXCPP=$CXXCPP
6559
6560fi
6561  CXXCPP=$ac_cv_prog_CXXCPP
6562else
6563  ac_cv_prog_CXXCPP=$CXXCPP
6564fi
6565echo "$as_me:$LINENO: result: $CXXCPP" >&5
6566echo "${ECHO_T}$CXXCPP" >&6
6567ac_preproc_ok=false
6568for ac_cxx_preproc_warn_flag in '' yes
6569do
6570  # Use a header file that comes with gcc, so configuring glibc
6571  # with a fresh cross-compiler works.
6572  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6573  # <limits.h> exists even on freestanding compilers.
6574  # On the NeXT, cc -E runs the code through the compiler's parser,
6575  # not just through cpp. "Syntax error" is here to catch this case.
6576  cat >conftest.$ac_ext <<_ACEOF
6577/* confdefs.h.  */
6578_ACEOF
6579cat confdefs.h >>conftest.$ac_ext
6580cat >>conftest.$ac_ext <<_ACEOF
6581/* end confdefs.h.  */
6582#ifdef __STDC__
6583# include <limits.h>
6584#else
6585# include <assert.h>
6586#endif
6587                     Syntax error
6588_ACEOF
6589if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6590  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6591  ac_status=$?
6592  grep -v '^ *+' conftest.er1 >conftest.err
6593  rm -f conftest.er1
6594  cat conftest.err >&5
6595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596  (exit $ac_status); } >/dev/null; then
6597  if test -s conftest.err; then
6598    ac_cpp_err=$ac_cxx_preproc_warn_flag
6599    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6600  else
6601    ac_cpp_err=
6602  fi
6603else
6604  ac_cpp_err=yes
6605fi
6606if test -z "$ac_cpp_err"; then
6607  :
6608else
6609  echo "$as_me: failed program was:" >&5
6610sed 's/^/| /' conftest.$ac_ext >&5
6611
6612  # Broken: fails on valid input.
6613continue
6614fi
6615rm -f conftest.err conftest.$ac_ext
6616
6617  # OK, works on sane cases.  Now check whether non-existent headers
6618  # can be detected and how.
6619  cat >conftest.$ac_ext <<_ACEOF
6620/* confdefs.h.  */
6621_ACEOF
6622cat confdefs.h >>conftest.$ac_ext
6623cat >>conftest.$ac_ext <<_ACEOF
6624/* end confdefs.h.  */
6625#include <ac_nonexistent.h>
6626_ACEOF
6627if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6628  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6629  ac_status=$?
6630  grep -v '^ *+' conftest.er1 >conftest.err
6631  rm -f conftest.er1
6632  cat conftest.err >&5
6633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634  (exit $ac_status); } >/dev/null; then
6635  if test -s conftest.err; then
6636    ac_cpp_err=$ac_cxx_preproc_warn_flag
6637    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6638  else
6639    ac_cpp_err=
6640  fi
6641else
6642  ac_cpp_err=yes
6643fi
6644if test -z "$ac_cpp_err"; then
6645  # Broken: success on invalid input.
6646continue
6647else
6648  echo "$as_me: failed program was:" >&5
6649sed 's/^/| /' conftest.$ac_ext >&5
6650
6651  # Passes both tests.
6652ac_preproc_ok=:
6653break
6654fi
6655rm -f conftest.err conftest.$ac_ext
6656
6657done
6658# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6659rm -f conftest.err conftest.$ac_ext
6660if $ac_preproc_ok; then
6661  :
6662else
6663  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6664See \`config.log' for more details." >&5
6665echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6666See \`config.log' for more details." >&2;}
6667   { (exit 1); exit 1; }; }
6668fi
6669
6670ac_ext=cc
6671ac_cpp='$CXXCPP $CPPFLAGS'
6672ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6673ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6674ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6675
6676fi
6677
6678ac_ext=f
6679ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6680ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6681ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6682if test -n "$ac_tool_prefix"; then
6683  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6684  do
6685    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6686set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6687echo "$as_me:$LINENO: checking for $ac_word" >&5
6688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6689if test "${ac_cv_prog_F77+set}" = set; then
6690  echo $ECHO_N "(cached) $ECHO_C" >&6
6691else
6692  if test -n "$F77"; then
6693  ac_cv_prog_F77="$F77" # Let the user override the test.
6694else
6695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696for as_dir in $PATH
6697do
6698  IFS=$as_save_IFS
6699  test -z "$as_dir" && as_dir=.
6700  for ac_exec_ext in '' $ac_executable_extensions; do
6701  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6702    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6703    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704    break 2
6705  fi
6706done
6707done
6708
6709fi
6710fi
6711F77=$ac_cv_prog_F77
6712if test -n "$F77"; then
6713  echo "$as_me:$LINENO: result: $F77" >&5
6714echo "${ECHO_T}$F77" >&6
6715else
6716  echo "$as_me:$LINENO: result: no" >&5
6717echo "${ECHO_T}no" >&6
6718fi
6719
6720    test -n "$F77" && break
6721  done
6722fi
6723if test -z "$F77"; then
6724  ac_ct_F77=$F77
6725  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6726do
6727  # Extract the first word of "$ac_prog", so it can be a program name with args.
6728set dummy $ac_prog; ac_word=$2
6729echo "$as_me:$LINENO: checking for $ac_word" >&5
6730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6731if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6732  echo $ECHO_N "(cached) $ECHO_C" >&6
6733else
6734  if test -n "$ac_ct_F77"; then
6735  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6736else
6737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738for as_dir in $PATH
6739do
6740  IFS=$as_save_IFS
6741  test -z "$as_dir" && as_dir=.
6742  for ac_exec_ext in '' $ac_executable_extensions; do
6743  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6744    ac_cv_prog_ac_ct_F77="$ac_prog"
6745    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746    break 2
6747  fi
6748done
6749done
6750
6751fi
6752fi
6753ac_ct_F77=$ac_cv_prog_ac_ct_F77
6754if test -n "$ac_ct_F77"; then
6755  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6756echo "${ECHO_T}$ac_ct_F77" >&6
6757else
6758  echo "$as_me:$LINENO: result: no" >&5
6759echo "${ECHO_T}no" >&6
6760fi
6761
6762  test -n "$ac_ct_F77" && break
6763done
6764
6765  F77=$ac_ct_F77
6766fi
6767
6768
6769# Provide some information about the compiler.
6770echo "$as_me:6770:" \
6771     "checking for Fortran 77 compiler version" >&5
6772ac_compiler=`set X $ac_compile; echo $2`
6773{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6774  (eval $ac_compiler --version </dev/null >&5) 2>&5
6775  ac_status=$?
6776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777  (exit $ac_status); }
6778{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6779  (eval $ac_compiler -v </dev/null >&5) 2>&5
6780  ac_status=$?
6781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782  (exit $ac_status); }
6783{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6784  (eval $ac_compiler -V </dev/null >&5) 2>&5
6785  ac_status=$?
6786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787  (exit $ac_status); }
6788rm -f a.out
6789
6790# If we don't use `.F' as extension, the preprocessor is not run on the
6791# input file.  (Note that this only needs to work for GNU compilers.)
6792ac_save_ext=$ac_ext
6793ac_ext=F
6794echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6795echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6796if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6797  echo $ECHO_N "(cached) $ECHO_C" >&6
6798else
6799  cat >conftest.$ac_ext <<_ACEOF
6800      program main
6801#ifndef __GNUC__
6802       choke me
6803#endif
6804
6805      end
6806_ACEOF
6807rm -f conftest.$ac_objext
6808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6809  (eval $ac_compile) 2>conftest.er1
6810  ac_status=$?
6811  grep -v '^ *+' conftest.er1 >conftest.err
6812  rm -f conftest.er1
6813  cat conftest.err >&5
6814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815  (exit $ac_status); } &&
6816         { ac_try='test -z "$ac_f77_werror_flag"
6817                         || test ! -s conftest.err'
6818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819  (eval $ac_try) 2>&5
6820  ac_status=$?
6821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822  (exit $ac_status); }; } &&
6823         { ac_try='test -s conftest.$ac_objext'
6824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825  (eval $ac_try) 2>&5
6826  ac_status=$?
6827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828  (exit $ac_status); }; }; then
6829  ac_compiler_gnu=yes
6830else
6831  echo "$as_me: failed program was:" >&5
6832sed 's/^/| /' conftest.$ac_ext >&5
6833
6834ac_compiler_gnu=no
6835fi
6836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6837ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6838
6839fi
6840echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6841echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6842ac_ext=$ac_save_ext
6843ac_test_FFLAGS=${FFLAGS+set}
6844ac_save_FFLAGS=$FFLAGS
6845FFLAGS=
6846echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6847echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6848if test "${ac_cv_prog_f77_g+set}" = set; then
6849  echo $ECHO_N "(cached) $ECHO_C" >&6
6850else
6851  FFLAGS=-g
6852cat >conftest.$ac_ext <<_ACEOF
6853      program main
6854
6855      end
6856_ACEOF
6857rm -f conftest.$ac_objext
6858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6859  (eval $ac_compile) 2>conftest.er1
6860  ac_status=$?
6861  grep -v '^ *+' conftest.er1 >conftest.err
6862  rm -f conftest.er1
6863  cat conftest.err >&5
6864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865  (exit $ac_status); } &&
6866         { ac_try='test -z "$ac_f77_werror_flag"
6867                         || test ! -s conftest.err'
6868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869  (eval $ac_try) 2>&5
6870  ac_status=$?
6871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872  (exit $ac_status); }; } &&
6873         { ac_try='test -s conftest.$ac_objext'
6874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875  (eval $ac_try) 2>&5
6876  ac_status=$?
6877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878  (exit $ac_status); }; }; then
6879  ac_cv_prog_f77_g=yes
6880else
6881  echo "$as_me: failed program was:" >&5
6882sed 's/^/| /' conftest.$ac_ext >&5
6883
6884ac_cv_prog_f77_g=no
6885fi
6886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6887
6888fi
6889echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6890echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6891if test "$ac_test_FFLAGS" = set; then
6892  FFLAGS=$ac_save_FFLAGS
6893elif test $ac_cv_prog_f77_g = yes; then
6894  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6895    FFLAGS="-g -O2"
6896  else
6897    FFLAGS="-g"
6898  fi
6899else
6900  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6901    FFLAGS="-O2"
6902  else
6903    FFLAGS=
6904  fi
6905fi
6906
6907G77=`test $ac_compiler_gnu = yes && echo yes`
6908ac_ext=c
6909ac_cpp='$CPP $CPPFLAGS'
6910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6912ac_compiler_gnu=$ac_cv_c_compiler_gnu
6913
6914
6915
6916# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6917
6918# find the maximum length of command line arguments
6919echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6920echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6921if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6922  echo $ECHO_N "(cached) $ECHO_C" >&6
6923else
6924    i=0
6925  teststring="ABCD"
6926
6927  case $build_os in
6928  msdosdjgpp*)
6929    # On DJGPP, this test can blow up pretty badly due to problems in libc
6930    # (any single argument exceeding 2000 bytes causes a buffer overrun
6931    # during glob expansion).  Even if it were fixed, the result of this
6932    # check would be larger than it should be.
6933    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6934    ;;
6935
6936  gnu*)
6937    # Under GNU Hurd, this test is not required because there is
6938    # no limit to the length of command line arguments.
6939    # Libtool will interpret -1 as no limit whatsoever
6940    lt_cv_sys_max_cmd_len=-1;
6941    ;;
6942
6943  cygwin* | mingw*)
6944    # On Win9x/ME, this test blows up -- it succeeds, but takes
6945    # about 5 minutes as the teststring grows exponentially.
6946    # Worse, since 9x/ME are not pre-emptively multitasking,
6947    # you end up with a "frozen" computer, even though with patience
6948    # the test eventually succeeds (with a max line length of 256k).
6949    # Instead, let's just punt: use the minimum linelength reported by
6950    # all of the supported platforms: 8192 (on NT/2K/XP).
6951    lt_cv_sys_max_cmd_len=8192;
6952    ;;
6953
6954  amigaos*)
6955    # On AmigaOS with pdksh, this test takes hours, literally.
6956    # So we just punt and use a minimum line length of 8192.
6957    lt_cv_sys_max_cmd_len=8192;
6958    ;;
6959
6960  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6961    # This has been around since 386BSD, at least.  Likely further.
6962    if test -x /sbin/sysctl; then
6963      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6964    elif test -x /usr/sbin/sysctl; then
6965      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6966    else
6967      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6968    fi
6969    # And add a safety zone
6970    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6971    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6972    ;;
6973
6974  interix*)
6975    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6976    lt_cv_sys_max_cmd_len=196608
6977    ;;
6978
6979  osf*)
6980    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6981    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6982    # nice to cause kernel panics so lets avoid the loop below.
6983    # First set a reasonable default.
6984    lt_cv_sys_max_cmd_len=16384
6985    #
6986    if test -x /sbin/sysconfig; then
6987      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6988        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6989      esac
6990    fi
6991    ;;
6992  sco3.2v5*)
6993    lt_cv_sys_max_cmd_len=102400
6994    ;;
6995  sysv5* | sco5v6* | sysv4.2uw2*)
6996    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6997    if test -n "$kargmax"; then
6998      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6999    else
7000      lt_cv_sys_max_cmd_len=32768
7001    fi
7002    ;;
7003  *)
7004    # If test is not a shell built-in, we'll probably end up computing a
7005    # maximum length that is only half of the actual maximum length, but
7006    # we can't tell.
7007    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7008    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7009               = "XX$teststring") >/dev/null 2>&1 &&
7010            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7011            lt_cv_sys_max_cmd_len=$new_result &&
7012            test $i != 17 # 1/2 MB should be enough
7013    do
7014      i=`expr $i + 1`
7015      teststring=$teststring$teststring
7016    done
7017    teststring=
7018    # Add a significant safety factor because C++ compilers can tack on massive
7019    # amounts of additional arguments before passing them to the linker.
7020    # It appears as though 1/2 is a usable value.
7021    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7022    ;;
7023  esac
7024
7025fi
7026
7027if test -n $lt_cv_sys_max_cmd_len ; then
7028  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7029echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7030else
7031  echo "$as_me:$LINENO: result: none" >&5
7032echo "${ECHO_T}none" >&6
7033fi
7034
7035
7036
7037
7038# Check for command to grab the raw symbol name followed by C symbol from nm.
7039echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7040echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7041if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7042  echo $ECHO_N "(cached) $ECHO_C" >&6
7043else
7044
7045# These are sane defaults that work on at least a few old systems.
7046# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7047
7048# Character class describing NM global symbol codes.
7049symcode='[BCDEGRST]'
7050
7051# Regexp to match symbols that can be accessed directly from C.
7052sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7053
7054# Transform an extracted symbol line into a proper C declaration
7055lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7056
7057# Transform an extracted symbol line into symbol name and symbol address
7058lt_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'"
7059
7060# Define system-specific variables.
7061case $host_os in
7062aix*)
7063  symcode='[BCDT]'
7064  ;;
7065cygwin* | mingw* | pw32*)
7066  symcode='[ABCDGISTW]'
7067  ;;
7068hpux*) # Its linker distinguishes data from code symbols
7069  if test "$host_cpu" = ia64; then
7070    symcode='[ABCDEGRST]'
7071  fi
7072  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7073  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'"
7074  ;;
7075linux*)
7076  if test "$host_cpu" = ia64; then
7077    symcode='[ABCDGIRSTW]'
7078    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7079    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'"
7080  fi
7081  ;;
7082irix* | nonstopux*)
7083  symcode='[BCDEGRST]'
7084  ;;
7085osf*)
7086  symcode='[BCDEGQRST]'
7087  ;;
7088solaris*)
7089  symcode='[BDRT]'
7090  ;;
7091sco3.2v5*)
7092  symcode='[DT]'
7093  ;;
7094sysv4.2uw2*)
7095  symcode='[DT]'
7096  ;;
7097sysv5* | sco5v6* | unixware* | OpenUNIX*)
7098  symcode='[ABDT]'
7099  ;;
7100sysv4)
7101  symcode='[DFNSTU]'
7102  ;;
7103esac
7104
7105# Handle CRLF in mingw tool chain
7106opt_cr=
7107case $build_os in
7108mingw*)
7109  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7110  ;;
7111esac
7112
7113# If we're using GNU nm, then use its standard symbol codes.
7114case `$NM -V 2>&1` in
7115*GNU* | *'with BFD'*)
7116  symcode='[ABCDGIRSTW]' ;;
7117esac
7118
7119# Try without a prefix undercore, then with it.
7120for ac_symprfx in "" "_"; do
7121
7122  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7123  symxfrm="\\1 $ac_symprfx\\2 \\2"
7124
7125  # Write the raw and C identifiers.
7126  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7127
7128  # Check to see that the pipe works correctly.
7129  pipe_works=no
7130
7131  rm -f conftest*
7132  cat > conftest.$ac_ext <<EOF
7133#ifdef __cplusplus
7134extern "C" {
7135#endif
7136char nm_test_var;
7137void nm_test_func(){}
7138#ifdef __cplusplus
7139}
7140#endif
7141int main(){nm_test_var='a';nm_test_func();return(0);}
7142EOF
7143
7144  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7145  (eval $ac_compile) 2>&5
7146  ac_status=$?
7147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148  (exit $ac_status); }; then
7149    # Now try to grab the symbols.
7150    nlist=conftest.nm
7151    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7152  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7153  ac_status=$?
7154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155  (exit $ac_status); } && test -s "$nlist"; then
7156      # Try sorting and uniquifying the output.
7157      if sort "$nlist" | uniq > "$nlist"T; then
7158        mv -f "$nlist"T "$nlist"
7159      else
7160        rm -f "$nlist"T
7161      fi
7162
7163      # Make sure that we snagged all the symbols we need.
7164      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7165        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7166          cat <<EOF > conftest.$ac_ext
7167#ifdef __cplusplus
7168extern "C" {
7169#endif
7170
7171EOF
7172          # Now generate the symbol file.
7173          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7174
7175          cat <<EOF >> conftest.$ac_ext
7176#if defined (__STDC__) && __STDC__
7177# define lt_ptr_t void *
7178#else
7179# define lt_ptr_t char *
7180# define const
7181#endif
7182
7183/* The mapping between symbol names and symbols. */
7184const struct {
7185  const char *name;
7186  lt_ptr_t address;
7187}
7188lt_preloaded_symbols[] =
7189{
7190EOF
7191          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7192          cat <<\EOF >> conftest.$ac_ext
7193  {0, (lt_ptr_t) 0}
7194};
7195
7196#ifdef __cplusplus
7197}
7198#endif
7199EOF
7200          # Now try linking the two files.
7201          mv conftest.$ac_objext conftstm.$ac_objext
7202          lt_save_LIBS="$LIBS"
7203          lt_save_CFLAGS="$CFLAGS"
7204          LIBS="conftstm.$ac_objext"
7205          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7206          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7207  (eval $ac_link) 2>&5
7208  ac_status=$?
7209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7211            pipe_works=yes
7212          fi
7213          LIBS="$lt_save_LIBS"
7214          CFLAGS="$lt_save_CFLAGS"
7215        else
7216          echo "cannot find nm_test_func in $nlist" >&5
7217        fi
7218      else
7219        echo "cannot find nm_test_var in $nlist" >&5
7220      fi
7221    else
7222      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7223    fi
7224  else
7225    echo "$progname: failed program was:" >&5
7226    cat conftest.$ac_ext >&5
7227  fi
7228  rm -f conftest* conftst*
7229
7230  # Do not use the global_symbol_pipe unless it works.
7231  if test "$pipe_works" = yes; then
7232    break
7233  else
7234    lt_cv_sys_global_symbol_pipe=
7235  fi
7236done
7237
7238fi
7239
7240if test -z "$lt_cv_sys_global_symbol_pipe"; then
7241  lt_cv_sys_global_symbol_to_cdecl=
7242fi
7243if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7244  echo "$as_me:$LINENO: result: failed" >&5
7245echo "${ECHO_T}failed" >&6
7246else
7247  echo "$as_me:$LINENO: result: ok" >&5
7248echo "${ECHO_T}ok" >&6
7249fi
7250
7251echo "$as_me:$LINENO: checking for objdir" >&5
7252echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7253if test "${lt_cv_objdir+set}" = set; then
7254  echo $ECHO_N "(cached) $ECHO_C" >&6
7255else
7256  rm -f .libs 2>/dev/null
7257mkdir .libs 2>/dev/null
7258if test -d .libs; then
7259  lt_cv_objdir=.libs
7260else
7261  # MS-DOS does not allow filenames that begin with a dot.
7262  lt_cv_objdir=_libs
7263fi
7264rmdir .libs 2>/dev/null
7265fi
7266echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7267echo "${ECHO_T}$lt_cv_objdir" >&6
7268objdir=$lt_cv_objdir
7269
7270
7271
7272
7273
7274case $host_os in
7275aix3*)
7276  # AIX sometimes has problems with the GCC collect2 program.  For some
7277  # reason, if we set the COLLECT_NAMES environment variable, the problems
7278  # vanish in a puff of smoke.
7279  if test "X${COLLECT_NAMES+set}" != Xset; then
7280    COLLECT_NAMES=
7281    export COLLECT_NAMES
7282  fi
7283  ;;
7284esac
7285
7286# Sed substitution that helps us do robust quoting.  It backslashifies
7287# metacharacters that are still active within double-quoted strings.
7288Xsed='sed -e 1s/^X//'
7289sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7290
7291# Same as above, but do not quote variable references.
7292double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7293
7294# Sed substitution to delay expansion of an escaped shell variable in a
7295# double_quote_subst'ed string.
7296delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7297
7298# Sed substitution to avoid accidental globbing in evaled expressions
7299no_glob_subst='s/\*/\\\*/g'
7300
7301# Constants:
7302rm="rm -f"
7303
7304# Global variables:
7305default_ofile=libtool
7306can_build_shared=yes
7307
7308# All known linkers require a `.a' archive for static linking (except MSVC,
7309# which needs '.lib').
7310libext=a
7311ltmain="$ac_aux_dir/ltmain.sh"
7312ofile="$default_ofile"
7313with_gnu_ld="$lt_cv_prog_gnu_ld"
7314
7315if test -n "$ac_tool_prefix"; then
7316  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7317set dummy ${ac_tool_prefix}ar; ac_word=$2
7318echo "$as_me:$LINENO: checking for $ac_word" >&5
7319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7320if test "${ac_cv_prog_AR+set}" = set; then
7321  echo $ECHO_N "(cached) $ECHO_C" >&6
7322else
7323  if test -n "$AR"; then
7324  ac_cv_prog_AR="$AR" # Let the user override the test.
7325else
7326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327for as_dir in $PATH
7328do
7329  IFS=$as_save_IFS
7330  test -z "$as_dir" && as_dir=.
7331  for ac_exec_ext in '' $ac_executable_extensions; do
7332  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7333    ac_cv_prog_AR="${ac_tool_prefix}ar"
7334    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7335    break 2
7336  fi
7337done
7338done
7339
7340fi
7341fi
7342AR=$ac_cv_prog_AR
7343if test -n "$AR"; then
7344  echo "$as_me:$LINENO: result: $AR" >&5
7345echo "${ECHO_T}$AR" >&6
7346else
7347  echo "$as_me:$LINENO: result: no" >&5
7348echo "${ECHO_T}no" >&6
7349fi
7350
7351fi
7352if test -z "$ac_cv_prog_AR"; then
7353  ac_ct_AR=$AR
7354  # Extract the first word of "ar", so it can be a program name with args.
7355set dummy ar; ac_word=$2
7356echo "$as_me:$LINENO: checking for $ac_word" >&5
7357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7358if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7359  echo $ECHO_N "(cached) $ECHO_C" >&6
7360else
7361  if test -n "$ac_ct_AR"; then
7362  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7363else
7364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365for as_dir in $PATH
7366do
7367  IFS=$as_save_IFS
7368  test -z "$as_dir" && as_dir=.
7369  for ac_exec_ext in '' $ac_executable_extensions; do
7370  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7371    ac_cv_prog_ac_ct_AR="ar"
7372    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373    break 2
7374  fi
7375done
7376done
7377
7378  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7379fi
7380fi
7381ac_ct_AR=$ac_cv_prog_ac_ct_AR
7382if test -n "$ac_ct_AR"; then
7383  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7384echo "${ECHO_T}$ac_ct_AR" >&6
7385else
7386  echo "$as_me:$LINENO: result: no" >&5
7387echo "${ECHO_T}no" >&6
7388fi
7389
7390  AR=$ac_ct_AR
7391else
7392  AR="$ac_cv_prog_AR"
7393fi
7394
7395if test -n "$ac_tool_prefix"; then
7396  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7397set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7398echo "$as_me:$LINENO: checking for $ac_word" >&5
7399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7400if test "${ac_cv_prog_RANLIB+set}" = set; then
7401  echo $ECHO_N "(cached) $ECHO_C" >&6
7402else
7403  if test -n "$RANLIB"; then
7404  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7405else
7406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407for as_dir in $PATH
7408do
7409  IFS=$as_save_IFS
7410  test -z "$as_dir" && as_dir=.
7411  for ac_exec_ext in '' $ac_executable_extensions; do
7412  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7413    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7414    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7415    break 2
7416  fi
7417done
7418done
7419
7420fi
7421fi
7422RANLIB=$ac_cv_prog_RANLIB
7423if test -n "$RANLIB"; then
7424  echo "$as_me:$LINENO: result: $RANLIB" >&5
7425echo "${ECHO_T}$RANLIB" >&6
7426else
7427  echo "$as_me:$LINENO: result: no" >&5
7428echo "${ECHO_T}no" >&6
7429fi
7430
7431fi
7432if test -z "$ac_cv_prog_RANLIB"; then
7433  ac_ct_RANLIB=$RANLIB
7434  # Extract the first word of "ranlib", so it can be a program name with args.
7435set dummy ranlib; ac_word=$2
7436echo "$as_me:$LINENO: checking for $ac_word" >&5
7437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7438if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7439  echo $ECHO_N "(cached) $ECHO_C" >&6
7440else
7441  if test -n "$ac_ct_RANLIB"; then
7442  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7443else
7444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447  IFS=$as_save_IFS
7448  test -z "$as_dir" && as_dir=.
7449  for ac_exec_ext in '' $ac_executable_extensions; do
7450  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451    ac_cv_prog_ac_ct_RANLIB="ranlib"
7452    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453    break 2
7454  fi
7455done
7456done
7457
7458  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7459fi
7460fi
7461ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7462if test -n "$ac_ct_RANLIB"; then
7463  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7464echo "${ECHO_T}$ac_ct_RANLIB" >&6
7465else
7466  echo "$as_me:$LINENO: result: no" >&5
7467echo "${ECHO_T}no" >&6
7468fi
7469
7470  RANLIB=$ac_ct_RANLIB
7471else
7472  RANLIB="$ac_cv_prog_RANLIB"
7473fi
7474
7475if test -n "$ac_tool_prefix"; then
7476  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7477set dummy ${ac_tool_prefix}strip; ac_word=$2
7478echo "$as_me:$LINENO: checking for $ac_word" >&5
7479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7480if test "${ac_cv_prog_STRIP+set}" = set; then
7481  echo $ECHO_N "(cached) $ECHO_C" >&6
7482else
7483  if test -n "$STRIP"; then
7484  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7485else
7486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487for as_dir in $PATH
7488do
7489  IFS=$as_save_IFS
7490  test -z "$as_dir" && as_dir=.
7491  for ac_exec_ext in '' $ac_executable_extensions; do
7492  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7494    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495    break 2
7496  fi
7497done
7498done
7499
7500fi
7501fi
7502STRIP=$ac_cv_prog_STRIP
7503if test -n "$STRIP"; then
7504  echo "$as_me:$LINENO: result: $STRIP" >&5
7505echo "${ECHO_T}$STRIP" >&6
7506else
7507  echo "$as_me:$LINENO: result: no" >&5
7508echo "${ECHO_T}no" >&6
7509fi
7510
7511fi
7512if test -z "$ac_cv_prog_STRIP"; then
7513  ac_ct_STRIP=$STRIP
7514  # Extract the first word of "strip", so it can be a program name with args.
7515set dummy strip; ac_word=$2
7516echo "$as_me:$LINENO: checking for $ac_word" >&5
7517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7518if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7519  echo $ECHO_N "(cached) $ECHO_C" >&6
7520else
7521  if test -n "$ac_ct_STRIP"; then
7522  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7523else
7524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH
7526do
7527  IFS=$as_save_IFS
7528  test -z "$as_dir" && as_dir=.
7529  for ac_exec_ext in '' $ac_executable_extensions; do
7530  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531    ac_cv_prog_ac_ct_STRIP="strip"
7532    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533    break 2
7534  fi
7535done
7536done
7537
7538  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7539fi
7540fi
7541ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7542if test -n "$ac_ct_STRIP"; then
7543  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7544echo "${ECHO_T}$ac_ct_STRIP" >&6
7545else
7546  echo "$as_me:$LINENO: result: no" >&5
7547echo "${ECHO_T}no" >&6
7548fi
7549
7550  STRIP=$ac_ct_STRIP
7551else
7552  STRIP="$ac_cv_prog_STRIP"
7553fi
7554
7555
7556old_CC="$CC"
7557old_CFLAGS="$CFLAGS"
7558
7559# Set sane defaults for various variables
7560test -z "$AR" && AR=ar
7561test -z "$AR_FLAGS" && AR_FLAGS=cru
7562test -z "$AS" && AS=as
7563test -z "$CC" && CC=cc
7564test -z "$LTCC" && LTCC=$CC
7565test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7566test -z "$DLLTOOL" && DLLTOOL=dlltool
7567test -z "$LD" && LD=ld
7568test -z "$LN_S" && LN_S="ln -s"
7569test -z "$MAGIC_CMD" && MAGIC_CMD=file
7570test -z "$NM" && NM=nm
7571test -z "$SED" && SED=sed
7572test -z "$OBJDUMP" && OBJDUMP=objdump
7573test -z "$RANLIB" && RANLIB=:
7574test -z "$STRIP" && STRIP=:
7575test -z "$ac_objext" && ac_objext=o
7576
7577# Determine commands to create old-style static archives.
7578old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7579old_postinstall_cmds='chmod 644 $oldlib'
7580old_postuninstall_cmds=
7581
7582if test -n "$RANLIB"; then
7583  case $host_os in
7584  openbsd*)
7585    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7586    ;;
7587  *)
7588    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7589    ;;
7590  esac
7591  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7592fi
7593
7594for cc_temp in $compiler""; do
7595  case $cc_temp in
7596    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7597    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7598    \-*) ;;
7599    *) break;;
7600  esac
7601done
7602cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7603
7604
7605# Only perform the check for file, if the check method requires it
7606case $deplibs_check_method in
7607file_magic*)
7608  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7609    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7610echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7611if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7612  echo $ECHO_N "(cached) $ECHO_C" >&6
7613else
7614  case $MAGIC_CMD in
7615[\\/*] |  ?:[\\/]*)
7616  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7617  ;;
7618*)
7619  lt_save_MAGIC_CMD="$MAGIC_CMD"
7620  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7621  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7622  for ac_dir in $ac_dummy; do
7623    IFS="$lt_save_ifs"
7624    test -z "$ac_dir" && ac_dir=.
7625    if test -f $ac_dir/${ac_tool_prefix}file; then
7626      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7627      if test -n "$file_magic_test_file"; then
7628        case $deplibs_check_method in
7629        "file_magic "*)
7630          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7631          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7632          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7633            $EGREP "$file_magic_regex" > /dev/null; then
7634            :
7635          else
7636            cat <<EOF 1>&2
7637
7638*** Warning: the command libtool uses to detect shared libraries,
7639*** $file_magic_cmd, produces output that libtool cannot recognize.
7640*** The result is that libtool may fail to recognize shared libraries
7641*** as such.  This will affect the creation of libtool libraries that
7642*** depend on shared libraries, but programs linked with such libtool
7643*** libraries will work regardless of this problem.  Nevertheless, you
7644*** may want to report the problem to your system manager and/or to
7645*** bug-libtool@gnu.org
7646
7647EOF
7648          fi ;;
7649        esac
7650      fi
7651      break
7652    fi
7653  done
7654  IFS="$lt_save_ifs"
7655  MAGIC_CMD="$lt_save_MAGIC_CMD"
7656  ;;
7657esac
7658fi
7659
7660MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7661if test -n "$MAGIC_CMD"; then
7662  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7663echo "${ECHO_T}$MAGIC_CMD" >&6
7664else
7665  echo "$as_me:$LINENO: result: no" >&5
7666echo "${ECHO_T}no" >&6
7667fi
7668
7669if test -z "$lt_cv_path_MAGIC_CMD"; then
7670  if test -n "$ac_tool_prefix"; then
7671    echo "$as_me:$LINENO: checking for file" >&5
7672echo $ECHO_N "checking for file... $ECHO_C" >&6
7673if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7674  echo $ECHO_N "(cached) $ECHO_C" >&6
7675else
7676  case $MAGIC_CMD in
7677[\\/*] |  ?:[\\/]*)
7678  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7679  ;;
7680*)
7681  lt_save_MAGIC_CMD="$MAGIC_CMD"
7682  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7683  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7684  for ac_dir in $ac_dummy; do
7685    IFS="$lt_save_ifs"
7686    test -z "$ac_dir" && ac_dir=.
7687    if test -f $ac_dir/file; then
7688      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7689      if test -n "$file_magic_test_file"; then
7690        case $deplibs_check_method in
7691        "file_magic "*)
7692          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7693          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7694          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7695            $EGREP "$file_magic_regex" > /dev/null; then
7696            :
7697          else
7698            cat <<EOF 1>&2
7699
7700*** Warning: the command libtool uses to detect shared libraries,
7701*** $file_magic_cmd, produces output that libtool cannot recognize.
7702*** The result is that libtool may fail to recognize shared libraries
7703*** as such.  This will affect the creation of libtool libraries that
7704*** depend on shared libraries, but programs linked with such libtool
7705*** libraries will work regardless of this problem.  Nevertheless, you
7706*** may want to report the problem to your system manager and/or to
7707*** bug-libtool@gnu.org
7708
7709EOF
7710          fi ;;
7711        esac
7712      fi
7713      break
7714    fi
7715  done
7716  IFS="$lt_save_ifs"
7717  MAGIC_CMD="$lt_save_MAGIC_CMD"
7718  ;;
7719esac
7720fi
7721
7722MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7723if test -n "$MAGIC_CMD"; then
7724  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7725echo "${ECHO_T}$MAGIC_CMD" >&6
7726else
7727  echo "$as_me:$LINENO: result: no" >&5
7728echo "${ECHO_T}no" >&6
7729fi
7730
7731  else
7732    MAGIC_CMD=:
7733  fi
7734fi
7735
7736  fi
7737  ;;
7738esac
7739
7740enable_dlopen=no
7741enable_win32_dll=no
7742
7743# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7744if test "${enable_libtool_lock+set}" = set; then
7745  enableval="$enable_libtool_lock"
7746
7747fi;
7748test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7749
7750
7751# Check whether --with-pic or --without-pic was given.
7752if test "${with_pic+set}" = set; then
7753  withval="$with_pic"
7754  pic_mode="$withval"
7755else
7756  pic_mode=default
7757fi;
7758test -z "$pic_mode" && pic_mode=default
7759
7760# Use C for the default configuration in the libtool script
7761tagname=
7762lt_save_CC="$CC"
7763ac_ext=c
7764ac_cpp='$CPP $CPPFLAGS'
7765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7767ac_compiler_gnu=$ac_cv_c_compiler_gnu
7768
7769
7770# Source file extension for C test sources.
7771ac_ext=c
7772
7773# Object file extension for compiled C test sources.
7774objext=o
7775objext=$objext
7776
7777# Code to be used in simple compile tests
7778lt_simple_compile_test_code="int some_variable = 0;\n"
7779
7780# Code to be used in simple link tests
7781lt_simple_link_test_code='int main(){return(0);}\n'
7782
7783
7784# If no C compiler was specified, use CC.
7785LTCC=${LTCC-"$CC"}
7786
7787# If no C compiler flags were specified, use CFLAGS.
7788LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7789
7790# Allow CC to be a program name with arguments.
7791compiler=$CC
7792
7793
7794# save warnings/boilerplate of simple test code
7795ac_outfile=conftest.$ac_objext
7796printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7797eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7798_lt_compiler_boilerplate=`cat conftest.err`
7799$rm conftest*
7800
7801ac_outfile=conftest.$ac_objext
7802printf "$lt_simple_link_test_code" >conftest.$ac_ext
7803eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7804_lt_linker_boilerplate=`cat conftest.err`
7805$rm conftest*
7806
7807
7808## CAVEAT EMPTOR:
7809## There is no encapsulation within the following macros, do not change
7810## the running order or otherwise move them around unless you know exactly
7811## what you are doing...
7812
7813lt_prog_compiler_no_builtin_flag=
7814
7815if test "$GCC" = yes; then
7816  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7817
7818
7819echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7820echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7821if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7822  echo $ECHO_N "(cached) $ECHO_C" >&6
7823else
7824  lt_cv_prog_compiler_rtti_exceptions=no
7825  ac_outfile=conftest.$ac_objext
7826   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7827   lt_compiler_flag="-fno-rtti -fno-exceptions"
7828   # Insert the option either (1) after the last *FLAGS variable, or
7829   # (2) before a word containing "conftest.", or (3) at the end.
7830   # Note that $ac_compile itself does not contain backslashes and begins
7831   # with a dollar sign (not a hyphen), so the echo should work correctly.
7832   # The option is referenced via a variable to avoid confusing sed.
7833   lt_compile=`echo "$ac_compile" | $SED \
7834   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7835   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7836   -e 's:$: $lt_compiler_flag:'`
7837   (eval echo "\"\$as_me:7837: $lt_compile\"" >&5)
7838   (eval "$lt_compile" 2>conftest.err)
7839   ac_status=$?
7840   cat conftest.err >&5
7841   echo "$as_me:7841: \$? = $ac_status" >&5
7842   if (exit $ac_status) && test -s "$ac_outfile"; then
7843     # The compiler can only warn and ignore the option if not recognized
7844     # So say no if there are warnings other than the usual output.
7845     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7846     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7847     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7848       lt_cv_prog_compiler_rtti_exceptions=yes
7849     fi
7850   fi
7851   $rm conftest*
7852
7853fi
7854echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7855echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7856
7857if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7858    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7859else
7860    :
7861fi
7862
7863fi
7864
7865lt_prog_compiler_wl=
7866lt_prog_compiler_pic=
7867lt_prog_compiler_static=
7868
7869echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7870echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7871
7872  if test "$GCC" = yes; then
7873    lt_prog_compiler_wl='-Wl,'
7874    lt_prog_compiler_static='-static'
7875
7876    case $host_os in
7877      aix*)
7878      # All AIX code is PIC.
7879      if test "$host_cpu" = ia64; then
7880        # AIX 5 now supports IA64 processor
7881        lt_prog_compiler_static='-Bstatic'
7882      fi
7883      ;;
7884
7885    amigaos*)
7886      # FIXME: we need at least 68020 code to build shared libraries, but
7887      # adding the `-m68020' flag to GCC prevents building anything better,
7888      # like `-m68040'.
7889      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7890      ;;
7891
7892    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7893      # PIC is the default for these OSes.
7894      ;;
7895
7896    mingw* | pw32* | os2*)
7897      # This hack is so that the source file can tell whether it is being
7898      # built for inclusion in a dll (and should export symbols for example).
7899      lt_prog_compiler_pic='-DDLL_EXPORT'
7900      ;;
7901
7902    darwin* | rhapsody*)
7903      # PIC is the default on this platform
7904      # Common symbols not allowed in MH_DYLIB files
7905      lt_prog_compiler_pic='-fno-common'
7906      ;;
7907
7908    interix3*)
7909      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7910      # Instead, we relocate shared libraries at runtime.
7911      ;;
7912
7913    msdosdjgpp*)
7914      # Just because we use GCC doesn't mean we suddenly get shared libraries
7915      # on systems that don't support them.
7916      lt_prog_compiler_can_build_shared=no
7917      enable_shared=no
7918      ;;
7919
7920    sysv4*MP*)
7921      if test -d /usr/nec; then
7922        lt_prog_compiler_pic=-Kconform_pic
7923      fi
7924      ;;
7925
7926    hpux*)
7927      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7928      # not for PA HP-UX.
7929      case $host_cpu in
7930      hppa*64*|ia64*)
7931        # +Z the default
7932        ;;
7933      *)
7934        lt_prog_compiler_pic='-fPIC'
7935        ;;
7936      esac
7937      ;;
7938
7939    *)
7940      lt_prog_compiler_pic='-fPIC'
7941      ;;
7942    esac
7943  else
7944    # PORTME Check for flag to pass linker flags through the system compiler.
7945    case $host_os in
7946    aix*)
7947      lt_prog_compiler_wl='-Wl,'
7948      if test "$host_cpu" = ia64; then
7949        # AIX 5 now supports IA64 processor
7950        lt_prog_compiler_static='-Bstatic'
7951      else
7952        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7953      fi
7954      ;;
7955      darwin*)
7956        # PIC is the default on this platform
7957        # Common symbols not allowed in MH_DYLIB files
7958       case $cc_basename in
7959         xlc*)
7960         lt_prog_compiler_pic='-qnocommon'
7961         lt_prog_compiler_wl='-Wl,'
7962         ;;
7963       esac
7964       ;;
7965
7966    mingw* | pw32* | os2*)
7967      # This hack is so that the source file can tell whether it is being
7968      # built for inclusion in a dll (and should export symbols for example).
7969      lt_prog_compiler_pic='-DDLL_EXPORT'
7970      ;;
7971
7972    hpux9* | hpux10* | hpux11*)
7973      lt_prog_compiler_wl='-Wl,'
7974      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7975      # not for PA HP-UX.
7976      case $host_cpu in
7977      hppa*64*|ia64*)
7978        # +Z the default
7979        ;;
7980      *)
7981        lt_prog_compiler_pic='+Z'
7982        ;;
7983      esac
7984      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7985      lt_prog_compiler_static='${wl}-a ${wl}archive'
7986      ;;
7987
7988    irix5* | irix6* | nonstopux*)
7989      lt_prog_compiler_wl='-Wl,'
7990      # PIC (with -KPIC) is the default.
7991      lt_prog_compiler_static='-non_shared'
7992      ;;
7993
7994    newsos6)
7995      lt_prog_compiler_pic='-KPIC'
7996      lt_prog_compiler_static='-Bstatic'
7997      ;;
7998
7999    linux*)
8000      case $cc_basename in
8001      icc* | ecc*)
8002        lt_prog_compiler_wl='-Wl,'
8003        lt_prog_compiler_pic='-KPIC'
8004        lt_prog_compiler_static='-static'
8005        ;;
8006      pgcc* | pgf77* | pgf90* | pgf95*)
8007        # Portland Group compilers (*not* the Pentium gcc compiler,
8008        # which looks to be a dead project)
8009        lt_prog_compiler_wl='-Wl,'
8010        lt_prog_compiler_pic='-fpic'
8011        lt_prog_compiler_static='-Bstatic'
8012        ;;
8013      ccc*)
8014        lt_prog_compiler_wl='-Wl,'
8015        # All Alpha code is PIC.
8016        lt_prog_compiler_static='-non_shared'
8017        ;;
8018      esac
8019      ;;
8020
8021    osf3* | osf4* | osf5*)
8022      lt_prog_compiler_wl='-Wl,'
8023      # All OSF/1 code is PIC.
8024      lt_prog_compiler_static='-non_shared'
8025      ;;
8026
8027    solaris*)
8028      lt_prog_compiler_pic='-KPIC'
8029      lt_prog_compiler_static='-Bstatic'
8030      case $cc_basename in
8031      f77* | f90* | f95*)
8032        lt_prog_compiler_wl='-Qoption ld ';;
8033      *)
8034        lt_prog_compiler_wl='-Wl,';;
8035      esac
8036      ;;
8037
8038    sunos4*)
8039      lt_prog_compiler_wl='-Qoption ld '
8040      lt_prog_compiler_pic='-PIC'
8041      lt_prog_compiler_static='-Bstatic'
8042      ;;
8043
8044    sysv4 | sysv4.2uw2* | sysv4.3*)
8045      lt_prog_compiler_wl='-Wl,'
8046      lt_prog_compiler_pic='-KPIC'
8047      lt_prog_compiler_static='-Bstatic'
8048      ;;
8049
8050    sysv4*MP*)
8051      if test -d /usr/nec ;then
8052        lt_prog_compiler_pic='-Kconform_pic'
8053        lt_prog_compiler_static='-Bstatic'
8054      fi
8055      ;;
8056
8057    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8058      lt_prog_compiler_wl='-Wl,'
8059      lt_prog_compiler_pic='-KPIC'
8060      lt_prog_compiler_static='-Bstatic'
8061      ;;
8062
8063    unicos*)
8064      lt_prog_compiler_wl='-Wl,'
8065      lt_prog_compiler_can_build_shared=no
8066      ;;
8067
8068    uts4*)
8069      lt_prog_compiler_pic='-pic'
8070      lt_prog_compiler_static='-Bstatic'
8071      ;;
8072
8073    *)
8074      lt_prog_compiler_can_build_shared=no
8075      ;;
8076    esac
8077  fi
8078
8079echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8080echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8081
8082#
8083# Check to make sure the PIC flag actually works.
8084#
8085if test -n "$lt_prog_compiler_pic"; then
8086
8087echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8088echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8089if test "${lt_prog_compiler_pic_works+set}" = set; then
8090  echo $ECHO_N "(cached) $ECHO_C" >&6
8091else
8092  lt_prog_compiler_pic_works=no
8093  ac_outfile=conftest.$ac_objext
8094   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8095   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8096   # Insert the option either (1) after the last *FLAGS variable, or
8097   # (2) before a word containing "conftest.", or (3) at the end.
8098   # Note that $ac_compile itself does not contain backslashes and begins
8099   # with a dollar sign (not a hyphen), so the echo should work correctly.
8100   # The option is referenced via a variable to avoid confusing sed.
8101   lt_compile=`echo "$ac_compile" | $SED \
8102   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8103   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8104   -e 's:$: $lt_compiler_flag:'`
8105   (eval echo "\"\$as_me:8105: $lt_compile\"" >&5)
8106   (eval "$lt_compile" 2>conftest.err)
8107   ac_status=$?
8108   cat conftest.err >&5
8109   echo "$as_me:8109: \$? = $ac_status" >&5
8110   if (exit $ac_status) && test -s "$ac_outfile"; then
8111     # The compiler can only warn and ignore the option if not recognized
8112     # So say no if there are warnings other than the usual output.
8113     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8114     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8115     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8116       lt_prog_compiler_pic_works=yes
8117     fi
8118   fi
8119   $rm conftest*
8120
8121fi
8122echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8123echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8124
8125if test x"$lt_prog_compiler_pic_works" = xyes; then
8126    case $lt_prog_compiler_pic in
8127     "" | " "*) ;;
8128     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8129     esac
8130else
8131    lt_prog_compiler_pic=
8132     lt_prog_compiler_can_build_shared=no
8133fi
8134
8135fi
8136case $host_os in
8137  # For platforms which do not support PIC, -DPIC is meaningless:
8138  *djgpp*)
8139    lt_prog_compiler_pic=
8140    ;;
8141  *)
8142    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8143    ;;
8144esac
8145
8146#
8147# Check to make sure the static flag actually works.
8148#
8149wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8150echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8151echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8152if test "${lt_prog_compiler_static_works+set}" = set; then
8153  echo $ECHO_N "(cached) $ECHO_C" >&6
8154else
8155  lt_prog_compiler_static_works=no
8156   save_LDFLAGS="$LDFLAGS"
8157   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8158   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8159   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8160     # The linker can only warn and ignore the option if not recognized
8161     # So say no if there are warnings
8162     if test -s conftest.err; then
8163       # Append any errors to the config.log.
8164       cat conftest.err 1>&5
8165       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8166       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8167       if diff conftest.exp conftest.er2 >/dev/null; then
8168         lt_prog_compiler_static_works=yes
8169       fi
8170     else
8171       lt_prog_compiler_static_works=yes
8172     fi
8173   fi
8174   $rm conftest*
8175   LDFLAGS="$save_LDFLAGS"
8176
8177fi
8178echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8179echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8180
8181if test x"$lt_prog_compiler_static_works" = xyes; then
8182    :
8183else
8184    lt_prog_compiler_static=
8185fi
8186
8187
8188echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8189echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8190if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8191  echo $ECHO_N "(cached) $ECHO_C" >&6
8192else
8193  lt_cv_prog_compiler_c_o=no
8194   $rm -r conftest 2>/dev/null
8195   mkdir conftest
8196   cd conftest
8197   mkdir out
8198   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8199
8200   lt_compiler_flag="-o out/conftest2.$ac_objext"
8201   # Insert the option either (1) after the last *FLAGS variable, or
8202   # (2) before a word containing "conftest.", or (3) at the end.
8203   # Note that $ac_compile itself does not contain backslashes and begins
8204   # with a dollar sign (not a hyphen), so the echo should work correctly.
8205   lt_compile=`echo "$ac_compile" | $SED \
8206   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8207   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8208   -e 's:$: $lt_compiler_flag:'`
8209   (eval echo "\"\$as_me:8209: $lt_compile\"" >&5)
8210   (eval "$lt_compile" 2>out/conftest.err)
8211   ac_status=$?
8212   cat out/conftest.err >&5
8213   echo "$as_me:8213: \$? = $ac_status" >&5
8214   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8215   then
8216     # The compiler can only warn and ignore the option if not recognized
8217     # So say no if there are warnings
8218     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8219     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8220     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8221       lt_cv_prog_compiler_c_o=yes
8222     fi
8223   fi
8224   chmod u+w . 2>&5
8225   $rm conftest*
8226   # SGI C++ compiler will create directory out/ii_files/ for
8227   # template instantiation
8228   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8229   $rm out/* && rmdir out
8230   cd ..
8231   rmdir conftest
8232   $rm conftest*
8233
8234fi
8235echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8236echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8237
8238
8239hard_links="nottested"
8240if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8241  # do not overwrite the value of need_locks provided by the user
8242  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8243echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8244  hard_links=yes
8245  $rm conftest*
8246  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8247  touch conftest.a
8248  ln conftest.a conftest.b 2>&5 || hard_links=no
8249  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8250  echo "$as_me:$LINENO: result: $hard_links" >&5
8251echo "${ECHO_T}$hard_links" >&6
8252  if test "$hard_links" = no; then
8253    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8254echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8255    need_locks=warn
8256  fi
8257else
8258  need_locks=no
8259fi
8260
8261echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8262echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8263
8264  runpath_var=
8265  allow_undefined_flag=
8266  enable_shared_with_static_runtimes=no
8267  archive_cmds=
8268  archive_expsym_cmds=
8269  old_archive_From_new_cmds=
8270  old_archive_from_expsyms_cmds=
8271  export_dynamic_flag_spec=
8272  whole_archive_flag_spec=
8273  thread_safe_flag_spec=
8274  hardcode_libdir_flag_spec=
8275  hardcode_libdir_flag_spec_ld=
8276  hardcode_libdir_separator=
8277  hardcode_direct=no
8278  hardcode_minus_L=no
8279  hardcode_shlibpath_var=unsupported
8280  link_all_deplibs=unknown
8281  hardcode_automatic=no
8282  module_cmds=
8283  module_expsym_cmds=
8284  always_export_symbols=no
8285  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8286  # include_expsyms should be a list of space-separated symbols to be *always*
8287  # included in the symbol list
8288  include_expsyms=
8289  # exclude_expsyms can be an extended regexp of symbols to exclude
8290  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8291  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8292  # as well as any symbol that contains `d'.
8293  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8294  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8295  # platforms (ab)use it in PIC code, but their linkers get confused if
8296  # the symbol is explicitly referenced.  Since portable code cannot
8297  # rely on this symbol name, it's probably fine to never include it in
8298  # preloaded symbol tables.
8299  extract_expsyms_cmds=
8300  # Just being paranoid about ensuring that cc_basename is set.
8301  for cc_temp in $compiler""; do
8302  case $cc_temp in
8303    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8304    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8305    \-*) ;;
8306    *) break;;
8307  esac
8308done
8309cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8310
8311  case $host_os in
8312  cygwin* | mingw* | pw32*)
8313    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8314    # When not using gcc, we currently assume that we are using
8315    # Microsoft Visual C++.
8316    if test "$GCC" != yes; then
8317      with_gnu_ld=no
8318    fi
8319    ;;
8320  interix*)
8321    # we just hope/assume this is gcc and not c89 (= MSVC++)
8322    with_gnu_ld=yes
8323    ;;
8324  openbsd*)
8325    with_gnu_ld=no
8326    ;;
8327  esac
8328
8329  ld_shlibs=yes
8330  if test "$with_gnu_ld" = yes; then
8331    # If archive_cmds runs LD, not CC, wlarc should be empty
8332    wlarc='${wl}'
8333
8334    # Set some defaults for GNU ld with shared library support. These
8335    # are reset later if shared libraries are not supported. Putting them
8336    # here allows them to be overridden if necessary.
8337    runpath_var=LD_RUN_PATH
8338    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8339    export_dynamic_flag_spec='${wl}--export-dynamic'
8340    # ancient GNU ld didn't support --whole-archive et. al.
8341    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8342        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8343      else
8344        whole_archive_flag_spec=
8345    fi
8346    supports_anon_versioning=no
8347    case `$LD -v 2>/dev/null` in
8348      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8349      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8350      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8351      *\ 2.11.*) ;; # other 2.11 versions
8352      *) supports_anon_versioning=yes ;;
8353    esac
8354
8355    # See if GNU ld supports shared libraries.
8356    case $host_os in
8357    aix3* | aix4* | aix5*)
8358      # On AIX/PPC, the GNU linker is very broken
8359      if test "$host_cpu" != ia64; then
8360        ld_shlibs=no
8361        cat <<EOF 1>&2
8362
8363*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8364*** to be unable to reliably create shared libraries on AIX.
8365*** Therefore, libtool is disabling shared libraries support.  If you
8366*** really care for shared libraries, you may want to modify your PATH
8367*** so that a non-GNU linker is found, and then restart.
8368
8369EOF
8370      fi
8371      ;;
8372
8373    amigaos*)
8374      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)'
8375      hardcode_libdir_flag_spec='-L$libdir'
8376      hardcode_minus_L=yes
8377
8378      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8379      # that the semantics of dynamic libraries on AmigaOS, at least up
8380      # to version 4, is to share data among multiple programs linked
8381      # with the same dynamic library.  Since this doesn't match the
8382      # behavior of shared libraries on other platforms, we can't use
8383      # them.
8384      ld_shlibs=no
8385      ;;
8386
8387    beos*)
8388      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8389        allow_undefined_flag=unsupported
8390        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8391        # support --undefined.  This deserves some investigation.  FIXME
8392        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8393      else
8394        ld_shlibs=no
8395      fi
8396      ;;
8397
8398    cygwin* | mingw* | pw32*)
8399      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8400      # as there is no search path for DLLs.
8401      hardcode_libdir_flag_spec='-L$libdir'
8402      allow_undefined_flag=unsupported
8403      always_export_symbols=no
8404      enable_shared_with_static_runtimes=yes
8405      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8406
8407      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8408        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8409        # If the export-symbols file already is a .def file (1st line
8410        # is EXPORTS), use it as is; otherwise, prepend...
8411        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8412          cp $export_symbols $output_objdir/$soname.def;
8413        else
8414          echo EXPORTS > $output_objdir/$soname.def;
8415          cat $export_symbols >> $output_objdir/$soname.def;
8416        fi~
8417        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8418      else
8419        ld_shlibs=no
8420      fi
8421      ;;
8422
8423    interix3*)
8424      hardcode_direct=no
8425      hardcode_shlibpath_var=no
8426      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8427      export_dynamic_flag_spec='${wl}-E'
8428      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8429      # Instead, shared libraries are loaded at an image base (0x10000000 by
8430      # default) and relocated if they conflict, which is a slow very memory
8431      # consuming and fragmenting process.  To avoid this, we pick a random,
8432      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8433      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8434      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8435      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'
8436      ;;
8437
8438    linux*)
8439      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8440        tmp_addflag=
8441        case $cc_basename,$host_cpu in
8442        pgcc*)                          # Portland Group C compiler
8443          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'
8444          tmp_addflag=' $pic_flag'
8445          ;;
8446        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8447          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'
8448          tmp_addflag=' $pic_flag -Mnomain' ;;
8449        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8450          tmp_addflag=' -i_dynamic' ;;
8451        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8452          tmp_addflag=' -i_dynamic -nofor_main' ;;
8453        ifc* | ifort*)                  # Intel Fortran compiler
8454          tmp_addflag=' -nofor_main' ;;
8455        esac
8456        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8457
8458        if test $supports_anon_versioning = yes; then
8459          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8460  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8461  $echo "local: *; };" >> $output_objdir/$libname.ver~
8462          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8463        fi
8464      else
8465        ld_shlibs=no
8466      fi
8467      ;;
8468
8469    netbsd*)
8470      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8471        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8472        wlarc=
8473      else
8474        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8475        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8476      fi
8477      ;;
8478
8479    solaris*)
8480      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8481        ld_shlibs=no
8482        cat <<EOF 1>&2
8483
8484*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8485*** create shared libraries on Solaris systems.  Therefore, libtool
8486*** is disabling shared libraries support.  We urge you to upgrade GNU
8487*** binutils to release 2.9.1 or newer.  Another option is to modify
8488*** your PATH or compiler configuration so that the native linker is
8489*** used, and then restart.
8490
8491EOF
8492      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8493        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8494        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8495      else
8496        ld_shlibs=no
8497      fi
8498      ;;
8499
8500    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8501      case `$LD -v 2>&1` in
8502        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8503        ld_shlibs=no
8504        cat <<_LT_EOF 1>&2
8505
8506*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8507*** reliably create shared libraries on SCO systems.  Therefore, libtool
8508*** is disabling shared libraries support.  We urge you to upgrade GNU
8509*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8510*** your PATH or compiler configuration so that the native linker is
8511*** used, and then restart.
8512
8513_LT_EOF
8514        ;;
8515        *)
8516          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8517            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8518            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8519            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8520          else
8521            ld_shlibs=no
8522          fi
8523        ;;
8524      esac
8525      ;;
8526
8527    sunos4*)
8528      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8529      wlarc=
8530      hardcode_direct=yes
8531      hardcode_shlibpath_var=no
8532      ;;
8533
8534    *)
8535      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8536        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8537        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8538      else
8539        ld_shlibs=no
8540      fi
8541      ;;
8542    esac
8543
8544    if test "$ld_shlibs" = no; then
8545      runpath_var=
8546      hardcode_libdir_flag_spec=
8547      export_dynamic_flag_spec=
8548      whole_archive_flag_spec=
8549    fi
8550  else
8551    # PORTME fill in a description of your system's linker (not GNU ld)
8552    case $host_os in
8553    aix3*)
8554      allow_undefined_flag=unsupported
8555      always_export_symbols=yes
8556      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'
8557      # Note: this linker hardcodes the directories in LIBPATH if there
8558      # are no directories specified by -L.
8559      hardcode_minus_L=yes
8560      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8561        # Neither direct hardcoding nor static linking is supported with a
8562        # broken collect2.
8563        hardcode_direct=unsupported
8564      fi
8565      ;;
8566
8567    aix4* | aix5*)
8568      if test "$host_cpu" = ia64; then
8569        # On IA64, the linker does run time linking by default, so we don't
8570        # have to do anything special.
8571        aix_use_runtimelinking=no
8572        exp_sym_flag='-Bexport'
8573        no_entry_flag=""
8574      else
8575        # If we're using GNU nm, then we don't want the "-C" option.
8576        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8577        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8578          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'
8579        else
8580          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'
8581        fi
8582        aix_use_runtimelinking=no
8583
8584        # Test if we are trying to use run time linking or normal
8585        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8586        # need to do runtime linking.
8587        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8588          for ld_flag in $LDFLAGS; do
8589          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8590            aix_use_runtimelinking=yes
8591            break
8592          fi
8593          done
8594          ;;
8595        esac
8596
8597        exp_sym_flag='-bexport'
8598        no_entry_flag='-bnoentry'
8599      fi
8600
8601      # When large executables or shared objects are built, AIX ld can
8602      # have problems creating the table of contents.  If linking a library
8603      # or program results in "error TOC overflow" add -mminimal-toc to
8604      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8605      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8606
8607      archive_cmds=''
8608      hardcode_direct=yes
8609      hardcode_libdir_separator=':'
8610      link_all_deplibs=yes
8611
8612      if test "$GCC" = yes; then
8613        case $host_os in aix4.[012]|aix4.[012].*)
8614        # We only want to do this on AIX 4.2 and lower, the check
8615        # below for broken collect2 doesn't work under 4.3+
8616          collect2name=`${CC} -print-prog-name=collect2`
8617          if test -f "$collect2name" && \
8618           strings "$collect2name" | grep resolve_lib_name >/dev/null
8619          then
8620          # We have reworked collect2
8621          hardcode_direct=yes
8622          else
8623          # We have old collect2
8624          hardcode_direct=unsupported
8625          # It fails to find uninstalled libraries when the uninstalled
8626          # path is not listed in the libpath.  Setting hardcode_minus_L
8627          # to unsupported forces relinking
8628          hardcode_minus_L=yes
8629          hardcode_libdir_flag_spec='-L$libdir'
8630          hardcode_libdir_separator=
8631          fi
8632          ;;
8633        esac
8634        shared_flag='-shared'
8635        if test "$aix_use_runtimelinking" = yes; then
8636          shared_flag="$shared_flag "'${wl}-G'
8637        fi
8638      else
8639        # not using gcc
8640        if test "$host_cpu" = ia64; then
8641        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8642        # chokes on -Wl,-G. The following line is correct:
8643          shared_flag='-G'
8644        else
8645          if test "$aix_use_runtimelinking" = yes; then
8646            shared_flag='${wl}-G'
8647          else
8648            shared_flag='${wl}-bM:SRE'
8649          fi
8650        fi
8651      fi
8652
8653      # It seems that -bexpall does not export symbols beginning with
8654      # underscore (_), so it is better to generate a list of symbols to export.
8655      always_export_symbols=yes
8656      if test "$aix_use_runtimelinking" = yes; then
8657        # Warning - without using the other runtime loading flags (-brtl),
8658        # -berok will link without error, but may produce a broken library.
8659        allow_undefined_flag='-berok'
8660       # Determine the default libpath from the value encoded in an empty executable.
8661       cat >conftest.$ac_ext <<_ACEOF
8662/* confdefs.h.  */
8663_ACEOF
8664cat confdefs.h >>conftest.$ac_ext
8665cat >>conftest.$ac_ext <<_ACEOF
8666/* end confdefs.h.  */
8667
8668int
8669main ()
8670{
8671
8672  ;
8673  return 0;
8674}
8675_ACEOF
8676rm -f conftest.$ac_objext conftest$ac_exeext
8677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678  (eval $ac_link) 2>conftest.er1
8679  ac_status=$?
8680  grep -v '^ *+' conftest.er1 >conftest.err
8681  rm -f conftest.er1
8682  cat conftest.err >&5
8683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684  (exit $ac_status); } &&
8685         { ac_try='test -z "$ac_c_werror_flag"
8686                         || test ! -s conftest.err'
8687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688  (eval $ac_try) 2>&5
8689  ac_status=$?
8690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691  (exit $ac_status); }; } &&
8692         { ac_try='test -s conftest$ac_exeext'
8693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694  (eval $ac_try) 2>&5
8695  ac_status=$?
8696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697  (exit $ac_status); }; }; then
8698
8699aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8700}'`
8701# Check for a 64-bit object if we didn't find anything.
8702if 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; }
8703}'`; fi
8704else
8705  echo "$as_me: failed program was:" >&5
8706sed 's/^/| /' conftest.$ac_ext >&5
8707
8708fi
8709rm -f conftest.err conftest.$ac_objext \
8710      conftest$ac_exeext conftest.$ac_ext
8711if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8712
8713       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8714        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"
8715       else
8716        if test "$host_cpu" = ia64; then
8717          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8718          allow_undefined_flag="-z nodefs"
8719          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"
8720        else
8721         # Determine the default libpath from the value encoded in an empty executable.
8722         cat >conftest.$ac_ext <<_ACEOF
8723/* confdefs.h.  */
8724_ACEOF
8725cat confdefs.h >>conftest.$ac_ext
8726cat >>conftest.$ac_ext <<_ACEOF
8727/* end confdefs.h.  */
8728
8729int
8730main ()
8731{
8732
8733  ;
8734  return 0;
8735}
8736_ACEOF
8737rm -f conftest.$ac_objext conftest$ac_exeext
8738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8739  (eval $ac_link) 2>conftest.er1
8740  ac_status=$?
8741  grep -v '^ *+' conftest.er1 >conftest.err
8742  rm -f conftest.er1
8743  cat conftest.err >&5
8744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745  (exit $ac_status); } &&
8746         { ac_try='test -z "$ac_c_werror_flag"
8747                         || test ! -s conftest.err'
8748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749  (eval $ac_try) 2>&5
8750  ac_status=$?
8751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752  (exit $ac_status); }; } &&
8753         { ac_try='test -s conftest$ac_exeext'
8754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755  (eval $ac_try) 2>&5
8756  ac_status=$?
8757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758  (exit $ac_status); }; }; then
8759
8760aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8761}'`
8762# Check for a 64-bit object if we didn't find anything.
8763if 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; }
8764}'`; fi
8765else
8766  echo "$as_me: failed program was:" >&5
8767sed 's/^/| /' conftest.$ac_ext >&5
8768
8769fi
8770rm -f conftest.err conftest.$ac_objext \
8771      conftest$ac_exeext conftest.$ac_ext
8772if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8773
8774         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8775          # Warning - without using the other run time loading flags,
8776          # -berok will link without error, but may produce a broken library.
8777          no_undefined_flag=' ${wl}-bernotok'
8778          allow_undefined_flag=' ${wl}-berok'
8779          # Exported symbols can be pulled into shared objects from archives
8780          whole_archive_flag_spec='$convenience'
8781          archive_cmds_need_lc=yes
8782          # This is similar to how AIX traditionally builds its shared libraries.
8783          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'
8784        fi
8785      fi
8786      ;;
8787
8788    amigaos*)
8789      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)'
8790      hardcode_libdir_flag_spec='-L$libdir'
8791      hardcode_minus_L=yes
8792      # see comment about different semantics on the GNU ld section
8793      ld_shlibs=no
8794      ;;
8795
8796    bsdi[45]*)
8797      export_dynamic_flag_spec=-rdynamic
8798      ;;
8799
8800    cygwin* | mingw* | pw32*)
8801      # When not using gcc, we currently assume that we are using
8802      # Microsoft Visual C++.
8803      # hardcode_libdir_flag_spec is actually meaningless, as there is
8804      # no search path for DLLs.
8805      hardcode_libdir_flag_spec=' '
8806      allow_undefined_flag=unsupported
8807      # Tell ltmain to make .lib files, not .a files.
8808      libext=lib
8809      # Tell ltmain to make .dll files, not .so files.
8810      shrext_cmds=".dll"
8811      # FIXME: Setting linknames here is a bad hack.
8812      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8813      # The linker will automatically build a .lib file if we build a DLL.
8814      old_archive_From_new_cmds='true'
8815      # FIXME: Should let the user specify the lib program.
8816      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8817      fix_srcfile_path='`cygpath -w "$srcfile"`'
8818      enable_shared_with_static_runtimes=yes
8819      ;;
8820
8821    darwin* | rhapsody*)
8822      case $host_os in
8823        rhapsody* | darwin1.[012])
8824         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8825         ;;
8826       *) # Darwin 1.3 on
8827         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8828           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8829         else
8830           case ${MACOSX_DEPLOYMENT_TARGET} in
8831             10.[012])
8832               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8833               ;;
8834             10.*)
8835               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8836               ;;
8837           esac
8838         fi
8839         ;;
8840      esac
8841      archive_cmds_need_lc=no
8842      hardcode_direct=no
8843      hardcode_automatic=yes
8844      hardcode_shlibpath_var=unsupported
8845      whole_archive_flag_spec=''
8846      link_all_deplibs=yes
8847    if test "$GCC" = yes ; then
8848        output_verbose_link_cmd='echo'
8849        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8850      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8851      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8852      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}'
8853      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}'
8854    else
8855      case $cc_basename in
8856        xlc*)
8857         output_verbose_link_cmd='echo'
8858         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8859         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8860          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8861         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}'
8862          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}'
8863          ;;
8864       *)
8865         ld_shlibs=no
8866          ;;
8867      esac
8868    fi
8869      ;;
8870
8871    dgux*)
8872      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873      hardcode_libdir_flag_spec='-L$libdir'
8874      hardcode_shlibpath_var=no
8875      ;;
8876
8877    freebsd1*)
8878      ld_shlibs=no
8879      ;;
8880
8881    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8882    # support.  Future versions do this automatically, but an explicit c++rt0.o
8883    # does not break anything, and helps significantly (at the cost of a little
8884    # extra space).
8885    freebsd2.2*)
8886      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8887      hardcode_libdir_flag_spec='-R$libdir'
8888      hardcode_direct=yes
8889      hardcode_shlibpath_var=no
8890      ;;
8891
8892    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8893    freebsd2*)
8894      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8895      hardcode_direct=yes
8896      hardcode_minus_L=yes
8897      hardcode_shlibpath_var=no
8898      ;;
8899
8900    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8901    freebsd* | kfreebsd*-gnu | dragonfly*)
8902      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8903      hardcode_libdir_flag_spec='-R$libdir'
8904      hardcode_direct=yes
8905      hardcode_shlibpath_var=no
8906      ;;
8907
8908    hpux9*)
8909      if test "$GCC" = yes; then
8910        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'
8911      else
8912        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'
8913      fi
8914      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8915      hardcode_libdir_separator=:
8916      hardcode_direct=yes
8917
8918      # hardcode_minus_L: Not really in the search PATH,
8919      # but as the default location of the library.
8920      hardcode_minus_L=yes
8921      export_dynamic_flag_spec='${wl}-E'
8922      ;;
8923
8924    hpux10*)
8925      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8926        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8927      else
8928        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8929      fi
8930      if test "$with_gnu_ld" = no; then
8931        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8932        hardcode_libdir_separator=:
8933
8934        hardcode_direct=yes
8935        export_dynamic_flag_spec='${wl}-E'
8936
8937        # hardcode_minus_L: Not really in the search PATH,
8938        # but as the default location of the library.
8939        hardcode_minus_L=yes
8940      fi
8941      ;;
8942
8943    hpux11*)
8944      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8945        case $host_cpu in
8946        hppa*64*)
8947          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8948          ;;
8949        ia64*)
8950          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8951          ;;
8952        *)
8953          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8954          ;;
8955        esac
8956      else
8957        case $host_cpu in
8958        hppa*64*)
8959          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8960          ;;
8961        ia64*)
8962          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8963          ;;
8964        *)
8965          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8966          ;;
8967        esac
8968      fi
8969      if test "$with_gnu_ld" = no; then
8970        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8971        hardcode_libdir_separator=:
8972
8973        case $host_cpu in
8974        hppa*64*|ia64*)
8975          hardcode_libdir_flag_spec_ld='+b $libdir'
8976          hardcode_direct=no
8977          hardcode_shlibpath_var=no
8978          ;;
8979        *)
8980          hardcode_direct=yes
8981          export_dynamic_flag_spec='${wl}-E'
8982
8983          # hardcode_minus_L: Not really in the search PATH,
8984          # but as the default location of the library.
8985          hardcode_minus_L=yes
8986          ;;
8987        esac
8988      fi
8989      ;;
8990
8991    irix5* | irix6* | nonstopux*)
8992      if test "$GCC" = yes; then
8993        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'
8994      else
8995        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'
8996        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8997      fi
8998      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8999      hardcode_libdir_separator=:
9000      link_all_deplibs=yes
9001      ;;
9002
9003    netbsd*)
9004      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9005        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9006      else
9007        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9008      fi
9009      hardcode_libdir_flag_spec='-R$libdir'
9010      hardcode_direct=yes
9011      hardcode_shlibpath_var=no
9012      ;;
9013
9014    newsos6)
9015      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9016      hardcode_direct=yes
9017      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9018      hardcode_libdir_separator=:
9019      hardcode_shlibpath_var=no
9020      ;;
9021
9022    openbsd*)
9023      hardcode_direct=yes
9024      hardcode_shlibpath_var=no
9025      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9026        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9027        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9028        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9029        export_dynamic_flag_spec='${wl}-E'
9030      else
9031       case $host_os in
9032         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9033           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9034           hardcode_libdir_flag_spec='-R$libdir'
9035           ;;
9036         *)
9037           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9038           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9039           ;;
9040       esac
9041      fi
9042      ;;
9043
9044    os2*)
9045      hardcode_libdir_flag_spec='-L$libdir'
9046      hardcode_minus_L=yes
9047      allow_undefined_flag=unsupported
9048      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'
9049      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9050      ;;
9051
9052    osf3*)
9053      if test "$GCC" = yes; then
9054        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9055        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'
9056      else
9057        allow_undefined_flag=' -expect_unresolved \*'
9058        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'
9059      fi
9060      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9061      hardcode_libdir_separator=:
9062      ;;
9063
9064    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9065      if test "$GCC" = yes; then
9066        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9067        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'
9068        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9069      else
9070        allow_undefined_flag=' -expect_unresolved \*'
9071        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'
9072        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9073        $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'
9074
9075        # Both c and cxx compiler support -rpath directly
9076        hardcode_libdir_flag_spec='-rpath $libdir'
9077      fi
9078      hardcode_libdir_separator=:
9079      ;;
9080
9081    solaris*)
9082      no_undefined_flag=' -z text'
9083      if test "$GCC" = yes; then
9084        wlarc='${wl}'
9085        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9086        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9087          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9088      else
9089        wlarc=''
9090        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9091        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9092        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9093      fi
9094      hardcode_libdir_flag_spec='-R$libdir'
9095      hardcode_shlibpath_var=no
9096      case $host_os in
9097      solaris2.[0-5] | solaris2.[0-5].*) ;;
9098      *)
9099        # The compiler driver will combine linker options so we
9100        # cannot just pass the convience library names through
9101        # without $wl, iff we do not link with $LD.
9102        # Luckily, gcc supports the same syntax we need for Sun Studio.
9103        # Supported since Solaris 2.6 (maybe 2.5.1?)
9104        case $wlarc in
9105        '')
9106          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9107        *)
9108          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' ;;
9109        esac ;;
9110      esac
9111      link_all_deplibs=yes
9112      ;;
9113
9114    sunos4*)
9115      if test "x$host_vendor" = xsequent; then
9116        # Use $CC to link under sequent, because it throws in some extra .o
9117        # files that make .init and .fini sections work.
9118        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9119      else
9120        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9121      fi
9122      hardcode_libdir_flag_spec='-L$libdir'
9123      hardcode_direct=yes
9124      hardcode_minus_L=yes
9125      hardcode_shlibpath_var=no
9126      ;;
9127
9128    sysv4)
9129      case $host_vendor in
9130        sni)
9131          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9132          hardcode_direct=yes # is this really true???
9133        ;;
9134        siemens)
9135          ## LD is ld it makes a PLAMLIB
9136          ## CC just makes a GrossModule.
9137          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9138          reload_cmds='$CC -r -o $output$reload_objs'
9139          hardcode_direct=no
9140        ;;
9141        motorola)
9142          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9143          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9144        ;;
9145      esac
9146      runpath_var='LD_RUN_PATH'
9147      hardcode_shlibpath_var=no
9148      ;;
9149
9150    sysv4.3*)
9151      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9152      hardcode_shlibpath_var=no
9153      export_dynamic_flag_spec='-Bexport'
9154      ;;
9155
9156    sysv4*MP*)
9157      if test -d /usr/nec; then
9158        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9159        hardcode_shlibpath_var=no
9160        runpath_var=LD_RUN_PATH
9161        hardcode_runpath_var=yes
9162        ld_shlibs=yes
9163      fi
9164      ;;
9165
9166    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9167      no_undefined_flag='${wl}-z,text'
9168      archive_cmds_need_lc=no
9169      hardcode_shlibpath_var=no
9170      runpath_var='LD_RUN_PATH'
9171
9172      if test "$GCC" = yes; then
9173        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9174        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9175      else
9176        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9177        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9178      fi
9179      ;;
9180
9181    sysv5* | sco3.2v5* | sco5v6*)
9182      # Note: We can NOT use -z defs as we might desire, because we do not
9183      # link with -lc, and that would cause any symbols used from libc to
9184      # always be unresolved, which means just about no library would
9185      # ever link correctly.  If we're not using GNU ld we use -z text
9186      # though, which does catch some bad symbols but isn't as heavy-handed
9187      # as -z defs.
9188      no_undefined_flag='${wl}-z,text'
9189      allow_undefined_flag='${wl}-z,nodefs'
9190      archive_cmds_need_lc=no
9191      hardcode_shlibpath_var=no
9192      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9193      hardcode_libdir_separator=':'
9194      link_all_deplibs=yes
9195      export_dynamic_flag_spec='${wl}-Bexport'
9196      runpath_var='LD_RUN_PATH'
9197
9198      if test "$GCC" = yes; then
9199        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9200        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9201      else
9202        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9203        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9204      fi
9205      ;;
9206
9207    uts4*)
9208      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9209      hardcode_libdir_flag_spec='-L$libdir'
9210      hardcode_shlibpath_var=no
9211      ;;
9212
9213    *)
9214      ld_shlibs=no
9215      ;;
9216    esac
9217  fi
9218
9219echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9220echo "${ECHO_T}$ld_shlibs" >&6
9221test "$ld_shlibs" = no && can_build_shared=no
9222
9223#
9224# Do we need to explicitly link libc?
9225#
9226case "x$archive_cmds_need_lc" in
9227x|xyes)
9228  # Assume -lc should be added
9229  archive_cmds_need_lc=yes
9230
9231  if test "$enable_shared" = yes && test "$GCC" = yes; then
9232    case $archive_cmds in
9233    *'~'*)
9234      # FIXME: we may have to deal with multi-command sequences.
9235      ;;
9236    '$CC '*)
9237      # Test whether the compiler implicitly links with -lc since on some
9238      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9239      # to ld, don't add -lc before -lgcc.
9240      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9241echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9242      $rm conftest*
9243      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9244
9245      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9246  (eval $ac_compile) 2>&5
9247  ac_status=$?
9248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249  (exit $ac_status); } 2>conftest.err; then
9250        soname=conftest
9251        lib=conftest
9252        libobjs=conftest.$ac_objext
9253        deplibs=
9254        wl=$lt_prog_compiler_wl
9255        pic_flag=$lt_prog_compiler_pic
9256        compiler_flags=-v
9257        linker_flags=-v
9258        verstring=
9259        output_objdir=.
9260        libname=conftest
9261        lt_save_allow_undefined_flag=$allow_undefined_flag
9262        allow_undefined_flag=
9263        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9264  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9265  ac_status=$?
9266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267  (exit $ac_status); }
9268        then
9269          archive_cmds_need_lc=no
9270        else
9271          archive_cmds_need_lc=yes
9272        fi
9273        allow_undefined_flag=$lt_save_allow_undefined_flag
9274      else
9275        cat conftest.err 1>&5
9276      fi
9277      $rm conftest*
9278      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9279echo "${ECHO_T}$archive_cmds_need_lc" >&6
9280      ;;
9281    esac
9282  fi
9283  ;;
9284esac
9285
9286echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9287echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9288library_names_spec=
9289libname_spec='lib$name'
9290soname_spec=
9291shrext_cmds=".so"
9292postinstall_cmds=
9293postuninstall_cmds=
9294finish_cmds=
9295finish_eval=
9296shlibpath_var=
9297shlibpath_overrides_runpath=unknown
9298version_type=none
9299dynamic_linker="$host_os ld.so"
9300sys_lib_dlsearch_path_spec="/lib /usr/lib"
9301if test "$GCC" = yes; then
9302  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9303  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9304    # if the path contains ";" then we assume it to be the separator
9305    # otherwise default to the standard path separator (i.e. ":") - it is
9306    # assumed that no part of a normal pathname contains ";" but that should
9307    # okay in the real world where ";" in dirpaths is itself problematic.
9308    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9309  else
9310    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9311  fi
9312else
9313  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9314fi
9315need_lib_prefix=unknown
9316hardcode_into_libs=no
9317
9318# when you set need_version to no, make sure it does not cause -set_version
9319# flags to be left without arguments
9320need_version=unknown
9321
9322case $host_os in
9323aix3*)
9324  version_type=linux
9325  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9326  shlibpath_var=LIBPATH
9327
9328  # AIX 3 has no versioning support, so we append a major version to the name.
9329  soname_spec='${libname}${release}${shared_ext}$major'
9330  ;;
9331
9332aix4* | aix5*)
9333  version_type=linux
9334  need_lib_prefix=no
9335  need_version=no
9336  hardcode_into_libs=yes
9337  if test "$host_cpu" = ia64; then
9338    # AIX 5 supports IA64
9339    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9340    shlibpath_var=LD_LIBRARY_PATH
9341  else
9342    # With GCC up to 2.95.x, collect2 would create an import file
9343    # for dependence libraries.  The import file would start with
9344    # the line `#! .'.  This would cause the generated library to
9345    # depend on `.', always an invalid library.  This was fixed in
9346    # development snapshots of GCC prior to 3.0.
9347    case $host_os in
9348      aix4 | aix4.[01] | aix4.[01].*)
9349      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9350           echo ' yes '
9351           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9352        :
9353      else
9354        can_build_shared=no
9355      fi
9356      ;;
9357    esac
9358    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9359    # soname into executable. Probably we can add versioning support to
9360    # collect2, so additional links can be useful in future.
9361    if test "$aix_use_runtimelinking" = yes; then
9362      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9363      # instead of lib<name>.a to let people know that these are not
9364      # typical AIX shared libraries.
9365      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366    else
9367      # We preserve .a as extension for shared libraries through AIX4.2
9368      # and later when we are not doing run time linking.
9369      library_names_spec='${libname}${release}.a $libname.a'
9370      soname_spec='${libname}${release}${shared_ext}$major'
9371    fi
9372    shlibpath_var=LIBPATH
9373  fi
9374  ;;
9375
9376amigaos*)
9377  library_names_spec='$libname.ixlibrary $libname.a'
9378  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9379  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'
9380  ;;
9381
9382beos*)
9383  library_names_spec='${libname}${shared_ext}'
9384  dynamic_linker="$host_os ld.so"
9385  shlibpath_var=LIBRARY_PATH
9386  ;;
9387
9388bsdi[45]*)
9389  version_type=linux
9390  need_version=no
9391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9392  soname_spec='${libname}${release}${shared_ext}$major'
9393  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9394  shlibpath_var=LD_LIBRARY_PATH
9395  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9396  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9397  # the default ld.so.conf also contains /usr/contrib/lib and
9398  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9399  # libtool to hard-code these into programs
9400  ;;
9401
9402cygwin* | mingw* | pw32*)
9403  version_type=windows
9404  shrext_cmds=".dll"
9405  need_version=no
9406  need_lib_prefix=no
9407
9408  case $GCC,$host_os in
9409  yes,cygwin* | yes,mingw* | yes,pw32*)
9410    library_names_spec='$libname.dll.a'
9411    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9412    postinstall_cmds='base_file=`basename \${file}`~
9413      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9414      dldir=$destdir/`dirname \$dlpath`~
9415      test -d \$dldir || mkdir -p \$dldir~
9416      $install_prog $dir/$dlname \$dldir/$dlname~
9417      chmod a+x \$dldir/$dlname'
9418    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9419      dlpath=$dir/\$dldll~
9420       $rm \$dlpath'
9421    shlibpath_overrides_runpath=yes
9422
9423    case $host_os in
9424    cygwin*)
9425      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9426      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9427      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9428      ;;
9429    mingw*)
9430      # MinGW DLLs use traditional 'lib' prefix
9431      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9432      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9433      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9434        # It is most probably a Windows format PATH printed by
9435        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9436        # path with ; separators, and with drive letters. We can handle the
9437        # drive letters (cygwin fileutils understands them), so leave them,
9438        # especially as we might pass files found there to a mingw objdump,
9439        # which wouldn't understand a cygwinified path. Ahh.
9440        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9441      else
9442        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9443      fi
9444      ;;
9445    pw32*)
9446      # pw32 DLLs use 'pw' prefix rather than 'lib'
9447      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9448      ;;
9449    esac
9450    ;;
9451
9452  *)
9453    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9454    ;;
9455  esac
9456  dynamic_linker='Win32 ld.exe'
9457  # FIXME: first we should search . and the directory the executable is in
9458  shlibpath_var=PATH
9459  ;;
9460
9461darwin* | rhapsody*)
9462  dynamic_linker="$host_os dyld"
9463  version_type=darwin
9464  need_lib_prefix=no
9465  need_version=no
9466  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9467  soname_spec='${libname}${release}${major}$shared_ext'
9468  shlibpath_overrides_runpath=yes
9469  shlibpath_var=DYLD_LIBRARY_PATH
9470  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9471  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9472  if test "$GCC" = yes; then
9473    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"`
9474  else
9475    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9476  fi
9477  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9478  ;;
9479
9480dgux*)
9481  version_type=linux
9482  need_lib_prefix=no
9483  need_version=no
9484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9485  soname_spec='${libname}${release}${shared_ext}$major'
9486  shlibpath_var=LD_LIBRARY_PATH
9487  ;;
9488
9489freebsd1*)
9490  dynamic_linker=no
9491  ;;
9492
9493kfreebsd*-gnu)
9494  version_type=linux
9495  need_lib_prefix=no
9496  need_version=no
9497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9498  soname_spec='${libname}${release}${shared_ext}$major'
9499  shlibpath_var=LD_LIBRARY_PATH
9500  shlibpath_overrides_runpath=no
9501  hardcode_into_libs=yes
9502  dynamic_linker='GNU ld.so'
9503  ;;
9504
9505freebsd* | dragonfly*)
9506  # DragonFly does not have aout.  When/if they implement a new
9507  # versioning mechanism, adjust this.
9508  if test -x /usr/bin/objformat; then
9509    objformat=`/usr/bin/objformat`
9510  else
9511    case $host_os in
9512    freebsd[123]*) objformat=aout ;;
9513    *) objformat=elf ;;
9514    esac
9515  fi
9516  version_type=freebsd-$objformat
9517  case $version_type in
9518    freebsd-elf*)
9519      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9520      need_version=no
9521      need_lib_prefix=no
9522      ;;
9523    freebsd-*)
9524      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9525      need_version=yes
9526      ;;
9527  esac
9528  shlibpath_var=LD_LIBRARY_PATH
9529  case $host_os in
9530  freebsd2*)
9531    shlibpath_overrides_runpath=yes
9532    ;;
9533  freebsd3.[01]* | freebsdelf3.[01]*)
9534    shlibpath_overrides_runpath=yes
9535    hardcode_into_libs=yes
9536    ;;
9537  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9538  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9539    shlibpath_overrides_runpath=no
9540    hardcode_into_libs=yes
9541    ;;
9542  freebsd*) # from 4.6 on
9543    shlibpath_overrides_runpath=yes
9544    hardcode_into_libs=yes
9545    ;;
9546  esac
9547  ;;
9548
9549gnu*)
9550  version_type=linux
9551  need_lib_prefix=no
9552  need_version=no
9553  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9554  soname_spec='${libname}${release}${shared_ext}$major'
9555  shlibpath_var=LD_LIBRARY_PATH
9556  hardcode_into_libs=yes
9557  ;;
9558
9559hpux9* | hpux10* | hpux11*)
9560  # Give a soname corresponding to the major version so that dld.sl refuses to
9561  # link against other versions.
9562  version_type=sunos
9563  need_lib_prefix=no
9564  need_version=no
9565  case $host_cpu in
9566  ia64*)
9567    shrext_cmds='.so'
9568    hardcode_into_libs=yes
9569    dynamic_linker="$host_os dld.so"
9570    shlibpath_var=LD_LIBRARY_PATH
9571    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9572    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9573    soname_spec='${libname}${release}${shared_ext}$major'
9574    if test "X$HPUX_IA64_MODE" = X32; then
9575      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9576    else
9577      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9578    fi
9579    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9580    ;;
9581   hppa*64*)
9582     shrext_cmds='.sl'
9583     hardcode_into_libs=yes
9584     dynamic_linker="$host_os dld.sl"
9585     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9586     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9587     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9588     soname_spec='${libname}${release}${shared_ext}$major'
9589     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9590     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9591     ;;
9592   *)
9593    shrext_cmds='.sl'
9594    dynamic_linker="$host_os dld.sl"
9595    shlibpath_var=SHLIB_PATH
9596    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9597    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598    soname_spec='${libname}${release}${shared_ext}$major'
9599    ;;
9600  esac
9601  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9602  postinstall_cmds='chmod 555 $lib'
9603  ;;
9604
9605interix3*)
9606  version_type=linux
9607  need_lib_prefix=no
9608  need_version=no
9609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9610  soname_spec='${libname}${release}${shared_ext}$major'
9611  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9612  shlibpath_var=LD_LIBRARY_PATH
9613  shlibpath_overrides_runpath=no
9614  hardcode_into_libs=yes
9615  ;;
9616
9617irix5* | irix6* | nonstopux*)
9618  case $host_os in
9619    nonstopux*) version_type=nonstopux ;;
9620    *)
9621        if test "$lt_cv_prog_gnu_ld" = yes; then
9622                version_type=linux
9623        else
9624                version_type=irix
9625        fi ;;
9626  esac
9627  need_lib_prefix=no
9628  need_version=no
9629  soname_spec='${libname}${release}${shared_ext}$major'
9630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9631  case $host_os in
9632  irix5* | nonstopux*)
9633    libsuff= shlibsuff=
9634    ;;
9635  *)
9636    case $LD in # libtool.m4 will add one of these switches to LD
9637    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9638      libsuff= shlibsuff= libmagic=32-bit;;
9639    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9640      libsuff=32 shlibsuff=N32 libmagic=N32;;
9641    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9642      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9643    *) libsuff= shlibsuff= libmagic=never-match;;
9644    esac
9645    ;;
9646  esac
9647  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9648  shlibpath_overrides_runpath=no
9649  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9650  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9651  hardcode_into_libs=yes
9652  ;;
9653
9654# No shared lib support for Linux oldld, aout, or coff.
9655linux*oldld* | linux*aout* | linux*coff*)
9656  dynamic_linker=no
9657  ;;
9658
9659# This must be Linux ELF.
9660linux*)
9661  version_type=linux
9662  need_lib_prefix=no
9663  need_version=no
9664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9665  soname_spec='${libname}${release}${shared_ext}$major'
9666  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9667  shlibpath_var=LD_LIBRARY_PATH
9668  shlibpath_overrides_runpath=no
9669  # This implies no fast_install, which is unacceptable.
9670  # Some rework will be needed to allow for fast_install
9671  # before this can be enabled.
9672  hardcode_into_libs=yes
9673
9674  # Append ld.so.conf contents to the search path
9675  if test -f /etc/ld.so.conf; then
9676    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' ' '`
9677    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9678  fi
9679
9680  # We used to test for /lib/ld.so.1 and disable shared libraries on
9681  # powerpc, because MkLinux only supported shared libraries with the
9682  # GNU dynamic linker.  Since this was broken with cross compilers,
9683  # most powerpc-linux boxes support dynamic linking these days and
9684  # people can always --disable-shared, the test was removed, and we
9685  # assume the GNU/Linux dynamic linker is in use.
9686  dynamic_linker='GNU/Linux ld.so'
9687  ;;
9688
9689knetbsd*-gnu)
9690  version_type=linux
9691  need_lib_prefix=no
9692  need_version=no
9693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9694  soname_spec='${libname}${release}${shared_ext}$major'
9695  shlibpath_var=LD_LIBRARY_PATH
9696  shlibpath_overrides_runpath=no
9697  hardcode_into_libs=yes
9698  dynamic_linker='GNU ld.so'
9699  ;;
9700
9701netbsd*)
9702  version_type=sunos
9703  need_lib_prefix=no
9704  need_version=no
9705  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9706    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9707    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9708    dynamic_linker='NetBSD (a.out) ld.so'
9709  else
9710    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9711    soname_spec='${libname}${release}${shared_ext}$major'
9712    dynamic_linker='NetBSD ld.elf_so'
9713  fi
9714  shlibpath_var=LD_LIBRARY_PATH
9715  shlibpath_overrides_runpath=yes
9716  hardcode_into_libs=yes
9717  ;;
9718
9719newsos6)
9720  version_type=linux
9721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9722  shlibpath_var=LD_LIBRARY_PATH
9723  shlibpath_overrides_runpath=yes
9724  ;;
9725
9726nto-qnx*)
9727  version_type=linux
9728  need_lib_prefix=no
9729  need_version=no
9730  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9731  soname_spec='${libname}${release}${shared_ext}$major'
9732  shlibpath_var=LD_LIBRARY_PATH
9733  shlibpath_overrides_runpath=yes
9734  ;;
9735
9736openbsd*)
9737  version_type=sunos
9738  sys_lib_dlsearch_path_spec="/usr/lib"
9739  need_lib_prefix=no
9740  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9741  case $host_os in
9742    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9743    *)                         need_version=no  ;;
9744  esac
9745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9746  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9747  shlibpath_var=LD_LIBRARY_PATH
9748  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9749    case $host_os in
9750      openbsd2.[89] | openbsd2.[89].*)
9751        shlibpath_overrides_runpath=no
9752        ;;
9753      *)
9754        shlibpath_overrides_runpath=yes
9755        ;;
9756      esac
9757  else
9758    shlibpath_overrides_runpath=yes
9759  fi
9760  ;;
9761
9762os2*)
9763  libname_spec='$name'
9764  shrext_cmds=".dll"
9765  need_lib_prefix=no
9766  library_names_spec='$libname${shared_ext} $libname.a'
9767  dynamic_linker='OS/2 ld.exe'
9768  shlibpath_var=LIBPATH
9769  ;;
9770
9771osf3* | osf4* | osf5*)
9772  version_type=osf
9773  need_lib_prefix=no
9774  need_version=no
9775  soname_spec='${libname}${release}${shared_ext}$major'
9776  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9777  shlibpath_var=LD_LIBRARY_PATH
9778  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9779  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9780  ;;
9781
9782solaris*)
9783  version_type=linux
9784  need_lib_prefix=no
9785  need_version=no
9786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9787  soname_spec='${libname}${release}${shared_ext}$major'
9788  shlibpath_var=LD_LIBRARY_PATH
9789  shlibpath_overrides_runpath=yes
9790  hardcode_into_libs=yes
9791  # ldd complains unless libraries are executable
9792  postinstall_cmds='chmod +x $lib'
9793  ;;
9794
9795sunos4*)
9796  version_type=sunos
9797  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9798  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9799  shlibpath_var=LD_LIBRARY_PATH
9800  shlibpath_overrides_runpath=yes
9801  if test "$with_gnu_ld" = yes; then
9802    need_lib_prefix=no
9803  fi
9804  need_version=yes
9805  ;;
9806
9807sysv4 | sysv4.3*)
9808  version_type=linux
9809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9810  soname_spec='${libname}${release}${shared_ext}$major'
9811  shlibpath_var=LD_LIBRARY_PATH
9812  case $host_vendor in
9813    sni)
9814      shlibpath_overrides_runpath=no
9815      need_lib_prefix=no
9816      export_dynamic_flag_spec='${wl}-Blargedynsym'
9817      runpath_var=LD_RUN_PATH
9818      ;;
9819    siemens)
9820      need_lib_prefix=no
9821      ;;
9822    motorola)
9823      need_lib_prefix=no
9824      need_version=no
9825      shlibpath_overrides_runpath=no
9826      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9827      ;;
9828  esac
9829  ;;
9830
9831sysv4*MP*)
9832  if test -d /usr/nec ;then
9833    version_type=linux
9834    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9835    soname_spec='$libname${shared_ext}.$major'
9836    shlibpath_var=LD_LIBRARY_PATH
9837  fi
9838  ;;
9839
9840sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9841  version_type=freebsd-elf
9842  need_lib_prefix=no
9843  need_version=no
9844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9845  soname_spec='${libname}${release}${shared_ext}$major'
9846  shlibpath_var=LD_LIBRARY_PATH
9847  hardcode_into_libs=yes
9848  if test "$with_gnu_ld" = yes; then
9849    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9850    shlibpath_overrides_runpath=no
9851  else
9852    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9853    shlibpath_overrides_runpath=yes
9854    case $host_os in
9855      sco3.2v5*)
9856        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9857        ;;
9858    esac
9859  fi
9860  sys_lib_dlsearch_path_spec='/usr/lib'
9861  ;;
9862
9863uts4*)
9864  version_type=linux
9865  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866  soname_spec='${libname}${release}${shared_ext}$major'
9867  shlibpath_var=LD_LIBRARY_PATH
9868  ;;
9869
9870*)
9871  dynamic_linker=no
9872  ;;
9873esac
9874echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9875echo "${ECHO_T}$dynamic_linker" >&6
9876test "$dynamic_linker" = no && can_build_shared=no
9877
9878variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9879if test "$GCC" = yes; then
9880  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9881fi
9882
9883echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9884echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9885hardcode_action=
9886if test -n "$hardcode_libdir_flag_spec" || \
9887   test -n "$runpath_var" || \
9888   test "X$hardcode_automatic" = "Xyes" ; then
9889
9890  # We can hardcode non-existant directories.
9891  if test "$hardcode_direct" != no &&
9892     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9893     # have to relink, otherwise we might link with an installed library
9894     # when we should be linking with a yet-to-be-installed one
9895     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9896     test "$hardcode_minus_L" != no; then
9897    # Linking always hardcodes the temporary library directory.
9898    hardcode_action=relink
9899  else
9900    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9901    hardcode_action=immediate
9902  fi
9903else
9904  # We cannot hardcode anything, or else we can only hardcode existing
9905  # directories.
9906  hardcode_action=unsupported
9907fi
9908echo "$as_me:$LINENO: result: $hardcode_action" >&5
9909echo "${ECHO_T}$hardcode_action" >&6
9910
9911if test "$hardcode_action" = relink; then
9912  # Fast installation is not supported
9913  enable_fast_install=no
9914elif test "$shlibpath_overrides_runpath" = yes ||
9915     test "$enable_shared" = no; then
9916  # Fast installation is not necessary
9917  enable_fast_install=needless
9918fi
9919
9920striplib=
9921old_striplib=
9922echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9923echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9924if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9925  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9926  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9927  echo "$as_me:$LINENO: result: yes" >&5
9928echo "${ECHO_T}yes" >&6
9929else
9930# FIXME - insert some real tests, host_os isn't really good enough
9931  case $host_os in
9932   darwin*)
9933       if test -n "$STRIP" ; then
9934         striplib="$STRIP -x"
9935         echo "$as_me:$LINENO: result: yes" >&5
9936echo "${ECHO_T}yes" >&6
9937       else
9938  echo "$as_me:$LINENO: result: no" >&5
9939echo "${ECHO_T}no" >&6
9940fi
9941       ;;
9942   *)
9943  echo "$as_me:$LINENO: result: no" >&5
9944echo "${ECHO_T}no" >&6
9945    ;;
9946  esac
9947fi
9948
9949if test "x$enable_dlopen" != xyes; then
9950  enable_dlopen=unknown
9951  enable_dlopen_self=unknown
9952  enable_dlopen_self_static=unknown
9953else
9954  lt_cv_dlopen=no
9955  lt_cv_dlopen_libs=
9956
9957  case $host_os in
9958  beos*)
9959    lt_cv_dlopen="load_add_on"
9960    lt_cv_dlopen_libs=
9961    lt_cv_dlopen_self=yes
9962    ;;
9963
9964  mingw* | pw32*)
9965    lt_cv_dlopen="LoadLibrary"
9966    lt_cv_dlopen_libs=
9967   ;;
9968
9969  cygwin*)
9970    lt_cv_dlopen="dlopen"
9971    lt_cv_dlopen_libs=
9972   ;;
9973
9974  darwin*)
9975  # if libdl is installed we need to link against it
9976    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9977echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9978if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9979  echo $ECHO_N "(cached) $ECHO_C" >&6
9980else
9981  ac_check_lib_save_LIBS=$LIBS
9982LIBS="-ldl  $LIBS"
9983cat >conftest.$ac_ext <<_ACEOF
9984/* confdefs.h.  */
9985_ACEOF
9986cat confdefs.h >>conftest.$ac_ext
9987cat >>conftest.$ac_ext <<_ACEOF
9988/* end confdefs.h.  */
9989
9990/* Override any gcc2 internal prototype to avoid an error.  */
9991#ifdef __cplusplus
9992extern "C"
9993#endif
9994/* We use char because int might match the return type of a gcc2
9995   builtin and then its argument prototype would still apply.  */
9996char dlopen ();
9997int
9998main ()
9999{
10000dlopen ();
10001  ;
10002  return 0;
10003}
10004_ACEOF
10005rm -f conftest.$ac_objext conftest$ac_exeext
10006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10007  (eval $ac_link) 2>conftest.er1
10008  ac_status=$?
10009  grep -v '^ *+' conftest.er1 >conftest.err
10010  rm -f conftest.er1
10011  cat conftest.err >&5
10012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013  (exit $ac_status); } &&
10014         { ac_try='test -z "$ac_c_werror_flag"
10015                         || test ! -s conftest.err'
10016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017  (eval $ac_try) 2>&5
10018  ac_status=$?
10019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020  (exit $ac_status); }; } &&
10021         { ac_try='test -s conftest$ac_exeext'
10022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023  (eval $ac_try) 2>&5
10024  ac_status=$?
10025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026  (exit $ac_status); }; }; then
10027  ac_cv_lib_dl_dlopen=yes
10028else
10029  echo "$as_me: failed program was:" >&5
10030sed 's/^/| /' conftest.$ac_ext >&5
10031
10032ac_cv_lib_dl_dlopen=no
10033fi
10034rm -f conftest.err conftest.$ac_objext \
10035      conftest$ac_exeext conftest.$ac_ext
10036LIBS=$ac_check_lib_save_LIBS
10037fi
10038echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10039echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10040if test $ac_cv_lib_dl_dlopen = yes; then
10041  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10042else
10043
10044    lt_cv_dlopen="dyld"
10045    lt_cv_dlopen_libs=
10046    lt_cv_dlopen_self=yes
10047
10048fi
10049
10050   ;;
10051
10052  *)
10053    echo "$as_me:$LINENO: checking for shl_load" >&5
10054echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10055if test "${ac_cv_func_shl_load+set}" = set; then
10056  echo $ECHO_N "(cached) $ECHO_C" >&6
10057else
10058  cat >conftest.$ac_ext <<_ACEOF
10059/* confdefs.h.  */
10060_ACEOF
10061cat confdefs.h >>conftest.$ac_ext
10062cat >>conftest.$ac_ext <<_ACEOF
10063/* end confdefs.h.  */
10064/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10065   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10066#define shl_load innocuous_shl_load
10067
10068/* System header to define __stub macros and hopefully few prototypes,
10069    which can conflict with char shl_load (); below.
10070    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10071    <limits.h> exists even on freestanding compilers.  */
10072
10073#ifdef __STDC__
10074# include <limits.h>
10075#else
10076# include <assert.h>
10077#endif
10078
10079#undef shl_load
10080
10081/* Override any gcc2 internal prototype to avoid an error.  */
10082#ifdef __cplusplus
10083extern "C"
10084{
10085#endif
10086/* We use char because int might match the return type of a gcc2
10087   builtin and then its argument prototype would still apply.  */
10088char shl_load ();
10089/* The GNU C library defines this for functions which it implements
10090    to always fail with ENOSYS.  Some functions are actually named
10091    something starting with __ and the normal name is an alias.  */
10092#if defined (__stub_shl_load) || defined (__stub___shl_load)
10093choke me
10094#else
10095char (*f) () = shl_load;
10096#endif
10097#ifdef __cplusplus
10098}
10099#endif
10100
10101int
10102main ()
10103{
10104return f != shl_load;
10105  ;
10106  return 0;
10107}
10108_ACEOF
10109rm -f conftest.$ac_objext conftest$ac_exeext
10110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10111  (eval $ac_link) 2>conftest.er1
10112  ac_status=$?
10113  grep -v '^ *+' conftest.er1 >conftest.err
10114  rm -f conftest.er1
10115  cat conftest.err >&5
10116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117  (exit $ac_status); } &&
10118         { ac_try='test -z "$ac_c_werror_flag"
10119                         || test ! -s conftest.err'
10120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10121  (eval $ac_try) 2>&5
10122  ac_status=$?
10123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124  (exit $ac_status); }; } &&
10125         { ac_try='test -s conftest$ac_exeext'
10126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127  (eval $ac_try) 2>&5
10128  ac_status=$?
10129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130  (exit $ac_status); }; }; then
10131  ac_cv_func_shl_load=yes
10132else
10133  echo "$as_me: failed program was:" >&5
10134sed 's/^/| /' conftest.$ac_ext >&5
10135
10136ac_cv_func_shl_load=no
10137fi
10138rm -f conftest.err conftest.$ac_objext \
10139      conftest$ac_exeext conftest.$ac_ext
10140fi
10141echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10142echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10143if test $ac_cv_func_shl_load = yes; then
10144  lt_cv_dlopen="shl_load"
10145else
10146  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10147echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10148if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10149  echo $ECHO_N "(cached) $ECHO_C" >&6
10150else
10151  ac_check_lib_save_LIBS=$LIBS
10152LIBS="-ldld  $LIBS"
10153cat >conftest.$ac_ext <<_ACEOF
10154/* confdefs.h.  */
10155_ACEOF
10156cat confdefs.h >>conftest.$ac_ext
10157cat >>conftest.$ac_ext <<_ACEOF
10158/* end confdefs.h.  */
10159
10160/* Override any gcc2 internal prototype to avoid an error.  */
10161#ifdef __cplusplus
10162extern "C"
10163#endif
10164/* We use char because int might match the return type of a gcc2
10165   builtin and then its argument prototype would still apply.  */
10166char shl_load ();
10167int
10168main ()
10169{
10170shl_load ();
10171  ;
10172  return 0;
10173}
10174_ACEOF
10175rm -f conftest.$ac_objext conftest$ac_exeext
10176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10177  (eval $ac_link) 2>conftest.er1
10178  ac_status=$?
10179  grep -v '^ *+' conftest.er1 >conftest.err
10180  rm -f conftest.er1
10181  cat conftest.err >&5
10182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183  (exit $ac_status); } &&
10184         { ac_try='test -z "$ac_c_werror_flag"
10185                         || test ! -s conftest.err'
10186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187  (eval $ac_try) 2>&5
10188  ac_status=$?
10189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190  (exit $ac_status); }; } &&
10191         { ac_try='test -s conftest$ac_exeext'
10192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193  (eval $ac_try) 2>&5
10194  ac_status=$?
10195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196  (exit $ac_status); }; }; then
10197  ac_cv_lib_dld_shl_load=yes
10198else
10199  echo "$as_me: failed program was:" >&5
10200sed 's/^/| /' conftest.$ac_ext >&5
10201
10202ac_cv_lib_dld_shl_load=no
10203fi
10204rm -f conftest.err conftest.$ac_objext \
10205      conftest$ac_exeext conftest.$ac_ext
10206LIBS=$ac_check_lib_save_LIBS
10207fi
10208echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10209echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10210if test $ac_cv_lib_dld_shl_load = yes; then
10211  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10212else
10213  echo "$as_me:$LINENO: checking for dlopen" >&5
10214echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10215if test "${ac_cv_func_dlopen+set}" = set; then
10216  echo $ECHO_N "(cached) $ECHO_C" >&6
10217else
10218  cat >conftest.$ac_ext <<_ACEOF
10219/* confdefs.h.  */
10220_ACEOF
10221cat confdefs.h >>conftest.$ac_ext
10222cat >>conftest.$ac_ext <<_ACEOF
10223/* end confdefs.h.  */
10224/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10225   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10226#define dlopen innocuous_dlopen
10227
10228/* System header to define __stub macros and hopefully few prototypes,
10229    which can conflict with char dlopen (); below.
10230    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10231    <limits.h> exists even on freestanding compilers.  */
10232
10233#ifdef __STDC__
10234# include <limits.h>
10235#else
10236# include <assert.h>
10237#endif
10238
10239#undef dlopen
10240
10241/* Override any gcc2 internal prototype to avoid an error.  */
10242#ifdef __cplusplus
10243extern "C"
10244{
10245#endif
10246/* We use char because int might match the return type of a gcc2
10247   builtin and then its argument prototype would still apply.  */
10248char dlopen ();
10249/* The GNU C library defines this for functions which it implements
10250    to always fail with ENOSYS.  Some functions are actually named
10251    something starting with __ and the normal name is an alias.  */
10252#if defined (__stub_dlopen) || defined (__stub___dlopen)
10253choke me
10254#else
10255char (*f) () = dlopen;
10256#endif
10257#ifdef __cplusplus
10258}
10259#endif
10260
10261int
10262main ()
10263{
10264return f != dlopen;
10265  ;
10266  return 0;
10267}
10268_ACEOF
10269rm -f conftest.$ac_objext conftest$ac_exeext
10270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10271  (eval $ac_link) 2>conftest.er1
10272  ac_status=$?
10273  grep -v '^ *+' conftest.er1 >conftest.err
10274  rm -f conftest.er1
10275  cat conftest.err >&5
10276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277  (exit $ac_status); } &&
10278         { ac_try='test -z "$ac_c_werror_flag"
10279                         || test ! -s conftest.err'
10280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281  (eval $ac_try) 2>&5
10282  ac_status=$?
10283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284  (exit $ac_status); }; } &&
10285         { ac_try='test -s conftest$ac_exeext'
10286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287  (eval $ac_try) 2>&5
10288  ac_status=$?
10289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290  (exit $ac_status); }; }; then
10291  ac_cv_func_dlopen=yes
10292else
10293  echo "$as_me: failed program was:" >&5
10294sed 's/^/| /' conftest.$ac_ext >&5
10295
10296ac_cv_func_dlopen=no
10297fi
10298rm -f conftest.err conftest.$ac_objext \
10299      conftest$ac_exeext conftest.$ac_ext
10300fi
10301echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10302echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10303if test $ac_cv_func_dlopen = yes; then
10304  lt_cv_dlopen="dlopen"
10305else
10306  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10307echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10308if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10309  echo $ECHO_N "(cached) $ECHO_C" >&6
10310else
10311  ac_check_lib_save_LIBS=$LIBS
10312LIBS="-ldl  $LIBS"
10313cat >conftest.$ac_ext <<_ACEOF
10314/* confdefs.h.  */
10315_ACEOF
10316cat confdefs.h >>conftest.$ac_ext
10317cat >>conftest.$ac_ext <<_ACEOF
10318/* end confdefs.h.  */
10319
10320/* Override any gcc2 internal prototype to avoid an error.  */
10321#ifdef __cplusplus
10322extern "C"
10323#endif
10324/* We use char because int might match the return type of a gcc2
10325   builtin and then its argument prototype would still apply.  */
10326char dlopen ();
10327int
10328main ()
10329{
10330dlopen ();
10331  ;
10332  return 0;
10333}
10334_ACEOF
10335rm -f conftest.$ac_objext conftest$ac_exeext
10336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10337  (eval $ac_link) 2>conftest.er1
10338  ac_status=$?
10339  grep -v '^ *+' conftest.er1 >conftest.err
10340  rm -f conftest.er1
10341  cat conftest.err >&5
10342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343  (exit $ac_status); } &&
10344         { ac_try='test -z "$ac_c_werror_flag"
10345                         || test ! -s conftest.err'
10346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347  (eval $ac_try) 2>&5
10348  ac_status=$?
10349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350  (exit $ac_status); }; } &&
10351         { ac_try='test -s conftest$ac_exeext'
10352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353  (eval $ac_try) 2>&5
10354  ac_status=$?
10355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356  (exit $ac_status); }; }; then
10357  ac_cv_lib_dl_dlopen=yes
10358else
10359  echo "$as_me: failed program was:" >&5
10360sed 's/^/| /' conftest.$ac_ext >&5
10361
10362ac_cv_lib_dl_dlopen=no
10363fi
10364rm -f conftest.err conftest.$ac_objext \
10365      conftest$ac_exeext conftest.$ac_ext
10366LIBS=$ac_check_lib_save_LIBS
10367fi
10368echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10369echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10370if test $ac_cv_lib_dl_dlopen = yes; then
10371  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10372else
10373  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10374echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10375if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10376  echo $ECHO_N "(cached) $ECHO_C" >&6
10377else
10378  ac_check_lib_save_LIBS=$LIBS
10379LIBS="-lsvld  $LIBS"
10380cat >conftest.$ac_ext <<_ACEOF
10381/* confdefs.h.  */
10382_ACEOF
10383cat confdefs.h >>conftest.$ac_ext
10384cat >>conftest.$ac_ext <<_ACEOF
10385/* end confdefs.h.  */
10386
10387/* Override any gcc2 internal prototype to avoid an error.  */
10388#ifdef __cplusplus
10389extern "C"
10390#endif
10391/* We use char because int might match the return type of a gcc2
10392   builtin and then its argument prototype would still apply.  */
10393char dlopen ();
10394int
10395main ()
10396{
10397dlopen ();
10398  ;
10399  return 0;
10400}
10401_ACEOF
10402rm -f conftest.$ac_objext conftest$ac_exeext
10403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10404  (eval $ac_link) 2>conftest.er1
10405  ac_status=$?
10406  grep -v '^ *+' conftest.er1 >conftest.err
10407  rm -f conftest.er1
10408  cat conftest.err >&5
10409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410  (exit $ac_status); } &&
10411         { ac_try='test -z "$ac_c_werror_flag"
10412                         || test ! -s conftest.err'
10413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414  (eval $ac_try) 2>&5
10415  ac_status=$?
10416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417  (exit $ac_status); }; } &&
10418         { ac_try='test -s conftest$ac_exeext'
10419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420  (eval $ac_try) 2>&5
10421  ac_status=$?
10422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423  (exit $ac_status); }; }; then
10424  ac_cv_lib_svld_dlopen=yes
10425else
10426  echo "$as_me: failed program was:" >&5
10427sed 's/^/| /' conftest.$ac_ext >&5
10428
10429ac_cv_lib_svld_dlopen=no
10430fi
10431rm -f conftest.err conftest.$ac_objext \
10432      conftest$ac_exeext conftest.$ac_ext
10433LIBS=$ac_check_lib_save_LIBS
10434fi
10435echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10436echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10437if test $ac_cv_lib_svld_dlopen = yes; then
10438  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10439else
10440  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10441echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10442if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10443  echo $ECHO_N "(cached) $ECHO_C" >&6
10444else
10445  ac_check_lib_save_LIBS=$LIBS
10446LIBS="-ldld  $LIBS"
10447cat >conftest.$ac_ext <<_ACEOF
10448/* confdefs.h.  */
10449_ACEOF
10450cat confdefs.h >>conftest.$ac_ext
10451cat >>conftest.$ac_ext <<_ACEOF
10452/* end confdefs.h.  */
10453
10454/* Override any gcc2 internal prototype to avoid an error.  */
10455#ifdef __cplusplus
10456extern "C"
10457#endif
10458/* We use char because int might match the return type of a gcc2
10459   builtin and then its argument prototype would still apply.  */
10460char dld_link ();
10461int
10462main ()
10463{
10464dld_link ();
10465  ;
10466  return 0;
10467}
10468_ACEOF
10469rm -f conftest.$ac_objext conftest$ac_exeext
10470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10471  (eval $ac_link) 2>conftest.er1
10472  ac_status=$?
10473  grep -v '^ *+' conftest.er1 >conftest.err
10474  rm -f conftest.er1
10475  cat conftest.err >&5
10476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477  (exit $ac_status); } &&
10478         { ac_try='test -z "$ac_c_werror_flag"
10479                         || test ! -s conftest.err'
10480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481  (eval $ac_try) 2>&5
10482  ac_status=$?
10483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484  (exit $ac_status); }; } &&
10485         { ac_try='test -s conftest$ac_exeext'
10486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487  (eval $ac_try) 2>&5
10488  ac_status=$?
10489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490  (exit $ac_status); }; }; then
10491  ac_cv_lib_dld_dld_link=yes
10492else
10493  echo "$as_me: failed program was:" >&5
10494sed 's/^/| /' conftest.$ac_ext >&5
10495
10496ac_cv_lib_dld_dld_link=no
10497fi
10498rm -f conftest.err conftest.$ac_objext \
10499      conftest$ac_exeext conftest.$ac_ext
10500LIBS=$ac_check_lib_save_LIBS
10501fi
10502echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10503echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10504if test $ac_cv_lib_dld_dld_link = yes; then
10505  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10506fi
10507
10508
10509fi
10510
10511
10512fi
10513
10514
10515fi
10516
10517
10518fi
10519
10520
10521fi
10522
10523    ;;
10524  esac
10525
10526  if test "x$lt_cv_dlopen" != xno; then
10527    enable_dlopen=yes
10528  else
10529    enable_dlopen=no
10530  fi
10531
10532  case $lt_cv_dlopen in
10533  dlopen)
10534    save_CPPFLAGS="$CPPFLAGS"
10535    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10536
10537    save_LDFLAGS="$LDFLAGS"
10538    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10539
10540    save_LIBS="$LIBS"
10541    LIBS="$lt_cv_dlopen_libs $LIBS"
10542
10543    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10544echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10545if test "${lt_cv_dlopen_self+set}" = set; then
10546  echo $ECHO_N "(cached) $ECHO_C" >&6
10547else
10548          if test "$cross_compiling" = yes; then :
10549  lt_cv_dlopen_self=cross
10550else
10551  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10552  lt_status=$lt_dlunknown
10553  cat > conftest.$ac_ext <<EOF
10554#line 10554 "configure"
10555#include "confdefs.h"
10556
10557#if HAVE_DLFCN_H
10558#include <dlfcn.h>
10559#endif
10560
10561#include <stdio.h>
10562
10563#ifdef RTLD_GLOBAL
10564#  define LT_DLGLOBAL           RTLD_GLOBAL
10565#else
10566#  ifdef DL_GLOBAL
10567#    define LT_DLGLOBAL         DL_GLOBAL
10568#  else
10569#    define LT_DLGLOBAL         0
10570#  endif
10571#endif
10572
10573/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10574   find out it does not work in some platform. */
10575#ifndef LT_DLLAZY_OR_NOW
10576#  ifdef RTLD_LAZY
10577#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10578#  else
10579#    ifdef DL_LAZY
10580#      define LT_DLLAZY_OR_NOW          DL_LAZY
10581#    else
10582#      ifdef RTLD_NOW
10583#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10584#      else
10585#        ifdef DL_NOW
10586#          define LT_DLLAZY_OR_NOW      DL_NOW
10587#        else
10588#          define LT_DLLAZY_OR_NOW      0
10589#        endif
10590#      endif
10591#    endif
10592#  endif
10593#endif
10594
10595#ifdef __cplusplus
10596extern "C" void exit (int);
10597#endif
10598
10599void fnord() { int i=42;}
10600int main ()
10601{
10602  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10603  int status = $lt_dlunknown;
10604
10605  if (self)
10606    {
10607      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10608      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10609      /* dlclose (self); */
10610    }
10611  else
10612    puts (dlerror ());
10613
10614    exit (status);
10615}
10616EOF
10617  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10618  (eval $ac_link) 2>&5
10619  ac_status=$?
10620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10622    (./conftest; exit; ) >&5 2>/dev/null
10623    lt_status=$?
10624    case x$lt_status in
10625      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10626      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10627      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10628    esac
10629  else :
10630    # compilation failed
10631    lt_cv_dlopen_self=no
10632  fi
10633fi
10634rm -fr conftest*
10635
10636
10637fi
10638echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10639echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10640
10641    if test "x$lt_cv_dlopen_self" = xyes; then
10642      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10643      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10644echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10645if test "${lt_cv_dlopen_self_static+set}" = set; then
10646  echo $ECHO_N "(cached) $ECHO_C" >&6
10647else
10648          if test "$cross_compiling" = yes; then :
10649  lt_cv_dlopen_self_static=cross
10650else
10651  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10652  lt_status=$lt_dlunknown
10653  cat > conftest.$ac_ext <<EOF
10654#line 10654 "configure"
10655#include "confdefs.h"
10656
10657#if HAVE_DLFCN_H
10658#include <dlfcn.h>
10659#endif
10660
10661#include <stdio.h>
10662
10663#ifdef RTLD_GLOBAL
10664#  define LT_DLGLOBAL           RTLD_GLOBAL
10665#else
10666#  ifdef DL_GLOBAL
10667#    define LT_DLGLOBAL         DL_GLOBAL
10668#  else
10669#    define LT_DLGLOBAL         0
10670#  endif
10671#endif
10672
10673/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10674   find out it does not work in some platform. */
10675#ifndef LT_DLLAZY_OR_NOW
10676#  ifdef RTLD_LAZY
10677#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10678#  else
10679#    ifdef DL_LAZY
10680#      define LT_DLLAZY_OR_NOW          DL_LAZY
10681#    else
10682#      ifdef RTLD_NOW
10683#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10684#      else
10685#        ifdef DL_NOW
10686#          define LT_DLLAZY_OR_NOW      DL_NOW
10687#        else
10688#          define LT_DLLAZY_OR_NOW      0
10689#        endif
10690#      endif
10691#    endif
10692#  endif
10693#endif
10694
10695#ifdef __cplusplus
10696extern "C" void exit (int);
10697#endif
10698
10699void fnord() { int i=42;}
10700int main ()
10701{
10702  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10703  int status = $lt_dlunknown;
10704
10705  if (self)
10706    {
10707      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10708      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10709      /* dlclose (self); */
10710    }
10711  else
10712    puts (dlerror ());
10713
10714    exit (status);
10715}
10716EOF
10717  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10718  (eval $ac_link) 2>&5
10719  ac_status=$?
10720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10722    (./conftest; exit; ) >&5 2>/dev/null
10723    lt_status=$?
10724    case x$lt_status in
10725      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10726      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10727      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10728    esac
10729  else :
10730    # compilation failed
10731    lt_cv_dlopen_self_static=no
10732  fi
10733fi
10734rm -fr conftest*
10735
10736
10737fi
10738echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10739echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10740    fi
10741
10742    CPPFLAGS="$save_CPPFLAGS"
10743    LDFLAGS="$save_LDFLAGS"
10744    LIBS="$save_LIBS"
10745    ;;
10746  esac
10747
10748  case $lt_cv_dlopen_self in
10749  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10750  *) enable_dlopen_self=unknown ;;
10751  esac
10752
10753  case $lt_cv_dlopen_self_static in
10754  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10755  *) enable_dlopen_self_static=unknown ;;
10756  esac
10757fi
10758
10759
10760# Report which library types will actually be built
10761echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10762echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10763echo "$as_me:$LINENO: result: $can_build_shared" >&5
10764echo "${ECHO_T}$can_build_shared" >&6
10765
10766echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10767echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10768test "$can_build_shared" = "no" && enable_shared=no
10769
10770# On AIX, shared libraries and static libraries use the same namespace, and
10771# are all built from PIC.
10772case $host_os in
10773aix3*)
10774  test "$enable_shared" = yes && enable_static=no
10775  if test -n "$RANLIB"; then
10776    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10777    postinstall_cmds='$RANLIB $lib'
10778  fi
10779  ;;
10780
10781aix4* | aix5*)
10782  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10783    test "$enable_shared" = yes && enable_static=no
10784  fi
10785    ;;
10786esac
10787echo "$as_me:$LINENO: result: $enable_shared" >&5