source: ThirdParty/SoPlex/stable/1.3/configure @ 3376

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

restoring BuildTools/ThirdParty/SoPlex?/stable/1.3

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