source: ThirdParty/SoPlex/trunk/configure @ 3104

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

conditional addition of dependent libraries into project libs via LIBADD

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