source: ThirdParty/SoPlex/trunk/configure @ 3311

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

temporarily committing stable candidate

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