source: ThirdParty/Glpk/trunk/configure @ 2985

Last change on this file since 2985 was 2985, checked in by stefan, 6 years ago

revert r2394:HEAD - releases are not to be modified

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