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

Last change on this file since 3343 was 3343, checked in by stefan, 7 years ago

temporarily committing release candidate

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