source: ThirdParty/SoPlex/releases/1.2.2/configure @ 2984

Last change on this file since 2984 was 2984, checked in by tkr, 7 years ago

Re-running the autotools

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