source: ThirdParty/Glpk/stable/1.7/configure @ 1785

Last change on this file since 1785 was 1785, checked in by stefan, 9 years ago

restoring BuildTools/ThirdParty/Glpk?/stable/1.7

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