source: ThirdParty/SoPlex/stable/1.2/configure @ 3044

Last change on this file since 3044 was 3044, checked in by stefan, 6 years ago

restoring BuildTools/ThirdParty/SoPlex?/stable/1.2

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