source: ThirdParty/Glpk/trunk/configure @ 2887

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

Re-running autotools

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