source: branches/devel/Clp/configure @ 1142

Last change on this file since 1142 was 1142, checked in by ladanyi, 12 years ago

result of run_autotools

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