source: ThirdParty/Glpk/stable/1.9/configure @ 2991

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

Re-running the autotools

File size: 767.8 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.9.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2007-2010 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyGlpk'
431PACKAGE_TARNAME='thirdpartyglpk'
432PACKAGE_VERSION='1.9'
433PACKAGE_STRING='ThirdPartyGlpk 1.9'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="glpk/src/glpk.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion GLPK_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS glpkmajorver glpkminorver GLPKDIR GLPK_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
953ac_env_PKG_CONFIG_value=$PKG_CONFIG
954ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
955ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
956ac_env_CPP_set=${CPP+set}
957ac_env_CPP_value=$CPP
958ac_cv_env_CPP_set=${CPP+set}
959ac_cv_env_CPP_value=$CPP
960ac_env_CXX_set=${CXX+set}
961ac_env_CXX_value=$CXX
962ac_cv_env_CXX_set=${CXX+set}
963ac_cv_env_CXX_value=$CXX
964ac_env_CXXFLAGS_set=${CXXFLAGS+set}
965ac_env_CXXFLAGS_value=$CXXFLAGS
966ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
967ac_cv_env_CXXFLAGS_value=$CXXFLAGS
968ac_env_CXXCPP_set=${CXXCPP+set}
969ac_env_CXXCPP_value=$CXXCPP
970ac_cv_env_CXXCPP_set=${CXXCPP+set}
971ac_cv_env_CXXCPP_value=$CXXCPP
972ac_env_F77_set=${F77+set}
973ac_env_F77_value=$F77
974ac_cv_env_F77_set=${F77+set}
975ac_cv_env_F77_value=$F77
976ac_env_FFLAGS_set=${FFLAGS+set}
977ac_env_FFLAGS_value=$FFLAGS
978ac_cv_env_FFLAGS_set=${FFLAGS+set}
979ac_cv_env_FFLAGS_value=$FFLAGS
980
981#
982# Report the --help message.
983#
984if test "$ac_init_help" = "long"; then
985  # Omit some internal or obsolete options to make the list less imposing.
986  # This message is too long to be a string in the A/UX 3.1 sh.
987  cat <<_ACEOF
988\`configure' configures ThirdPartyGlpk 1.9 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.9:";;
1055   esac
1056  cat <<\_ACEOF
1057
1058Optional Features:
1059  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1060  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1061  --enable-debug          compile all projects with debug options tests
1062                          (implies --disable-shared)
1063  --enable-debug-glpk compile project Glpk with debug compiler flags
1064
1065  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1066  --disable-pkg-config    disable use of pkg-config (if available)
1067  --enable-static[=PKGS]
1068                          build static libraries [default=no]
1069  --disable-dependency-tracking  speeds up one-time build
1070  --enable-dependency-tracking   do not reject slow dependency extractors
1071  --enable-maintainer-mode  enable make rules and dependencies not useful
1072                          (and sometimes confusing) to the casual installer
1073  --enable-shared[=PKGS]
1074                          build shared libraries [default=yes]
1075  --enable-fast-install[=PKGS]
1076                          optimize for fast installation [default=yes]
1077  --disable-libtool-lock  avoid locking (might break parallel builds)
1078  --disable-gmp           do not compile with GNU multiple precision library
1079  --enable-odbc           enable MathProg ODBC support [default=auto]
1080  --enable-mysql          enable MathProg MySQL support [default=auto]
1081
1082Optional Packages:
1083  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1084  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1085  --with-glpk-verbosity specify the debug verbosity level for project Glpk
1086  --with-glpk-checklevel specify the sanity check level for project Glpk
1087  --with-coin-instdir     prefix of installation directory for precompiled
1088                          COIN packages
1089  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1090  --with-pic              try to use only PIC/non-PIC objects [default=use
1091                          both]
1092  --with-tags[=TAGS]
1093                          include additional configurations [automatic]
1094
1095Some influential environment variables:
1096  CDEFS       Additional -D flags to be used when compiling C code.
1097  ADD_CFLAGS  Additional C compiler options
1098  DBG_CFLAGS  Debug C compiler options
1099  OPT_CFLAGS  Optimize C compiler options
1100  CC          C compiler command
1101  CFLAGS      C compiler flags
1102  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1103              nonstandard directory <lib dir>
1104  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1105              headers in a nonstandard directory <include dir>
1106  MPICC       C MPI Compiler
1107  PKG_CONFIG  path to pkg-config utility
1108  CPP         C preprocessor
1109  CXX         C++ compiler command
1110  CXXFLAGS    C++ compiler flags
1111  CXXCPP      C++ preprocessor
1112  F77         Fortran 77 compiler command
1113  FFLAGS      Fortran 77 compiler flags
1114
1115Use these variables to override the choices made by `configure' or to help
1116it to find libraries and programs with nonstandard names/locations.
1117
1118Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1119_ACEOF
1120fi
1121
1122if test "$ac_init_help" = "recursive"; then
1123  # If there are subdirs, report their specific --help.
1124  ac_popdir=`pwd`
1125  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1126    test -d $ac_dir || continue
1127    ac_builddir=.
1128
1129if test "$ac_dir" != .; then
1130  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1131  # A "../" for each directory in $ac_dir_suffix.
1132  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1133else
1134  ac_dir_suffix= ac_top_builddir=
1135fi
1136
1137case $srcdir in
1138  .)  # No --srcdir option.  We are building in place.
1139    ac_srcdir=.
1140    if test -z "$ac_top_builddir"; then
1141       ac_top_srcdir=.
1142    else
1143       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1144    fi ;;
1145  [\\/]* | ?:[\\/]* )  # Absolute path.
1146    ac_srcdir=$srcdir$ac_dir_suffix;
1147    ac_top_srcdir=$srcdir ;;
1148  *) # Relative path.
1149    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1150    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1151esac
1152
1153# Do not use `cd foo && pwd` to compute absolute paths, because
1154# the directories may not exist.
1155case `pwd` in
1156.) ac_abs_builddir="$ac_dir";;
1157*)
1158  case "$ac_dir" in
1159  .) ac_abs_builddir=`pwd`;;
1160  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1161  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1162  esac;;
1163esac
1164case $ac_abs_builddir in
1165.) ac_abs_top_builddir=${ac_top_builddir}.;;
1166*)
1167  case ${ac_top_builddir}. in
1168  .) ac_abs_top_builddir=$ac_abs_builddir;;
1169  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1170  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1171  esac;;
1172esac
1173case $ac_abs_builddir in
1174.) ac_abs_srcdir=$ac_srcdir;;
1175*)
1176  case $ac_srcdir in
1177  .) ac_abs_srcdir=$ac_abs_builddir;;
1178  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1179  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1180  esac;;
1181esac
1182case $ac_abs_builddir in
1183.) ac_abs_top_srcdir=$ac_top_srcdir;;
1184*)
1185  case $ac_top_srcdir in
1186  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1187  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1188  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1189  esac;;
1190esac
1191
1192    cd $ac_dir
1193    # Check for guested configure; otherwise get Cygnus style configure.
1194    if test -f $ac_srcdir/configure.gnu; then
1195      echo
1196      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1197    elif test -f $ac_srcdir/configure; then
1198      echo
1199      $SHELL $ac_srcdir/configure  --help=recursive
1200    elif test -f $ac_srcdir/configure.ac ||
1201           test -f $ac_srcdir/configure.in; then
1202      echo
1203      $ac_configure --help
1204    else
1205      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1206    fi
1207    cd $ac_popdir
1208  done
1209fi
1210
1211test -n "$ac_init_help" && exit 0
1212if $ac_init_version; then
1213  cat <<\_ACEOF
1214ThirdPartyGlpk configure 1.9
1215generated by GNU Autoconf 2.59
1216
1217Copyright (C) 2003 Free Software Foundation, Inc.
1218This configure script is free software; the Free Software Foundation
1219gives unlimited permission to copy, distribute and modify it.
1220
1221
1222Copyright 2007-2010 Stefan Vigerske and others.
1223All Rights Reserved.
1224This file is part of the open source package Coin which is distributed
1225under the Eclipse Public License.
1226_ACEOF
1227  exit 0
1228fi
1229exec 5>config.log
1230cat >&5 <<_ACEOF
1231This file contains any messages produced by compilers while
1232running configure, to aid debugging if configure makes a mistake.
1233
1234It was created by ThirdPartyGlpk $as_me 1.9, which was
1235generated by GNU Autoconf 2.59.  Invocation command line was
1236
1237  $ $0 $@
1238
1239_ACEOF
1240{
1241cat <<_ASUNAME
1242## --------- ##
1243## Platform. ##
1244## --------- ##
1245
1246hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1247uname -m = `(uname -m) 2>/dev/null || echo unknown`
1248uname -r = `(uname -r) 2>/dev/null || echo unknown`
1249uname -s = `(uname -s) 2>/dev/null || echo unknown`
1250uname -v = `(uname -v) 2>/dev/null || echo unknown`
1251
1252/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1253/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1254
1255/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1256/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1257/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1258hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1259/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1260/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1261/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1262
1263_ASUNAME
1264
1265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1266for as_dir in $PATH
1267do
1268  IFS=$as_save_IFS
1269  test -z "$as_dir" && as_dir=.
1270  echo "PATH: $as_dir"
1271done
1272
1273} >&5
1274
1275cat >&5 <<_ACEOF
1276
1277
1278## ----------- ##
1279## Core tests. ##
1280## ----------- ##
1281
1282_ACEOF
1283
1284
1285# Keep a trace of the command line.
1286# Strip out --no-create and --no-recursion so they do not pile up.
1287# Strip out --silent because we don't want to record it for future runs.
1288# Also quote any args containing shell meta-characters.
1289# Make two passes to allow for proper duplicate-argument suppression.
1290ac_configure_args=
1291ac_configure_args0=
1292ac_configure_args1=
1293ac_sep=
1294ac_must_keep_next=false
1295for ac_pass in 1 2
1296do
1297  for ac_arg
1298  do
1299    case $ac_arg in
1300    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1301    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1302    | -silent | --silent | --silen | --sile | --sil)
1303      continue ;;
1304    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1306    esac
1307    case $ac_pass in
1308    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1309    2)
1310      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1311      if test $ac_must_keep_next = true; then
1312        ac_must_keep_next=false # Got value, back to normal.
1313      else
1314        case $ac_arg in
1315          *=* | --config-cache | -C | -disable-* | --disable-* \
1316          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1317          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1318          | -with-* | --with-* | -without-* | --without-* | --x)
1319            case "$ac_configure_args0 " in
1320              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1321            esac
1322            ;;
1323          -* ) ac_must_keep_next=true ;;
1324        esac
1325      fi
1326      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1327      # Get rid of the leading space.
1328      ac_sep=" "
1329      ;;
1330    esac
1331  done
1332done
1333$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1334$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1335
1336# When interrupted or exit'd, cleanup temporary files, and complete
1337# config.log.  We remove comments because anyway the quotes in there
1338# would cause problems or look ugly.
1339# WARNING: Be sure not to use single quotes in there, as some shells,
1340# such as our DU 5.0 friend, will then `close' the trap.
1341trap 'exit_status=$?
1342  # Save into config.log some information that might help in debugging.
1343  {
1344    echo
1345
1346    cat <<\_ASBOX
1347## ---------------- ##
1348## Cache variables. ##
1349## ---------------- ##
1350_ASBOX
1351    echo
1352    # The following way of writing the cache mishandles newlines in values,
1353{
1354  (set) 2>&1 |
1355    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1356    *ac_space=\ *)
1357      sed -n \
1358        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1359          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1360      ;;
1361    *)
1362      sed -n \
1363        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1364      ;;
1365    esac;
1366}
1367    echo
1368
1369    cat <<\_ASBOX
1370## ----------------- ##
1371## Output variables. ##
1372## ----------------- ##
1373_ASBOX
1374    echo
1375    for ac_var in $ac_subst_vars
1376    do
1377      eval ac_val=$`echo $ac_var`
1378      echo "$ac_var='"'"'$ac_val'"'"'"
1379    done | sort
1380    echo
1381
1382    if test -n "$ac_subst_files"; then
1383      cat <<\_ASBOX
1384## ------------- ##
1385## Output files. ##
1386## ------------- ##
1387_ASBOX
1388      echo
1389      for ac_var in $ac_subst_files
1390      do
1391        eval ac_val=$`echo $ac_var`
1392        echo "$ac_var='"'"'$ac_val'"'"'"
1393      done | sort
1394      echo
1395    fi
1396
1397    if test -s confdefs.h; then
1398      cat <<\_ASBOX
1399## ----------- ##
1400## confdefs.h. ##
1401## ----------- ##
1402_ASBOX
1403      echo
1404      sed "/^$/d" confdefs.h | sort
1405      echo
1406    fi
1407    test "$ac_signal" != 0 &&
1408      echo "$as_me: caught signal $ac_signal"
1409    echo "$as_me: exit $exit_status"
1410  } >&5
1411  rm -f core *.core &&
1412  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1413    exit $exit_status
1414     ' 0
1415for ac_signal in 1 2 13 15; do
1416  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1417done
1418ac_signal=0
1419
1420# confdefs.h avoids OS command line length limits that DEFS can exceed.
1421rm -rf conftest* confdefs.h
1422# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1423echo >confdefs.h
1424
1425# Predefined preprocessor variables.
1426
1427cat >>confdefs.h <<_ACEOF
1428#define PACKAGE_NAME "$PACKAGE_NAME"
1429_ACEOF
1430
1431
1432cat >>confdefs.h <<_ACEOF
1433#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1434_ACEOF
1435
1436
1437cat >>confdefs.h <<_ACEOF
1438#define PACKAGE_VERSION "$PACKAGE_VERSION"
1439_ACEOF
1440
1441
1442cat >>confdefs.h <<_ACEOF
1443#define PACKAGE_STRING "$PACKAGE_STRING"
1444_ACEOF
1445
1446
1447cat >>confdefs.h <<_ACEOF
1448#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1449_ACEOF
1450
1451
1452# Let the site file select an alternate cache file if it wants to.
1453# Prefer explicitly selected file to automatically selected ones.
1454if test -z "$CONFIG_SITE"; then
1455  if test "x$prefix" != xNONE; then
1456    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1457  else
1458    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1459  fi
1460fi
1461for ac_site_file in $CONFIG_SITE; do
1462  if test -r "$ac_site_file"; then
1463    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1464echo "$as_me: loading site script $ac_site_file" >&6;}
1465    sed 's/^/| /' "$ac_site_file" >&5
1466    . "$ac_site_file"
1467  fi
1468done
1469
1470if test -r "$cache_file"; then
1471  # Some versions of bash will fail to source /dev/null (special
1472  # files actually), so we avoid doing that.
1473  if test -f "$cache_file"; then
1474    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1475echo "$as_me: loading cache $cache_file" >&6;}
1476    case $cache_file in
1477      [\\/]* | ?:[\\/]* ) . $cache_file;;
1478      *)                      . ./$cache_file;;
1479    esac
1480  fi
1481else
1482  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1483echo "$as_me: creating cache $cache_file" >&6;}
1484  >$cache_file
1485fi
1486
1487# Check that the precious variables saved in the cache have kept the same
1488# value.
1489ac_cache_corrupted=false
1490for ac_var in `(set) 2>&1 |
1491               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1492  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1493  eval ac_new_set=\$ac_env_${ac_var}_set
1494  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1495  eval ac_new_val="\$ac_env_${ac_var}_value"
1496  case $ac_old_set,$ac_new_set in
1497    set,)
1498      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1499echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1500      ac_cache_corrupted=: ;;
1501    ,set)
1502      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1503echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1504      ac_cache_corrupted=: ;;
1505    ,);;
1506    *)
1507      if test "x$ac_old_val" != "x$ac_new_val"; then
1508        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1509echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1510        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1511echo "$as_me:   former value:  $ac_old_val" >&2;}
1512        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1513echo "$as_me:   current value: $ac_new_val" >&2;}
1514        ac_cache_corrupted=:
1515      fi;;
1516  esac
1517  # Pass precious variables to config.status.
1518  if test "$ac_new_set" = set; then
1519    case $ac_new_val in
1520    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1521      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1522    *) ac_arg=$ac_var=$ac_new_val ;;
1523    esac
1524    case " $ac_configure_args " in
1525      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1526      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1527    esac
1528  fi
1529done
1530if $ac_cache_corrupted; then
1531  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1532echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1533  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1534echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1535   { (exit 1); exit 1; }; }
1536fi
1537
1538ac_ext=c
1539ac_cpp='$CPP $CPPFLAGS'
1540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1542ac_compiler_gnu=$ac_cv_c_compiler_gnu
1543
1544
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# List one file in the package so that the configure script can test
1574# whether the package is actually there
1575
1576
1577# Where should everything be installed by default?  Here, we want it
1578# to be installed directly in 'bin', 'lib', 'include' subdirectories
1579# of the directory where configure is run.  The default would be
1580# /usr/local.
1581
1582
1583
1584# As backup, we make sure we don't loose an FLIBS if it has been set
1585# by the user
1586save_FLIBS="$FLIBS"
1587
1588# A useful makefile conditional that is always false
1589
1590
1591if false; then
1592  ALWAYS_FALSE_TRUE=
1593  ALWAYS_FALSE_FALSE='#'
1594else
1595  ALWAYS_FALSE_TRUE='#'
1596  ALWAYS_FALSE_FALSE=
1597fi
1598
1599
1600# We set the following variable so that we know later in AC_COIN_FINALIZE
1601# that we are in a project main directory
1602coin_projectdir=yes
1603
1604# Set the project's version numbers
1605
1606
1607cat >>confdefs.h <<_ACEOF
1608#define GLPK_VERSION "$PACKAGE_VERSION"
1609_ACEOF
1610
1611
1612  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1613  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1614  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1615  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1616  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1617  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1618
1619cat >>confdefs.h <<_ACEOF
1620#define GLPK_VERSION_MAJOR $coin_majorver
1621_ACEOF
1622
1623
1624cat >>confdefs.h <<_ACEOF
1625#define GLPK_VERSION_MINOR $coin_minorver
1626_ACEOF
1627
1628
1629cat >>confdefs.h <<_ACEOF
1630#define GLPK_VERSION_RELEASE $coin_releasever
1631_ACEOF
1632
1633
1634  # We use the following variable to have a string with the upper case
1635  # version of the project name
1636  COIN_PRJCT=GLPK
1637
1638  # Set the project's SVN revision number. The complicated sed expression
1639  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1640  # as a single number.
1641  # Extract the first word of "svnversion", so it can be a program name with args.
1642set dummy svnversion; ac_word=$2
1643echo "$as_me:$LINENO: checking for $ac_word" >&5
1644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645if test "${ac_cv_prog_have_svnversion+set}" = set; then
1646  echo $ECHO_N "(cached) $ECHO_C" >&6
1647else
1648  if test -n "$have_svnversion"; then
1649  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1650else
1651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH
1653do
1654  IFS=$as_save_IFS
1655  test -z "$as_dir" && as_dir=.
1656  for ac_exec_ext in '' $ac_executable_extensions; do
1657  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658    ac_cv_prog_have_svnversion="yes"
1659    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660    break 2
1661  fi
1662done
1663done
1664
1665  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1666fi
1667fi
1668have_svnversion=$ac_cv_prog_have_svnversion
1669if test -n "$have_svnversion"; then
1670  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1671echo "${ECHO_T}$have_svnversion" >&6
1672else
1673  echo "$as_me:$LINENO: result: no" >&5
1674echo "${ECHO_T}no" >&6
1675fi
1676
1677  if test "x$have_svnversion" = xyes; then
1678
1679    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1680    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1681      GLPK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1682
1683cat >>confdefs.h <<_ACEOF
1684#define GLPK_SVN_REV $GLPK_SVN_REV
1685_ACEOF
1686
1687    fi
1688  fi
1689
1690
1691
1692# Capture libtool library version, if given.
1693
1694
1695
1696
1697#############################################################################
1698#                         Standard build tool stuff                         #
1699#############################################################################
1700
1701# Get the system type
1702ac_aux_dir=
1703for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1704  if test -f $ac_dir/install-sh; then
1705    ac_aux_dir=$ac_dir
1706    ac_install_sh="$ac_aux_dir/install-sh -c"
1707    break
1708  elif test -f $ac_dir/install.sh; then
1709    ac_aux_dir=$ac_dir
1710    ac_install_sh="$ac_aux_dir/install.sh -c"
1711    break
1712  elif test -f $ac_dir/shtool; then
1713    ac_aux_dir=$ac_dir
1714    ac_install_sh="$ac_aux_dir/shtool install -c"
1715    break
1716  fi
1717done
1718if test -z "$ac_aux_dir"; then
1719  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1720echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1721   { (exit 1); exit 1; }; }
1722fi
1723ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1724ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1725ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1726
1727# Make sure we can run config.sub.
1728$ac_config_sub sun4 >/dev/null 2>&1 ||
1729  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1730echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1731   { (exit 1); exit 1; }; }
1732
1733echo "$as_me:$LINENO: checking build system type" >&5
1734echo $ECHO_N "checking build system type... $ECHO_C" >&6
1735if test "${ac_cv_build+set}" = set; then
1736  echo $ECHO_N "(cached) $ECHO_C" >&6
1737else
1738  ac_cv_build_alias=$build_alias
1739test -z "$ac_cv_build_alias" &&
1740  ac_cv_build_alias=`$ac_config_guess`
1741test -z "$ac_cv_build_alias" &&
1742  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1743echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1744   { (exit 1); exit 1; }; }
1745ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1746  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1747echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1748   { (exit 1); exit 1; }; }
1749
1750fi
1751echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1752echo "${ECHO_T}$ac_cv_build" >&6
1753build=$ac_cv_build
1754build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1755build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1756build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1757
1758
1759
1760#turn off warnings and pedantic mode since it seem to make trouble on solaris platform
1761#and we couldn't fix it anyway
1762coin_skip_warn_cflags=yes
1763
1764# Check if user wants to produce debugging code
1765
1766echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1767echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1768
1769# Check whether --enable-debug or --disable-debug was given.
1770if test "${enable_debug+set}" = set; then
1771  enableval="$enable_debug"
1772  case "${enableval}" in
1773   yes) coin_debug_compile=true
1774        if test "${enable_shared+set}" = set; then :; else
1775          enable_shared=no
1776        fi
1777        ;;
1778   no)  coin_debug_compile=false
1779        ;;
1780   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1781echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1782   { (exit 1); exit 1; }; }
1783        ;;
1784esac
1785else
1786  coin_debug_compile=false
1787fi;
1788
1789# Check whether --enable-debug-glpk or --disable-debug-glpk was given.
1790if test "${enable_debug_glpk+set}" = set; then
1791  enableval="$enable_debug_glpk"
1792  case "${enableval}" in
1793    yes) coin_debug_compile=true
1794         ;;
1795    no)  coin_debug_compile=false
1796         ;;
1797    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-glpk" >&5
1798echo "$as_me: error: bad value ${enableval} for --enable-debug-glpk" >&2;}
1799   { (exit 1); exit 1; }; }
1800         ;;
1801 esac
1802else
1803  :
1804fi;
1805
1806 # m4_ifvaln([Glpk],
1807
1808if test $coin_debug_compile = true; then
1809  echo "$as_me:$LINENO: result: yes" >&5
1810echo "${ECHO_T}yes" >&6
1811else
1812  echo "$as_me:$LINENO: result: no" >&5
1813echo "${ECHO_T}no" >&6
1814fi
1815
1816
1817# Check whether --with-glpk-verbosity or --without-glpk-verbosity was given.
1818if test "${with_glpk_verbosity+set}" = set; then
1819  withval="$with_glpk_verbosity"
1820  if test "$withval" = yes; then
1821                withval=1
1822              fi
1823              coin_glpk_verbosity=$withval
1824else
1825  coin_glpk_verbosity=0
1826fi;
1827
1828cat >>confdefs.h <<_ACEOF
1829#define COIN_GLPK_VERBOSITY $coin_glpk_verbosity
1830_ACEOF
1831
1832
1833
1834# Check whether --with-glpk-checklevel or --without-glpk-checklevel was given.
1835if test "${with_glpk_checklevel+set}" = set; then
1836  withval="$with_glpk_checklevel"
1837  if test "$withval" = yes; then
1838                withval=1
1839              fi
1840              coin_glpk_checklevel=$withval
1841else
1842  coin_glpk_checklevel=0
1843fi;
1844
1845cat >>confdefs.h <<_ACEOF
1846#define COIN_GLPK_CHECKLEVEL $coin_glpk_checklevel
1847_ACEOF
1848
1849
1850 # m4_ifvaln([Glpk],
1851
1852
1853
1854# Get the name of the C compiler
1855
1856
1857  # for backward compatibility
1858  # Check whether --enable-doscompile or --disable-doscompile was given.
1859if test "${enable_doscompile+set}" = set; then
1860  enableval="$enable_doscompile"
1861  enable_doscompile=$enableval
1862else
1863  enable_doscompile=no
1864fi;
1865
1866  # Check whether --enable-msvc or --disable-msvc was given.
1867if test "${enable_msvc+set}" = set; then
1868  enableval="$enable_msvc"
1869  enable_msvc=$enableval
1870else
1871  enable_msvc=no
1872     if test "$enable_doscompile" = msvc ; then
1873       enable_msvc=yes
1874     elif test "$enable_doscompile" != no ; then
1875       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1876echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1877   { (exit 1); exit 1; }; }
1878     fi
1879
1880fi;
1881
1882  if test "$enable_msvc" = yes; then
1883    case $build in
1884      *-cygwin* | *-mingw*) ;;
1885      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1886echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1887   { (exit 1); exit 1; }; } ;;
1888    esac
1889  fi
1890
1891
1892 case $build in
1893  *-mingw*)
1894    if test "${LD+set}" = set; then :; else
1895      LD=link
1896    fi
1897    ;;
1898 esac
1899 if test $enable_msvc = yes ; then
1900   if test "x${LD+set}" = xset; then :; else
1901     LD=link
1902   fi
1903 fi
1904
1905
1906
1907
1908ac_ext=c
1909ac_cpp='$CPP $CPPFLAGS'
1910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1912ac_compiler_gnu=$ac_cv_c_compiler_gnu
1913
1914
1915# For consistency, we set the C compiler to the same value of the C++
1916# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1917if test x"$CXX" != x; then
1918  case "$CXX" in
1919    clang* ) ;;
1920    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1921      if test x"$CC" = x; then
1922        CC="$CXX"
1923        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1924echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1925      fi
1926      ;;
1927  esac
1928fi
1929
1930
1931
1932
1933
1934
1935coin_has_cc=yes
1936
1937save_cflags="$CFLAGS"
1938
1939# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1940# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1941# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1942# compiler. In this case, put cc after gcc.
1943
1944case $build in
1945  *-cygwin* | *-mingw*)
1946             if test "$enable_msvc" = yes ; then
1947               comps="icl cl gcc"
1948             else
1949               comps="gcc icl cl"
1950             fi ;;
1951  *-*-solaris*)
1952             # Extract the first word of "cc", so it can be a program name with args.
1953set dummy cc; ac_word=$2
1954echo "$as_me:$LINENO: checking for $ac_word" >&5
1955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1957  echo $ECHO_N "(cached) $ECHO_C" >&6
1958else
1959  if test -n "$sol_cc_compiler"; then
1960  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1961else
1962  ac_prog_rejected=no
1963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964for as_dir in $PATH
1965do
1966  IFS=$as_save_IFS
1967  test -z "$as_dir" && as_dir=.
1968  for ac_exec_ext in '' $ac_executable_extensions; do
1969  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1971       ac_prog_rejected=yes
1972       continue
1973     fi
1974    ac_cv_prog_sol_cc_compiler="cc"
1975    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976    break 2
1977  fi
1978done
1979done
1980
1981if test $ac_prog_rejected = yes; then
1982  # We found a bogon in the path, so make sure we never use it.
1983  set dummy $ac_cv_prog_sol_cc_compiler
1984  shift
1985  if test $# != 0; then
1986    # We chose a different compiler from the bogus one.
1987    # However, it has the same basename, so the bogon will be chosen
1988    # first if we set sol_cc_compiler to just the basename; use the full file name.
1989    shift
1990    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1991  fi
1992fi
1993fi
1994fi
1995sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1996if test -n "$sol_cc_compiler"; then
1997  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1998echo "${ECHO_T}$sol_cc_compiler" >&6
1999else
2000  echo "$as_me:$LINENO: result: no" >&5
2001echo "${ECHO_T}no" >&6
2002fi
2003
2004             if test "$sol_cc_compiler" = "cc" ; then
2005               comps="cc xlc gcc pgcc icc"
2006             else
2007               comps="xlc gcc pgcc icc cc"
2008             fi
2009             ;;
2010  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2011  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2012  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2013esac
2014
2015# We delete the cached value, since the test might not have been
2016# performed with our choice of compilers earlier
2017$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2018# AC_MSG_NOTICE([C compiler candidates: $comps])
2019ac_ext=c
2020ac_cpp='$CPP $CPPFLAGS'
2021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2023ac_compiler_gnu=$ac_cv_c_compiler_gnu
2024if test -n "$ac_tool_prefix"; then
2025  for ac_prog in $comps
2026  do
2027    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2028set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2029echo "$as_me:$LINENO: checking for $ac_word" >&5
2030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031if test "${ac_cv_prog_CC+set}" = set; then
2032  echo $ECHO_N "(cached) $ECHO_C" >&6
2033else
2034  if test -n "$CC"; then
2035  ac_cv_prog_CC="$CC" # Let the user override the test.
2036else
2037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038for as_dir in $PATH
2039do
2040  IFS=$as_save_IFS
2041  test -z "$as_dir" && as_dir=.
2042  for ac_exec_ext in '' $ac_executable_extensions; do
2043  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2045    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046    break 2
2047  fi
2048done
2049done
2050
2051fi
2052fi
2053CC=$ac_cv_prog_CC
2054if test -n "$CC"; then
2055  echo "$as_me:$LINENO: result: $CC" >&5
2056echo "${ECHO_T}$CC" >&6
2057else
2058  echo "$as_me:$LINENO: result: no" >&5
2059echo "${ECHO_T}no" >&6
2060fi
2061
2062    test -n "$CC" && break
2063  done
2064fi
2065if test -z "$CC"; then
2066  ac_ct_CC=$CC
2067  for ac_prog in $comps
2068do
2069  # Extract the first word of "$ac_prog", so it can be a program name with args.
2070set dummy $ac_prog; ac_word=$2
2071echo "$as_me:$LINENO: checking for $ac_word" >&5
2072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2073if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2074  echo $ECHO_N "(cached) $ECHO_C" >&6
2075else
2076  if test -n "$ac_ct_CC"; then
2077  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2078else
2079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080for as_dir in $PATH
2081do
2082  IFS=$as_save_IFS
2083  test -z "$as_dir" && as_dir=.
2084  for ac_exec_ext in '' $ac_executable_extensions; do
2085  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2086    ac_cv_prog_ac_ct_CC="$ac_prog"
2087    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088    break 2
2089  fi
2090done
2091done
2092
2093fi
2094fi
2095ac_ct_CC=$ac_cv_prog_ac_ct_CC
2096if test -n "$ac_ct_CC"; then
2097  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2098echo "${ECHO_T}$ac_ct_CC" >&6
2099else
2100  echo "$as_me:$LINENO: result: no" >&5
2101echo "${ECHO_T}no" >&6
2102fi
2103
2104  test -n "$ac_ct_CC" && break
2105done
2106
2107  CC=$ac_ct_CC
2108fi
2109
2110
2111test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2112See \`config.log' for more details." >&5
2113echo "$as_me: error: no acceptable C compiler found in \$PATH
2114See \`config.log' for more details." >&2;}
2115   { (exit 1); exit 1; }; }
2116
2117# Provide some information about the compiler.
2118echo "$as_me:$LINENO:" \
2119     "checking for C compiler version" >&5
2120ac_compiler=`set X $ac_compile; echo $2`
2121{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2122  (eval $ac_compiler --version </dev/null >&5) 2>&5
2123  ac_status=$?
2124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125  (exit $ac_status); }
2126{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2127  (eval $ac_compiler -v </dev/null >&5) 2>&5
2128  ac_status=$?
2129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130  (exit $ac_status); }
2131{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2132  (eval $ac_compiler -V </dev/null >&5) 2>&5
2133  ac_status=$?
2134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135  (exit $ac_status); }
2136
2137cat >conftest.$ac_ext <<_ACEOF
2138/* confdefs.h.  */
2139_ACEOF
2140cat confdefs.h >>conftest.$ac_ext
2141cat >>conftest.$ac_ext <<_ACEOF
2142/* end confdefs.h.  */
2143
2144int
2145main ()
2146{
2147
2148  ;
2149  return 0;
2150}
2151_ACEOF
2152ac_clean_files_save=$ac_clean_files
2153ac_clean_files="$ac_clean_files a.out a.exe b.out"
2154# Try to create an executable without -o first, disregard a.out.
2155# It will help us diagnose broken compilers, and finding out an intuition
2156# of exeext.
2157echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2158echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2159ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2160if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2161  (eval $ac_link_default) 2>&5
2162  ac_status=$?
2163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164  (exit $ac_status); }; then
2165  # Find the output, starting from the most likely.  This scheme is
2166# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2167# resort.
2168
2169# Be careful to initialize this variable, since it used to be cached.
2170# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2171ac_cv_exeext=
2172# b.out is created by i960 compilers.
2173for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2174do
2175  test -f "$ac_file" || continue
2176  case $ac_file in
2177    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2178        ;;
2179    conftest.$ac_ext )
2180        # This is the source file.
2181        ;;
2182    [ab].out )
2183        # We found the default executable, but exeext='' is most
2184        # certainly right.
2185        break;;
2186    *.* )
2187        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2188        # FIXME: I believe we export ac_cv_exeext for Libtool,
2189        # but it would be cool to find out if it's true.  Does anybody
2190        # maintain Libtool? --akim.
2191        export ac_cv_exeext
2192        break;;
2193    * )
2194        break;;
2195  esac
2196done
2197else
2198  echo "$as_me: failed program was:" >&5
2199sed 's/^/| /' conftest.$ac_ext >&5
2200
2201{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2202See \`config.log' for more details." >&5
2203echo "$as_me: error: C compiler cannot create executables
2204See \`config.log' for more details." >&2;}
2205   { (exit 77); exit 77; }; }
2206fi
2207
2208ac_exeext=$ac_cv_exeext
2209echo "$as_me:$LINENO: result: $ac_file" >&5
2210echo "${ECHO_T}$ac_file" >&6
2211
2212# Check the compiler produces executables we can run.  If not, either
2213# the compiler is broken, or we cross compile.
2214echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2215echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2216# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2217# If not cross compiling, check that we can run a simple program.
2218if test "$cross_compiling" != yes; then
2219  if { ac_try='./$ac_file'
2220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221  (eval $ac_try) 2>&5
2222  ac_status=$?
2223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224  (exit $ac_status); }; }; then
2225    cross_compiling=no
2226  else
2227    if test "$cross_compiling" = maybe; then
2228        cross_compiling=yes
2229    else
2230        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2231If you meant to cross compile, use \`--host'.
2232See \`config.log' for more details." >&5
2233echo "$as_me: error: cannot run C compiled programs.
2234If you meant to cross compile, use \`--host'.
2235See \`config.log' for more details." >&2;}
2236   { (exit 1); exit 1; }; }
2237    fi
2238  fi
2239fi
2240echo "$as_me:$LINENO: result: yes" >&5
2241echo "${ECHO_T}yes" >&6
2242
2243rm -f a.out a.exe conftest$ac_cv_exeext b.out
2244ac_clean_files=$ac_clean_files_save
2245# Check the compiler produces executables we can run.  If not, either
2246# the compiler is broken, or we cross compile.
2247echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2248echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2249echo "$as_me:$LINENO: result: $cross_compiling" >&5
2250echo "${ECHO_T}$cross_compiling" >&6
2251
2252echo "$as_me:$LINENO: checking for suffix of executables" >&5
2253echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2255  (eval $ac_link) 2>&5
2256  ac_status=$?
2257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258  (exit $ac_status); }; then
2259  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2260# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2261# work properly (i.e., refer to `conftest.exe'), while it won't with
2262# `rm'.
2263for ac_file in conftest.exe conftest conftest.*; do
2264  test -f "$ac_file" || continue
2265  case $ac_file in
2266    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2267    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2268          export ac_cv_exeext
2269          break;;
2270    * ) break;;
2271  esac
2272done
2273else
2274  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2275See \`config.log' for more details." >&5
2276echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2277See \`config.log' for more details." >&2;}
2278   { (exit 1); exit 1; }; }
2279fi
2280
2281rm -f conftest$ac_cv_exeext
2282echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2283echo "${ECHO_T}$ac_cv_exeext" >&6
2284
2285rm -f conftest.$ac_ext
2286EXEEXT=$ac_cv_exeext
2287ac_exeext=$EXEEXT
2288echo "$as_me:$LINENO: checking for suffix of object files" >&5
2289echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2290if test "${ac_cv_objext+set}" = set; then
2291  echo $ECHO_N "(cached) $ECHO_C" >&6
2292else
2293  cat >conftest.$ac_ext <<_ACEOF
2294/* confdefs.h.  */
2295_ACEOF
2296cat confdefs.h >>conftest.$ac_ext
2297cat >>conftest.$ac_ext <<_ACEOF
2298/* end confdefs.h.  */
2299
2300int
2301main ()
2302{
2303
2304  ;
2305  return 0;
2306}
2307_ACEOF
2308rm -f conftest.o conftest.obj
2309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2310  (eval $ac_compile) 2>&5
2311  ac_status=$?
2312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313  (exit $ac_status); }; then
2314  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2315  case $ac_file in
2316    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2317    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2318       break;;
2319  esac
2320done
2321else
2322  echo "$as_me: failed program was:" >&5
2323sed 's/^/| /' conftest.$ac_ext >&5
2324
2325{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2326See \`config.log' for more details." >&5
2327echo "$as_me: error: cannot compute suffix of object files: cannot compile
2328See \`config.log' for more details." >&2;}
2329   { (exit 1); exit 1; }; }
2330fi
2331
2332rm -f conftest.$ac_cv_objext conftest.$ac_ext
2333fi
2334echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2335echo "${ECHO_T}$ac_cv_objext" >&6
2336OBJEXT=$ac_cv_objext
2337ac_objext=$OBJEXT
2338echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2339echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2340if test "${ac_cv_c_compiler_gnu+set}" = set; then
2341  echo $ECHO_N "(cached) $ECHO_C" >&6
2342else
2343  cat >conftest.$ac_ext <<_ACEOF
2344/* confdefs.h.  */
2345_ACEOF
2346cat confdefs.h >>conftest.$ac_ext
2347cat >>conftest.$ac_ext <<_ACEOF
2348/* end confdefs.h.  */
2349
2350int
2351main ()
2352{
2353#ifndef __GNUC__
2354       choke me
2355#endif
2356
2357  ;
2358  return 0;
2359}
2360_ACEOF
2361rm -f conftest.$ac_objext
2362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363  (eval $ac_compile) 2>conftest.er1
2364  ac_status=$?
2365  grep -v '^ *+' conftest.er1 >conftest.err
2366  rm -f conftest.er1
2367  cat conftest.err >&5
2368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369  (exit $ac_status); } &&
2370         { ac_try='test -z "$ac_c_werror_flag"
2371                         || test ! -s conftest.err'
2372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373  (eval $ac_try) 2>&5
2374  ac_status=$?
2375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376  (exit $ac_status); }; } &&
2377         { ac_try='test -s conftest.$ac_objext'
2378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379  (eval $ac_try) 2>&5
2380  ac_status=$?
2381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382  (exit $ac_status); }; }; then
2383  ac_compiler_gnu=yes
2384else
2385  echo "$as_me: failed program was:" >&5
2386sed 's/^/| /' conftest.$ac_ext >&5
2387
2388ac_compiler_gnu=no
2389fi
2390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2391ac_cv_c_compiler_gnu=$ac_compiler_gnu
2392
2393fi
2394echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2395echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2396GCC=`test $ac_compiler_gnu = yes && echo yes`
2397ac_test_CFLAGS=${CFLAGS+set}
2398ac_save_CFLAGS=$CFLAGS
2399CFLAGS="-g"
2400echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2401echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2402if test "${ac_cv_prog_cc_g+set}" = set; then
2403  echo $ECHO_N "(cached) $ECHO_C" >&6
2404else
2405  cat >conftest.$ac_ext <<_ACEOF
2406/* confdefs.h.  */
2407_ACEOF
2408cat confdefs.h >>conftest.$ac_ext
2409cat >>conftest.$ac_ext <<_ACEOF
2410/* end confdefs.h.  */
2411
2412int
2413main ()
2414{
2415
2416  ;
2417  return 0;
2418}
2419_ACEOF
2420rm -f conftest.$ac_objext
2421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422  (eval $ac_compile) 2>conftest.er1
2423  ac_status=$?
2424  grep -v '^ *+' conftest.er1 >conftest.err
2425  rm -f conftest.er1
2426  cat conftest.err >&5
2427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428  (exit $ac_status); } &&
2429         { ac_try='test -z "$ac_c_werror_flag"
2430                         || test ! -s conftest.err'
2431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432  (eval $ac_try) 2>&5
2433  ac_status=$?
2434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435  (exit $ac_status); }; } &&
2436         { ac_try='test -s conftest.$ac_objext'
2437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438  (eval $ac_try) 2>&5
2439  ac_status=$?
2440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441  (exit $ac_status); }; }; then
2442  ac_cv_prog_cc_g=yes
2443else
2444  echo "$as_me: failed program was:" >&5
2445sed 's/^/| /' conftest.$ac_ext >&5
2446
2447ac_cv_prog_cc_g=no
2448fi
2449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2450fi
2451echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2452echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2453if test "$ac_test_CFLAGS" = set; then
2454  CFLAGS=$ac_save_CFLAGS
2455elif test $ac_cv_prog_cc_g = yes; then
2456  if test "$GCC" = yes; then
2457    CFLAGS="-g -O2"
2458  else
2459    CFLAGS="-g"
2460  fi
2461else
2462  if test "$GCC" = yes; then
2463    CFLAGS="-O2"
2464  else
2465    CFLAGS=
2466  fi
2467fi
2468echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2469echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2470if test "${ac_cv_prog_cc_stdc+set}" = set; then
2471  echo $ECHO_N "(cached) $ECHO_C" >&6
2472else
2473  ac_cv_prog_cc_stdc=no
2474ac_save_CC=$CC
2475cat >conftest.$ac_ext <<_ACEOF
2476/* confdefs.h.  */
2477_ACEOF
2478cat confdefs.h >>conftest.$ac_ext
2479cat >>conftest.$ac_ext <<_ACEOF
2480/* end confdefs.h.  */
2481#include <stdarg.h>
2482#include <stdio.h>
2483#include <sys/types.h>
2484#include <sys/stat.h>
2485/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2486struct buf { int x; };
2487FILE * (*rcsopen) (struct buf *, struct stat *, int);
2488static char *e (p, i)
2489     char **p;
2490     int i;
2491{
2492  return p[i];
2493}
2494static char *f (char * (*g) (char **, int), char **p, ...)
2495{
2496  char *s;
2497  va_list v;
2498  va_start (v,p);
2499  s = g (p, va_arg (v,int));
2500  va_end (v);
2501  return s;
2502}
2503
2504/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2505   function prototypes and stuff, but not '\xHH' hex character constants.
2506   These don't provoke an error unfortunately, instead are silently treated
2507   as 'x'.  The following induces an error, until -std1 is added to get
2508   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2509   array size at least.  It's necessary to write '\x00'==0 to get something
2510   that's true only with -std1.  */
2511int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2512
2513int test (int i, double x);
2514struct s1 {int (*f) (int a);};
2515struct s2 {int (*f) (double a);};
2516int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2517int argc;
2518char **argv;
2519int
2520main ()
2521{
2522return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2523  ;
2524  return 0;
2525}
2526_ACEOF
2527# Don't try gcc -ansi; that turns off useful extensions and
2528# breaks some systems' header files.
2529# AIX                   -qlanglvl=ansi
2530# Ultrix and OSF/1      -std1
2531# HP-UX 10.20 and later -Ae
2532# HP-UX older versions  -Aa -D_HPUX_SOURCE
2533# SVR4                  -Xc -D__EXTENSIONS__
2534for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2535do
2536  CC="$ac_save_CC $ac_arg"
2537  rm -f conftest.$ac_objext
2538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539  (eval $ac_compile) 2>conftest.er1
2540  ac_status=$?
2541  grep -v '^ *+' conftest.er1 >conftest.err
2542  rm -f conftest.er1
2543  cat conftest.err >&5
2544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545  (exit $ac_status); } &&
2546         { ac_try='test -z "$ac_c_werror_flag"
2547                         || test ! -s conftest.err'
2548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549  (eval $ac_try) 2>&5
2550  ac_status=$?
2551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552  (exit $ac_status); }; } &&
2553         { ac_try='test -s conftest.$ac_objext'
2554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555  (eval $ac_try) 2>&5
2556  ac_status=$?
2557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558  (exit $ac_status); }; }; then
2559  ac_cv_prog_cc_stdc=$ac_arg
2560break
2561else
2562  echo "$as_me: failed program was:" >&5
2563sed 's/^/| /' conftest.$ac_ext >&5
2564
2565fi
2566rm -f conftest.err conftest.$ac_objext
2567done
2568rm -f conftest.$ac_ext conftest.$ac_objext
2569CC=$ac_save_CC
2570
2571fi
2572
2573case "x$ac_cv_prog_cc_stdc" in
2574  x|xno)
2575    echo "$as_me:$LINENO: result: none needed" >&5
2576echo "${ECHO_T}none needed" >&6 ;;
2577  *)
2578    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2579echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2580    CC="$CC $ac_cv_prog_cc_stdc" ;;
2581esac
2582
2583# Some people use a C++ compiler to compile C.  Since we use `exit',
2584# in C++ we need to declare it.  In case someone uses the same compiler
2585# for both compiling C and C++ we need to have the C++ compiler decide
2586# the declaration of exit, since it's the most demanding environment.
2587cat >conftest.$ac_ext <<_ACEOF
2588#ifndef __cplusplus
2589  choke me
2590#endif
2591_ACEOF
2592rm -f conftest.$ac_objext
2593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2594  (eval $ac_compile) 2>conftest.er1
2595  ac_status=$?
2596  grep -v '^ *+' conftest.er1 >conftest.err
2597  rm -f conftest.er1
2598  cat conftest.err >&5
2599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600  (exit $ac_status); } &&
2601         { ac_try='test -z "$ac_c_werror_flag"
2602                         || test ! -s conftest.err'
2603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604  (eval $ac_try) 2>&5
2605  ac_status=$?
2606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607  (exit $ac_status); }; } &&
2608         { ac_try='test -s conftest.$ac_objext'
2609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610  (eval $ac_try) 2>&5
2611  ac_status=$?
2612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613  (exit $ac_status); }; }; then
2614  for ac_declaration in \
2615   '' \
2616   'extern "C" void std::exit (int) throw (); using std::exit;' \
2617   'extern "C" void std::exit (int); using std::exit;' \
2618   'extern "C" void exit (int) throw ();' \
2619   'extern "C" void exit (int);' \
2620   'void exit (int);'
2621do
2622  cat >conftest.$ac_ext <<_ACEOF
2623/* confdefs.h.  */
2624_ACEOF
2625cat confdefs.h >>conftest.$ac_ext
2626cat >>conftest.$ac_ext <<_ACEOF
2627/* end confdefs.h.  */
2628$ac_declaration
2629#include <stdlib.h>
2630int
2631main ()
2632{
2633exit (42);
2634  ;
2635  return 0;
2636}
2637_ACEOF
2638rm -f conftest.$ac_objext
2639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2640  (eval $ac_compile) 2>conftest.er1
2641  ac_status=$?
2642  grep -v '^ *+' conftest.er1 >conftest.err
2643  rm -f conftest.er1
2644  cat conftest.err >&5
2645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646  (exit $ac_status); } &&
2647         { ac_try='test -z "$ac_c_werror_flag"
2648                         || test ! -s conftest.err'
2649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650  (eval $ac_try) 2>&5
2651  ac_status=$?
2652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653  (exit $ac_status); }; } &&
2654         { ac_try='test -s conftest.$ac_objext'
2655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656  (eval $ac_try) 2>&5
2657  ac_status=$?
2658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659  (exit $ac_status); }; }; then
2660  :
2661else
2662  echo "$as_me: failed program was:" >&5
2663sed 's/^/| /' conftest.$ac_ext >&5
2664
2665continue
2666fi
2667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2668  cat >conftest.$ac_ext <<_ACEOF
2669/* confdefs.h.  */
2670_ACEOF
2671cat confdefs.h >>conftest.$ac_ext
2672cat >>conftest.$ac_ext <<_ACEOF
2673/* end confdefs.h.  */
2674$ac_declaration
2675int
2676main ()
2677{
2678exit (42);
2679  ;
2680  return 0;
2681}
2682_ACEOF
2683rm -f conftest.$ac_objext
2684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2685  (eval $ac_compile) 2>conftest.er1
2686  ac_status=$?
2687  grep -v '^ *+' conftest.er1 >conftest.err
2688  rm -f conftest.er1
2689  cat conftest.err >&5
2690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691  (exit $ac_status); } &&
2692         { ac_try='test -z "$ac_c_werror_flag"
2693                         || test ! -s conftest.err'
2694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695  (eval $ac_try) 2>&5
2696  ac_status=$?
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); }; } &&
2699         { ac_try='test -s conftest.$ac_objext'
2700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701  (eval $ac_try) 2>&5
2702  ac_status=$?
2703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704  (exit $ac_status); }; }; then
2705  break
2706else
2707  echo "$as_me: failed program was:" >&5
2708sed 's/^/| /' conftest.$ac_ext >&5
2709
2710fi
2711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2712done
2713rm -f conftest*
2714if test -n "$ac_declaration"; then
2715  echo '#ifdef __cplusplus' >>confdefs.h
2716  echo $ac_declaration      >>confdefs.h
2717  echo '#endif'             >>confdefs.h
2718fi
2719
2720else
2721  echo "$as_me: failed program was:" >&5
2722sed 's/^/| /' conftest.$ac_ext >&5
2723
2724fi
2725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726ac_ext=c
2727ac_cpp='$CPP $CPPFLAGS'
2728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731
2732if test -z "$CC" ; then
2733  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2734echo "$as_me: error: Failed to find a C compiler!" >&2;}
2735   { (exit 1); exit 1; }; }
2736fi
2737# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2738case "$CC" in
2739  clang* ) ;;
2740  cl* | */cl* | CL* | */CL* )
2741    if test "$ac_cv_prog_cc_g" = yes ; then
2742      ac_cv_prog_cc_g=no
2743      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2744echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2745    fi ;;
2746  * )
2747    CYGPATH_W=echo
2748    ;;
2749esac
2750CFLAGS="$save_cflags"
2751
2752# add automake conditional so we can recognize cl compiler in makefile
2753coin_cc_is_cl=false
2754case "$CC" in
2755  clang* ) ;;
2756  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2757    coin_cc_is_cl=true
2758    ;;
2759esac
2760
2761
2762if test $coin_cc_is_cl = true; then
2763  COIN_CC_IS_CL_TRUE=
2764  COIN_CC_IS_CL_FALSE='#'
2765else
2766  COIN_CC_IS_CL_TRUE='#'
2767  COIN_CC_IS_CL_FALSE=
2768fi
2769
2770
2771# Check if a project specific CFLAGS variable has been set
2772if test x$COIN_PRJCT != x; then
2773  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2774  if test x$coin_tmp = xset; then
2775    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2776  fi
2777fi
2778
2779if test x"$CFLAGS" = x; then
2780
2781  coin_add_cflags=
2782  coin_opt_cflags=
2783  coin_dbg_cflags=
2784  coin_warn_cflags=
2785
2786  if test "$GCC" = "yes"; then
2787    case "$CC" in
2788      icc* | */icc*)
2789        ;;
2790      *)
2791        coin_opt_cflags="-O3"
2792        coin_add_cflags="-pipe"
2793        coin_dbg_cflags="-g -O0"
2794        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2795        case $build in
2796          *-darwin*)
2797            ;;
2798          *)
2799            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2800            ;;
2801        esac
2802    esac
2803  fi
2804  if test -z "$coin_opt_cflags"; then
2805    case $build in
2806      *-cygwin* | *-mingw*)
2807        case "$CC" in
2808          clang* ) ;;
2809          cl* | */cl* | CL* | */CL*)
2810            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2811              coin_opt_cflags='-MD -O2'
2812              coin_dbg_cflags='-MDd'
2813            else
2814              coin_opt_cflags='-MT -O2'
2815              coin_dbg_cflags='-MTd'
2816            fi
2817            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2818            ;;
2819          icl* | */icl* | ICL* | */ICL*)
2820            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2821              coin_opt_cflags='-MD -Ox'
2822              coin_dbg_cflags='-MDd -debug'
2823            else
2824              coin_opt_cflags='-MT -Ox'
2825              coin_dbg_cflags='-MTd -debug'
2826            fi
2827            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2828            ;;
2829        esac
2830        ;;
2831      *-linux-*)
2832        case "$CC" in
2833          icc* | */icc*)
2834            coin_opt_cflags="-O3 -ip -mp1"
2835            coin_add_cflags=""
2836            coin_dbg_cflags="-g"
2837            # Check if -i_dynamic is necessary (for new glibc library)
2838            CFLAGS=
2839            cat >conftest.$ac_ext <<_ACEOF
2840/* confdefs.h.  */
2841_ACEOF
2842cat confdefs.h >>conftest.$ac_ext
2843cat >>conftest.$ac_ext <<_ACEOF
2844/* end confdefs.h.  */
2845
2846int
2847main ()
2848{
2849int i=0; i++;
2850  ;
2851  return 0;
2852}
2853_ACEOF
2854rm -f conftest.$ac_objext conftest$ac_exeext
2855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2856  (eval $ac_link) 2>conftest.er1
2857  ac_status=$?
2858  grep -v '^ *+' conftest.er1 >conftest.err
2859  rm -f conftest.er1
2860  cat conftest.err >&5
2861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862  (exit $ac_status); } &&
2863         { ac_try='test -z "$ac_c_werror_flag"
2864                         || test ! -s conftest.err'
2865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866  (eval $ac_try) 2>&5
2867  ac_status=$?
2868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869  (exit $ac_status); }; } &&
2870         { ac_try='test -s conftest$ac_exeext'
2871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872  (eval $ac_try) 2>&5
2873  ac_status=$?
2874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875  (exit $ac_status); }; }; then
2876  :
2877else
2878  echo "$as_me: failed program was:" >&5
2879sed 's/^/| /' conftest.$ac_ext >&5
2880
2881coin_add_cflags="-i_dynamic $coin_add_cflags"
2882fi
2883rm -f conftest.err conftest.$ac_objext \
2884      conftest$ac_exeext conftest.$ac_ext
2885            ;;
2886          pgcc* | */pgcc*)
2887            coin_opt_cflags="-fast"
2888            coin_add_cflags="-Kieee -pc 64"
2889            coin_dbg_cflags="-g"
2890            ;;
2891        esac
2892        ;;
2893      *-ibm-*)
2894        case "$CC" in
2895          xlc* | */xlc* | mpxlc* | */mpxlc*)
2896            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2897            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2898            coin_dbg_cflags="-g"
2899          ;;
2900        esac
2901        ;;
2902      *-hp-*)
2903        coin_opt_cflags="-O"
2904        coin_add_cflags="-Ae"
2905        coin_dbg_cflags="-g"
2906        ;;
2907      *-*-solaris*)
2908        coin_opt_cflags="-xO4"
2909        coin_dbg_cflags="-g"
2910        ;;
2911      *-sgi-*)
2912        coin_opt_cflags="-O -OPT:Olimit=0"
2913        coin_dbg_cflags="-g"
2914        ;;
2915    esac
2916  fi
2917
2918  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2919    coin_dbg_cflags="-g"
2920  fi
2921
2922  if test -z "$coin_opt_cflags"; then
2923    # Try if -O option works if nothing else is set
2924    CFLAGS="-O"
2925    cat >conftest.$ac_ext <<_ACEOF
2926/* confdefs.h.  */
2927_ACEOF
2928cat confdefs.h >>conftest.$ac_ext
2929cat >>conftest.$ac_ext <<_ACEOF
2930/* end confdefs.h.  */
2931
2932int
2933main ()
2934{
2935int i=0; i++;
2936  ;
2937  return 0;
2938}
2939_ACEOF
2940rm -f conftest.$ac_objext conftest$ac_exeext
2941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2942  (eval $ac_link) 2>conftest.er1
2943  ac_status=$?
2944  grep -v '^ *+' conftest.er1 >conftest.err
2945  rm -f conftest.er1
2946  cat conftest.err >&5
2947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948  (exit $ac_status); } &&
2949         { ac_try='test -z "$ac_c_werror_flag"
2950                         || test ! -s conftest.err'
2951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952  (eval $ac_try) 2>&5
2953  ac_status=$?
2954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955  (exit $ac_status); }; } &&
2956         { ac_try='test -s conftest$ac_exeext'
2957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958  (eval $ac_try) 2>&5
2959  ac_status=$?
2960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961  (exit $ac_status); }; }; then
2962  coin_opt_cflags="-O"
2963else
2964  echo "$as_me: failed program was:" >&5
2965sed 's/^/| /' conftest.$ac_ext >&5
2966
2967fi
2968rm -f conftest.err conftest.$ac_objext \
2969      conftest$ac_exeext conftest.$ac_ext
2970  fi
2971
2972  # if PM doesn't want the warning messages, take them out
2973  if test x"$coin_skip_warn_cflags" = xyes; then
2974    coin_warn_cflags=
2975  fi
2976
2977  if test x${DBG_CFLAGS+set} != xset; then
2978    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2979  fi
2980  if test x${OPT_CFLAGS+set} != xset; then
2981    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2982  fi
2983
2984  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2985  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2986
2987  if test "$coin_debug_compile" = "true"; then
2988    CFLAGS="$DBG_CFLAGS"
2989  else
2990    CFLAGS="$OPT_CFLAGS"
2991  fi
2992else
2993  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2994  if test x${DBG_CFLAGS+set} != xset; then
2995    DBG_CFLAGS="$CFLAGS"
2996  fi
2997  if test x${OPT_CFLAGS+set} != xset; then
2998    OPT_CFLAGS="$CFLAGS"
2999  fi
3000fi
3001
3002# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3003
3004case "$CFLAGS" in
3005  *-mno-cygwin*)
3006    if test x${CPPFLAGS+set} != xset ; then
3007      CPPFLAGS="-mno-cygwin"
3008    else
3009      case "$CPPFLAGS" in
3010        *-mno-cygwin*)
3011          ;;
3012        *)
3013          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3014          ;;
3015      esac
3016    fi ;;
3017esac
3018
3019# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3020if test x$COIN_PRJCT != x; then
3021  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3022fi
3023
3024# Try if CFLAGS works
3025save_CFLAGS="$CFLAGS"
3026cat >conftest.$ac_ext <<_ACEOF
3027/* confdefs.h.  */
3028_ACEOF
3029cat confdefs.h >>conftest.$ac_ext
3030cat >>conftest.$ac_ext <<_ACEOF
3031/* end confdefs.h.  */
3032
3033int
3034main ()
3035{
3036int i=0; i++;
3037  ;
3038  return 0;
3039}
3040_ACEOF
3041rm -f conftest.$ac_objext conftest$ac_exeext
3042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3043  (eval $ac_link) 2>conftest.er1
3044  ac_status=$?
3045  grep -v '^ *+' conftest.er1 >conftest.err
3046  rm -f conftest.er1
3047  cat conftest.err >&5
3048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049  (exit $ac_status); } &&
3050         { ac_try='test -z "$ac_c_werror_flag"
3051                         || test ! -s conftest.err'
3052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053  (eval $ac_try) 2>&5
3054  ac_status=$?
3055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056  (exit $ac_status); }; } &&
3057         { ac_try='test -s conftest$ac_exeext'
3058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059  (eval $ac_try) 2>&5
3060  ac_status=$?
3061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062  (exit $ac_status); }; }; then
3063  :
3064else
3065  echo "$as_me: failed program was:" >&5
3066sed 's/^/| /' conftest.$ac_ext >&5
3067
3068CFLAGS=
3069fi
3070rm -f conftest.err conftest.$ac_objext \
3071      conftest$ac_exeext conftest.$ac_ext
3072if test -z "$CFLAGS"; then
3073  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
3074echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
3075  CFLAGS='-O'
3076  cat >conftest.$ac_ext <<_ACEOF
3077/* confdefs.h.  */
3078_ACEOF
3079cat confdefs.h >>conftest.$ac_ext
3080cat >>conftest.$ac_ext <<_ACEOF
3081/* end confdefs.h.  */
3082
3083int
3084main ()
3085{
3086int i=0; i++;
3087  ;
3088  return 0;
3089}
3090_ACEOF
3091rm -f conftest.$ac_objext conftest$ac_exeext
3092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3093  (eval $ac_link) 2>conftest.er1
3094  ac_status=$?
3095  grep -v '^ *+' conftest.er1 >conftest.err
3096  rm -f conftest.er1
3097  cat conftest.err >&5
3098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099  (exit $ac_status); } &&
3100         { ac_try='test -z "$ac_c_werror_flag"
3101                         || test ! -s conftest.err'
3102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103  (eval $ac_try) 2>&5
3104  ac_status=$?
3105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106  (exit $ac_status); }; } &&
3107         { ac_try='test -s conftest$ac_exeext'
3108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109  (eval $ac_try) 2>&5
3110  ac_status=$?
3111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112  (exit $ac_status); }; }; then
3113  :
3114else
3115  echo "$as_me: failed program was:" >&5
3116sed 's/^/| /' conftest.$ac_ext >&5
3117
3118CFLAGS=
3119fi
3120rm -f conftest.err conftest.$ac_objext \
3121      conftest$ac_exeext conftest.$ac_ext
3122  if test -z "$CFLAGS"; then
3123    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
3124echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
3125  fi
3126fi
3127
3128{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3129echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3130
3131
3132if test x"$MPICC" = x; then :; else
3133  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3134echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3135  CC="$MPICC"
3136fi
3137
3138# Correct the LD variable if we are using the MS or Intel-windows compiler
3139case "$CC" in
3140  clang* ) ;;
3141  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3142
3143 case $build in
3144  *-mingw*)
3145    if test "${LD+set}" = set; then :; else
3146      LD=link
3147    fi
3148    ;;
3149 esac
3150 if test $enable_msvc = yes ; then
3151   if test "x${LD+set}" = xset; then :; else
3152     LD=link
3153   fi
3154 fi
3155
3156    ;;
3157esac
3158
3159ac_ext=c
3160ac_cpp='$CPP $CPPFLAGS'
3161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164
3165
3166
3167# Check if pkg-config is available (to setup addlibs file)
3168
3169
3170# Check whether --enable-pkg-config or --disable-pkg-config was given.
3171if test "${enable_pkg_config+set}" = set; then
3172  enableval="$enable_pkg_config"
3173  use_pkgconfig="$enableval"
3174else
3175  if test x$coin_cc_is_cl = xtrue; then
3176     use_pkgconfig=no
3177   else
3178     use_pkgconfig=yes
3179   fi
3180fi;
3181
3182if test $use_pkgconfig = yes ; then
3183  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3184    if test -n "$ac_tool_prefix"; then
3185  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3186set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3187echo "$as_me:$LINENO: checking for $ac_word" >&5
3188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3189if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
3190  echo $ECHO_N "(cached) $ECHO_C" >&6
3191else
3192  if test -n "$PKG_CONFIG"; then
3193  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
3194else
3195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196for as_dir in $PATH
3197do
3198  IFS=$as_save_IFS
3199  test -z "$as_dir" && as_dir=.
3200  for ac_exec_ext in '' $ac_executable_extensions; do
3201  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3202    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
3203    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3204    break 2
3205  fi
3206done
3207done
3208
3209fi
3210fi
3211PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
3212if test -n "$PKG_CONFIG"; then
3213  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3214echo "${ECHO_T}$PKG_CONFIG" >&6
3215else
3216  echo "$as_me:$LINENO: result: no" >&5
3217echo "${ECHO_T}no" >&6
3218fi
3219
3220fi
3221if test -z "$ac_cv_prog_PKG_CONFIG"; then
3222  ac_ct_PKG_CONFIG=$PKG_CONFIG
3223  # Extract the first word of "pkg-config", so it can be a program name with args.
3224set dummy pkg-config; ac_word=$2
3225echo "$as_me:$LINENO: checking for $ac_word" >&5
3226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3227if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
3228  echo $ECHO_N "(cached) $ECHO_C" >&6
3229else
3230  if test -n "$ac_ct_PKG_CONFIG"; then
3231  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
3232else
3233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234for as_dir in $PATH
3235do
3236  IFS=$as_save_IFS
3237  test -z "$as_dir" && as_dir=.
3238  for ac_exec_ext in '' $ac_executable_extensions; do
3239  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
3241    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3242    break 2
3243  fi
3244done
3245done
3246
3247fi
3248fi
3249ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
3250if test -n "$ac_ct_PKG_CONFIG"; then
3251  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
3252echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
3253else
3254  echo "$as_me:$LINENO: result: no" >&5
3255echo "${ECHO_T}no" >&6
3256fi
3257
3258  PKG_CONFIG=$ac_ct_PKG_CONFIG
3259else
3260  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
3261fi
3262
3263  fi
3264  if test -n "$PKG_CONFIG"; then
3265    _pkg_min_version=0.16.0
3266    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3267echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3268    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3269      echo "$as_me:$LINENO: result: yes" >&5
3270echo "${ECHO_T}yes" >&6
3271    else
3272      echo "$as_me:$LINENO: result: no" >&5
3273echo "${ECHO_T}no" >&6
3274      PKG_CONFIG=""
3275    fi
3276  fi
3277
3278  # check if pkg-config supports the short-errors flag
3279  if test -n "$PKG_CONFIG" && \
3280    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3281    pkg_short_errors=" --short-errors "
3282  else
3283    pkg_short_errors=""
3284  fi
3285fi
3286
3287
3288
3289if test -n "$PKG_CONFIG"; then
3290  COIN_HAS_PKGCONFIG_TRUE=
3291  COIN_HAS_PKGCONFIG_FALSE='#'
3292else
3293  COIN_HAS_PKGCONFIG_TRUE='#'
3294  COIN_HAS_PKGCONFIG_FALSE=
3295fi
3296
3297
3298
3299# assemble pkg-config search path for installed projects
3300COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
3301
3302# 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
3303# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
3304# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
3305if test "x${prefix}" = xNONE ; then
3306  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3307else
3308  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3309fi
3310
3311
3312# Check whether --with-coin-instdir or --without-coin-instdir was given.
3313if test "${with_coin_instdir+set}" = set; then
3314  withval="$with_coin_instdir"
3315  if test -d "$withval"; then : ; else
3316     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
3317echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
3318   { (exit 1); exit 1; }; }
3319   fi
3320   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3321
3322fi;
3323
3324
3325
3326# assemble additional pkg-config search paths for uninstalled projects
3327if test x$coin_projectdir = xyes ; then
3328  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
3329  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
3330  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
3331  # 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)
3332  COIN_PKG_CONFIG_PATH_UNINSTALLED=
3333  if test -e ../coin_subdirs.txt ; then
3334    for i in `cat ../coin_subdirs.txt` ; do
3335      if test -d ../$i ; then
3336        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3337      fi
3338      if test -d ../$i/pkgconfig ; then
3339        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3340      fi
3341    done
3342  fi
3343
3344  if test -e ../../coin_subdirs.txt ; then
3345    for i in `cat ../../coin_subdirs.txt` ; do
3346      if test -d ../../$i ; then
3347        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3348      fi
3349      if test -d ../../$i/pkgconfig ; then
3350        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3351      fi
3352    done
3353  fi
3354
3355
3356fi
3357
3358if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
3359  { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
3360echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
3361fi
3362
3363
3364
3365# Initialize automake
3366{
3367
3368
3369
3370# START
3371
3372coin_disable_shared=no
3373# Test if force_shared has been set
3374if test "x" = xforce_shared; then
3375  if test x$enable_shared = xno; then
3376    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3377echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3378   { (exit 1); exit 1; }; }
3379  fi
3380  enable_shared=yes;
3381else
3382  # On Cygwin and AIX, building DLLs doesn't work
3383  case $build in
3384    *-cygwin* | *-mingw*)
3385      coin_disable_shared=yes
3386      if test x"$enable_shared" = xyes; then
3387        case "$CXX" in
3388          clang* )
3389            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
3390echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
3391            ;;
3392          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3393            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&5
3394echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&2;}
3395            ;;
3396          *)
3397            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
3398echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
3399            ;;
3400        esac
3401      fi
3402    ;;
3403    *-aix*)
3404      coin_disable_shared=yes
3405      platform=AIX
3406      if test x"$enable_shared" = xyes; then
3407        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
3408echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
3409      fi
3410    ;;
3411  esac
3412fi
3413if test x"$coin_disable_shared" = xyes; then
3414  if test x"$enable_shared" = xyes; then
3415    :
3416  else
3417    # we don't disable shared, because it was not selected anyway
3418    coin_disable_shared=no
3419  fi
3420  enable_shared=no
3421fi
3422# By default, we only want the shared objects to be compiled
3423# Check whether --enable-static or --disable-static was given.
3424if test "${enable_static+set}" = set; then
3425  enableval="$enable_static"
3426  p=${PACKAGE-default}
3427    case $enableval in
3428    yes) enable_static=yes ;;
3429    no) enable_static=no ;;
3430    *)
3431     enable_static=no
3432      # Look at the argument we got.  We use all the common list separators.
3433      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3434      for pkg in $enableval; do
3435        IFS="$lt_save_ifs"
3436        if test "X$pkg" = "X$p"; then
3437          enable_static=yes
3438        fi
3439      done
3440      IFS="$lt_save_ifs"
3441      ;;
3442    esac
3443else
3444  enable_static=no
3445fi;
3446
3447
3448
3449
3450# Initialize automake
3451echo "$as_me:$LINENO: checking for egrep" >&5
3452echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3453if test "${ac_cv_prog_egrep+set}" = set; then
3454  echo $ECHO_N "(cached) $ECHO_C" >&6
3455else
3456  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3457    then ac_cv_prog_egrep='grep -E'
3458    else ac_cv_prog_egrep='egrep'
3459    fi
3460fi
3461echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3462echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3463 EGREP=$ac_cv_prog_egrep
3464
3465
3466echo "$as_me:$LINENO: checking whether ln -s works" >&5
3467echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3468LN_S=$as_ln_s
3469if test "$LN_S" = "ln -s"; then
3470  echo "$as_me:$LINENO: result: yes" >&5
3471echo "${ECHO_T}yes" >&6
3472else
3473  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3474echo "${ECHO_T}no, using $LN_S" >&6
3475fi
3476
3477am__api_version="1.9"
3478# Find a good install program.  We prefer a C program (faster),
3479# so one script is as good as another.  But avoid the broken or
3480# incompatible versions:
3481# SysV /etc/install, /usr/sbin/install
3482# SunOS /usr/etc/install
3483# IRIX /sbin/install
3484# AIX /bin/install
3485# AmigaOS /C/install, which installs bootblocks on floppy discs
3486# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3487# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3488# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3489# OS/2's system install, which has a completely different semantic
3490# ./install, which can be erroneously created by make from ./install.sh.
3491echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3492echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3493if test -z "$INSTALL"; then
3494if test "${ac_cv_path_install+set}" = set; then
3495  echo $ECHO_N "(cached) $ECHO_C" >&6
3496else
3497  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498for as_dir in $PATH
3499do
3500  IFS=$as_save_IFS
3501  test -z "$as_dir" && as_dir=.
3502  # Account for people who put trailing slashes in PATH elements.
3503case $as_dir/ in
3504  ./ | .// | /cC/* | \
3505  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3506  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3507  /usr/ucb/* ) ;;
3508  *)
3509    # OSF1 and SCO ODT 3.0 have their own names for install.
3510    # Don't use installbsd from OSF since it installs stuff as root
3511    # by default.
3512    for ac_prog in ginstall scoinst install; do
3513      for ac_exec_ext in '' $ac_executable_extensions; do
3514        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3515          if test $ac_prog = install &&
3516            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3517            # AIX install.  It has an incompatible calling convention.
3518            :
3519          elif test $ac_prog = install &&
3520            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3521            # program-specific install script used by HP pwplus--don't use.
3522            :
3523          else
3524            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3525            break 3
3526          fi
3527        fi
3528      done
3529    done
3530    ;;
3531esac
3532done
3533
3534
3535fi
3536  if test "${ac_cv_path_install+set}" = set; then
3537    INSTALL=$ac_cv_path_install
3538  else
3539    # As a last resort, use the slow shell script.  We don't cache a
3540    # path for INSTALL within a source directory, because that will
3541    # break other packages using the cache if that directory is
3542    # removed, or if the path is relative.
3543    INSTALL=$ac_install_sh
3544  fi
3545fi
3546echo "$as_me:$LINENO: result: $INSTALL" >&5
3547echo "${ECHO_T}$INSTALL" >&6
3548
3549# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3550# It thinks the first close brace ends the variable substitution.
3551test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3552
3553test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3554
3555test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3556
3557echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3558echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3559# Just in case
3560sleep 1
3561echo timestamp > conftest.file
3562# Do `set' in a subshell so we don't clobber the current shell's
3563# arguments.  Must try -L first in case configure is actually a
3564# symlink; some systems play weird games with the mod time of symlinks
3565# (eg FreeBSD returns the mod time of the symlink's containing
3566# directory).
3567if (
3568   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3569   if test "$*" = "X"; then
3570      # -L didn't work.
3571      set X `ls -t $srcdir/configure conftest.file`
3572   fi
3573   rm -f conftest.file
3574   if test "$*" != "X $srcdir/configure conftest.file" \
3575      && test "$*" != "X conftest.file $srcdir/configure"; then
3576
3577      # If neither matched, then we have a broken ls.  This can happen
3578      # if, for instance, CONFIG_SHELL is bash and it inherits a
3579      # broken ls alias from the environment.  This has actually
3580      # happened.  Such a system could not be considered "sane".
3581      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3582alias in your environment" >&5
3583echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3584alias in your environment" >&2;}
3585   { (exit 1); exit 1; }; }
3586   fi
3587
3588   test "$2" = conftest.file
3589   )
3590then
3591   # Ok.
3592   :
3593else
3594   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3595Check your system clock" >&5
3596echo "$as_me: error: newly created file is older than distributed files!
3597Check your system clock" >&2;}
3598   { (exit 1); exit 1; }; }
3599fi
3600echo "$as_me:$LINENO: result: yes" >&5
3601echo "${ECHO_T}yes" >&6
3602test "$program_prefix" != NONE &&
3603  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3604# Use a double $ so make ignores it.
3605test "$program_suffix" != NONE &&
3606  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3607# Double any \ or $.  echo might interpret backslashes.
3608# By default was `s,x,x', remove it if useless.
3609cat <<\_ACEOF >conftest.sed
3610s/[\\$]/&&/g;s/;s,x,x,$//
3611_ACEOF
3612program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3613rm conftest.sed
3614
3615# expand $ac_aux_dir to an absolute path
3616am_aux_dir=`cd $ac_aux_dir && pwd`
3617
3618test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3619# Use eval to expand $SHELL
3620if eval "$MISSING --run true"; then
3621  am_missing_run="$MISSING --run "
3622else
3623  am_missing_run=
3624  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3625echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3626fi
3627
3628if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3629  # We used to keeping the `.' as first argument, in order to
3630  # allow $(mkdir_p) to be used without argument.  As in
3631  #   $(mkdir_p) $(somedir)
3632  # where $(somedir) is conditionally defined.  However this is wrong
3633  # for two reasons:
3634  #  1. if the package is installed by a user who cannot write `.'
3635  #     make install will fail,
3636  #  2. the above comment should most certainly read
3637  #     $(mkdir_p) $(DESTDIR)$(somedir)
3638  #     so it does not work when $(somedir) is undefined and
3639  #     $(DESTDIR) is not.
3640  #  To support the latter case, we have to write
3641  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3642  #  so the `.' trick is pointless.
3643  mkdir_p='mkdir -p --'
3644else
3645  # On NextStep and OpenStep, the `mkdir' command does not
3646  # recognize any option.  It will interpret all options as
3647  # directories to create, and then abort because `.' already
3648  # exists.
3649  for d in ./-p ./--version;
3650  do
3651    test -d $d && rmdir $d
3652  done
3653  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3654  if test -f "$ac_aux_dir/mkinstalldirs"; then
3655    mkdir_p='$(mkinstalldirs)'
3656  else
3657    mkdir_p='$(install_sh) -d'
3658  fi
3659fi
3660
3661for ac_prog in gawk mawk nawk awk
3662do
3663  # Extract the first word of "$ac_prog", so it can be a program name with args.
3664set dummy $ac_prog; ac_word=$2
3665echo "$as_me:$LINENO: checking for $ac_word" >&5
3666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3667if test "${ac_cv_prog_AWK+set}" = set; then
3668  echo $ECHO_N "(cached) $ECHO_C" >&6
3669else
3670  if test -n "$AWK"; then
3671  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3672else
3673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674for as_dir in $PATH
3675do
3676  IFS=$as_save_IFS
3677  test -z "$as_dir" && as_dir=.
3678  for ac_exec_ext in '' $ac_executable_extensions; do
3679  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3680    ac_cv_prog_AWK="$ac_prog"
3681    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3682    break 2
3683  fi
3684done
3685done
3686
3687fi
3688fi
3689AWK=$ac_cv_prog_AWK
3690if test -n "$AWK"; then
3691  echo "$as_me:$LINENO: result: $AWK" >&5
3692echo "${ECHO_T}$AWK" >&6
3693else
3694  echo "$as_me:$LINENO: result: no" >&5
3695echo "${ECHO_T}no" >&6
3696fi
3697
3698  test -n "$AWK" && break
3699done
3700
3701echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3702echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3703set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3704if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3705  echo $ECHO_N "(cached) $ECHO_C" >&6
3706else
3707  cat >conftest.make <<\_ACEOF
3708all:
3709        @echo 'ac_maketemp="$(MAKE)"'
3710_ACEOF
3711# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3712eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3713if test -n "$ac_maketemp"; then
3714  eval ac_cv_prog_make_${ac_make}_set=yes
3715else
3716  eval ac_cv_prog_make_${ac_make}_set=no
3717fi
3718rm -f conftest.make
3719fi
3720if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3721  echo "$as_me:$LINENO: result: yes" >&5
3722echo "${ECHO_T}yes" >&6
3723  SET_MAKE=
3724else
3725  echo "$as_me:$LINENO: result: no" >&5
3726echo "${ECHO_T}no" >&6
3727  SET_MAKE="MAKE=${MAKE-make}"
3728fi
3729
3730rm -rf .tst 2>/dev/null
3731mkdir .tst 2>/dev/null
3732if test -d .tst; then
3733  am__leading_dot=.
3734else
3735  am__leading_dot=_
3736fi
3737rmdir .tst 2>/dev/null
3738
3739DEPDIR="${am__leading_dot}deps"
3740
3741          ac_config_commands="$ac_config_commands depfiles"
3742
3743
3744am_make=${MAKE-make}
3745cat > confinc << 'END'
3746am__doit:
3747        @echo done
3748.PHONY: am__doit
3749END
3750# If we don't find an include directive, just comment out the code.
3751echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3752echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3753am__include="#"
3754am__quote=
3755_am_result=none
3756# First try GNU make style include.
3757echo "include confinc" > confmf
3758# We grep out `Entering directory' and `Leaving directory'
3759# messages which can occur if `w' ends up in MAKEFLAGS.
3760# In particular we don't look at `^make:' because GNU make might
3761# be invoked under some other name (usually "gmake"), in which
3762# case it prints its new name instead of `make'.
3763if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3764   am__include=include
3765   am__quote=
3766   _am_result=GNU
3767fi
3768# Now try BSD make style include.
3769if test "$am__include" = "#"; then
3770   echo '.include "confinc"' > confmf
3771   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3772      am__include=.include
3773      am__quote="\""
3774      _am_result=BSD
3775   fi
3776fi
3777
3778
3779echo "$as_me:$LINENO: result: $_am_result" >&5
3780echo "${ECHO_T}$_am_result" >&6
3781rm -f confinc confmf
3782
3783# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3784if test "${enable_dependency_tracking+set}" = set; then
3785  enableval="$enable_dependency_tracking"
3786
3787fi;
3788if test "x$enable_dependency_tracking" != xno; then
3789  am_depcomp="$ac_aux_dir/depcomp"
3790  AMDEPBACKSLASH='\'
3791fi
3792
3793
3794if test "x$enable_dependency_tracking" != xno; then
3795  AMDEP_TRUE=
3796  AMDEP_FALSE='#'
3797else
3798  AMDEP_TRUE='#'
3799  AMDEP_FALSE=
3800fi
3801
3802
3803
3804
3805
3806
3807# AC_MSG_NOTICE([Beginning automake initialisation.])
3808# Stuff for automake
3809# test to see if srcdir already configured
3810if test "`cd $srcdir && pwd`" != "`pwd`" &&
3811   test -f $srcdir/config.status; then
3812  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3813echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3814   { (exit 1); exit 1; }; }
3815fi
3816
3817# test whether we have cygpath
3818if test -z "$CYGPATH_W"; then
3819  if (cygpath --version) >/dev/null 2>/dev/null; then
3820    CYGPATH_W='cygpath -w'
3821  else
3822    CYGPATH_W=echo
3823  fi
3824fi
3825
3826
3827# Define the identity of the package.
3828 PACKAGE='thirdpartyglpk'
3829 VERSION='1.9'
3830
3831
3832cat >>confdefs.h <<_ACEOF
3833#define PACKAGE "$PACKAGE"
3834_ACEOF
3835
3836
3837cat >>confdefs.h <<_ACEOF
3838#define VERSION "$VERSION"
3839_ACEOF
3840
3841# Some tools Automake needs.
3842
3843ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3844
3845
3846AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3847
3848
3849AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3850
3851
3852AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3853
3854
3855MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3856
3857install_sh=${install_sh-"$am_aux_dir/install-sh"}
3858
3859# Installed binaries are usually stripped using `strip' when the user
3860# run `make install-strip'.  However `strip' might not be the right
3861# tool to use in cross-compilation environments, therefore Automake
3862# will honor the `STRIP' environment variable to overrule this program.
3863if test "$cross_compiling" != no; then
3864  if test -n "$ac_tool_prefix"; then
3865  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3866set dummy ${ac_tool_prefix}strip; ac_word=$2
3867echo "$as_me:$LINENO: checking for $ac_word" >&5
3868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3869if test "${ac_cv_prog_STRIP+set}" = set; then
3870  echo $ECHO_N "(cached) $ECHO_C" >&6
3871else
3872  if test -n "$STRIP"; then
3873  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3874else
3875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876for as_dir in $PATH
3877do
3878  IFS=$as_save_IFS
3879  test -z "$as_dir" && as_dir=.
3880  for ac_exec_ext in '' $ac_executable_extensions; do
3881  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3883    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884    break 2
3885  fi
3886done
3887done
3888
3889fi
3890fi
3891STRIP=$ac_cv_prog_STRIP
3892if test -n "$STRIP"; then
3893  echo "$as_me:$LINENO: result: $STRIP" >&5
3894echo "${ECHO_T}$STRIP" >&6
3895else
3896  echo "$as_me:$LINENO: result: no" >&5
3897echo "${ECHO_T}no" >&6
3898fi
3899
3900fi
3901if test -z "$ac_cv_prog_STRIP"; then
3902  ac_ct_STRIP=$STRIP
3903  # Extract the first word of "strip", so it can be a program name with args.
3904set dummy strip; ac_word=$2
3905echo "$as_me:$LINENO: checking for $ac_word" >&5
3906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3908  echo $ECHO_N "(cached) $ECHO_C" >&6
3909else
3910  if test -n "$ac_ct_STRIP"; then
3911  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3912else
3913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914for as_dir in $PATH
3915do
3916  IFS=$as_save_IFS
3917  test -z "$as_dir" && as_dir=.
3918  for ac_exec_ext in '' $ac_executable_extensions; do
3919  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920    ac_cv_prog_ac_ct_STRIP="strip"
3921    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922    break 2
3923  fi
3924done
3925done
3926
3927  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3928fi
3929fi
3930ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3931if test -n "$ac_ct_STRIP"; then
3932  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3933echo "${ECHO_T}$ac_ct_STRIP" >&6
3934else
3935  echo "$as_me:$LINENO: result: no" >&5
3936echo "${ECHO_T}no" >&6
3937fi
3938
3939  STRIP=$ac_ct_STRIP
3940else
3941  STRIP="$ac_cv_prog_STRIP"
3942fi
3943
3944fi
3945INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3946
3947# We need awk for the "check" target.  The system "awk" is bad on
3948# some platforms.
3949# Always define AMTAR for backward compatibility.
3950
3951AMTAR=${AMTAR-"${am_missing_run}tar"}
3952
3953am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3954
3955
3956
3957
3958depcc="$CC"   am_compiler_list=
3959
3960echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3961echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3962if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3963  echo $ECHO_N "(cached) $ECHO_C" >&6
3964else
3965  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3966  # We make a subdir and do the tests there.  Otherwise we can end up
3967  # making bogus files that we don't know about and never remove.  For
3968  # instance it was reported that on HP-UX the gcc test will end up
3969  # making a dummy file named `D' -- because `-MD' means `put the output
3970  # in D'.
3971  mkdir conftest.dir
3972  # Copy depcomp to subdir because otherwise we won't find it if we're
3973  # using a relative directory.
3974  cp "$am_depcomp" conftest.dir
3975  cd conftest.dir
3976  # We will build objects and dependencies in a subdirectory because
3977  # it helps to detect inapplicable dependency modes.  For instance
3978  # both Tru64's cc and ICC support -MD to output dependencies as a
3979  # side effect of compilation, but ICC will put the dependencies in
3980  # the current directory while Tru64 will put them in the object
3981  # directory.
3982  mkdir sub
3983
3984  am_cv_CC_dependencies_compiler_type=none
3985  if test "$am_compiler_list" = ""; then
3986     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3987  fi
3988  for depmode in $am_compiler_list; do
3989    # Setup a source with many dependencies, because some compilers
3990    # like to wrap large dependency lists on column 80 (with \), and
3991    # we should not choose a depcomp mode which is confused by this.
3992    #
3993    # We need to recreate these files for each test, as the compiler may
3994    # overwrite some of them when testing with obscure command lines.
3995    # This happens at least with the AIX C compiler.
3996    : > sub/conftest.c
3997    for i in 1 2 3 4 5 6; do
3998      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3999      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4000      # Solaris 8's {/usr,}/bin/sh.
4001      touch sub/conftst$i.h
4002    done
4003    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4004
4005    case $depmode in
4006    nosideeffect)
4007      # after this tag, mechanisms are not by side-effect, so they'll
4008      # only be used when explicitly requested
4009      if test "x$enable_dependency_tracking" = xyes; then
4010        continue
4011      else
4012        break
4013      fi
4014      ;;
4015    none) break ;;
4016    esac
4017    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4018    # mode.  It turns out that the SunPro C++ compiler does not properly
4019    # handle `-M -o', and we need to detect this.
4020    if depmode=$depmode \
4021       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4022       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4023       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4024         >/dev/null 2>conftest.err &&
4025       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4026       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4027       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4028      # icc doesn't choke on unknown options, it will just issue warnings
4029      # or remarks (even with -Werror).  So we grep stderr for any message
4030      # that says an option was ignored or not supported.
4031      # When given -MP, icc 7.0 and 7.1 complain thusly:
4032      #   icc: Command line warning: ignoring option '-M'; no argument required
4033      # The diagnosis changed in icc 8.0:
4034      #   icc: Command line remark: option '-MP' not supported
4035      if (grep 'ignoring option' conftest.err ||
4036          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4037        am_cv_CC_dependencies_compiler_type=$depmode
4038        break
4039      fi
4040    fi
4041  done
4042
4043  cd ..
4044  rm -rf conftest.dir
4045else
4046  am_cv_CC_dependencies_compiler_type=none
4047fi
4048
4049fi
4050echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4051echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4052CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4053
4054
4055
4056if
4057  test "x$enable_dependency_tracking" != xno \
4058  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4059  am__fastdepCC_TRUE=
4060  am__fastdepCC_FALSE='#'
4061else
4062  am__fastdepCC_TRUE='#'
4063  am__fastdepCC_FALSE=
4064fi
4065
4066
4067
4068echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4069echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4070    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4071if test "${enable_maintainer_mode+set}" = set; then
4072  enableval="$enable_maintainer_mode"
4073  USE_MAINTAINER_MODE=$enableval
4074else
4075  USE_MAINTAINER_MODE=no
4076fi;
4077  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4078echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4079
4080
4081if test $USE_MAINTAINER_MODE = yes; then
4082  MAINTAINER_MODE_TRUE=
4083  MAINTAINER_MODE_FALSE='#'
4084else
4085  MAINTAINER_MODE_TRUE='#'
4086  MAINTAINER_MODE_FALSE=
4087fi
4088
4089  MAINT=$MAINTAINER_MODE_TRUE
4090
4091
4092
4093coin_have_externals=no
4094if test "$enable_maintainer_mode" = yes; then
4095
4096  # If maintainer mode is chosen, we make sure that the correct versions
4097  # of the tools are used, and that we know where libtool.m4 is (to
4098  # recreate acinclude.m4)
4099
4100
4101  LIBTOOLM4=
4102  # Normally, $HOME
4103  AUTOTOOLS_DFLT=$HOME
4104
4105  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4106echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4107if test "${ac_cv_use_correct_autotools+set}" = set; then
4108  echo $ECHO_N "(cached) $ECHO_C" >&6
4109else
4110  ac_cv_use_correct_autotools=check
4111fi
4112echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4113echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4114
4115  if test $ac_cv_use_correct_autotools = check; then
4116    ac_cv_use_correct_autotools=yes
4117    # Check if we have autoconf
4118    # Extract the first word of "autoconf", so it can be a program name with args.
4119set dummy autoconf; ac_word=$2
4120echo "$as_me:$LINENO: checking for $ac_word" >&5
4121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4122if test "${ac_cv_prog_have_autoconf+set}" = set; then
4123  echo $ECHO_N "(cached) $ECHO_C" >&6
4124else
4125  if test -n "$have_autoconf"; then
4126  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4127else
4128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129for as_dir in $PATH
4130do
4131  IFS=$as_save_IFS
4132  test -z "$as_dir" && as_dir=.
4133  for ac_exec_ext in '' $ac_executable_extensions; do
4134  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135    ac_cv_prog_have_autoconf="yes"
4136    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4137    break 2
4138  fi
4139done
4140done
4141
4142  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4143fi
4144fi
4145have_autoconf=$ac_cv_prog_have_autoconf
4146if test -n "$have_autoconf"; then
4147  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4148echo "${ECHO_T}$have_autoconf" >&6
4149else
4150  echo "$as_me:$LINENO: result: no" >&5
4151echo "${ECHO_T}no" >&6
4152fi
4153
4154    if test $have_autoconf = no; then
4155      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4156echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4157   { (exit 1); exit 1; }; }
4158    fi
4159
4160    # Check whether autoconf is the correct version
4161    correct_version='2.59'
4162    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4163    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4164echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4165    autoconf --version > confauto.out 2>&1
4166    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4167      echo "$as_me:$LINENO: result: yes" >&5
4168echo "${ECHO_T}yes" >&6
4169    else
4170      rm -f confauto.out
4171      echo "$as_me:$LINENO: result: no" >&5
4172echo "${ECHO_T}no" >&6
4173      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4174echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4175   { (exit 1); exit 1; }; }
4176    fi
4177    rm -f confauto.out
4178
4179    # Check if the executable autoconf is picked up from the correct location
4180    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4181echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4182    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4183    autoconf_dir=`cd $autoconf_dir; pwd`
4184    if test x$AUTOTOOLS_DIR = x; then
4185      want_dir=$AUTOTOOLS_DFLT/bin
4186    else
4187      want_dir=$AUTOTOOLS_DIR/bin
4188    fi
4189    if test $autoconf_dir = `cd $want_dir; pwd`; then
4190      echo "$as_me:$LINENO: result: yes" >&5
4191echo "${ECHO_T}yes" >&6
4192    else
4193      rm -f confauto.out
4194      echo "$as_me:$LINENO: result: no" >&5
4195echo "${ECHO_T}no" >&6
4196      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4197echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4198   { (exit 1); exit 1; }; }
4199    fi
4200
4201    # Check if we have automake
4202    # Extract the first word of "automake", so it can be a program name with args.
4203set dummy automake; ac_word=$2
4204echo "$as_me:$LINENO: checking for $ac_word" >&5
4205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4206if test "${ac_cv_prog_have_automake+set}" = set; then
4207  echo $ECHO_N "(cached) $ECHO_C" >&6
4208else
4209  if test -n "$have_automake"; then
4210  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4211else
4212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH
4214do
4215  IFS=$as_save_IFS
4216  test -z "$as_dir" && as_dir=.
4217  for ac_exec_ext in '' $ac_executable_extensions; do
4218  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4219    ac_cv_prog_have_automake="yes"
4220    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221    break 2
4222  fi
4223done
4224done
4225
4226  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4227fi
4228fi
4229have_automake=$ac_cv_prog_have_automake
4230if test -n "$have_automake"; then
4231  echo "$as_me:$LINENO: result: $have_automake" >&5
4232echo "${ECHO_T}$have_automake" >&6
4233else
4234  echo "$as_me:$LINENO: result: no" >&5
4235echo "${ECHO_T}no" >&6
4236fi
4237
4238    if test $have_automake = no; then
4239      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4240echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4241   { (exit 1); exit 1; }; }
4242    fi
4243
4244    # Check whether automake is the correct version
4245    correct_version='1.9.6'
4246    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4247    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4248echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4249    automake --version > confauto.out 2>&1
4250    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4251      echo "$as_me:$LINENO: result: yes" >&5
4252echo "${ECHO_T}yes" >&6
4253    else
4254      rm -f confauto.out
4255      echo "$as_me:$LINENO: result: no" >&5
4256echo "${ECHO_T}no" >&6
4257      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4258echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4259   { (exit 1); exit 1; }; }
4260    fi
4261    rm -f confauto.out
4262
4263    # Check if the executable automake is picked up from the correct location
4264    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4265echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4266    automake_dir=`which automake | sed -e 's=/automake=='`
4267    automake_dir=`cd $automake_dir; pwd`
4268    if test x$AUTOTOOLS_DIR = x; then
4269      want_dir=$AUTOTOOLS_DFLT/bin
4270    else
4271      want_dir=$AUTOTOOLS_DIR/bin
4272    fi
4273    if test $automake_dir = `cd $want_dir; pwd`; then
4274      echo "$as_me:$LINENO: result: yes" >&5
4275echo "${ECHO_T}yes" >&6
4276    else
4277      rm -f confauto.out
4278      echo "$as_me:$LINENO: result: no" >&5
4279echo "${ECHO_T}no" >&6
4280      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4281echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4282   { (exit 1); exit 1; }; }
4283    fi
4284
4285    # Check if this is the correct version of libtool (with escaped dots)
4286    if test x$AUTOTOOLS_DIR = x; then
4287      want_dir=$AUTOTOOLS_DFLT/share
4288    else
4289      want_dir=$AUTOTOOLS_DIR/share
4290    fi
4291    correct_version='1.5.22'
4292    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4293    if test -r $want_dir/libtool/ltmain.sh; then
4294  have_ltmain=yes
4295  :
4296else
4297  have_ltmain=no
4298  :
4299fi
4300
4301    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4302echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4303    if test $have_ltmain = yes; then
4304    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4305        echo "$as_me:$LINENO: result: yes" >&5
4306echo "${ECHO_T}yes" >&6
4307      else
4308        echo "$as_me:$LINENO: result: no" >&5
4309echo "${ECHO_T}no" >&6
4310        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4311echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4312   { (exit 1); exit 1; }; }
4313      fi
4314    else
4315      echo "$as_me:$LINENO: result: no" >&5
4316echo "${ECHO_T}no" >&6
4317      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4318echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4319   { (exit 1); exit 1; }; }
4320    fi
4321  fi
4322
4323  # Check if we can find the libtool file
4324  if test x$AUTOTOOLS_DIR = x; then
4325    want_dir=$AUTOTOOLS_DFLT/share
4326  else
4327    want_dir=$AUTOTOOLS_DIR/share
4328  fi
4329  if test -r $want_dir/aclocal/libtool.m4; then
4330  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4331  :
4332else
4333  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4334echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4335   { (exit 1); exit 1; }; }
4336  :
4337fi
4338
4339
4340  # Check if we have an Dependencies file
4341  if test -r $srcdir/Dependencies; then
4342    coin_have_externals=yes
4343  fi
4344  # Check if subversion is installed and understands https
4345  # Extract the first word of "svn", so it can be a program name with args.
4346set dummy svn; ac_word=$2
4347echo "$as_me:$LINENO: checking for $ac_word" >&5
4348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4349if test "${ac_cv_prog_have_svn+set}" = set; then
4350  echo $ECHO_N "(cached) $ECHO_C" >&6
4351else
4352  if test -n "$have_svn"; then
4353  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4354else
4355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356for as_dir in $PATH
4357do
4358  IFS=$as_save_IFS
4359  test -z "$as_dir" && as_dir=.
4360  for ac_exec_ext in '' $ac_executable_extensions; do
4361  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4362    ac_cv_prog_have_svn="yes"
4363    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4364    break 2
4365  fi
4366done
4367done
4368
4369  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4370fi
4371fi
4372have_svn=$ac_cv_prog_have_svn
4373if test -n "$have_svn"; then
4374  echo "$as_me:$LINENO: result: $have_svn" >&5
4375echo "${ECHO_T}$have_svn" >&6
4376else
4377  echo "$as_me:$LINENO: result: no" >&5
4378echo "${ECHO_T}no" >&6
4379fi
4380
4381  if test x$have_svn = xyes; then
4382    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4383echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4384if test "${ac_cv_svn_understands_https+set}" = set; then
4385  echo $ECHO_N "(cached) $ECHO_C" >&6
4386else
4387  svn --version > confauto.out 2>&1
4388                    if $EGREP https confauto.out >/dev/null 2>&1; then
4389                      ac_cv_svn_understands_https=yes
4390                    else
4391                      ac_cv_svn_understands_https=no
4392                      have_svn=no
4393                      ac_cv_prog_have_svn=no
4394                    fi
4395                    rm -f confauto.out
4396fi
4397echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4398echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4399  fi
4400
4401  # Find the location of the BuildTools directory
4402  BUILDTOOLSDIR=
4403  if test -r $srcdir/BuildTools/coin.m4; then
4404    BUILDTOOLSDIR=$srcdir/BuildTools
4405  else
4406    if test -r $srcdir/../BuildTools/coin.m4; then
4407      BUILDTOOLSDIR=$srcdir/../BuildTools
4408    else
4409      if test -r $srcdir/../../BuildTools/coin.m4; then
4410        BUILDTOOLSDIR=$srcdir/../../BuildTools
4411      else
4412        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4413echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4414   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4415      fi
4416    fi
4417  fi
4418
4419
4420  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4421  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4422    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4423  fi
4424
4425  # The following variable is set to the name of the directory where
4426  # the autotool scripts are located
4427
4428  AUX_DIR=$ac_aux_dir
4429fi
4430
4431# helpful variable for the base directory of this package
4432abs_source_dir=`cd $srcdir; pwd`
4433
4434
4435# Stuff for example Makefiles
4436if test x$prefix = xNONE; then
4437  full_prefix=$ac_default_prefix
4438else
4439  full_prefix=$prefix
4440fi
4441full_prefix=`cd $full_prefix ; pwd`
4442
4443abs_lib_dir=$full_prefix/lib
4444
4445abs_include_dir=$full_prefix/include
4446
4447abs_bin_dir=$full_prefix/bin
4448
4449
4450
4451if test $coin_have_externals = yes && test x$have_svn = xyes; then
4452  HAVE_EXTERNALS_TRUE=
4453  HAVE_EXTERNALS_FALSE='#'
4454else
4455  HAVE_EXTERNALS_TRUE='#'
4456  HAVE_EXTERNALS_FALSE=
4457fi
4458
4459
4460# AC_MSG_NOTICE([End automake initialisation.])
4461
4462
4463
4464LIBTOOL=
4465if test -r ../libtool; then
4466  coin_config_dir=..
4467  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4468fi
4469if test "x$LIBTOOL" = x; then
4470  if test -r ../../libtool; then
4471    coin_config_dir=../..
4472    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4473  fi
4474fi
4475
4476if test "x$LIBTOOL" = x; then
4477# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4478  # Stuff for libtool
4479  # Check whether --enable-shared or --disable-shared was given.
4480if test "${enable_shared+set}" = set; then
4481  enableval="$enable_shared"
4482  p=${PACKAGE-default}
4483    case $enableval in
4484    yes) enable_shared=yes ;;
4485    no) enable_shared=no ;;
4486    *)
4487      enable_shared=no
4488      # Look at the argument we got.  We use all the common list separators.
4489      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4490      for pkg in $enableval; do
4491        IFS="$lt_save_ifs"
4492        if test "X$pkg" = "X$p"; then
4493          enable_shared=yes
4494        fi
4495      done
4496      IFS="$lt_save_ifs"
4497      ;;
4498    esac
4499else
4500  enable_shared=yes
4501fi;
4502
4503# Check whether --enable-fast-install or --disable-fast-install was given.
4504if test "${enable_fast_install+set}" = set; then
4505  enableval="$enable_fast_install"
4506  p=${PACKAGE-default}
4507    case $enableval in
4508    yes) enable_fast_install=yes ;;
4509    no) enable_fast_install=no ;;
4510    *)
4511      enable_fast_install=no
4512      # Look at the argument we got.  We use all the common list separators.
4513      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4514      for pkg in $enableval; do
4515        IFS="$lt_save_ifs"
4516        if test "X$pkg" = "X$p"; then
4517          enable_fast_install=yes
4518        fi
4519      done
4520      IFS="$lt_save_ifs"
4521      ;;
4522    esac
4523else
4524  enable_fast_install=yes
4525fi;
4526
4527echo "$as_me:$LINENO: checking host system type" >&5
4528echo $ECHO_N "checking host system type... $ECHO_C" >&6
4529if test "${ac_cv_host+set}" = set; then
4530  echo $ECHO_N "(cached) $ECHO_C" >&6
4531else
4532  ac_cv_host_alias=$host_alias
4533test -z "$ac_cv_host_alias" &&
4534  ac_cv_host_alias=$ac_cv_build_alias
4535ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4536  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4537echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4538   { (exit 1); exit 1; }; }
4539
4540fi
4541echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4542echo "${ECHO_T}$ac_cv_host" >&6
4543host=$ac_cv_host
4544host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4545host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4546host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4547
4548
4549echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4550echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4551if test "${lt_cv_path_SED+set}" = set; then
4552  echo $ECHO_N "(cached) $ECHO_C" >&6
4553else
4554  # Loop through the user's path and test for sed and gsed.
4555# Then use that list of sed's as ones to test for truncation.
4556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557for as_dir in $PATH
4558do
4559  IFS=$as_save_IFS
4560  test -z "$as_dir" && as_dir=.
4561  for lt_ac_prog in sed gsed; do
4562    for ac_exec_ext in '' $ac_executable_extensions; do
4563      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4564        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4565      fi
4566    done
4567  done
4568done
4569lt_ac_max=0
4570lt_ac_count=0
4571# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4572# along with /bin/sed that truncates output.
4573for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4574  test ! -f $lt_ac_sed && continue
4575  cat /dev/null > conftest.in
4576  lt_ac_count=0
4577  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4578  # Check for GNU sed and select it if it is found.
4579  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4580    lt_cv_path_SED=$lt_ac_sed
4581    break
4582  fi
4583  while true; do
4584    cat conftest.in conftest.in >conftest.tmp
4585    mv conftest.tmp conftest.in
4586    cp conftest.in conftest.nl
4587    echo >>conftest.nl
4588    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4589    cmp -s conftest.out conftest.nl || break
4590    # 10000 chars as input seems more than enough
4591    test $lt_ac_count -gt 10 && break
4592    lt_ac_count=`expr $lt_ac_count + 1`
4593    if test $lt_ac_count -gt $lt_ac_max; then
4594      lt_ac_max=$lt_ac_count
4595      lt_cv_path_SED=$lt_ac_sed
4596    fi
4597  done
4598done
4599
4600fi
4601
4602SED=$lt_cv_path_SED
4603echo "$as_me:$LINENO: result: $SED" >&5
4604echo "${ECHO_T}$SED" >&6
4605
4606
4607# Check whether --with-gnu-ld or --without-gnu-ld was given.
4608if test "${with_gnu_ld+set}" = set; then
4609  withval="$with_gnu_ld"
4610  test "$withval" = no || with_gnu_ld=yes
4611else
4612  with_gnu_ld=no
4613fi;
4614ac_prog=ld
4615if test "$GCC" = yes; then
4616  # Check if gcc -print-prog-name=ld gives a path.
4617  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4618echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4619  case $host in
4620  *-*-mingw*)
4621    # gcc leaves a trailing carriage return which upsets mingw
4622    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4623  *)
4624    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4625  esac
4626  case $ac_prog in
4627    # Accept absolute paths.
4628    [\\/]* | ?:[\\/]*)
4629      re_direlt='/[^/][^/]*/\.\./'
4630      # Canonicalize the pathname of ld
4631      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4632      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4633        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4634      done
4635      test -z "$LD" && LD="$ac_prog"
4636      ;;
4637  "")
4638    # If it fails, then pretend we aren't using GCC.
4639    ac_prog=ld
4640    ;;
4641  *)
4642    # If it is relative, then search for the first ld in PATH.
4643    with_gnu_ld=unknown
4644    ;;
4645  esac
4646elif test "$with_gnu_ld" = yes; then
4647  echo "$as_me:$LINENO: checking for GNU ld" >&5
4648echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4649else
4650  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4651echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4652fi
4653if test "${lt_cv_path_LD+set}" = set; then
4654  echo $ECHO_N "(cached) $ECHO_C" >&6
4655else
4656  if test -z "$LD"; then
4657  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4658  for ac_dir in $PATH; do
4659    IFS="$lt_save_ifs"
4660    test -z "$ac_dir" && ac_dir=.
4661    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4662      lt_cv_path_LD="$ac_dir/$ac_prog"
4663      # Check to see if the program is GNU ld.  I'd rather use --version,
4664      # but apparently some variants of GNU ld only accept -v.
4665      # Break only if it was the GNU/non-GNU ld that we prefer.
4666      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4667      *GNU* | *'with BFD'*)
4668        test "$with_gnu_ld" != no && break
4669        ;;
4670      *)
4671        test "$with_gnu_ld" != yes && break
4672        ;;
4673      esac
4674    fi
4675  done
4676  IFS="$lt_save_ifs"
4677else
4678  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4679fi
4680fi
4681
4682LD="$lt_cv_path_LD"
4683if test -n "$LD"; then
4684  echo "$as_me:$LINENO: result: $LD" >&5
4685echo "${ECHO_T}$LD" >&6
4686else
4687  echo "$as_me:$LINENO: result: no" >&5
4688echo "${ECHO_T}no" >&6
4689fi
4690test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4691echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4692   { (exit 1); exit 1; }; }
4693echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4694echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4695if test "${lt_cv_prog_gnu_ld+set}" = set; then
4696  echo $ECHO_N "(cached) $ECHO_C" >&6
4697else
4698  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4699case `$LD -v 2>&1 </dev/null` in
4700*GNU* | *'with BFD'*)
4701  lt_cv_prog_gnu_ld=yes
4702  ;;
4703*)
4704  lt_cv_prog_gnu_ld=no
4705  ;;
4706esac
4707fi
4708echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4709echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4710with_gnu_ld=$lt_cv_prog_gnu_ld
4711
4712
4713echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4714echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4715if test "${lt_cv_ld_reload_flag+set}" = set; then
4716  echo $ECHO_N "(cached) $ECHO_C" >&6
4717else
4718  lt_cv_ld_reload_flag='-r'
4719fi
4720echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4721echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4722reload_flag=$lt_cv_ld_reload_flag
4723case $reload_flag in
4724"" | " "*) ;;
4725*) reload_flag=" $reload_flag" ;;
4726esac
4727reload_cmds='$LD$reload_flag -o $output$reload_objs'
4728case $host_os in
4729  darwin*)
4730    if test "$GCC" = yes; then
4731      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4732    else
4733      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4734    fi
4735    ;;
4736esac
4737
4738echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4739echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4740if test "${lt_cv_path_NM+set}" = set; then
4741  echo $ECHO_N "(cached) $ECHO_C" >&6
4742else
4743  if test -n "$NM"; then
4744  # Let the user override the test.
4745  lt_cv_path_NM="$NM"
4746else
4747  lt_nm_to_check="${ac_tool_prefix}nm"
4748  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4749    lt_nm_to_check="$lt_nm_to_check nm"
4750  fi
4751  for lt_tmp_nm in $lt_nm_to_check; do
4752    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4753    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4754      IFS="$lt_save_ifs"
4755      test -z "$ac_dir" && ac_dir=.
4756      tmp_nm="$ac_dir/$lt_tmp_nm"
4757      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4758        # Check to see if the nm accepts a BSD-compat flag.
4759        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4760        #   nm: unknown option "B" ignored
4761        # Tru64's nm complains that /dev/null is an invalid object file
4762        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4763        */dev/null* | *'Invalid file or object type'*)
4764          lt_cv_path_NM="$tmp_nm -B"
4765          break
4766          ;;
4767        *)
4768          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4769          */dev/null*)
4770            lt_cv_path_NM="$tmp_nm -p"
4771            break
4772            ;;
4773          *)
4774            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4775            continue # so that we can try to find one that supports BSD flags
4776            ;;
4777          esac
4778          ;;
4779        esac
4780      fi
4781    done
4782    IFS="$lt_save_ifs"
4783  done
4784  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4785fi
4786fi
4787echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4788echo "${ECHO_T}$lt_cv_path_NM" >&6
4789NM="$lt_cv_path_NM"
4790
4791echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4792echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4793if test "${lt_cv_deplibs_check_method+set}" = set; then
4794  echo $ECHO_N "(cached) $ECHO_C" >&6
4795else
4796  lt_cv_file_magic_cmd='$MAGIC_CMD'
4797lt_cv_file_magic_test_file=
4798lt_cv_deplibs_check_method='unknown'
4799# Need to set the preceding variable on all platforms that support
4800# interlibrary dependencies.
4801# 'none' -- dependencies not supported.
4802# `unknown' -- same as none, but documents that we really don't know.
4803# 'pass_all' -- all dependencies passed with no checks.
4804# 'test_compile' -- check by making test program.
4805# 'file_magic [[regex]]' -- check by looking for files in library path
4806# which responds to the $file_magic_cmd with a given extended regex.
4807# If you have `file' or equivalent on your system and you're not sure
4808# whether `pass_all' will *always* work, you probably want this one.
4809
4810case $host_os in
4811aix4* | aix5*)
4812  lt_cv_deplibs_check_method=pass_all
4813  ;;
4814
4815beos*)
4816  lt_cv_deplibs_check_method=pass_all
4817  ;;
4818
4819bsdi[45]*)
4820  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4821  lt_cv_file_magic_cmd='/usr/bin/file -L'
4822  lt_cv_file_magic_test_file=/shlib/libc.so
4823  ;;
4824
4825cygwin*)
4826  # func_win32_libid is a shell function defined in ltmain.sh
4827  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4828  lt_cv_file_magic_cmd='func_win32_libid'
4829  ;;
4830
4831mingw* | pw32*)
4832  # Base MSYS/MinGW do not provide the 'file' command needed by
4833  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4834  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4835  lt_cv_file_magic_cmd='$OBJDUMP -f'
4836  ;;
4837
4838darwin* | rhapsody*)
4839  lt_cv_deplibs_check_method=pass_all
4840  ;;
4841
4842freebsd* | kfreebsd*-gnu | dragonfly*)
4843  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4844    case $host_cpu in
4845    i*86 )
4846      # Not sure whether the presence of OpenBSD here was a mistake.
4847      # Let's accept both of them until this is cleared up.
4848      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4849      lt_cv_file_magic_cmd=/usr/bin/file
4850      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4851      ;;
4852    esac
4853  else
4854    lt_cv_deplibs_check_method=pass_all
4855  fi
4856  ;;
4857
4858gnu*)
4859  lt_cv_deplibs_check_method=pass_all
4860  ;;
4861
4862hpux10.20* | hpux11*)
4863  lt_cv_file_magic_cmd=/usr/bin/file
4864  case $host_cpu in
4865  ia64*)
4866    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4867    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4868    ;;
4869  hppa*64*)
4870    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]'
4871    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4872    ;;
4873  *)
4874    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4875    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4876    ;;
4877  esac
4878  ;;
4879
4880interix3*)
4881  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4882  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4883  ;;
4884
4885irix5* | irix6* | nonstopux*)
4886  case $LD in
4887  *-32|*"-32 ") libmagic=32-bit;;
4888  *-n32|*"-n32 ") libmagic=N32;;
4889  *-64|*"-64 ") libmagic=64-bit;;
4890  *) libmagic=never-match;;
4891  esac
4892  lt_cv_deplibs_check_method=pass_all
4893  ;;
4894
4895# This must be Linux ELF.
4896linux*)
4897  lt_cv_deplibs_check_method=pass_all
4898  ;;
4899
4900netbsd*)
4901  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4902    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4903  else
4904    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4905  fi
4906  ;;
4907
4908newos6*)
4909  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4910  lt_cv_file_magic_cmd=/usr/bin/file
4911  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4912  ;;
4913
4914nto-qnx*)
4915  lt_cv_deplibs_check_method=unknown
4916  ;;
4917
4918openbsd*)
4919  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4920    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4921  else
4922    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4923  fi
4924  ;;
4925
4926osf3* | osf4* | osf5*)
4927  lt_cv_deplibs_check_method=pass_all
4928  ;;
4929
4930solaris*)
4931  lt_cv_deplibs_check_method=pass_all
4932  ;;
4933
4934sysv4 | sysv4.3*)
4935  case $host_vendor in
4936  motorola)
4937    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]'
4938    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4939    ;;
4940  ncr)
4941    lt_cv_deplibs_check_method=pass_all
4942    ;;
4943  sequent)
4944    lt_cv_file_magic_cmd='/bin/file'
4945    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4946    ;;
4947  sni)
4948    lt_cv_file_magic_cmd='/bin/file'
4949    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4950    lt_cv_file_magic_test_file=/lib/libc.so
4951    ;;
4952  siemens)
4953    lt_cv_deplibs_check_method=pass_all
4954    ;;
4955  pc)
4956    lt_cv_deplibs_check_method=pass_all
4957    ;;
4958  esac
4959  ;;
4960
4961sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4962  lt_cv_deplibs_check_method=pass_all
4963  ;;
4964esac
4965
4966fi
4967echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4968echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4969file_magic_cmd=$lt_cv_file_magic_cmd
4970deplibs_check_method=$lt_cv_deplibs_check_method
4971test -z "$deplibs_check_method" && deplibs_check_method=unknown
4972
4973
4974
4975
4976# If no C compiler was specified, use CC.
4977LTCC=${LTCC-"$CC"}
4978
4979# If no C compiler flags were specified, use CFLAGS.
4980LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4981
4982# Allow CC to be a program name with arguments.
4983compiler=$CC
4984
4985# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4986if test "${enable_libtool_lock+set}" = set; then
4987  enableval="$enable_libtool_lock"
4988
4989fi;
4990test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4991
4992# Some flags need to be propagated to the compiler or linker for good
4993# libtool support.
4994case $host in
4995ia64-*-hpux*)
4996  # Find out which ABI we are using.
4997  echo 'int i;' > conftest.$ac_ext
4998  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4999  (eval $ac_compile) 2>&5
5000  ac_status=$?
5001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002  (exit $ac_status); }; then
5003    case `/usr/bin/file conftest.$ac_objext` in
5004    *ELF-32*)
5005      HPUX_IA64_MODE="32"
5006      ;;
5007    *ELF-64*)
5008      HPUX_IA64_MODE="64"
5009      ;;
5010    esac
5011  fi
5012  rm -rf conftest*
5013  ;;
5014*-*-irix6*)
5015  # Find out which ABI we are using.
5016  echo '#line 5016 "configure"' > conftest.$ac_ext
5017  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018  (eval $ac_compile) 2>&5
5019  ac_status=$?
5020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021  (exit $ac_status); }; then
5022   if test "$lt_cv_prog_gnu_ld" = yes; then
5023    case `/usr/bin/file conftest.$ac_objext` in
5024    *32-bit*)
5025      LD="${LD-ld} -melf32bsmip"
5026      ;;
5027    *N32*)
5028      LD="${LD-ld} -melf32bmipn32"
5029      ;;
5030    *64-bit*)
5031      LD="${LD-ld} -melf64bmip"
5032      ;;
5033    esac
5034   else
5035    case `/usr/bin/file conftest.$ac_objext` in
5036    *32-bit*)
5037      LD="${LD-ld} -32"
5038      ;;
5039    *N32*)
5040      LD="${LD-ld} -n32"
5041      ;;
5042    *64-bit*)
5043      LD="${LD-ld} -64"
5044      ;;
5045    esac
5046   fi
5047  fi
5048  rm -rf conftest*
5049  ;;
5050
5051x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5052  # Find out which ABI we are using.
5053  echo 'int i;' > conftest.$ac_ext
5054  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5055  (eval $ac_compile) 2>&5
5056  ac_status=$?
5057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058  (exit $ac_status); }; then
5059    case `/usr/bin/file conftest.o` in
5060    *32-bit*)
5061      case $host in
5062        x86_64-*linux*)
5063          LD="${LD-ld} -m elf_i386"
5064          ;;
5065        ppc64-*linux*|powerpc64-*linux*)
5066          LD="${LD-ld} -m elf32ppclinux"
5067          ;;
5068        s390x-*linux*)
5069          LD="${LD-ld} -m elf_s390"
5070          ;;
5071        sparc64-*linux*)
5072          LD="${LD-ld} -m elf32_sparc"
5073          ;;
5074      esac
5075      ;;
5076    *64-bit*)
5077      case $host in
5078        x86_64-*linux*)
5079          LD="${LD-ld} -m elf_x86_64"
5080          ;;
5081        ppc*-*linux*|powerpc*-*linux*)
5082          LD="${LD-ld} -m elf64ppc"
5083          ;;
5084        s390*-*linux*)
5085          LD="${LD-ld} -m elf64_s390"
5086          ;;
5087        sparc*-*linux*)
5088          LD="${LD-ld} -m elf64_sparc"
5089          ;;
5090      esac
5091      ;;
5092    esac
5093  fi
5094  rm -rf conftest*
5095  ;;
5096
5097*-*-sco3.2v5*)
5098  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5099  SAVE_CFLAGS="$CFLAGS"
5100  CFLAGS="$CFLAGS -belf"
5101  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5102echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5103if test "${lt_cv_cc_needs_belf+set}" = set; then
5104  echo $ECHO_N "(cached) $ECHO_C" >&6
5105else
5106  ac_ext=c
5107ac_cpp='$CPP $CPPFLAGS'
5108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110ac_compiler_gnu=$ac_cv_c_compiler_gnu
5111
5112     cat >conftest.$ac_ext <<_ACEOF
5113/* confdefs.h.  */
5114_ACEOF
5115cat confdefs.h >>conftest.$ac_ext
5116cat >>conftest.$ac_ext <<_ACEOF
5117/* end confdefs.h.  */
5118
5119int
5120main ()
5121{
5122
5123  ;
5124  return 0;
5125}
5126_ACEOF
5127rm -f conftest.$ac_objext conftest$ac_exeext
5128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5129  (eval $ac_link) 2>conftest.er1
5130  ac_status=$?
5131  grep -v '^ *+' conftest.er1 >conftest.err
5132  rm -f conftest.er1
5133  cat conftest.err >&5
5134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135  (exit $ac_status); } &&
5136         { ac_try='test -z "$ac_c_werror_flag"
5137                         || test ! -s conftest.err'
5138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139  (eval $ac_try) 2>&5
5140  ac_status=$?
5141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142  (exit $ac_status); }; } &&
5143         { ac_try='test -s conftest$ac_exeext'
5144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145  (eval $ac_try) 2>&5
5146  ac_status=$?
5147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148  (exit $ac_status); }; }; then
5149  lt_cv_cc_needs_belf=yes
5150else
5151  echo "$as_me: failed program was:" >&5
5152sed 's/^/| /' conftest.$ac_ext >&5
5153
5154lt_cv_cc_needs_belf=no
5155fi
5156rm -f conftest.err conftest.$ac_objext \
5157      conftest$ac_exeext conftest.$ac_ext
5158     ac_ext=c
5159ac_cpp='$CPP $CPPFLAGS'
5160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5162ac_compiler_gnu=$ac_cv_c_compiler_gnu
5163
5164fi
5165echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5166echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5167  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5168    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5169    CFLAGS="$SAVE_CFLAGS"
5170  fi
5171  ;;
5172sparc*-*solaris*)
5173  # Find out which ABI we are using.
5174  echo 'int i;' > conftest.$ac_ext
5175  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5176  (eval $ac_compile) 2>&5
5177  ac_status=$?
5178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179  (exit $ac_status); }; then
5180    case `/usr/bin/file conftest.o` in
5181    *64-bit*)
5182      case $lt_cv_prog_gnu_ld in
5183      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5184      *)    LD="${LD-ld} -64" ;;
5185      esac
5186      ;;
5187    esac
5188  fi
5189  rm -rf conftest*
5190  ;;
5191
5192
5193esac
5194
5195need_locks="$enable_libtool_lock"
5196
5197
5198ac_ext=c
5199ac_cpp='$CPP $CPPFLAGS'
5200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202ac_compiler_gnu=$ac_cv_c_compiler_gnu
5203echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5204echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5205# On Suns, sometimes $CPP names a directory.
5206if test -n "$CPP" && test -d "$CPP"; then
5207  CPP=
5208fi
5209if test -z "$CPP"; then
5210  if test "${ac_cv_prog_CPP+set}" = set; then
5211  echo $ECHO_N "(cached) $ECHO_C" >&6
5212else
5213      # Double quotes because CPP needs to be expanded
5214    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5215    do
5216      ac_preproc_ok=false
5217for ac_c_preproc_warn_flag in '' yes
5218do
5219  # Use a header file that comes with gcc, so configuring glibc
5220  # with a fresh cross-compiler works.
5221  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5222  # <limits.h> exists even on freestanding compilers.
5223  # On the NeXT, cc -E runs the code through the compiler's parser,
5224  # not just through cpp. "Syntax error" is here to catch this case.
5225  cat >conftest.$ac_ext <<_ACEOF
5226/* confdefs.h.  */
5227_ACEOF
5228cat confdefs.h >>conftest.$ac_ext
5229cat >>conftest.$ac_ext <<_ACEOF
5230/* end confdefs.h.  */
5231#ifdef __STDC__
5232# include <limits.h>
5233#else
5234# include <assert.h>
5235#endif
5236                     Syntax error
5237_ACEOF
5238if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5239  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5240  ac_status=$?
5241  grep -v '^ *+' conftest.er1 >conftest.err
5242  rm -f conftest.er1
5243  cat conftest.err >&5
5244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245  (exit $ac_status); } >/dev/null; then
5246  if test -s conftest.err; then
5247    ac_cpp_err=$ac_c_preproc_warn_flag
5248    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5249  else
5250    ac_cpp_err=
5251  fi
5252else
5253  ac_cpp_err=yes
5254fi
5255if test -z "$ac_cpp_err"; then
5256  :
5257else
5258  echo "$as_me: failed program was:" >&5
5259sed 's/^/| /' conftest.$ac_ext >&5
5260
5261  # Broken: fails on valid input.
5262continue
5263fi
5264rm -f conftest.err conftest.$ac_ext
5265
5266  # OK, works on sane cases.  Now check whether non-existent headers
5267  # can be detected and how.
5268  cat >conftest.$ac_ext <<_ACEOF
5269/* confdefs.h.  */
5270_ACEOF
5271cat confdefs.h >>conftest.$ac_ext
5272cat >>conftest.$ac_ext <<_ACEOF
5273/* end confdefs.h.  */
5274#include <ac_nonexistent.h>
5275_ACEOF
5276if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5277  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5278  ac_status=$?
5279  grep -v '^ *+' conftest.er1 >conftest.err
5280  rm -f conftest.er1
5281  cat conftest.err >&5
5282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283  (exit $ac_status); } >/dev/null; then
5284  if test -s conftest.err; then
5285    ac_cpp_err=$ac_c_preproc_warn_flag
5286    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5287  else
5288    ac_cpp_err=
5289  fi
5290else
5291  ac_cpp_err=yes
5292fi
5293if test -z "$ac_cpp_err"; then
5294  # Broken: success on invalid input.
5295continue
5296else
5297  echo "$as_me: failed program was:" >&5
5298sed 's/^/| /' conftest.$ac_ext >&5
5299
5300  # Passes both tests.
5301ac_preproc_ok=:
5302break
5303fi
5304rm -f conftest.err conftest.$ac_ext
5305
5306done
5307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5308rm -f conftest.err conftest.$ac_ext
5309if $ac_preproc_ok; then
5310  break
5311fi
5312
5313    done
5314    ac_cv_prog_CPP=$CPP
5315
5316fi
5317  CPP=$ac_cv_prog_CPP
5318else
5319  ac_cv_prog_CPP=$CPP
5320fi
5321echo "$as_me:$LINENO: result: $CPP" >&5
5322echo "${ECHO_T}$CPP" >&6
5323ac_preproc_ok=false
5324for ac_c_preproc_warn_flag in '' yes
5325do
5326  # Use a header file that comes with gcc, so configuring glibc
5327  # with a fresh cross-compiler works.
5328  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5329  # <limits.h> exists even on freestanding compilers.
5330  # On the NeXT, cc -E runs the code through the compiler's parser,
5331  # not just through cpp. "Syntax error" is here to catch this case.
5332  cat >conftest.$ac_ext <<_ACEOF
5333/* confdefs.h.  */
5334_ACEOF
5335cat confdefs.h >>conftest.$ac_ext
5336cat >>conftest.$ac_ext <<_ACEOF
5337/* end confdefs.h.  */
5338#ifdef __STDC__
5339# include <limits.h>
5340#else
5341# include <assert.h>
5342#endif
5343                     Syntax error
5344_ACEOF
5345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5346  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5347  ac_status=$?
5348  grep -v '^ *+' conftest.er1 >conftest.err
5349  rm -f conftest.er1
5350  cat conftest.err >&5
5351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352  (exit $ac_status); } >/dev/null; then
5353  if test -s conftest.err; then
5354    ac_cpp_err=$ac_c_preproc_warn_flag
5355    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5356  else
5357    ac_cpp_err=
5358  fi
5359else
5360  ac_cpp_err=yes
5361fi
5362if test -z "$ac_cpp_err"; then
5363  :
5364else
5365  echo "$as_me: failed program was:" >&5
5366sed 's/^/| /' conftest.$ac_ext >&5
5367
5368  # Broken: fails on valid input.
5369continue
5370fi
5371rm -f conftest.err conftest.$ac_ext
5372
5373  # OK, works on sane cases.  Now check whether non-existent headers
5374  # can be detected and how.
5375  cat >conftest.$ac_ext <<_ACEOF
5376/* confdefs.h.  */
5377_ACEOF
5378cat confdefs.h >>conftest.$ac_ext
5379cat >>conftest.$ac_ext <<_ACEOF
5380/* end confdefs.h.  */
5381#include <ac_nonexistent.h>
5382_ACEOF
5383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5384  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5385  ac_status=$?
5386  grep -v '^ *+' conftest.er1 >conftest.err
5387  rm -f conftest.er1
5388  cat conftest.err >&5
5389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390  (exit $ac_status); } >/dev/null; then
5391  if test -s conftest.err; then
5392    ac_cpp_err=$ac_c_preproc_warn_flag
5393    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5394  else
5395    ac_cpp_err=
5396  fi
5397else
5398  ac_cpp_err=yes
5399fi
5400if test -z "$ac_cpp_err"; then
5401  # Broken: success on invalid input.
5402continue
5403else
5404  echo "$as_me: failed program was:" >&5
5405sed 's/^/| /' conftest.$ac_ext >&5
5406
5407  # Passes both tests.
5408ac_preproc_ok=:
5409break
5410fi
5411rm -f conftest.err conftest.$ac_ext
5412
5413done
5414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5415rm -f conftest.err conftest.$ac_ext
5416if $ac_preproc_ok; then
5417  :
5418else
5419  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5420See \`config.log' for more details." >&5
5421echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5422See \`config.log' for more details." >&2;}
5423   { (exit 1); exit 1; }; }
5424fi
5425
5426ac_ext=c
5427ac_cpp='$CPP $CPPFLAGS'
5428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5430ac_compiler_gnu=$ac_cv_c_compiler_gnu
5431
5432
5433echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5434echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5435if test "${ac_cv_header_stdc+set}" = set; then
5436  echo $ECHO_N "(cached) $ECHO_C" >&6
5437else
5438  cat >conftest.$ac_ext <<_ACEOF
5439/* confdefs.h.  */
5440_ACEOF
5441cat confdefs.h >>conftest.$ac_ext
5442cat >>conftest.$ac_ext <<_ACEOF
5443/* end confdefs.h.  */
5444#include <stdlib.h>
5445#include <stdarg.h>
5446#include <string.h>
5447#include <float.h>
5448
5449int
5450main ()
5451{
5452
5453  ;
5454  return 0;
5455}
5456_ACEOF
5457rm -f conftest.$ac_objext
5458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5459  (eval $ac_compile) 2>conftest.er1
5460  ac_status=$?
5461  grep -v '^ *+' conftest.er1 >conftest.err
5462  rm -f conftest.er1
5463  cat conftest.err >&5
5464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465  (exit $ac_status); } &&
5466         { ac_try='test -z "$ac_c_werror_flag"
5467                         || test ! -s conftest.err'
5468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469  (eval $ac_try) 2>&5
5470  ac_status=$?
5471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472  (exit $ac_status); }; } &&
5473         { ac_try='test -s conftest.$ac_objext'
5474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475  (eval $ac_try) 2>&5
5476  ac_status=$?
5477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478  (exit $ac_status); }; }; then
5479  ac_cv_header_stdc=yes
5480else
5481  echo "$as_me: failed program was:" >&5
5482sed 's/^/| /' conftest.$ac_ext >&5
5483
5484ac_cv_header_stdc=no
5485fi
5486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5487
5488if test $ac_cv_header_stdc = yes; then
5489  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5490  cat >conftest.$ac_ext <<_ACEOF
5491/* confdefs.h.  */
5492_ACEOF
5493cat confdefs.h >>conftest.$ac_ext
5494cat >>conftest.$ac_ext <<_ACEOF
5495/* end confdefs.h.  */
5496#include <string.h>
5497
5498_ACEOF
5499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5500  $EGREP "memchr" >/dev/null 2>&1; then
5501  :
5502else
5503  ac_cv_header_stdc=no
5504fi
5505rm -f conftest*
5506
5507fi
5508
5509if test $ac_cv_header_stdc = yes; then
5510  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5511  cat >conftest.$ac_ext <<_ACEOF
5512/* confdefs.h.  */
5513_ACEOF
5514cat confdefs.h >>conftest.$ac_ext
5515cat >>conftest.$ac_ext <<_ACEOF
5516/* end confdefs.h.  */
5517#include <stdlib.h>
5518
5519_ACEOF
5520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5521  $EGREP "free" >/dev/null 2>&1; then
5522  :
5523else
5524  ac_cv_header_stdc=no
5525fi
5526rm -f conftest*
5527
5528fi
5529
5530if test $ac_cv_header_stdc = yes; then
5531  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5532  if test "$cross_compiling" = yes; then
5533  :
5534else
5535  cat >conftest.$ac_ext <<_ACEOF
5536/* confdefs.h.  */
5537_ACEOF
5538cat confdefs.h >>conftest.$ac_ext
5539cat >>conftest.$ac_ext <<_ACEOF
5540/* end confdefs.h.  */
5541#include <ctype.h>
5542#if ((' ' & 0x0FF) == 0x020)
5543# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5544# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5545#else
5546# define ISLOWER(c) \
5547                   (('a' <= (c) && (c) <= 'i') \
5548                     || ('j' <= (c) && (c) <= 'r') \
5549                     || ('s' <= (c) && (c) <= 'z'))
5550# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5551#endif
5552
5553#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5554int
5555main ()
5556{
5557  int i;
5558  for (i = 0; i < 256; i++)
5559    if (XOR (islower (i), ISLOWER (i))
5560        || toupper (i) != TOUPPER (i))
5561      exit(2);
5562  exit (0);
5563}
5564_ACEOF
5565rm -f conftest$ac_exeext
5566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5567  (eval $ac_link) 2>&5
5568  ac_status=$?
5569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572  (eval $ac_try) 2>&5
5573  ac_status=$?
5574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575  (exit $ac_status); }; }; then
5576  :
5577else
5578  echo "$as_me: program exited with status $ac_status" >&5
5579echo "$as_me: failed program was:" >&5
5580sed 's/^/| /' conftest.$ac_ext >&5
5581
5582( exit $ac_status )
5583ac_cv_header_stdc=no
5584fi
5585rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5586fi
5587fi
5588fi
5589echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5590echo "${ECHO_T}$ac_cv_header_stdc" >&6
5591if test $ac_cv_header_stdc = yes; then
5592
5593cat >>confdefs.h <<\_ACEOF
5594#define STDC_HEADERS 1
5595_ACEOF
5596
5597fi
5598
5599# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5610                  inttypes.h stdint.h unistd.h
5611do
5612as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5613echo "$as_me:$LINENO: checking for $ac_header" >&5
5614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5615if eval "test \"\${$as_ac_Header+set}\" = set"; then
5616  echo $ECHO_N "(cached) $ECHO_C" >&6
5617else
5618  cat >conftest.$ac_ext <<_ACEOF
5619/* confdefs.h.  */
5620_ACEOF
5621cat confdefs.h >>conftest.$ac_ext
5622cat >>conftest.$ac_ext <<_ACEOF
5623/* end confdefs.h.  */
5624$ac_includes_default
5625
5626#include <$ac_header>
5627_ACEOF
5628rm -f conftest.$ac_objext
5629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630  (eval $ac_compile) 2>conftest.er1
5631  ac_status=$?
5632  grep -v '^ *+' conftest.er1 >conftest.err
5633  rm -f conftest.er1
5634  cat conftest.err >&5
5635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636  (exit $ac_status); } &&
5637         { ac_try='test -z "$ac_c_werror_flag"
5638                         || test ! -s conftest.err'
5639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640  (eval $ac_try) 2>&5
5641  ac_status=$?
5642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643  (exit $ac_status); }; } &&
5644         { ac_try='test -s conftest.$ac_objext'
5645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646  (eval $ac_try) 2>&5
5647  ac_status=$?
5648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649  (exit $ac_status); }; }; then
5650  eval "$as_ac_Header=yes"
5651else
5652  echo "$as_me: failed program was:" >&5
5653sed 's/^/| /' conftest.$ac_ext >&5
5654
5655eval "$as_ac_Header=no"
5656fi
5657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5658fi
5659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5661if test `eval echo '${'$as_ac_Header'}'` = yes; then
5662  cat >>confdefs.h <<_ACEOF
5663#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5664_ACEOF
5665
5666fi
5667
5668done
5669
5670
5671
5672for ac_header in dlfcn.h
5673do
5674as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5675if eval "test \"\${$as_ac_Header+set}\" = set"; then
5676  echo "$as_me:$LINENO: checking for $ac_header" >&5
5677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5678if eval "test \"\${$as_ac_Header+set}\" = set"; then
5679  echo $ECHO_N "(cached) $ECHO_C" >&6
5680fi
5681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5682echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5683else
5684  # Is the header compilable?
5685echo "$as_me:$LINENO: checking $ac_header usability" >&5
5686echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5687cat >conftest.$ac_ext <<_ACEOF
5688/* confdefs.h.  */
5689_ACEOF
5690cat confdefs.h >>conftest.$ac_ext
5691cat >>conftest.$ac_ext <<_ACEOF
5692/* end confdefs.h.  */
5693$ac_includes_default
5694#include <$ac_header>
5695_ACEOF
5696rm -f conftest.$ac_objext
5697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5698  (eval $ac_compile) 2>conftest.er1
5699  ac_status=$?
5700  grep -v '^ *+' conftest.er1 >conftest.err
5701  rm -f conftest.er1
5702  cat conftest.err >&5
5703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704  (exit $ac_status); } &&
5705         { ac_try='test -z "$ac_c_werror_flag"
5706                         || test ! -s conftest.err'
5707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708  (eval $ac_try) 2>&5
5709  ac_status=$?
5710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711  (exit $ac_status); }; } &&
5712         { ac_try='test -s conftest.$ac_objext'
5713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714  (eval $ac_try) 2>&5
5715  ac_status=$?
5716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717  (exit $ac_status); }; }; then
5718  ac_header_compiler=yes
5719else
5720  echo "$as_me: failed program was:" >&5
5721sed 's/^/| /' conftest.$ac_ext >&5
5722
5723ac_header_compiler=no
5724fi
5725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5726echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5727echo "${ECHO_T}$ac_header_compiler" >&6
5728
5729# Is the header present?
5730echo "$as_me:$LINENO: checking $ac_header presence" >&5
5731echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5732cat >conftest.$ac_ext <<_ACEOF
5733/* confdefs.h.  */
5734_ACEOF
5735cat confdefs.h >>conftest.$ac_ext
5736cat >>conftest.$ac_ext <<_ACEOF
5737/* end confdefs.h.  */
5738#include <$ac_header>
5739_ACEOF
5740if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5741  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5742  ac_status=$?
5743  grep -v '^ *+' conftest.er1 >conftest.err
5744  rm -f conftest.er1
5745  cat conftest.err >&5
5746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747  (exit $ac_status); } >/dev/null; then
5748  if test -s conftest.err; then
5749    ac_cpp_err=$ac_c_preproc_warn_flag
5750    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5751  else
5752    ac_cpp_err=
5753  fi
5754else
5755  ac_cpp_err=yes
5756fi
5757if test -z "$ac_cpp_err"; then
5758  ac_header_preproc=yes
5759else
5760  echo "$as_me: failed program was:" >&5
5761sed 's/^/| /' conftest.$ac_ext >&5
5762
5763  ac_header_preproc=no
5764fi
5765rm -f conftest.err conftest.$ac_ext
5766echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5767echo "${ECHO_T}$ac_header_preproc" >&6
5768
5769# So?  What about this header?
5770case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5771  yes:no: )
5772    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5773echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5774    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5775echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5776    ac_header_preproc=yes
5777    ;;
5778  no:yes:* )
5779    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5780echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5781    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5782echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5783    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5784echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5785    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5786echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5787    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5788echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5789    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5790echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5791    (
5792      cat <<\_ASBOX
5793## --------------------------------------------------------------- ##
5794## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5795## --------------------------------------------------------------- ##
5796_ASBOX
5797    ) |
5798      sed "s/^/$as_me: WARNING:     /" >&2
5799    ;;
5800esac
5801echo "$as_me:$LINENO: checking for $ac_header" >&5
5802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5803if eval "test \"\${$as_ac_Header+set}\" = set"; then
5804  echo $ECHO_N "(cached) $ECHO_C" >&6
5805else
5806  eval "$as_ac_Header=\$ac_header_preproc"
5807fi
5808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5809echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5810
5811fi
5812if test `eval echo '${'$as_ac_Header'}'` = yes; then
5813  cat >>confdefs.h <<_ACEOF
5814#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5815_ACEOF
5816
5817fi
5818
5819done
5820
5821ac_ext=cc
5822ac_cpp='$CXXCPP $CPPFLAGS'
5823ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5824ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5825ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5826if test -n "$ac_tool_prefix"; then
5827  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5828  do
5829    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5830set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5831echo "$as_me:$LINENO: checking for $ac_word" >&5
5832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5833if test "${ac_cv_prog_CXX+set}" = set; then
5834  echo $ECHO_N "(cached) $ECHO_C" >&6
5835else
5836  if test -n "$CXX"; then
5837  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5838else
5839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840for as_dir in $PATH
5841do
5842  IFS=$as_save_IFS
5843  test -z "$as_dir" && as_dir=.
5844  for ac_exec_ext in '' $ac_executable_extensions; do
5845  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5846    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5847    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5848    break 2
5849  fi
5850done
5851done
5852
5853fi
5854fi
5855CXX=$ac_cv_prog_CXX
5856if test -n "$CXX"; then
5857  echo "$as_me:$LINENO: result: $CXX" >&5
5858echo "${ECHO_T}$CXX" >&6
5859else
5860  echo "$as_me:$LINENO: result: no" >&5
5861echo "${ECHO_T}no" >&6
5862fi
5863
5864    test -n "$CXX" && break
5865  done
5866fi
5867if test -z "$CXX"; then
5868  ac_ct_CXX=$CXX
5869  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5870do
5871  # Extract the first word of "$ac_prog", so it can be a program name with args.
5872set dummy $ac_prog; ac_word=$2
5873echo "$as_me:$LINENO: checking for $ac_word" >&5
5874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5875if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5876  echo $ECHO_N "(cached) $ECHO_C" >&6
5877else
5878  if test -n "$ac_ct_CXX"; then
5879  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5880else
5881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882for as_dir in $PATH
5883do
5884  IFS=$as_save_IFS
5885  test -z "$as_dir" && as_dir=.
5886  for ac_exec_ext in '' $ac_executable_extensions; do
5887  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5888    ac_cv_prog_ac_ct_CXX="$ac_prog"
5889    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890    break 2
5891  fi
5892done
5893done
5894
5895fi
5896fi
5897ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5898if test -n "$ac_ct_CXX"; then
5899  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5900echo "${ECHO_T}$ac_ct_CXX" >&6
5901else
5902  echo "$as_me:$LINENO: result: no" >&5
5903echo "${ECHO_T}no" >&6
5904fi
5905
5906  test -n "$ac_ct_CXX" && break
5907done
5908test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5909
5910  CXX=$ac_ct_CXX
5911fi
5912
5913
5914# Provide some information about the compiler.
5915echo "$as_me:$LINENO:" \
5916     "checking for C++ compiler version" >&5
5917ac_compiler=`set X $ac_compile; echo $2`
5918{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5919  (eval $ac_compiler --version </dev/null >&5) 2>&5
5920  ac_status=$?
5921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922  (exit $ac_status); }
5923{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5924  (eval $ac_compiler -v </dev/null >&5) 2>&5
5925  ac_status=$?
5926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927  (exit $ac_status); }
5928{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5929  (eval $ac_compiler -V </dev/null >&5) 2>&5
5930  ac_status=$?
5931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932  (exit $ac_status); }
5933
5934echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5935echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5936if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5937  echo $ECHO_N "(cached) $ECHO_C" >&6
5938else
5939  cat >conftest.$ac_ext <<_ACEOF
5940/* confdefs.h.  */
5941_ACEOF
5942cat confdefs.h >>conftest.$ac_ext
5943cat >>conftest.$ac_ext <<_ACEOF
5944/* end confdefs.h.  */
5945
5946int
5947main ()
5948{
5949#ifndef __GNUC__
5950       choke me
5951#endif
5952
5953  ;
5954  return 0;
5955}
5956_ACEOF
5957rm -f conftest.$ac_objext
5958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5959  (eval $ac_compile) 2>conftest.er1
5960  ac_status=$?
5961  grep -v '^ *+' conftest.er1 >conftest.err
5962  rm -f conftest.er1
5963  cat conftest.err >&5
5964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965  (exit $ac_status); } &&
5966         { ac_try='test -z "$ac_cxx_werror_flag"
5967                         || test ! -s conftest.err'
5968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969  (eval $ac_try) 2>&5
5970  ac_status=$?
5971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972  (exit $ac_status); }; } &&
5973         { ac_try='test -s conftest.$ac_objext'
5974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975  (eval $ac_try) 2>&5
5976  ac_status=$?
5977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978  (exit $ac_status); }; }; then
5979  ac_compiler_gnu=yes
5980else
5981  echo "$as_me: failed program was:" >&5
5982sed 's/^/| /' conftest.$ac_ext >&5
5983
5984ac_compiler_gnu=no
5985fi
5986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5987ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5988
5989fi
5990echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5991echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5992GXX=`test $ac_compiler_gnu = yes && echo yes`
5993ac_test_CXXFLAGS=${CXXFLAGS+set}
5994ac_save_CXXFLAGS=$CXXFLAGS
5995CXXFLAGS="-g"
5996echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5997echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5998if test "${ac_cv_prog_cxx_g+set}" = set; then
5999  echo $ECHO_N "(cached) $ECHO_C" >&6
6000else
6001  cat >conftest.$ac_ext <<_ACEOF
6002/* confdefs.h.  */
6003_ACEOF
6004cat confdefs.h >>conftest.$ac_ext
6005cat >>conftest.$ac_ext <<_ACEOF
6006/* end confdefs.h.  */
6007
6008int
6009main ()
6010{
6011
6012  ;
6013  return 0;
6014}
6015_ACEOF
6016rm -f conftest.$ac_objext
6017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6018  (eval $ac_compile) 2>conftest.er1
6019  ac_status=$?
6020  grep -v '^ *+' conftest.er1 >conftest.err
6021  rm -f conftest.er1
6022  cat conftest.err >&5
6023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024  (exit $ac_status); } &&
6025         { ac_try='test -z "$ac_cxx_werror_flag"
6026                         || test ! -s conftest.err'
6027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028  (eval $ac_try) 2>&5
6029  ac_status=$?
6030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031  (exit $ac_status); }; } &&
6032         { ac_try='test -s conftest.$ac_objext'
6033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034  (eval $ac_try) 2>&5
6035  ac_status=$?
6036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037  (exit $ac_status); }; }; then
6038  ac_cv_prog_cxx_g=yes
6039else
6040  echo "$as_me: failed program was:" >&5
6041sed 's/^/| /' conftest.$ac_ext >&5
6042
6043ac_cv_prog_cxx_g=no
6044fi
6045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6046fi
6047echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6048echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6049if test "$ac_test_CXXFLAGS" = set; then
6050  CXXFLAGS=$ac_save_CXXFLAGS
6051elif test $ac_cv_prog_cxx_g = yes; then
6052  if test "$GXX" = yes; then
6053    CXXFLAGS="-g -O2"
6054  else
6055    CXXFLAGS="-g"
6056  fi
6057else
6058  if test "$GXX" = yes; then
6059    CXXFLAGS="-O2"
6060  else
6061    CXXFLAGS=
6062  fi
6063fi
6064for ac_declaration in \
6065   '' \
6066   'extern "C" void std::exit (int) throw (); using std::exit;' \
6067   'extern "C" void std::exit (int); using std::exit;' \
6068   'extern "C" void exit (int) throw ();' \
6069   'extern "C" void exit (int);' \
6070   'void exit (int);'
6071do
6072  cat >conftest.$ac_ext <<_ACEOF
6073/* confdefs.h.  */
6074_ACEOF
6075cat confdefs.h >>conftest.$ac_ext
6076cat >>conftest.$ac_ext <<_ACEOF
6077/* end confdefs.h.  */
6078$ac_declaration
6079#include <stdlib.h>
6080int
6081main ()
6082{
6083exit (42);
6084  ;
6085  return 0;
6086}
6087_ACEOF
6088rm -f conftest.$ac_objext
6089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6090  (eval $ac_compile) 2>conftest.er1
6091  ac_status=$?
6092  grep -v '^ *+' conftest.er1 >conftest.err
6093  rm -f conftest.er1
6094  cat conftest.err >&5
6095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096  (exit $ac_status); } &&
6097         { ac_try='test -z "$ac_cxx_werror_flag"
6098                         || test ! -s conftest.err'
6099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100  (eval $ac_try) 2>&5
6101  ac_status=$?
6102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103  (exit $ac_status); }; } &&
6104         { ac_try='test -s conftest.$ac_objext'
6105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106  (eval $ac_try) 2>&5
6107  ac_status=$?
6108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109  (exit $ac_status); }; }; then
6110  :
6111else
6112  echo "$as_me: failed program was:" >&5
6113sed 's/^/| /' conftest.$ac_ext >&5
6114
6115continue
6116fi
6117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6118  cat >conftest.$ac_ext <<_ACEOF
6119/* confdefs.h.  */
6120_ACEOF
6121cat confdefs.h >>conftest.$ac_ext
6122cat >>conftest.$ac_ext <<_ACEOF
6123/* end confdefs.h.  */
6124$ac_declaration
6125int
6126main ()
6127{
6128exit (42);
6129  ;
6130  return 0;
6131}
6132_ACEOF
6133rm -f conftest.$ac_objext
6134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6135  (eval $ac_compile) 2>conftest.er1
6136  ac_status=$?
6137  grep -v '^ *+' conftest.er1 >conftest.err
6138  rm -f conftest.er1
6139  cat conftest.err >&5
6140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141  (exit $ac_status); } &&
6142         { ac_try='test -z "$ac_cxx_werror_flag"
6143                         || test ! -s conftest.err'
6144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145  (eval $ac_try) 2>&5
6146  ac_status=$?
6147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148  (exit $ac_status); }; } &&
6149         { ac_try='test -s conftest.$ac_objext'
6150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151  (eval $ac_try) 2>&5
6152  ac_status=$?
6153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154  (exit $ac_status); }; }; then
6155  break
6156else
6157  echo "$as_me: failed program was:" >&5
6158sed 's/^/| /' conftest.$ac_ext >&5
6159
6160fi
6161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6162done
6163rm -f conftest*
6164if test -n "$ac_declaration"; then
6165  echo '#ifdef __cplusplus' >>confdefs.h
6166  echo $ac_declaration      >>confdefs.h
6167  echo '#endif'             >>confdefs.h
6168fi
6169
6170ac_ext=cc
6171ac_cpp='$CXXCPP $CPPFLAGS'
6172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6175
6176depcc="$CXX"  am_compiler_list=
6177
6178echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6179echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6180if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6181  echo $ECHO_N "(cached) $ECHO_C" >&6
6182else
6183  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6184  # We make a subdir and do the tests there.  Otherwise we can end up
6185  # making bogus files that we don't know about and never remove.  For
6186  # instance it was reported that on HP-UX the gcc test will end up
6187  # making a dummy file named `D' -- because `-MD' means `put the output
6188  # in D'.
6189  mkdir conftest.dir
6190  # Copy depcomp to subdir because otherwise we won't find it if we're
6191  # using a relative directory.
6192  cp "$am_depcomp" conftest.dir
6193  cd conftest.dir
6194  # We will build objects and dependencies in a subdirectory because
6195  # it helps to detect inapplicable dependency modes.  For instance
6196  # both Tru64's cc and ICC support -MD to output dependencies as a
6197  # side effect of compilation, but ICC will put the dependencies in
6198  # the current directory while Tru64 will put them in the object
6199  # directory.
6200  mkdir sub
6201
6202  am_cv_CXX_dependencies_compiler_type=none
6203  if test "$am_compiler_list" = ""; then
6204     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6205  fi
6206  for depmode in $am_compiler_list; do
6207    # Setup a source with many dependencies, because some compilers
6208    # like to wrap large dependency lists on column 80 (with \), and
6209    # we should not choose a depcomp mode which is confused by this.
6210    #
6211    # We need to recreate these files for each test, as the compiler may
6212    # overwrite some of them when testing with obscure command lines.
6213    # This happens at least with the AIX C compiler.
6214    : > sub/conftest.c
6215    for i in 1 2 3 4 5 6; do
6216      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6217      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6218      # Solaris 8's {/usr,}/bin/sh.
6219      touch sub/conftst$i.h
6220    done
6221    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6222
6223    case $depmode in
6224    nosideeffect)
6225      # after this tag, mechanisms are not by side-effect, so they'll
6226      # only be used when explicitly requested
6227      if test "x$enable_dependency_tracking" = xyes; then
6228        continue
6229      else
6230        break
6231      fi
6232      ;;
6233    none) break ;;
6234    esac
6235    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6236    # mode.  It turns out that the SunPro C++ compiler does not properly
6237    # handle `-M -o', and we need to detect this.
6238    if depmode=$depmode \
6239       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6240       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6241       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6242         >/dev/null 2>conftest.err &&
6243       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6244       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6245       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6246      # icc doesn't choke on unknown options, it will just issue warnings
6247      # or remarks (even with -Werror).  So we grep stderr for any message
6248      # that says an option was ignored or not supported.
6249      # When given -MP, icc 7.0 and 7.1 complain thusly:
6250      #   icc: Command line warning: ignoring option '-M'; no argument required
6251      # The diagnosis changed in icc 8.0:
6252      #   icc: Command line remark: option '-MP' not supported
6253      if (grep 'ignoring option' conftest.err ||
6254          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6255        am_cv_CXX_dependencies_compiler_type=$depmode
6256        break
6257      fi
6258    fi
6259  done
6260
6261  cd ..
6262  rm -rf conftest.dir
6263else
6264  am_cv_CXX_dependencies_compiler_type=none
6265fi
6266
6267fi
6268echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6269echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6270CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6271
6272
6273
6274if
6275  test "x$enable_dependency_tracking" != xno \
6276  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6277  am__fastdepCXX_TRUE=
6278  am__fastdepCXX_FALSE='#'
6279else
6280  am__fastdepCXX_TRUE='#'
6281  am__fastdepCXX_FALSE=
6282fi
6283
6284
6285
6286
6287if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6288    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6289    (test "X$CXX" != "Xg++"))) ; then
6290  ac_ext=cc
6291ac_cpp='$CXXCPP $CPPFLAGS'
6292ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6293ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6294ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6295echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6296echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6297if test -z "$CXXCPP"; then
6298  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6299  echo $ECHO_N "(cached) $ECHO_C" >&6
6300else
6301      # Double quotes because CXXCPP needs to be expanded
6302    for CXXCPP in "$CXX -E" "/lib/cpp"
6303    do
6304      ac_preproc_ok=false
6305for ac_cxx_preproc_warn_flag in '' yes
6306do
6307  # Use a header file that comes with gcc, so configuring glibc
6308  # with a fresh cross-compiler works.
6309  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6310  # <limits.h> exists even on freestanding compilers.
6311  # On the NeXT, cc -E runs the code through the compiler's parser,
6312  # not just through cpp. "Syntax error" is here to catch this case.
6313  cat >conftest.$ac_ext <<_ACEOF
6314/* confdefs.h.  */
6315_ACEOF
6316cat confdefs.h >>conftest.$ac_ext
6317cat >>conftest.$ac_ext <<_ACEOF
6318/* end confdefs.h.  */
6319#ifdef __STDC__
6320# include <limits.h>
6321#else
6322# include <assert.h>
6323#endif
6324                     Syntax error
6325_ACEOF
6326if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6327  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6328  ac_status=$?
6329  grep -v '^ *+' conftest.er1 >conftest.err
6330  rm -f conftest.er1
6331  cat conftest.err >&5
6332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333  (exit $ac_status); } >/dev/null; then
6334  if test -s conftest.err; then
6335    ac_cpp_err=$ac_cxx_preproc_warn_flag
6336    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6337  else
6338    ac_cpp_err=
6339  fi
6340else
6341  ac_cpp_err=yes
6342fi
6343if test -z "$ac_cpp_err"; then
6344  :
6345else
6346  echo "$as_me: failed program was:" >&5
6347sed 's/^/| /' conftest.$ac_ext >&5
6348
6349  # Broken: fails on valid input.
6350continue
6351fi
6352rm -f conftest.err conftest.$ac_ext
6353
6354  # OK, works on sane cases.  Now check whether non-existent headers
6355  # can be detected and how.
6356  cat >conftest.$ac_ext <<_ACEOF
6357/* confdefs.h.  */
6358_ACEOF
6359cat confdefs.h >>conftest.$ac_ext
6360cat >>conftest.$ac_ext <<_ACEOF
6361/* end confdefs.h.  */
6362#include <ac_nonexistent.h>
6363_ACEOF
6364if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6365  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6366  ac_status=$?
6367  grep -v '^ *+' conftest.er1 >conftest.err
6368  rm -f conftest.er1
6369  cat conftest.err >&5
6370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371  (exit $ac_status); } >/dev/null; then
6372  if test -s conftest.err; then
6373    ac_cpp_err=$ac_cxx_preproc_warn_flag
6374    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6375  else
6376    ac_cpp_err=
6377  fi
6378else
6379  ac_cpp_err=yes
6380fi
6381if test -z "$ac_cpp_err"; then
6382  # Broken: success on invalid input.
6383continue
6384else
6385  echo "$as_me: failed program was:" >&5
6386sed 's/^/| /' conftest.$ac_ext >&5
6387
6388  # Passes both tests.
6389ac_preproc_ok=:
6390break
6391fi
6392rm -f conftest.err conftest.$ac_ext
6393
6394done
6395# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6396rm -f conftest.err conftest.$ac_ext
6397if $ac_preproc_ok; then
6398  break
6399fi
6400
6401    done
6402    ac_cv_prog_CXXCPP=$CXXCPP
6403
6404fi
6405  CXXCPP=$ac_cv_prog_CXXCPP
6406else
6407  ac_cv_prog_CXXCPP=$CXXCPP
6408fi
6409echo "$as_me:$LINENO: result: $CXXCPP" >&5
6410echo "${ECHO_T}$CXXCPP" >&6
6411ac_preproc_ok=false
6412for ac_cxx_preproc_warn_flag in '' yes
6413do
6414  # Use a header file that comes with gcc, so configuring glibc
6415  # with a fresh cross-compiler works.
6416  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6417  # <limits.h> exists even on freestanding compilers.
6418  # On the NeXT, cc -E runs the code through the compiler's parser,
6419  # not just through cpp. "Syntax error" is here to catch this case.
6420  cat >conftest.$ac_ext <<_ACEOF
6421/* confdefs.h.  */
6422_ACEOF
6423cat confdefs.h >>conftest.$ac_ext
6424cat >>conftest.$ac_ext <<_ACEOF
6425/* end confdefs.h.  */
6426#ifdef __STDC__
6427# include <limits.h>
6428#else
6429# include <assert.h>
6430#endif
6431                     Syntax error
6432_ACEOF
6433if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6434  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6435  ac_status=$?
6436  grep -v '^ *+' conftest.er1 >conftest.err
6437  rm -f conftest.er1
6438  cat conftest.err >&5
6439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440  (exit $ac_status); } >/dev/null; then
6441  if test -s conftest.err; then
6442    ac_cpp_err=$ac_cxx_preproc_warn_flag
6443    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6444  else
6445    ac_cpp_err=
6446  fi
6447else
6448  ac_cpp_err=yes
6449fi
6450if test -z "$ac_cpp_err"; then
6451  :
6452else
6453  echo "$as_me: failed program was:" >&5
6454sed 's/^/| /' conftest.$ac_ext >&5
6455
6456  # Broken: fails on valid input.
6457continue
6458fi
6459rm -f conftest.err conftest.$ac_ext
6460
6461  # OK, works on sane cases.  Now check whether non-existent headers
6462  # can be detected and how.
6463  cat >conftest.$ac_ext <<_ACEOF
6464/* confdefs.h.  */
6465_ACEOF
6466cat confdefs.h >>conftest.$ac_ext
6467cat >>conftest.$ac_ext <<_ACEOF
6468/* end confdefs.h.  */
6469#include <ac_nonexistent.h>
6470_ACEOF
6471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6472  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6473  ac_status=$?
6474  grep -v '^ *+' conftest.er1 >conftest.err
6475  rm -f conftest.er1
6476  cat conftest.err >&5
6477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478  (exit $ac_status); } >/dev/null; then
6479  if test -s conftest.err; then
6480    ac_cpp_err=$ac_cxx_preproc_warn_flag
6481    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6482  else
6483    ac_cpp_err=
6484  fi
6485else
6486  ac_cpp_err=yes
6487fi
6488if test -z "$ac_cpp_err"; then
6489  # Broken: success on invalid input.
6490continue
6491else
6492  echo "$as_me: failed program was:" >&5
6493sed 's/^/| /' conftest.$ac_ext >&5
6494
6495  # Passes both tests.
6496ac_preproc_ok=:
6497break
6498fi
6499rm -f conftest.err conftest.$ac_ext
6500
6501done
6502# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6503rm -f conftest.err conftest.$ac_ext
6504if $ac_preproc_ok; then
6505  :
6506else
6507  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6508See \`config.log' for more details." >&5
6509echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6510See \`config.log' for more details." >&2;}
6511   { (exit 1); exit 1; }; }
6512fi
6513
6514ac_ext=cc
6515ac_cpp='$CXXCPP $CPPFLAGS'
6516ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6517ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6518ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6519
6520fi
6521
6522
6523ac_ext=f
6524ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6525ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6526ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6527if test -n "$ac_tool_prefix"; then
6528  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6529  do
6530    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6531set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6532echo "$as_me:$LINENO: checking for $ac_word" >&5
6533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6534if test "${ac_cv_prog_F77+set}" = set; then
6535  echo $ECHO_N "(cached) $ECHO_C" >&6
6536else
6537  if test -n "$F77"; then
6538  ac_cv_prog_F77="$F77" # Let the user override the test.
6539else
6540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541for as_dir in $PATH
6542do
6543  IFS=$as_save_IFS
6544  test -z "$as_dir" && as_dir=.
6545  for ac_exec_ext in '' $ac_executable_extensions; do
6546  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6547    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6548    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549    break 2
6550  fi
6551done
6552done
6553
6554fi
6555fi
6556F77=$ac_cv_prog_F77
6557if test -n "$F77"; then
6558  echo "$as_me:$LINENO: result: $F77" >&5
6559echo "${ECHO_T}$F77" >&6
6560else
6561  echo "$as_me:$LINENO: result: no" >&5
6562echo "${ECHO_T}no" >&6
6563fi
6564
6565    test -n "$F77" && break
6566  done
6567fi
6568if test -z "$F77"; then
6569  ac_ct_F77=$F77
6570  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6571do
6572  # Extract the first word of "$ac_prog", so it can be a program name with args.
6573set dummy $ac_prog; ac_word=$2
6574echo "$as_me:$LINENO: checking for $ac_word" >&5
6575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6576if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6577  echo $ECHO_N "(cached) $ECHO_C" >&6
6578else
6579  if test -n "$ac_ct_F77"; then
6580  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6581else
6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583for as_dir in $PATH
6584do
6585  IFS=$as_save_IFS
6586  test -z "$as_dir" && as_dir=.
6587  for ac_exec_ext in '' $ac_executable_extensions; do
6588  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589    ac_cv_prog_ac_ct_F77="$ac_prog"
6590    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591    break 2
6592  fi
6593done
6594done
6595
6596fi
6597fi
6598ac_ct_F77=$ac_cv_prog_ac_ct_F77
6599if test -n "$ac_ct_F77"; then
6600  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6601echo "${ECHO_T}$ac_ct_F77" >&6
6602else
6603  echo "$as_me:$LINENO: result: no" >&5
6604echo "${ECHO_T}no" >&6
6605fi
6606
6607  test -n "$ac_ct_F77" && break
6608done
6609
6610  F77=$ac_ct_F77
6611fi
6612
6613
6614# Provide some information about the compiler.
6615echo "$as_me:6615:" \
6616     "checking for Fortran 77 compiler version" >&5
6617ac_compiler=`set X $ac_compile; echo $2`
6618{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6619  (eval $ac_compiler --version </dev/null >&5) 2>&5
6620  ac_status=$?
6621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622  (exit $ac_status); }
6623{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6624  (eval $ac_compiler -v </dev/null >&5) 2>&5
6625  ac_status=$?
6626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627  (exit $ac_status); }
6628{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6629  (eval $ac_compiler -V </dev/null >&5) 2>&5
6630  ac_status=$?
6631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632  (exit $ac_status); }
6633rm -f a.out
6634
6635# If we don't use `.F' as extension, the preprocessor is not run on the
6636# input file.  (Note that this only needs to work for GNU compilers.)
6637ac_save_ext=$ac_ext
6638ac_ext=F
6639echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6640echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6641if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6642  echo $ECHO_N "(cached) $ECHO_C" >&6
6643else
6644  cat >conftest.$ac_ext <<_ACEOF
6645      program main
6646#ifndef __GNUC__
6647       choke me
6648#endif
6649
6650      end
6651_ACEOF
6652rm -f conftest.$ac_objext
6653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6654  (eval $ac_compile) 2>conftest.er1
6655  ac_status=$?
6656  grep -v '^ *+' conftest.er1 >conftest.err
6657  rm -f conftest.er1
6658  cat conftest.err >&5
6659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660  (exit $ac_status); } &&
6661         { ac_try='test -z "$ac_f77_werror_flag"
6662                         || test ! -s conftest.err'
6663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664  (eval $ac_try) 2>&5
6665  ac_status=$?
6666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667  (exit $ac_status); }; } &&
6668         { ac_try='test -s conftest.$ac_objext'
6669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670  (eval $ac_try) 2>&5
6671  ac_status=$?
6672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673  (exit $ac_status); }; }; then
6674  ac_compiler_gnu=yes
6675else
6676  echo "$as_me: failed program was:" >&5
6677sed 's/^/| /' conftest.$ac_ext >&5
6678
6679ac_compiler_gnu=no
6680fi
6681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6682ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6683
6684fi
6685echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6686echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6687ac_ext=$ac_save_ext
6688ac_test_FFLAGS=${FFLAGS+set}
6689ac_save_FFLAGS=$FFLAGS
6690FFLAGS=
6691echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6692echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6693if test "${ac_cv_prog_f77_g+set}" = set; then
6694  echo $ECHO_N "(cached) $ECHO_C" >&6
6695else
6696  FFLAGS=-g
6697cat >conftest.$ac_ext <<_ACEOF
6698      program main
6699
6700      end
6701_ACEOF
6702rm -f conftest.$ac_objext
6703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6704  (eval $ac_compile) 2>conftest.er1
6705  ac_status=$?
6706  grep -v '^ *+' conftest.er1 >conftest.err
6707  rm -f conftest.er1
6708  cat conftest.err >&5
6709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710  (exit $ac_status); } &&
6711         { ac_try='test -z "$ac_f77_werror_flag"
6712                         || test ! -s conftest.err'
6713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714  (eval $ac_try) 2>&5
6715  ac_status=$?
6716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717  (exit $ac_status); }; } &&
6718         { ac_try='test -s conftest.$ac_objext'
6719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720  (eval $ac_try) 2>&5
6721  ac_status=$?
6722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723  (exit $ac_status); }; }; then
6724  ac_cv_prog_f77_g=yes
6725else
6726  echo "$as_me: failed program was:" >&5
6727sed 's/^/| /' conftest.$ac_ext >&5
6728
6729ac_cv_prog_f77_g=no
6730fi
6731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6732
6733fi
6734echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6735echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6736if test "$ac_test_FFLAGS" = set; then
6737  FFLAGS=$ac_save_FFLAGS
6738elif test $ac_cv_prog_f77_g = yes; then
6739  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6740    FFLAGS="-g -O2"
6741  else
6742    FFLAGS="-g"
6743  fi
6744else
6745  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6746    FFLAGS="-O2"
6747  else
6748    FFLAGS=
6749  fi
6750fi
6751
6752G77=`test $ac_compiler_gnu = yes && echo yes`
6753ac_ext=c
6754ac_cpp='$CPP $CPPFLAGS'
6755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6757ac_compiler_gnu=$ac_cv_c_compiler_gnu
6758
6759
6760
6761# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6762
6763# find the maximum length of command line arguments
6764echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6765echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6766if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6767  echo $ECHO_N "(cached) $ECHO_C" >&6
6768else
6769    i=0
6770  teststring="ABCD"
6771
6772  case $build_os in
6773  msdosdjgpp*)
6774    # On DJGPP, this test can blow up pretty badly due to problems in libc
6775    # (any single argument exceeding 2000 bytes causes a buffer overrun
6776    # during glob expansion).  Even if it were fixed, the result of this
6777    # check would be larger than it should be.
6778    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6779    ;;
6780
6781  gnu*)
6782    # Under GNU Hurd, this test is not required because there is
6783    # no limit to the length of command line arguments.
6784    # Libtool will interpret -1 as no limit whatsoever
6785    lt_cv_sys_max_cmd_len=-1;
6786    ;;
6787
6788  cygwin* | mingw*)
6789    # On Win9x/ME, this test blows up -- it succeeds, but takes
6790    # about 5 minutes as the teststring grows exponentially.
6791    # Worse, since 9x/ME are not pre-emptively multitasking,
6792    # you end up with a "frozen" computer, even though with patience
6793    # the test eventually succeeds (with a max line length of 256k).
6794    # Instead, let's just punt: use the minimum linelength reported by
6795    # all of the supported platforms: 8192 (on NT/2K/XP).
6796    lt_cv_sys_max_cmd_len=8192;
6797    ;;
6798
6799  amigaos*)
6800    # On AmigaOS with pdksh, this test takes hours, literally.
6801    # So we just punt and use a minimum line length of 8192.
6802    lt_cv_sys_max_cmd_len=8192;
6803    ;;
6804
6805  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6806    # This has been around since 386BSD, at least.  Likely further.
6807    if test -x /sbin/sysctl; then
6808      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6809    elif test -x /usr/sbin/sysctl; then
6810      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6811    else
6812      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6813    fi
6814    # And add a safety zone
6815    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6816    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6817    ;;
6818
6819  interix*)
6820    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6821    lt_cv_sys_max_cmd_len=196608
6822    ;;
6823
6824  osf*)
6825    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6826    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6827    # nice to cause kernel panics so lets avoid the loop below.
6828    # First set a reasonable default.
6829    lt_cv_sys_max_cmd_len=16384
6830    #
6831    if test -x /sbin/sysconfig; then
6832      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6833        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6834      esac
6835    fi
6836    ;;
6837  sco3.2v5*)
6838    lt_cv_sys_max_cmd_len=102400
6839    ;;
6840  sysv5* | sco5v6* | sysv4.2uw2*)
6841    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6842    if test -n "$kargmax"; then
6843      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6844    else
6845      lt_cv_sys_max_cmd_len=32768
6846    fi
6847    ;;
6848  *)
6849    # If test is not a shell built-in, we'll probably end up computing a
6850    # maximum length that is only half of the actual maximum length, but
6851    # we can't tell.
6852    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6853    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6854               = "XX$teststring") >/dev/null 2>&1 &&
6855            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6856            lt_cv_sys_max_cmd_len=$new_result &&
6857            test $i != 17 # 1/2 MB should be enough
6858    do
6859      i=`expr $i + 1`
6860      teststring=$teststring$teststring
6861    done
6862    teststring=
6863    # Add a significant safety factor because C++ compilers can tack on massive
6864    # amounts of additional arguments before passing them to the linker.
6865    # It appears as though 1/2 is a usable value.
6866    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6867    ;;
6868  esac
6869
6870fi
6871
6872if test -n $lt_cv_sys_max_cmd_len ; then
6873  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6874echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6875else
6876  echo "$as_me:$LINENO: result: none" >&5
6877echo "${ECHO_T}none" >&6
6878fi
6879
6880
6881
6882
6883# Check for command to grab the raw symbol name followed by C symbol from nm.
6884echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6885echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6886if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6887  echo $ECHO_N "(cached) $ECHO_C" >&6
6888else
6889
6890# These are sane defaults that work on at least a few old systems.
6891# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6892
6893# Character class describing NM global symbol codes.
6894symcode='[BCDEGRST]'
6895
6896# Regexp to match symbols that can be accessed directly from C.
6897sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6898
6899# Transform an extracted symbol line into a proper C declaration
6900lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6901
6902# Transform an extracted symbol line into symbol name and symbol address
6903lt_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'"
6904
6905# Define system-specific variables.
6906case $host_os in
6907aix*)
6908  symcode='[BCDT]'
6909  ;;
6910cygwin* | mingw* | pw32*)
6911  symcode='[ABCDGISTW]'
6912  ;;
6913hpux*) # Its linker distinguishes data from code symbols
6914  if test "$host_cpu" = ia64; then
6915    symcode='[ABCDEGRST]'
6916  fi
6917  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6918  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'"
6919  ;;
6920linux*)
6921  if test "$host_cpu" = ia64; then
6922    symcode='[ABCDGIRSTW]'
6923    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6924    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'"
6925  fi
6926  ;;
6927irix* | nonstopux*)
6928  symcode='[BCDEGRST]'
6929  ;;
6930osf*)
6931  symcode='[BCDEGQRST]'
6932  ;;
6933solaris*)
6934  symcode='[BDRT]'
6935  ;;
6936sco3.2v5*)
6937  symcode='[DT]'
6938  ;;
6939sysv4.2uw2*)
6940  symcode='[DT]'
6941  ;;
6942sysv5* | sco5v6* | unixware* | OpenUNIX*)
6943  symcode='[ABDT]'
6944  ;;
6945sysv4)
6946  symcode='[DFNSTU]'
6947  ;;
6948esac
6949
6950# Handle CRLF in mingw tool chain
6951opt_cr=
6952case $build_os in
6953mingw*)
6954  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6955  ;;
6956esac
6957
6958# If we're using GNU nm, then use its standard symbol codes.
6959case `$NM -V 2>&1` in
6960*GNU* | *'with BFD'*)
6961  symcode='[ABCDGIRSTW]' ;;
6962esac
6963
6964# Try without a prefix undercore, then with it.
6965for ac_symprfx in "" "_"; do
6966
6967  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6968  symxfrm="\\1 $ac_symprfx\\2 \\2"
6969
6970  # Write the raw and C identifiers.
6971  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6972
6973  # Check to see that the pipe works correctly.
6974  pipe_works=no
6975
6976  rm -f conftest*
6977  cat > conftest.$ac_ext <<EOF
6978#ifdef __cplusplus
6979extern "C" {
6980#endif
6981char nm_test_var;
6982void nm_test_func(){}
6983#ifdef __cplusplus
6984}
6985#endif
6986int main(){nm_test_var='a';nm_test_func();return(0);}
6987EOF
6988
6989  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6990  (eval $ac_compile) 2>&5
6991  ac_status=$?
6992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993  (exit $ac_status); }; then
6994    # Now try to grab the symbols.
6995    nlist=conftest.nm
6996    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6997  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6998  ac_status=$?
6999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000  (exit $ac_status); } && test -s "$nlist"; then
7001      # Try sorting and uniquifying the output.
7002      if sort "$nlist" | uniq > "$nlist"T; then
7003        mv -f "$nlist"T "$nlist"
7004      else
7005        rm -f "$nlist"T
7006      fi
7007
7008      # Make sure that we snagged all the symbols we need.
7009      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7010        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7011          cat <<EOF > conftest.$ac_ext
7012#ifdef __cplusplus
7013extern "C" {
7014#endif
7015
7016EOF
7017          # Now generate the symbol file.
7018          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7019
7020          cat <<EOF >> conftest.$ac_ext
7021#if defined (__STDC__) && __STDC__
7022# define lt_ptr_t void *
7023#else
7024# define lt_ptr_t char *
7025# define const
7026#endif
7027
7028/* The mapping between symbol names and symbols. */
7029const struct {
7030  const char *name;
7031  lt_ptr_t address;
7032}
7033lt_preloaded_symbols[] =
7034{
7035EOF
7036          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7037          cat <<\EOF >> conftest.$ac_ext
7038  {0, (lt_ptr_t) 0}
7039};
7040
7041#ifdef __cplusplus
7042}
7043#endif
7044EOF
7045          # Now try linking the two files.
7046          mv conftest.$ac_objext conftstm.$ac_objext
7047          lt_save_LIBS="$LIBS"
7048          lt_save_CFLAGS="$CFLAGS"
7049          LIBS="conftstm.$ac_objext"
7050          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7051          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7052  (eval $ac_link) 2>&5
7053  ac_status=$?
7054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7056            pipe_works=yes
7057          fi
7058          LIBS="$lt_save_LIBS"
7059          CFLAGS="$lt_save_CFLAGS"
7060        else
7061          echo "cannot find nm_test_func in $nlist" >&5
7062        fi
7063      else
7064        echo "cannot find nm_test_var in $nlist" >&5
7065      fi
7066    else
7067      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7068    fi
7069  else
7070    echo "$progname: failed program was:" >&5
7071    cat conftest.$ac_ext >&5
7072  fi
7073  rm -f conftest* conftst*
7074
7075  # Do not use the global_symbol_pipe unless it works.
7076  if test "$pipe_works" = yes; then
7077    break
7078  else
7079    lt_cv_sys_global_symbol_pipe=
7080  fi
7081done
7082
7083fi
7084
7085if test -z "$lt_cv_sys_global_symbol_pipe"; then
7086  lt_cv_sys_global_symbol_to_cdecl=
7087fi
7088if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7089  echo "$as_me:$LINENO: result: failed" >&5
7090echo "${ECHO_T}failed" >&6
7091else
7092  echo "$as_me:$LINENO: result: ok" >&5
7093echo "${ECHO_T}ok" >&6
7094fi
7095
7096echo "$as_me:$LINENO: checking for objdir" >&5
7097echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7098if test "${lt_cv_objdir+set}" = set; then
7099  echo $ECHO_N "(cached) $ECHO_C" >&6
7100else
7101  rm -f .libs 2>/dev/null
7102mkdir .libs 2>/dev/null
7103if test -d .libs; then
7104  lt_cv_objdir=.libs
7105else
7106  # MS-DOS does not allow filenames that begin with a dot.
7107  lt_cv_objdir=_libs
7108fi
7109rmdir .libs 2>/dev/null
7110fi
7111echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7112echo "${ECHO_T}$lt_cv_objdir" >&6
7113objdir=$lt_cv_objdir
7114
7115
7116
7117
7118
7119case $host_os in
7120aix3*)
7121  # AIX sometimes has problems with the GCC collect2 program.  For some
7122  # reason, if we set the COLLECT_NAMES environment variable, the problems
7123  # vanish in a puff of smoke.
7124  if test "X${COLLECT_NAMES+set}" != Xset; then
7125    COLLECT_NAMES=
7126    export COLLECT_NAMES
7127  fi
7128  ;;
7129esac
7130
7131# Sed substitution that helps us do robust quoting.  It backslashifies
7132# metacharacters that are still active within double-quoted strings.
7133Xsed='sed -e 1s/^X//'
7134sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7135
7136# Same as above, but do not quote variable references.
7137double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7138
7139# Sed substitution to delay expansion of an escaped shell variable in a
7140# double_quote_subst'ed string.
7141delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7142
7143# Sed substitution to avoid accidental globbing in evaled expressions
7144no_glob_subst='s/\*/\\\*/g'
7145
7146# Constants:
7147rm="rm -f"
7148
7149# Global variables:
7150default_ofile=libtool
7151can_build_shared=yes
7152
7153# All known linkers require a `.a' archive for static linking (except MSVC,
7154# which needs '.lib').
7155libext=a
7156ltmain="$ac_aux_dir/ltmain.sh"
7157ofile="$default_ofile"
7158with_gnu_ld="$lt_cv_prog_gnu_ld"
7159
7160if test -n "$ac_tool_prefix"; then
7161  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7162set dummy ${ac_tool_prefix}ar; ac_word=$2
7163echo "$as_me:$LINENO: checking for $ac_word" >&5
7164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7165if test "${ac_cv_prog_AR+set}" = set; then
7166  echo $ECHO_N "(cached) $ECHO_C" >&6
7167else
7168  if test -n "$AR"; then
7169  ac_cv_prog_AR="$AR" # Let the user override the test.
7170else
7171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172for as_dir in $PATH
7173do
7174  IFS=$as_save_IFS
7175  test -z "$as_dir" && as_dir=.
7176  for ac_exec_ext in '' $ac_executable_extensions; do
7177  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178    ac_cv_prog_AR="${ac_tool_prefix}ar"
7179    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180    break 2
7181  fi
7182done
7183done
7184
7185fi
7186fi
7187AR=$ac_cv_prog_AR
7188if test -n "$AR"; then
7189  echo "$as_me:$LINENO: result: $AR" >&5
7190echo "${ECHO_T}$AR" >&6
7191else
7192  echo "$as_me:$LINENO: result: no" >&5
7193echo "${ECHO_T}no" >&6
7194fi
7195
7196fi
7197if test -z "$ac_cv_prog_AR"; then
7198  ac_ct_AR=$AR
7199  # Extract the first word of "ar", so it can be a program name with args.
7200set dummy ar; ac_word=$2
7201echo "$as_me:$LINENO: checking for $ac_word" >&5
7202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7203if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7204  echo $ECHO_N "(cached) $ECHO_C" >&6
7205else
7206  if test -n "$ac_ct_AR"; then
7207  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7208else
7209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210for as_dir in $PATH
7211do
7212  IFS=$as_save_IFS
7213  test -z "$as_dir" && as_dir=.
7214  for ac_exec_ext in '' $ac_executable_extensions; do
7215  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7216    ac_cv_prog_ac_ct_AR="ar"
7217    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218    break 2
7219  fi
7220done
7221done
7222
7223  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7224fi
7225fi
7226ac_ct_AR=$ac_cv_prog_ac_ct_AR
7227if test -n "$ac_ct_AR"; then
7228  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7229echo "${ECHO_T}$ac_ct_AR" >&6
7230else
7231  echo "$as_me:$LINENO: result: no" >&5
7232echo "${ECHO_T}no" >&6
7233fi
7234
7235  AR=$ac_ct_AR
7236else
7237  AR="$ac_cv_prog_AR"
7238fi
7239
7240if test -n "$ac_tool_prefix"; then
7241  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7242set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7243echo "$as_me:$LINENO: checking for $ac_word" >&5
7244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7245if test "${ac_cv_prog_RANLIB+set}" = set; then
7246  echo $ECHO_N "(cached) $ECHO_C" >&6
7247else
7248  if test -n "$RANLIB"; then
7249  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7250else
7251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252for as_dir in $PATH
7253do
7254  IFS=$as_save_IFS
7255  test -z "$as_dir" && as_dir=.
7256  for ac_exec_ext in '' $ac_executable_extensions; do
7257  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7258    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7259    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7260    break 2
7261  fi
7262done
7263done
7264
7265fi
7266fi
7267RANLIB=$ac_cv_prog_RANLIB
7268if test -n "$RANLIB"; then
7269  echo "$as_me:$LINENO: result: $RANLIB" >&5
7270echo "${ECHO_T}$RANLIB" >&6
7271else
7272  echo "$as_me:$LINENO: result: no" >&5
7273echo "${ECHO_T}no" >&6
7274fi
7275
7276fi
7277if test -z "$ac_cv_prog_RANLIB"; then
7278  ac_ct_RANLIB=$RANLIB
7279  # Extract the first word of "ranlib", so it can be a program name with args.
7280set dummy ranlib; ac_word=$2
7281echo "$as_me:$LINENO: checking for $ac_word" >&5
7282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7283if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7284  echo $ECHO_N "(cached) $ECHO_C" >&6
7285else
7286  if test -n "$ac_ct_RANLIB"; then
7287  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7288else
7289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290for as_dir in $PATH
7291do
7292  IFS=$as_save_IFS
7293  test -z "$as_dir" && as_dir=.
7294  for ac_exec_ext in '' $ac_executable_extensions; do
7295  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7296    ac_cv_prog_ac_ct_RANLIB="ranlib"
7297    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7298    break 2
7299  fi
7300done
7301done
7302
7303  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7304fi
7305fi
7306ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7307if test -n "$ac_ct_RANLIB"; then
7308  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7309echo "${ECHO_T}$ac_ct_RANLIB" >&6
7310else
7311  echo "$as_me:$LINENO: result: no" >&5
7312echo "${ECHO_T}no" >&6
7313fi
7314
7315  RANLIB=$ac_ct_RANLIB
7316else
7317  RANLIB="$ac_cv_prog_RANLIB"
7318fi
7319
7320if test -n "$ac_tool_prefix"; then
7321  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7322set dummy ${ac_tool_prefix}strip; ac_word=$2
7323echo "$as_me:$LINENO: checking for $ac_word" >&5
7324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7325if test "${ac_cv_prog_STRIP+set}" = set; then
7326  echo $ECHO_N "(cached) $ECHO_C" >&6
7327else
7328  if test -n "$STRIP"; then
7329  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7330else
7331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332for as_dir in $PATH
7333do
7334  IFS=$as_save_IFS
7335  test -z "$as_dir" && as_dir=.
7336  for ac_exec_ext in '' $ac_executable_extensions; do
7337  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7339    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340    break 2
7341  fi
7342done
7343done
7344
7345fi
7346fi
7347STRIP=$ac_cv_prog_STRIP
7348if test -n "$STRIP"; then
7349  echo "$as_me:$LINENO: result: $STRIP" >&5
7350echo "${ECHO_T}$STRIP" >&6
7351else
7352  echo "$as_me:$LINENO: result: no" >&5
7353echo "${ECHO_T}no" >&6
7354fi
7355
7356fi
7357if test -z "$ac_cv_prog_STRIP"; then
7358  ac_ct_STRIP=$STRIP
7359  # Extract the first word of "strip", so it can be a program name with args.
7360set dummy strip; ac_word=$2
7361echo "$as_me:$LINENO: checking for $ac_word" >&5
7362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7363if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7364  echo $ECHO_N "(cached) $ECHO_C" >&6
7365else
7366  if test -n "$ac_ct_STRIP"; then
7367  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7368else
7369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370for as_dir in $PATH
7371do
7372  IFS=$as_save_IFS
7373  test -z "$as_dir" && as_dir=.
7374  for ac_exec_ext in '' $ac_executable_extensions; do
7375  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376    ac_cv_prog_ac_ct_STRIP="strip"
7377    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378    break 2
7379  fi
7380done
7381done
7382
7383  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7384fi
7385fi
7386ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7387if test -n "$ac_ct_STRIP"; then
7388  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7389echo "${ECHO_T}$ac_ct_STRIP" >&6
7390else
7391  echo "$as_me:$LINENO: result: no" >&5
7392echo "${ECHO_T}no" >&6
7393fi
7394
7395  STRIP=$ac_ct_STRIP
7396else
7397  STRIP="$ac_cv_prog_STRIP"
7398fi
7399
7400
7401old_CC="$CC"
7402old_CFLAGS="$CFLAGS"
7403
7404# Set sane defaults for various variables
7405test -z "$AR" && AR=ar
7406test -z "$AR_FLAGS" && AR_FLAGS=cru
7407test -z "$AS" && AS=as
7408test -z "$CC" && CC=cc
7409test -z "$LTCC" && LTCC=$CC
7410test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7411test -z "$DLLTOOL" && DLLTOOL=dlltool
7412test -z "$LD" && LD=ld
7413test -z "$LN_S" && LN_S="ln -s"
7414test -z "$MAGIC_CMD" && MAGIC_CMD=file
7415test -z "$NM" && NM=nm
7416test -z "$SED" && SED=sed
7417test -z "$OBJDUMP" && OBJDUMP=objdump
7418test -z "$RANLIB" && RANLIB=:
7419test -z "$STRIP" && STRIP=:
7420test -z "$ac_objext" && ac_objext=o
7421
7422# Determine commands to create old-style static archives.
7423old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7424old_postinstall_cmds='chmod 644 $oldlib'
7425old_postuninstall_cmds=
7426
7427if test -n "$RANLIB"; then
7428  case $host_os in
7429  openbsd*)
7430    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7431    ;;
7432  *)
7433    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7434    ;;
7435  esac
7436  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7437fi
7438
7439for cc_temp in $compiler""; do
7440  case $cc_temp in
7441    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7442    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7443    \-*) ;;
7444    *) break;;
7445  esac
7446done
7447cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7448
7449
7450# Only perform the check for file, if the check method requires it
7451case $deplibs_check_method in
7452file_magic*)
7453  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7454    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7455echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7456if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7457  echo $ECHO_N "(cached) $ECHO_C" >&6
7458else
7459  case $MAGIC_CMD in
7460[\\/*] |  ?:[\\/]*)
7461  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7462  ;;
7463*)
7464  lt_save_MAGIC_CMD="$MAGIC_CMD"
7465  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7466  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7467  for ac_dir in $ac_dummy; do
7468    IFS="$lt_save_ifs"
7469    test -z "$ac_dir" && ac_dir=.
7470    if test -f $ac_dir/${ac_tool_prefix}file; then
7471      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7472      if test -n "$file_magic_test_file"; then
7473        case $deplibs_check_method in
7474        "file_magic "*)
7475          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7476          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7477          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7478            $EGREP "$file_magic_regex" > /dev/null; then
7479            :
7480          else
7481            cat <<EOF 1>&2
7482
7483*** Warning: the command libtool uses to detect shared libraries,
7484*** $file_magic_cmd, produces output that libtool cannot recognize.
7485*** The result is that libtool may fail to recognize shared libraries
7486*** as such.  This will affect the creation of libtool libraries that
7487*** depend on shared libraries, but programs linked with such libtool
7488*** libraries will work regardless of this problem.  Nevertheless, you
7489*** may want to report the problem to your system manager and/or to
7490*** bug-libtool@gnu.org
7491
7492EOF
7493          fi ;;
7494        esac
7495      fi
7496      break
7497    fi
7498  done
7499  IFS="$lt_save_ifs"
7500  MAGIC_CMD="$lt_save_MAGIC_CMD"
7501  ;;
7502esac
7503fi
7504
7505MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7506if test -n "$MAGIC_CMD"; then
7507  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7508echo "${ECHO_T}$MAGIC_CMD" >&6
7509else
7510  echo "$as_me:$LINENO: result: no" >&5
7511echo "${ECHO_T}no" >&6
7512fi
7513
7514if test -z "$lt_cv_path_MAGIC_CMD"; then
7515  if test -n "$ac_tool_prefix"; then
7516    echo "$as_me:$LINENO: checking for file" >&5
7517echo $ECHO_N "checking for file... $ECHO_C" >&6
7518if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7519  echo $ECHO_N "(cached) $ECHO_C" >&6
7520else
7521  case $MAGIC_CMD in
7522[\\/*] |  ?:[\\/]*)
7523  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7524  ;;
7525*)
7526  lt_save_MAGIC_CMD="$MAGIC_CMD"
7527  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7528  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7529  for ac_dir in $ac_dummy; do
7530    IFS="$lt_save_ifs"
7531    test -z "$ac_dir" && ac_dir=.
7532    if test -f $ac_dir/file; then
7533      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7534      if test -n "$file_magic_test_file"; then
7535        case $deplibs_check_method in
7536        "file_magic "*)
7537          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7538          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7539          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7540            $EGREP "$file_magic_regex" > /dev/null; then
7541            :
7542          else
7543            cat <<EOF 1>&2
7544
7545*** Warning: the command libtool uses to detect shared libraries,
7546*** $file_magic_cmd, produces output that libtool cannot recognize.
7547*** The result is that libtool may fail to recognize shared libraries
7548*** as such.  This will affect the creation of libtool libraries that
7549*** depend on shared libraries, but programs linked with such libtool
7550*** libraries will work regardless of this problem.  Nevertheless, you
7551*** may want to report the problem to your system manager and/or to
7552*** bug-libtool@gnu.org
7553
7554EOF
7555          fi ;;
7556        esac
7557      fi
7558      break
7559    fi
7560  done
7561  IFS="$lt_save_ifs"
7562  MAGIC_CMD="$lt_save_MAGIC_CMD"
7563  ;;
7564esac
7565fi
7566
7567MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7568if test -n "$MAGIC_CMD"; then
7569  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7570echo "${ECHO_T}$MAGIC_CMD" >&6
7571else
7572  echo "$as_me:$LINENO: result: no" >&5
7573echo "${ECHO_T}no" >&6
7574fi
7575
7576  else
7577    MAGIC_CMD=:
7578  fi
7579fi
7580
7581  fi
7582  ;;
7583esac
7584
7585enable_dlopen=no
7586enable_win32_dll=no
7587
7588# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7589if test "${enable_libtool_lock+set}" = set; then
7590  enableval="$enable_libtool_lock"
7591
7592fi;
7593test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7594
7595
7596# Check whether --with-pic or --without-pic was given.
7597if test "${with_pic+set}" = set; then
7598  withval="$with_pic"
7599  pic_mode="$withval"
7600else
7601  pic_mode=default
7602fi;
7603test -z "$pic_mode" && pic_mode=default
7604
7605# Use C for the default configuration in the libtool script
7606tagname=
7607lt_save_CC="$CC"
7608ac_ext=c
7609ac_cpp='$CPP $CPPFLAGS'
7610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7612ac_compiler_gnu=$ac_cv_c_compiler_gnu
7613
7614
7615# Source file extension for C test sources.
7616ac_ext=c
7617
7618# Object file extension for compiled C test sources.
7619objext=o
7620objext=$objext
7621
7622# Code to be used in simple compile tests
7623lt_simple_compile_test_code="int some_variable = 0;\n"
7624
7625# Code to be used in simple link tests
7626lt_simple_link_test_code='int main(){return(0);}\n'
7627
7628
7629# If no C compiler was specified, use CC.
7630LTCC=${LTCC-"$CC"}
7631
7632# If no C compiler flags were specified, use CFLAGS.
7633LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7634
7635# Allow CC to be a program name with arguments.
7636compiler=$CC
7637
7638
7639# save warnings/boilerplate of simple test code
7640ac_outfile=conftest.$ac_objext
7641printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7642eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7643_lt_compiler_boilerplate=`cat conftest.err`
7644$rm conftest*
7645
7646ac_outfile=conftest.$ac_objext
7647printf "$lt_simple_link_test_code" >conftest.$ac_ext
7648eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7649_lt_linker_boilerplate=`cat conftest.err`
7650$rm conftest*
7651
7652
7653## CAVEAT EMPTOR:
7654## There is no encapsulation within the following macros, do not change
7655## the running order or otherwise move them around unless you know exactly
7656## what you are doing...
7657
7658lt_prog_compiler_no_builtin_flag=
7659
7660if test "$GCC" = yes; then
7661  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7662
7663
7664echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7665echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7666if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7667  echo $ECHO_N "(cached) $ECHO_C" >&6
7668else
7669  lt_cv_prog_compiler_rtti_exceptions=no
7670  ac_outfile=conftest.$ac_objext
7671   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7672   lt_compiler_flag="-fno-rtti -fno-exceptions"
7673   # Insert the option either (1) after the last *FLAGS variable, or
7674   # (2) before a word containing "conftest.", or (3) at the end.
7675   # Note that $ac_compile itself does not contain backslashes and begins
7676   # with a dollar sign (not a hyphen), so the echo should work correctly.
7677   # The option is referenced via a variable to avoid confusing sed.
7678   lt_compile=`echo "$ac_compile" | $SED \
7679   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7680   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7681   -e 's:$: $lt_compiler_flag:'`
7682   (eval echo "\"\$as_me:7682: $lt_compile\"" >&5)
7683   (eval "$lt_compile" 2>conftest.err)
7684   ac_status=$?
7685   cat conftest.err >&5
7686   echo "$as_me:7686: \$? = $ac_status" >&5
7687   if (exit $ac_status) && test -s "$ac_outfile"; then
7688     # The compiler can only warn and ignore the option if not recognized
7689     # So say no if there are warnings other than the usual output.
7690     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7691     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7692     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7693       lt_cv_prog_compiler_rtti_exceptions=yes
7694     fi
7695   fi
7696   $rm conftest*
7697
7698fi
7699echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7700echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7701
7702if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7703    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7704else
7705    :
7706fi
7707
7708fi
7709
7710lt_prog_compiler_wl=
7711lt_prog_compiler_pic=
7712lt_prog_compiler_static=
7713
7714echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7715echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7716
7717  if test "$GCC" = yes; then
7718    lt_prog_compiler_wl='-Wl,'
7719    lt_prog_compiler_static='-static'
7720
7721    case $host_os in
7722      aix*)
7723      # All AIX code is PIC.
7724      if test "$host_cpu" = ia64; then
7725        # AIX 5 now supports IA64 processor
7726        lt_prog_compiler_static='-Bstatic'
7727      fi
7728      ;;
7729
7730    amigaos*)
7731      # FIXME: we need at least 68020 code to build shared libraries, but
7732      # adding the `-m68020' flag to GCC prevents building anything better,
7733      # like `-m68040'.
7734      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7735      ;;
7736
7737    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7738      # PIC is the default for these OSes.
7739      ;;
7740
7741    mingw* | pw32* | os2*)
7742      # This hack is so that the source file can tell whether it is being
7743      # built for inclusion in a dll (and should export symbols for example).
7744      lt_prog_compiler_pic='-DDLL_EXPORT'
7745      ;;
7746
7747    darwin* | rhapsody*)
7748      # PIC is the default on this platform
7749      # Common symbols not allowed in MH_DYLIB files
7750      lt_prog_compiler_pic='-fno-common'
7751      ;;
7752
7753    interix3*)
7754      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7755      # Instead, we relocate shared libraries at runtime.
7756      ;;
7757
7758    msdosdjgpp*)
7759      # Just because we use GCC doesn't mean we suddenly get shared libraries
7760      # on systems that don't support them.
7761      lt_prog_compiler_can_build_shared=no
7762      enable_shared=no
7763      ;;
7764
7765    sysv4*MP*)
7766      if test -d /usr/nec; then
7767        lt_prog_compiler_pic=-Kconform_pic
7768      fi
7769      ;;
7770
7771    hpux*)
7772      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7773      # not for PA HP-UX.
7774      case $host_cpu in
7775      hppa*64*|ia64*)
7776        # +Z the default
7777        ;;
7778      *)
7779        lt_prog_compiler_pic='-fPIC'
7780        ;;
7781      esac
7782      ;;
7783
7784    *)
7785      lt_prog_compiler_pic='-fPIC'
7786      ;;
7787    esac
7788  else
7789    # PORTME Check for flag to pass linker flags through the system compiler.
7790    case $host_os in
7791    aix*)
7792      lt_prog_compiler_wl='-Wl,'
7793      if test "$host_cpu" = ia64; then
7794        # AIX 5 now supports IA64 processor
7795        lt_prog_compiler_static='-Bstatic'
7796      else
7797        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7798      fi
7799      ;;
7800      darwin*)
7801        # PIC is the default on this platform
7802        # Common symbols not allowed in MH_DYLIB files
7803       case $cc_basename in
7804         xlc*)
7805         lt_prog_compiler_pic='-qnocommon'
7806         lt_prog_compiler_wl='-Wl,'
7807         ;;
7808       esac
7809       ;;
7810
7811    mingw* | pw32* | os2*)
7812      # This hack is so that the source file can tell whether it is being
7813      # built for inclusion in a dll (and should export symbols for example).
7814      lt_prog_compiler_pic='-DDLL_EXPORT'
7815      ;;
7816
7817    hpux9* | hpux10* | hpux11*)
7818      lt_prog_compiler_wl='-Wl,'
7819      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7820      # not for PA HP-UX.
7821      case $host_cpu in
7822      hppa*64*|ia64*)
7823        # +Z the default
7824        ;;
7825      *)
7826        lt_prog_compiler_pic='+Z'
7827        ;;
7828      esac
7829      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7830      lt_prog_compiler_static='${wl}-a ${wl}archive'
7831      ;;
7832
7833    irix5* | irix6* | nonstopux*)
7834      lt_prog_compiler_wl='-Wl,'
7835      # PIC (with -KPIC) is the default.
7836      lt_prog_compiler_static='-non_shared'
7837      ;;
7838
7839    newsos6)
7840      lt_prog_compiler_pic='-KPIC'
7841      lt_prog_compiler_static='-Bstatic'
7842      ;;
7843
7844    linux*)
7845      case $cc_basename in
7846      icc* | ecc*)
7847        lt_prog_compiler_wl='-Wl,'
7848        lt_prog_compiler_pic='-KPIC'
7849        lt_prog_compiler_static='-static'
7850        ;;
7851      pgcc* | pgf77* | pgf90* | pgf95*)
7852        # Portland Group compilers (*not* the Pentium gcc compiler,
7853        # which looks to be a dead project)
7854        lt_prog_compiler_wl='-Wl,'
7855        lt_prog_compiler_pic='-fpic'
7856        lt_prog_compiler_static='-Bstatic'
7857        ;;
7858      ccc*)
7859        lt_prog_compiler_wl='-Wl,'
7860        # All Alpha code is PIC.
7861        lt_prog_compiler_static='-non_shared'
7862        ;;
7863      esac
7864      ;;
7865
7866    osf3* | osf4* | osf5*)
7867      lt_prog_compiler_wl='-Wl,'
7868      # All OSF/1 code is PIC.
7869      lt_prog_compiler_static='-non_shared'
7870      ;;
7871
7872    solaris*)
7873      lt_prog_compiler_pic='-KPIC'
7874      lt_prog_compiler_static='-Bstatic'
7875      case $cc_basename in
7876      f77* | f90* | f95*)
7877        lt_prog_compiler_wl='-Qoption ld ';;
7878      *)
7879        lt_prog_compiler_wl='-Wl,';;
7880      esac
7881      ;;
7882
7883    sunos4*)
7884      lt_prog_compiler_wl='-Qoption ld '
7885      lt_prog_compiler_pic='-PIC'
7886      lt_prog_compiler_static='-Bstatic'
7887      ;;
7888
7889    sysv4 | sysv4.2uw2* | sysv4.3*)
7890      lt_prog_compiler_wl='-Wl,'
7891      lt_prog_compiler_pic='-KPIC'
7892      lt_prog_compiler_static='-Bstatic'
7893      ;;
7894
7895    sysv4*MP*)
7896      if test -d /usr/nec ;then
7897        lt_prog_compiler_pic='-Kconform_pic'
7898        lt_prog_compiler_static='-Bstatic'
7899      fi
7900      ;;
7901
7902    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7903      lt_prog_compiler_wl='-Wl,'
7904      lt_prog_compiler_pic='-KPIC'
7905      lt_prog_compiler_static='-Bstatic'
7906      ;;
7907
7908    unicos*)
7909      lt_prog_compiler_wl='-Wl,'
7910      lt_prog_compiler_can_build_shared=no
7911      ;;
7912
7913    uts4*)
7914      lt_prog_compiler_pic='-pic'
7915      lt_prog_compiler_static='-Bstatic'
7916      ;;
7917
7918    *)
7919      lt_prog_compiler_can_build_shared=no
7920      ;;
7921    esac
7922  fi
7923
7924echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7925echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7926
7927#
7928# Check to make sure the PIC flag actually works.
7929#
7930if test -n "$lt_prog_compiler_pic"; then
7931
7932echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7933echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7934if test "${lt_prog_compiler_pic_works+set}" = set; then
7935  echo $ECHO_N "(cached) $ECHO_C" >&6
7936else
7937  lt_prog_compiler_pic_works=no
7938  ac_outfile=conftest.$ac_objext
7939   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7940   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7941   # Insert the option either (1) after the last *FLAGS variable, or
7942   # (2) before a word containing "conftest.", or (3) at the end.
7943   # Note that $ac_compile itself does not contain backslashes and begins
7944   # with a dollar sign (not a hyphen), so the echo should work correctly.
7945   # The option is referenced via a variable to avoid confusing sed.
7946   lt_compile=`echo "$ac_compile" | $SED \
7947   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7948   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7949   -e 's:$: $lt_compiler_flag:'`
7950   (eval echo "\"\$as_me:7950: $lt_compile\"" >&5)
7951   (eval "$lt_compile" 2>conftest.err)
7952   ac_status=$?
7953   cat conftest.err >&5
7954   echo "$as_me:7954: \$? = $ac_status" >&5
7955   if (exit $ac_status) && test -s "$ac_outfile"; then
7956     # The compiler can only warn and ignore the option if not recognized
7957     # So say no if there are warnings other than the usual output.
7958     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7959     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7960     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7961       lt_prog_compiler_pic_works=yes
7962     fi
7963   fi
7964   $rm conftest*
7965
7966fi
7967echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7968echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7969
7970if test x"$lt_prog_compiler_pic_works" = xyes; then
7971    case $lt_prog_compiler_pic in
7972     "" | " "*) ;;
7973     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7974     esac
7975else
7976    lt_prog_compiler_pic=
7977     lt_prog_compiler_can_build_shared=no
7978fi
7979
7980fi
7981case $host_os in
7982  # For platforms which do not support PIC, -DPIC is meaningless:
7983  *djgpp*)
7984    lt_prog_compiler_pic=
7985    ;;
7986  *)
7987    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7988    ;;
7989esac
7990
7991#
7992# Check to make sure the static flag actually works.
7993#
7994wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7995echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7996echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7997if test "${lt_prog_compiler_static_works+set}" = set; then
7998  echo $ECHO_N "(cached) $ECHO_C" >&6
7999else
8000  lt_prog_compiler_static_works=no
8001   save_LDFLAGS="$LDFLAGS"
8002   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8003   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8004   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8005     # The linker can only warn and ignore the option if not recognized
8006     # So say no if there are warnings
8007     if test -s conftest.err; then
8008       # Append any errors to the config.log.
8009       cat conftest.err 1>&5
8010       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8011       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8012       if diff conftest.exp conftest.er2 >/dev/null; then
8013         lt_prog_compiler_static_works=yes
8014       fi
8015     else
8016       lt_prog_compiler_static_works=yes
8017     fi
8018   fi
8019   $rm conftest*
8020   LDFLAGS="$save_LDFLAGS"
8021
8022fi
8023echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8024echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8025
8026if test x"$lt_prog_compiler_static_works" = xyes; then
8027    :
8028else
8029    lt_prog_compiler_static=
8030fi
8031
8032
8033echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8034echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8035if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8036  echo $ECHO_N "(cached) $ECHO_C" >&6
8037else
8038  lt_cv_prog_compiler_c_o=no
8039   $rm -r conftest 2>/dev/null
8040   mkdir conftest
8041   cd conftest
8042   mkdir out
8043   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8044
8045   lt_compiler_flag="-o out/conftest2.$ac_objext"
8046   # Insert the option either (1) after the last *FLAGS variable, or
8047   # (2) before a word containing "conftest.", or (3) at the end.
8048   # Note that $ac_compile itself does not contain backslashes and begins
8049   # with a dollar sign (not a hyphen), so the echo should work correctly.
8050   lt_compile=`echo "$ac_compile" | $SED \
8051   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8052   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8053   -e 's:$: $lt_compiler_flag:'`
8054   (eval echo "\"\$as_me:8054: $lt_compile\"" >&5)
8055   (eval "$lt_compile" 2>out/conftest.err)
8056   ac_status=$?
8057   cat out/conftest.err >&5
8058   echo "$as_me:8058: \$? = $ac_status" >&5
8059   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8060   then
8061     # The compiler can only warn and ignore the option if not recognized
8062     # So say no if there are warnings
8063     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8064     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8065     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8066       lt_cv_prog_compiler_c_o=yes
8067     fi
8068   fi
8069   chmod u+w . 2>&5
8070   $rm conftest*
8071   # SGI C++ compiler will create directory out/ii_files/ for
8072   # template instantiation
8073   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8074   $rm out/* && rmdir out
8075   cd ..
8076   rmdir conftest
8077   $rm conftest*
8078
8079fi
8080echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8081echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8082
8083
8084hard_links="nottested"
8085if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8086  # do not overwrite the value of need_locks provided by the user
8087  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8088echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8089  hard_links=yes
8090  $rm conftest*
8091  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8092  touch conftest.a
8093  ln conftest.a conftest.b 2>&5 || hard_links=no
8094  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8095  echo "$as_me:$LINENO: result: $hard_links" >&5
8096echo "${ECHO_T}$hard_links" >&6
8097  if test "$hard_links" = no; then
8098    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8099echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8100    need_locks=warn
8101  fi
8102else
8103  need_locks=no
8104fi
8105
8106echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8107echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8108
8109  runpath_var=
8110  allow_undefined_flag=
8111  enable_shared_with_static_runtimes=no
8112  archive_cmds=
8113  archive_expsym_cmds=
8114  old_archive_From_new_cmds=
8115  old_archive_from_expsyms_cmds=
8116  export_dynamic_flag_spec=
8117  whole_archive_flag_spec=
8118  thread_safe_flag_spec=
8119  hardcode_libdir_flag_spec=
8120  hardcode_libdir_flag_spec_ld=
8121  hardcode_libdir_separator=
8122  hardcode_direct=no
8123  hardcode_minus_L=no
8124  hardcode_shlibpath_var=unsupported
8125  link_all_deplibs=unknown
8126  hardcode_automatic=no
8127  module_cmds=
8128  module_expsym_cmds=
8129  always_export_symbols=no
8130  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8131  # include_expsyms should be a list of space-separated symbols to be *always*
8132  # included in the symbol list
8133  include_expsyms=
8134  # exclude_expsyms can be an extended regexp of symbols to exclude
8135  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8136  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8137  # as well as any symbol that contains `d'.
8138  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8139  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8140  # platforms (ab)use it in PIC code, but their linkers get confused if
8141  # the symbol is explicitly referenced.  Since portable code cannot
8142  # rely on this symbol name, it's probably fine to never include it in
8143  # preloaded symbol tables.
8144  extract_expsyms_cmds=
8145  # Just being paranoid about ensuring that cc_basename is set.
8146  for cc_temp in $compiler""; do
8147  case $cc_temp in
8148    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8149    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8150    \-*) ;;
8151    *) break;;
8152  esac
8153done
8154cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8155
8156  case $host_os in
8157  cygwin* | mingw* | pw32*)
8158    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8159    # When not using gcc, we currently assume that we are using
8160    # Microsoft Visual C++.
8161    if test "$GCC" != yes; then
8162      with_gnu_ld=no
8163    fi
8164    ;;
8165  interix*)
8166    # we just hope/assume this is gcc and not c89 (= MSVC++)
8167    with_gnu_ld=yes
8168    ;;
8169  openbsd*)
8170    with_gnu_ld=no
8171    ;;
8172  esac
8173
8174  ld_shlibs=yes
8175  if test "$with_gnu_ld" = yes; then
8176    # If archive_cmds runs LD, not CC, wlarc should be empty
8177    wlarc='${wl}'
8178
8179    # Set some defaults for GNU ld with shared library support. These
8180    # are reset later if shared libraries are not supported. Putting them
8181    # here allows them to be overridden if necessary.
8182    runpath_var=LD_RUN_PATH
8183    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8184    export_dynamic_flag_spec='${wl}--export-dynamic'
8185    # ancient GNU ld didn't support --whole-archive et. al.
8186    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8187        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8188      else
8189        whole_archive_flag_spec=
8190    fi
8191    supports_anon_versioning=no
8192    case `$LD -v 2>/dev/null` in
8193      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8194      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8195      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8196      *\ 2.11.*) ;; # other 2.11 versions
8197      *) supports_anon_versioning=yes ;;
8198    esac
8199
8200    # See if GNU ld supports shared libraries.
8201    case $host_os in
8202    aix3* | aix4* | aix5*)
8203      # On AIX/PPC, the GNU linker is very broken
8204      if test "$host_cpu" != ia64; then
8205        ld_shlibs=no
8206        cat <<EOF 1>&2
8207
8208*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8209*** to be unable to reliably create shared libraries on AIX.
8210*** Therefore, libtool is disabling shared libraries support.  If you
8211*** really care for shared libraries, you may want to modify your PATH
8212*** so that a non-GNU linker is found, and then restart.
8213
8214EOF
8215      fi
8216      ;;
8217
8218    amigaos*)
8219      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)'
8220      hardcode_libdir_flag_spec='-L$libdir'
8221      hardcode_minus_L=yes
8222
8223      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8224      # that the semantics of dynamic libraries on AmigaOS, at least up
8225      # to version 4, is to share data among multiple programs linked
8226      # with the same dynamic library.  Since this doesn't match the
8227      # behavior of shared libraries on other platforms, we can't use
8228      # them.
8229      ld_shlibs=no
8230      ;;
8231
8232    beos*)
8233      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8234        allow_undefined_flag=unsupported
8235        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8236        # support --undefined.  This deserves some investigation.  FIXME
8237        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8238      else
8239        ld_shlibs=no
8240      fi
8241      ;;
8242
8243    cygwin* | mingw* | pw32*)
8244      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8245      # as there is no search path for DLLs.
8246      hardcode_libdir_flag_spec='-L$libdir'
8247      allow_undefined_flag=unsupported
8248      always_export_symbols=no
8249      enable_shared_with_static_runtimes=yes
8250      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8251
8252      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8253        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8254        # If the export-symbols file already is a .def file (1st line
8255        # is EXPORTS), use it as is; otherwise, prepend...
8256        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8257          cp $export_symbols $output_objdir/$soname.def;
8258        else
8259          echo EXPORTS > $output_objdir/$soname.def;
8260          cat $export_symbols >> $output_objdir/$soname.def;
8261        fi~
8262        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8263      else
8264        ld_shlibs=no
8265      fi
8266      ;;
8267
8268    interix3*)
8269      hardcode_direct=no
8270      hardcode_shlibpath_var=no
8271      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8272      export_dynamic_flag_spec='${wl}-E'
8273      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8274      # Instead, shared libraries are loaded at an image base (0x10000000 by
8275      # default) and relocated if they conflict, which is a slow very memory
8276      # consuming and fragmenting process.  To avoid this, we pick a random,
8277      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8278      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8279      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8280      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'
8281      ;;
8282
8283    linux*)
8284      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8285        tmp_addflag=
8286        case $cc_basename,$host_cpu in
8287        pgcc*)                          # Portland Group C compiler
8288          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'
8289          tmp_addflag=' $pic_flag'
8290          ;;
8291        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8292          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'
8293          tmp_addflag=' $pic_flag -Mnomain' ;;
8294        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8295          tmp_addflag=' -i_dynamic' ;;
8296        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8297          tmp_addflag=' -i_dynamic -nofor_main' ;;
8298        ifc* | ifort*)                  # Intel Fortran compiler
8299          tmp_addflag=' -nofor_main' ;;
8300        esac
8301        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8302
8303        if test $supports_anon_versioning = yes; then
8304          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8305  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8306  $echo "local: *; };" >> $output_objdir/$libname.ver~
8307          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8308        fi
8309      else
8310        ld_shlibs=no
8311      fi
8312      ;;
8313
8314    netbsd*)
8315      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8316        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8317        wlarc=
8318      else
8319        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8320        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8321      fi
8322      ;;
8323
8324    solaris*)
8325      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8326        ld_shlibs=no
8327        cat <<EOF 1>&2
8328
8329*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8330*** create shared libraries on Solaris systems.  Therefore, libtool
8331*** is disabling shared libraries support.  We urge you to upgrade GNU
8332*** binutils to release 2.9.1 or newer.  Another option is to modify
8333*** your PATH or compiler configuration so that the native linker is
8334*** used, and then restart.
8335
8336EOF
8337      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8338        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8339        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8340      else
8341        ld_shlibs=no
8342      fi
8343      ;;
8344
8345    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8346      case `$LD -v 2>&1` in
8347        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8348        ld_shlibs=no
8349        cat <<_LT_EOF 1>&2
8350
8351*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8352*** reliably create shared libraries on SCO systems.  Therefore, libtool
8353*** is disabling shared libraries support.  We urge you to upgrade GNU
8354*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8355*** your PATH or compiler configuration so that the native linker is
8356*** used, and then restart.
8357
8358_LT_EOF
8359        ;;
8360        *)
8361          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8362            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8363            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8364            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8365          else
8366            ld_shlibs=no
8367          fi
8368        ;;
8369      esac
8370      ;;
8371
8372    sunos4*)
8373      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8374      wlarc=
8375      hardcode_direct=yes
8376      hardcode_shlibpath_var=no
8377      ;;
8378
8379    *)
8380      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8381        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8382        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8383      else
8384        ld_shlibs=no
8385      fi
8386      ;;
8387    esac
8388
8389    if test "$ld_shlibs" = no; then
8390      runpath_var=
8391      hardcode_libdir_flag_spec=
8392      export_dynamic_flag_spec=
8393      whole_archive_flag_spec=
8394    fi
8395  else
8396    # PORTME fill in a description of your system's linker (not GNU ld)
8397    case $host_os in
8398    aix3*)
8399      allow_undefined_flag=unsupported
8400      always_export_symbols=yes
8401      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'
8402      # Note: this linker hardcodes the directories in LIBPATH if there
8403      # are no directories specified by -L.
8404      hardcode_minus_L=yes
8405      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8406        # Neither direct hardcoding nor static linking is supported with a
8407        # broken collect2.
8408        hardcode_direct=unsupported
8409      fi
8410      ;;
8411
8412    aix4* | aix5*)
8413      if test "$host_cpu" = ia64; then
8414        # On IA64, the linker does run time linking by default, so we don't
8415        # have to do anything special.
8416        aix_use_runtimelinking=no
8417        exp_sym_flag='-Bexport'
8418        no_entry_flag=""
8419      else
8420        # If we're using GNU nm, then we don't want the "-C" option.
8421        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8422        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8423          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'
8424        else
8425          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'
8426        fi
8427        aix_use_runtimelinking=no
8428
8429        # Test if we are trying to use run time linking or normal
8430        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8431        # need to do runtime linking.
8432        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8433          for ld_flag in $LDFLAGS; do
8434          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8435            aix_use_runtimelinking=yes
8436            break
8437          fi
8438          done
8439          ;;
8440        esac
8441
8442        exp_sym_flag='-bexport'
8443        no_entry_flag='-bnoentry'
8444      fi
8445
8446      # When large executables or shared objects are built, AIX ld can
8447      # have problems creating the table of contents.  If linking a library
8448      # or program results in "error TOC overflow" add -mminimal-toc to
8449      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8450      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8451
8452      archive_cmds=''
8453      hardcode_direct=yes
8454      hardcode_libdir_separator=':'
8455      link_all_deplibs=yes
8456
8457      if test "$GCC" = yes; then
8458        case $host_os in aix4.[012]|aix4.[012].*)
8459        # We only want to do this on AIX 4.2 and lower, the check
8460        # below for broken collect2 doesn't work under 4.3+
8461          collect2name=`${CC} -print-prog-name=collect2`
8462          if test -f "$collect2name" && \
8463           strings "$collect2name" | grep resolve_lib_name >/dev/null
8464          then
8465          # We have reworked collect2
8466          hardcode_direct=yes
8467          else
8468          # We have old collect2
8469          hardcode_direct=unsupported
8470          # It fails to find uninstalled libraries when the uninstalled
8471          # path is not listed in the libpath.  Setting hardcode_minus_L
8472          # to unsupported forces relinking
8473          hardcode_minus_L=yes
8474          hardcode_libdir_flag_spec='-L$libdir'
8475          hardcode_libdir_separator=
8476          fi
8477          ;;
8478        esac
8479        shared_flag='-shared'
8480        if test "$aix_use_runtimelinking" = yes; then
8481          shared_flag="$shared_flag "'${wl}-G'
8482        fi
8483      else
8484        # not using gcc
8485        if test "$host_cpu" = ia64; then
8486        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8487        # chokes on -Wl,-G. The following line is correct:
8488          shared_flag='-G'
8489        else
8490          if test "$aix_use_runtimelinking" = yes; then
8491            shared_flag='${wl}-G'
8492          else
8493            shared_flag='${wl}-bM:SRE'
8494          fi
8495        fi
8496      fi
8497
8498      # It seems that -bexpall does not export symbols beginning with
8499      # underscore (_), so it is better to generate a list of symbols to export.
8500      always_export_symbols=yes
8501      if test "$aix_use_runtimelinking" = yes; then
8502        # Warning - without using the other runtime loading flags (-brtl),
8503        # -berok will link without error, but may produce a broken library.
8504        allow_undefined_flag='-berok'
8505       # Determine the default libpath from the value encoded in an empty executable.
8506       cat >conftest.$ac_ext <<_ACEOF
8507/* confdefs.h.  */
8508_ACEOF
8509cat confdefs.h >>conftest.$ac_ext
8510cat >>conftest.$ac_ext <<_ACEOF
8511/* end confdefs.h.  */
8512
8513int
8514main ()
8515{
8516
8517  ;
8518  return 0;
8519}
8520_ACEOF
8521rm -f conftest.$ac_objext conftest$ac_exeext
8522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8523  (eval $ac_link) 2>conftest.er1
8524  ac_status=$?
8525  grep -v '^ *+' conftest.er1 >conftest.err
8526  rm -f conftest.er1
8527  cat conftest.err >&5
8528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529  (exit $ac_status); } &&
8530         { ac_try='test -z "$ac_c_werror_flag"
8531                         || test ! -s conftest.err'
8532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533  (eval $ac_try) 2>&5
8534  ac_status=$?
8535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536  (exit $ac_status); }; } &&
8537         { ac_try='test -s conftest$ac_exeext'
8538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539  (eval $ac_try) 2>&5
8540  ac_status=$?
8541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542  (exit $ac_status); }; }; then
8543
8544aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8545}'`
8546# Check for a 64-bit object if we didn't find anything.
8547if 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; }
8548}'`; fi
8549else
8550  echo "$as_me: failed program was:" >&5
8551sed 's/^/| /' conftest.$ac_ext >&5
8552
8553fi
8554rm -f conftest.err conftest.$ac_objext \
8555      conftest$ac_exeext conftest.$ac_ext
8556if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8557
8558       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8559        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"
8560       else
8561        if test "$host_cpu" = ia64; then
8562          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8563          allow_undefined_flag="-z nodefs"
8564          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"
8565        else
8566         # Determine the default libpath from the value encoded in an empty executable.
8567         cat >conftest.$ac_ext <<_ACEOF
8568/* confdefs.h.  */
8569_ACEOF
8570cat confdefs.h >>conftest.$ac_ext
8571cat >>conftest.$ac_ext <<_ACEOF
8572/* end confdefs.h.  */
8573
8574int
8575main ()
8576{
8577
8578  ;
8579  return 0;
8580}
8581_ACEOF
8582rm -f conftest.$ac_objext conftest$ac_exeext
8583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8584  (eval $ac_link) 2>conftest.er1
8585  ac_status=$?
8586  grep -v '^ *+' conftest.er1 >conftest.err
8587  rm -f conftest.er1
8588  cat conftest.err >&5
8589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590  (exit $ac_status); } &&
8591         { ac_try='test -z "$ac_c_werror_flag"
8592                         || test ! -s conftest.err'
8593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594  (eval $ac_try) 2>&5
8595  ac_status=$?
8596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597  (exit $ac_status); }; } &&
8598         { ac_try='test -s conftest$ac_exeext'
8599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600  (eval $ac_try) 2>&5
8601  ac_status=$?
8602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603  (exit $ac_status); }; }; then
8604
8605aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8606}'`
8607# Check for a 64-bit object if we didn't find anything.
8608if 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; }
8609}'`; fi
8610else
8611  echo "$as_me: failed program was:" >&5
8612sed 's/^/| /' conftest.$ac_ext >&5
8613
8614fi
8615rm -f conftest.err conftest.$ac_objext \
8616      conftest$ac_exeext conftest.$ac_ext
8617if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8618
8619         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8620          # Warning - without using the other run time loading flags,
8621          # -berok will link without error, but may produce a broken library.
8622          no_undefined_flag=' ${wl}-bernotok'
8623          allow_undefined_flag=' ${wl}-berok'
8624          # Exported symbols can be pulled into shared objects from archives
8625          whole_archive_flag_spec='$convenience'
8626          archive_cmds_need_lc=yes
8627          # This is similar to how AIX traditionally builds its shared libraries.
8628          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'
8629        fi
8630      fi
8631      ;;
8632
8633    amigaos*)
8634      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)'
8635      hardcode_libdir_flag_spec='-L$libdir'
8636      hardcode_minus_L=yes
8637      # see comment about different semantics on the GNU ld section
8638      ld_shlibs=no
8639      ;;
8640
8641    bsdi[45]*)
8642      export_dynamic_flag_spec=-rdynamic
8643      ;;
8644
8645    cygwin* | mingw* | pw32*)
8646      # When not using gcc, we currently assume that we are using
8647      # Microsoft Visual C++.
8648      # hardcode_libdir_flag_spec is actually meaningless, as there is
8649      # no search path for DLLs.
8650      hardcode_libdir_flag_spec=' '
8651      allow_undefined_flag=unsupported
8652      # Tell ltmain to make .lib files, not .a files.
8653      libext=lib
8654      # Tell ltmain to make .dll files, not .so files.
8655      shrext_cmds=".dll"
8656      # FIXME: Setting linknames here is a bad hack.
8657      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8658      # The linker will automatically build a .lib file if we build a DLL.
8659      old_archive_From_new_cmds='true'
8660      # FIXME: Should let the user specify the lib program.
8661      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8662      fix_srcfile_path='`cygpath -w "$srcfile"`'
8663      enable_shared_with_static_runtimes=yes
8664      ;;
8665
8666    darwin* | rhapsody*)
8667      case $host_os in
8668        rhapsody* | darwin1.[012])
8669         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8670         ;;
8671       *) # Darwin 1.3 on
8672         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8673           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8674         else
8675           case ${MACOSX_DEPLOYMENT_TARGET} in
8676             10.[012])
8677               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8678               ;;
8679             10.*)
8680               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8681               ;;
8682           esac
8683         fi
8684         ;;
8685      esac
8686      archive_cmds_need_lc=no
8687      hardcode_direct=no
8688      hardcode_automatic=yes
8689      hardcode_shlibpath_var=unsupported
8690      whole_archive_flag_spec=''
8691      link_all_deplibs=yes
8692    if test "$GCC" = yes ; then
8693        output_verbose_link_cmd='echo'
8694        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8695      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8696      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8697      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}'
8698      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}'
8699    else
8700      case $cc_basename in
8701        xlc*)
8702         output_verbose_link_cmd='echo'
8703         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8704         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8705          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8706         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}'
8707          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}'
8708          ;;
8709       *)
8710         ld_shlibs=no
8711          ;;
8712      esac
8713    fi
8714      ;;
8715
8716    dgux*)
8717      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8718      hardcode_libdir_flag_spec='-L$libdir'
8719      hardcode_shlibpath_var=no
8720      ;;
8721
8722    freebsd1*)
8723      ld_shlibs=no
8724      ;;
8725
8726    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8727    # support.  Future versions do this automatically, but an explicit c++rt0.o
8728    # does not break anything, and helps significantly (at the cost of a little
8729    # extra space).
8730    freebsd2.2*)
8731      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8732      hardcode_libdir_flag_spec='-R$libdir'
8733      hardcode_direct=yes
8734      hardcode_shlibpath_var=no
8735      ;;
8736
8737    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8738    freebsd2*)
8739      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8740      hardcode_direct=yes
8741      hardcode_minus_L=yes
8742      hardcode_shlibpath_var=no
8743      ;;
8744
8745    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8746    freebsd* | kfreebsd*-gnu | dragonfly*)
8747      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8748      hardcode_libdir_flag_spec='-R$libdir'
8749      hardcode_direct=yes
8750      hardcode_shlibpath_var=no
8751      ;;
8752
8753    hpux9*)
8754      if test "$GCC" = yes; then
8755        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'
8756      else
8757        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'
8758      fi
8759      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8760      hardcode_libdir_separator=:
8761      hardcode_direct=yes
8762
8763      # hardcode_minus_L: Not really in the search PATH,
8764      # but as the default location of the library.
8765      hardcode_minus_L=yes
8766      export_dynamic_flag_spec='${wl}-E'
8767      ;;
8768
8769    hpux10*)
8770      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8771        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8772      else
8773        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8774      fi
8775      if test "$with_gnu_ld" = no; then
8776        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8777        hardcode_libdir_separator=:
8778
8779        hardcode_direct=yes
8780        export_dynamic_flag_spec='${wl}-E'
8781
8782        # hardcode_minus_L: Not really in the search PATH,
8783        # but as the default location of the library.
8784        hardcode_minus_L=yes
8785      fi
8786      ;;
8787
8788    hpux11*)
8789      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8790        case $host_cpu in
8791        hppa*64*)
8792          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8793          ;;
8794        ia64*)
8795          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8796          ;;
8797        *)
8798          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8799          ;;
8800        esac
8801      else
8802        case $host_cpu in
8803        hppa*64*)
8804          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8805          ;;
8806        ia64*)
8807          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8808          ;;
8809        *)
8810          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8811          ;;
8812        esac
8813      fi
8814      if test "$with_gnu_ld" = no; then
8815        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8816        hardcode_libdir_separator=:
8817
8818        case $host_cpu in
8819        hppa*64*|ia64*)
8820          hardcode_libdir_flag_spec_ld='+b $libdir'
8821          hardcode_direct=no
8822          hardcode_shlibpath_var=no
8823          ;;
8824        *)
8825          hardcode_direct=yes
8826          export_dynamic_flag_spec='${wl}-E'
8827
8828          # hardcode_minus_L: Not really in the search PATH,
8829          # but as the default location of the library.
8830          hardcode_minus_L=yes
8831          ;;
8832        esac
8833      fi
8834      ;;
8835
8836    irix5* | irix6* | nonstopux*)
8837      if test "$GCC" = yes; then
8838        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'
8839      else
8840        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'
8841        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8842      fi
8843      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8844      hardcode_libdir_separator=:
8845      link_all_deplibs=yes
8846      ;;
8847
8848    netbsd*)
8849      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8850        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8851      else
8852        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8853      fi
8854      hardcode_libdir_flag_spec='-R$libdir'
8855      hardcode_direct=yes
8856      hardcode_shlibpath_var=no
8857      ;;
8858
8859    newsos6)
8860      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8861      hardcode_direct=yes
8862      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8863      hardcode_libdir_separator=:
8864      hardcode_shlibpath_var=no
8865      ;;
8866
8867    openbsd*)
8868      hardcode_direct=yes
8869      hardcode_shlibpath_var=no
8870      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8871        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8872        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8873        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8874        export_dynamic_flag_spec='${wl}-E'
8875      else
8876       case $host_os in
8877         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8878           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8879           hardcode_libdir_flag_spec='-R$libdir'
8880           ;;
8881         *)
8882           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8883           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8884           ;;
8885       esac
8886      fi
8887      ;;
8888
8889    os2*)
8890      hardcode_libdir_flag_spec='-L$libdir'
8891      hardcode_minus_L=yes
8892      allow_undefined_flag=unsupported
8893      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'
8894      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8895      ;;
8896
8897    osf3*)
8898      if test "$GCC" = yes; then
8899        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8900        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'
8901      else
8902        allow_undefined_flag=' -expect_unresolved \*'
8903        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'
8904      fi
8905      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8906      hardcode_libdir_separator=:
8907      ;;
8908
8909    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8910      if test "$GCC" = yes; then
8911        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8912        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'
8913        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8914      else
8915        allow_undefined_flag=' -expect_unresolved \*'
8916        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'
8917        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8918        $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'
8919
8920        # Both c and cxx compiler support -rpath directly
8921        hardcode_libdir_flag_spec='-rpath $libdir'
8922      fi
8923      hardcode_libdir_separator=:
8924      ;;
8925
8926    solaris*)
8927      no_undefined_flag=' -z text'
8928      if test "$GCC" = yes; then
8929        wlarc='${wl}'
8930        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8931        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8932          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8933      else
8934        wlarc=''
8935        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8936        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8937        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8938      fi
8939      hardcode_libdir_flag_spec='-R$libdir'
8940      hardcode_shlibpath_var=no
8941      case $host_os in
8942      solaris2.[0-5] | solaris2.[0-5].*) ;;
8943      *)
8944        # The compiler driver will combine linker options so we
8945        # cannot just pass the convience library names through
8946        # without $wl, iff we do not link with $LD.
8947        # Luckily, gcc supports the same syntax we need for Sun Studio.
8948        # Supported since Solaris 2.6 (maybe 2.5.1?)
8949        case $wlarc in
8950        '')
8951          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8952        *)
8953          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' ;;
8954        esac ;;
8955      esac
8956      link_all_deplibs=yes
8957      ;;
8958
8959    sunos4*)
8960      if test "x$host_vendor" = xsequent; then
8961        # Use $CC to link under sequent, because it throws in some extra .o
8962        # files that make .init and .fini sections work.
8963        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8964      else
8965        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8966      fi
8967      hardcode_libdir_flag_spec='-L$libdir'
8968      hardcode_direct=yes
8969      hardcode_minus_L=yes
8970      hardcode_shlibpath_var=no
8971      ;;
8972
8973    sysv4)
8974      case $host_vendor in
8975        sni)
8976          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8977          hardcode_direct=yes # is this really true???
8978        ;;
8979        siemens)
8980          ## LD is ld it makes a PLAMLIB
8981          ## CC just makes a GrossModule.
8982          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8983          reload_cmds='$CC -r -o $output$reload_objs'
8984          hardcode_direct=no
8985        ;;
8986        motorola)
8987          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8988          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8989        ;;
8990      esac
8991      runpath_var='LD_RUN_PATH'
8992      hardcode_shlibpath_var=no
8993      ;;
8994
8995    sysv4.3*)
8996      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8997      hardcode_shlibpath_var=no
8998      export_dynamic_flag_spec='-Bexport'
8999      ;;
9000
9001    sysv4*MP*)
9002      if test -d /usr/nec; then
9003        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9004        hardcode_shlibpath_var=no
9005        runpath_var=LD_RUN_PATH
9006        hardcode_runpath_var=yes
9007        ld_shlibs=yes
9008      fi
9009      ;;
9010
9011    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9012      no_undefined_flag='${wl}-z,text'
9013      archive_cmds_need_lc=no
9014      hardcode_shlibpath_var=no
9015      runpath_var='LD_RUN_PATH'
9016
9017      if test "$GCC" = yes; then
9018        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9019        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9020      else
9021        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9022        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9023      fi
9024      ;;
9025
9026    sysv5* | sco3.2v5* | sco5v6*)
9027      # Note: We can NOT use -z defs as we might desire, because we do not
9028      # link with -lc, and that would cause any symbols used from libc to
9029      # always be unresolved, which means just about no library would
9030      # ever link correctly.  If we're not using GNU ld we use -z text
9031      # though, which does catch some bad symbols but isn't as heavy-handed
9032      # as -z defs.
9033      no_undefined_flag='${wl}-z,text'
9034      allow_undefined_flag='${wl}-z,nodefs'
9035      archive_cmds_need_lc=no
9036      hardcode_shlibpath_var=no
9037      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9038      hardcode_libdir_separator=':'
9039      link_all_deplibs=yes
9040      export_dynamic_flag_spec='${wl}-Bexport'
9041      runpath_var='LD_RUN_PATH'
9042
9043      if test "$GCC" = yes; then
9044        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9045        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9046      else
9047        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9048        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9049      fi
9050      ;;
9051
9052    uts4*)
9053      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9054      hardcode_libdir_flag_spec='-L$libdir'
9055      hardcode_shlibpath_var=no
9056      ;;
9057
9058    *)
9059      ld_shlibs=no
9060      ;;
9061    esac
9062  fi
9063
9064echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9065echo "${ECHO_T}$ld_shlibs" >&6
9066test "$ld_shlibs" = no && can_build_shared=no
9067
9068#
9069# Do we need to explicitly link libc?
9070#
9071case "x$archive_cmds_need_lc" in
9072x|xyes)
9073  # Assume -lc should be added
9074  archive_cmds_need_lc=yes
9075
9076  if test "$enable_shared" = yes && test "$GCC" = yes; then
9077    case $archive_cmds in
9078    *'~'*)
9079      # FIXME: we may have to deal with multi-command sequences.
9080      ;;
9081    '$CC '*)
9082      # Test whether the compiler implicitly links with -lc since on some
9083      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9084      # to ld, don't add -lc before -lgcc.
9085      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9086echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9087      $rm conftest*
9088      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9089
9090      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9091  (eval $ac_compile) 2>&5
9092  ac_status=$?
9093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094  (exit $ac_status); } 2>conftest.err; then
9095        soname=conftest
9096        lib=conftest
9097        libobjs=conftest.$ac_objext
9098        deplibs=
9099        wl=$lt_prog_compiler_wl
9100        pic_flag=$lt_prog_compiler_pic
9101        compiler_flags=-v
9102        linker_flags=-v
9103        verstring=
9104        output_objdir=.
9105        libname=conftest
9106        lt_save_allow_undefined_flag=$allow_undefined_flag
9107        allow_undefined_flag=
9108        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9109  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9110  ac_status=$?
9111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112  (exit $ac_status); }
9113        then
9114          archive_cmds_need_lc=no
9115        else
9116          archive_cmds_need_lc=yes
9117        fi
9118        allow_undefined_flag=$lt_save_allow_undefined_flag
9119      else
9120        cat conftest.err 1>&5
9121      fi
9122      $rm conftest*
9123      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9124echo "${ECHO_T}$archive_cmds_need_lc" >&6
9125      ;;
9126    esac
9127  fi
9128  ;;
9129esac
9130
9131echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9132echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9133library_names_spec=
9134libname_spec='lib$name'
9135soname_spec=
9136shrext_cmds=".so"
9137postinstall_cmds=
9138postuninstall_cmds=
9139finish_cmds=
9140finish_eval=
9141shlibpath_var=
9142shlibpath_overrides_runpath=unknown
9143version_type=none
9144dynamic_linker="$host_os ld.so"
9145sys_lib_dlsearch_path_spec="/lib /usr/lib"
9146if test "$GCC" = yes; then
9147  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9148  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9149    # if the path contains ";" then we assume it to be the separator
9150    # otherwise default to the standard path separator (i.e. ":") - it is
9151    # assumed that no part of a normal pathname contains ";" but that should
9152    # okay in the real world where ";" in dirpaths is itself problematic.
9153    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9154  else
9155    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9156  fi
9157else
9158  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9159fi
9160need_lib_prefix=unknown
9161hardcode_into_libs=no
9162
9163# when you set need_version to no, make sure it does not cause -set_version
9164# flags to be left without arguments
9165need_version=unknown
9166
9167case $host_os in
9168aix3*)
9169  version_type=linux
9170  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9171  shlibpath_var=LIBPATH
9172
9173  # AIX 3 has no versioning support, so we append a major version to the name.
9174  soname_spec='${libname}${release}${shared_ext}$major'
9175  ;;
9176
9177aix4* | aix5*)
9178  version_type=linux
9179  need_lib_prefix=no
9180  need_version=no
9181  hardcode_into_libs=yes
9182  if test "$host_cpu" = ia64; then
9183    # AIX 5 supports IA64
9184    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9185    shlibpath_var=LD_LIBRARY_PATH
9186  else
9187    # With GCC up to 2.95.x, collect2 would create an import file
9188    # for dependence libraries.  The import file would start with
9189    # the line `#! .'.  This would cause the generated library to
9190    # depend on `.', always an invalid library.  This was fixed in
9191    # development snapshots of GCC prior to 3.0.
9192    case $host_os in
9193      aix4 | aix4.[01] | aix4.[01].*)
9194      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9195           echo ' yes '
9196           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9197        :
9198      else
9199        can_build_shared=no
9200      fi
9201      ;;
9202    esac
9203    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9204    # soname into executable. Probably we can add versioning support to
9205    # collect2, so additional links can be useful in future.
9206    if test "$aix_use_runtimelinking" = yes; then
9207      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9208      # instead of lib<name>.a to let people know that these are not
9209      # typical AIX shared libraries.
9210      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9211    else
9212      # We preserve .a as extension for shared libraries through AIX4.2
9213      # and later when we are not doing run time linking.
9214      library_names_spec='${libname}${release}.a $libname.a'
9215      soname_spec='${libname}${release}${shared_ext}$major'
9216    fi
9217    shlibpath_var=LIBPATH
9218  fi
9219  ;;
9220
9221amigaos*)
9222  library_names_spec='$libname.ixlibrary $libname.a'
9223  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9224  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'
9225  ;;
9226
9227beos*)
9228  library_names_spec='${libname}${shared_ext}'
9229  dynamic_linker="$host_os ld.so"
9230  shlibpath_var=LIBRARY_PATH
9231  ;;
9232
9233bsdi[45]*)
9234  version_type=linux
9235  need_version=no
9236  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9237  soname_spec='${libname}${release}${shared_ext}$major'
9238  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9239  shlibpath_var=LD_LIBRARY_PATH
9240  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9241  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9242  # the default ld.so.conf also contains /usr/contrib/lib and
9243  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9244  # libtool to hard-code these into programs
9245  ;;
9246
9247cygwin* | mingw* | pw32*)
9248  version_type=windows
9249  shrext_cmds=".dll"
9250  need_version=no
9251  need_lib_prefix=no
9252
9253  case $GCC,$host_os in
9254  yes,cygwin* | yes,mingw* | yes,pw32*)
9255    library_names_spec='$libname.dll.a'
9256    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9257    postinstall_cmds='base_file=`basename \${file}`~
9258      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9259      dldir=$destdir/`dirname \$dlpath`~
9260      test -d \$dldir || mkdir -p \$dldir~
9261      $install_prog $dir/$dlname \$dldir/$dlname~
9262      chmod a+x \$dldir/$dlname'
9263    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9264      dlpath=$dir/\$dldll~
9265       $rm \$dlpath'
9266    shlibpath_overrides_runpath=yes
9267
9268    case $host_os in
9269    cygwin*)
9270      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9271      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9272      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9273      ;;
9274    mingw*)
9275      # MinGW DLLs use traditional 'lib' prefix
9276      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9277      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9278      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9279        # It is most probably a Windows format PATH printed by
9280        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9281        # path with ; separators, and with drive letters. We can handle the
9282        # drive letters (cygwin fileutils understands them), so leave them,
9283        # especially as we might pass files found there to a mingw objdump,
9284        # which wouldn't understand a cygwinified path. Ahh.
9285        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9286      else
9287        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9288      fi
9289      ;;
9290    pw32*)
9291      # pw32 DLLs use 'pw' prefix rather than 'lib'
9292      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9293      ;;
9294    esac
9295    ;;
9296
9297  *)
9298    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9299    ;;
9300  esac
9301  dynamic_linker='Win32 ld.exe'
9302  # FIXME: first we should search . and the directory the executable is in
9303  shlibpath_var=PATH
9304  ;;
9305
9306darwin* | rhapsody*)
9307  dynamic_linker="$host_os dyld"
9308  version_type=darwin
9309  need_lib_prefix=no
9310  need_version=no
9311  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9312  soname_spec='${libname}${release}${major}$shared_ext'
9313  shlibpath_overrides_runpath=yes
9314  shlibpath_var=DYLD_LIBRARY_PATH
9315  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9316  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9317  if test "$GCC" = yes; then
9318    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"`
9319  else
9320    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9321  fi
9322  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9323  ;;
9324
9325dgux*)
9326  version_type=linux
9327  need_lib_prefix=no
9328  need_version=no
9329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9330  soname_spec='${libname}${release}${shared_ext}$major'
9331  shlibpath_var=LD_LIBRARY_PATH
9332  ;;
9333
9334freebsd1*)
9335  dynamic_linker=no
9336  ;;
9337
9338kfreebsd*-gnu)
9339  version_type=linux
9340  need_lib_prefix=no
9341  need_version=no
9342  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9343  soname_spec='${libname}${release}${shared_ext}$major'
9344  shlibpath_var=LD_LIBRARY_PATH
9345  shlibpath_overrides_runpath=no
9346  hardcode_into_libs=yes
9347  dynamic_linker='GNU ld.so'
9348  ;;
9349
9350freebsd* | dragonfly*)
9351  # DragonFly does not have aout.  When/if they implement a new
9352  # versioning mechanism, adjust this.
9353  if test -x /usr/bin/objformat; then
9354    objformat=`/usr/bin/objformat`
9355  else
9356    case $host_os in
9357    freebsd[123]*) objformat=aout ;;
9358    *) objformat=elf ;;
9359    esac
9360  fi
9361  version_type=freebsd-$objformat
9362  case $version_type in
9363    freebsd-elf*)
9364      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9365      need_version=no
9366      need_lib_prefix=no
9367      ;;
9368    freebsd-*)
9369      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9370      need_version=yes
9371      ;;
9372  esac
9373  shlibpath_var=LD_LIBRARY_PATH
9374  case $host_os in
9375  freebsd2*)
9376    shlibpath_overrides_runpath=yes
9377    ;;
9378  freebsd3.[01]* | freebsdelf3.[01]*)
9379    shlibpath_overrides_runpath=yes
9380    hardcode_into_libs=yes
9381    ;;
9382  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9383  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9384    shlibpath_overrides_runpath=no
9385    hardcode_into_libs=yes
9386    ;;
9387  freebsd*) # from 4.6 on
9388    shlibpath_overrides_runpath=yes
9389    hardcode_into_libs=yes
9390    ;;
9391  esac
9392  ;;
9393
9394gnu*)
9395  version_type=linux
9396  need_lib_prefix=no
9397  need_version=no
9398  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9399  soname_spec='${libname}${release}${shared_ext}$major'
9400  shlibpath_var=LD_LIBRARY_PATH
9401  hardcode_into_libs=yes
9402  ;;
9403
9404hpux9* | hpux10* | hpux11*)
9405  # Give a soname corresponding to the major version so that dld.sl refuses to
9406  # link against other versions.
9407  version_type=sunos
9408  need_lib_prefix=no
9409  need_version=no
9410  case $host_cpu in
9411  ia64*)
9412    shrext_cmds='.so'
9413    hardcode_into_libs=yes
9414    dynamic_linker="$host_os dld.so"
9415    shlibpath_var=LD_LIBRARY_PATH
9416    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9417    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9418    soname_spec='${libname}${release}${shared_ext}$major'
9419    if test "X$HPUX_IA64_MODE" = X32; then
9420      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9421    else
9422      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9423    fi
9424    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9425    ;;
9426   hppa*64*)
9427     shrext_cmds='.sl'
9428     hardcode_into_libs=yes
9429     dynamic_linker="$host_os dld.sl"
9430     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9431     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9432     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9433     soname_spec='${libname}${release}${shared_ext}$major'
9434     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9435     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9436     ;;
9437   *)
9438    shrext_cmds='.sl'
9439    dynamic_linker="$host_os dld.sl"
9440    shlibpath_var=SHLIB_PATH
9441    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9442    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9443    soname_spec='${libname}${release}${shared_ext}$major'
9444    ;;
9445  esac
9446  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9447  postinstall_cmds='chmod 555 $lib'
9448  ;;
9449
9450interix3*)
9451  version_type=linux
9452  need_lib_prefix=no
9453  need_version=no
9454  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9455  soname_spec='${libname}${release}${shared_ext}$major'
9456  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9457  shlibpath_var=LD_LIBRARY_PATH
9458  shlibpath_overrides_runpath=no
9459  hardcode_into_libs=yes
9460  ;;
9461
9462irix5* | irix6* | nonstopux*)
9463  case $host_os in
9464    nonstopux*) version_type=nonstopux ;;
9465    *)
9466        if test "$lt_cv_prog_gnu_ld" = yes; then
9467                version_type=linux
9468        else
9469                version_type=irix
9470        fi ;;
9471  esac
9472  need_lib_prefix=no
9473  need_version=no
9474  soname_spec='${libname}${release}${shared_ext}$major'
9475  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9476  case $host_os in
9477  irix5* | nonstopux*)
9478    libsuff= shlibsuff=
9479    ;;
9480  *)
9481    case $LD in # libtool.m4 will add one of these switches to LD
9482    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9483      libsuff= shlibsuff= libmagic=32-bit;;
9484    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9485      libsuff=32 shlibsuff=N32 libmagic=N32;;
9486    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9487      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9488    *) libsuff= shlibsuff= libmagic=never-match;;
9489    esac
9490    ;;
9491  esac
9492  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9493  shlibpath_overrides_runpath=no
9494  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9495  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9496  hardcode_into_libs=yes
9497  ;;
9498
9499# No shared lib support for Linux oldld, aout, or coff.
9500linux*oldld* | linux*aout* | linux*coff*)
9501  dynamic_linker=no
9502  ;;
9503
9504# This must be Linux ELF.
9505linux*)
9506  version_type=linux
9507  need_lib_prefix=no
9508  need_version=no
9509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9510  soname_spec='${libname}${release}${shared_ext}$major'
9511  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9512  shlibpath_var=LD_LIBRARY_PATH
9513  shlibpath_overrides_runpath=no
9514  # This implies no fast_install, which is unacceptable.
9515  # Some rework will be needed to allow for fast_install
9516  # before this can be enabled.
9517  hardcode_into_libs=yes
9518
9519  # Append ld.so.conf contents to the search path
9520  if test -f /etc/ld.so.conf; then
9521    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' ' '`
9522    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9523  fi
9524
9525  # We used to test for /lib/ld.so.1 and disable shared libraries on
9526  # powerpc, because MkLinux only supported shared libraries with the
9527  # GNU dynamic linker.  Since this was broken with cross compilers,
9528  # most powerpc-linux boxes support dynamic linking these days and
9529  # people can always --disable-shared, the test was removed, and we
9530  # assume the GNU/Linux dynamic linker is in use.
9531  dynamic_linker='GNU/Linux ld.so'
9532  ;;
9533
9534knetbsd*-gnu)
9535  version_type=linux
9536  need_lib_prefix=no
9537  need_version=no
9538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9539  soname_spec='${libname}${release}${shared_ext}$major'
9540  shlibpath_var=LD_LIBRARY_PATH
9541  shlibpath_overrides_runpath=no
9542  hardcode_into_libs=yes
9543  dynamic_linker='GNU ld.so'
9544  ;;
9545
9546netbsd*)
9547  version_type=sunos
9548  need_lib_prefix=no
9549  need_version=no
9550  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9551    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9552    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9553    dynamic_linker='NetBSD (a.out) ld.so'
9554  else
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    dynamic_linker='NetBSD ld.elf_so'
9558  fi
9559  shlibpath_var=LD_LIBRARY_PATH
9560  shlibpath_overrides_runpath=yes
9561  hardcode_into_libs=yes
9562  ;;
9563
9564newsos6)
9565  version_type=linux
9566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9567  shlibpath_var=LD_LIBRARY_PATH
9568  shlibpath_overrides_runpath=yes
9569  ;;
9570
9571nto-qnx*)
9572  version_type=linux
9573  need_lib_prefix=no
9574  need_version=no
9575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576  soname_spec='${libname}${release}${shared_ext}$major'
9577  shlibpath_var=LD_LIBRARY_PATH
9578  shlibpath_overrides_runpath=yes
9579  ;;
9580
9581openbsd*)
9582  version_type=sunos
9583  sys_lib_dlsearch_path_spec="/usr/lib"
9584  need_lib_prefix=no
9585  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9586  case $host_os in
9587    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9588    *)                         need_version=no  ;;
9589  esac
9590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9591  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9592  shlibpath_var=LD_LIBRARY_PATH
9593  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9594    case $host_os in
9595      openbsd2.[89] | openbsd2.[89].*)
9596        shlibpath_overrides_runpath=no
9597        ;;
9598      *)
9599        shlibpath_overrides_runpath=yes
9600        ;;
9601      esac
9602  else
9603    shlibpath_overrides_runpath=yes
9604  fi
9605  ;;
9606
9607os2*)
9608  libname_spec='$name'
9609  shrext_cmds=".dll"
9610  need_lib_prefix=no
9611  library_names_spec='$libname${shared_ext} $libname.a'
9612  dynamic_linker='OS/2 ld.exe'
9613  shlibpath_var=LIBPATH
9614  ;;
9615
9616osf3* | osf4* | osf5*)
9617  version_type=osf
9618  need_lib_prefix=no
9619  need_version=no
9620  soname_spec='${libname}${release}${shared_ext}$major'
9621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622  shlibpath_var=LD_LIBRARY_PATH
9623  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9624  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9625  ;;
9626
9627solaris*)
9628  version_type=linux
9629  need_lib_prefix=no
9630  need_version=no
9631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9632  soname_spec='${libname}${release}${shared_ext}$major'
9633  shlibpath_var=LD_LIBRARY_PATH
9634  shlibpath_overrides_runpath=yes
9635  hardcode_into_libs=yes
9636  # ldd complains unless libraries are executable
9637  postinstall_cmds='chmod +x $lib'
9638  ;;
9639
9640sunos4*)
9641  version_type=sunos
9642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9643  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9644  shlibpath_var=LD_LIBRARY_PATH
9645  shlibpath_overrides_runpath=yes
9646  if test "$with_gnu_ld" = yes; then
9647    need_lib_prefix=no
9648  fi
9649  need_version=yes
9650  ;;
9651
9652sysv4 | sysv4.3*)
9653  version_type=linux
9654  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9655  soname_spec='${libname}${release}${shared_ext}$major'
9656  shlibpath_var=LD_LIBRARY_PATH
9657  case $host_vendor in
9658    sni)
9659      shlibpath_overrides_runpath=no
9660      need_lib_prefix=no
9661      export_dynamic_flag_spec='${wl}-Blargedynsym'
9662      runpath_var=LD_RUN_PATH
9663      ;;
9664    siemens)
9665      need_lib_prefix=no
9666      ;;
9667    motorola)
9668      need_lib_prefix=no
9669      need_version=no
9670      shlibpath_overrides_runpath=no
9671      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9672      ;;
9673  esac
9674  ;;
9675
9676sysv4*MP*)
9677  if test -d /usr/nec ;then
9678    version_type=linux
9679    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9680    soname_spec='$libname${shared_ext}.$major'
9681    shlibpath_var=LD_LIBRARY_PATH
9682  fi
9683  ;;
9684
9685sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9686  version_type=freebsd-elf
9687  need_lib_prefix=no
9688  need_version=no
9689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9690  soname_spec='${libname}${release}${shared_ext}$major'
9691  shlibpath_var=LD_LIBRARY_PATH
9692  hardcode_into_libs=yes
9693  if test "$with_gnu_ld" = yes; then
9694    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9695    shlibpath_overrides_runpath=no
9696  else
9697    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9698    shlibpath_overrides_runpath=yes
9699    case $host_os in
9700      sco3.2v5*)
9701        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9702        ;;
9703    esac
9704  fi
9705  sys_lib_dlsearch_path_spec='/usr/lib'
9706  ;;
9707
9708uts4*)
9709  version_type=linux
9710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9711  soname_spec='${libname}${release}${shared_ext}$major'
9712  shlibpath_var=LD_LIBRARY_PATH
9713  ;;
9714
9715*)
9716  dynamic_linker=no
9717  ;;
9718esac
9719echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9720echo "${ECHO_T}$dynamic_linker" >&6
9721test "$dynamic_linker" = no && can_build_shared=no
9722
9723variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9724if test "$GCC" = yes; then
9725  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9726fi
9727
9728echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9729echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9730hardcode_action=
9731if test -n "$hardcode_libdir_flag_spec" || \
9732   test -n "$runpath_var" || \
9733   test "X$hardcode_automatic" = "Xyes" ; then
9734
9735  # We can hardcode non-existant directories.
9736  if test "$hardcode_direct" != no &&
9737     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9738     # have to relink, otherwise we might link with an installed library
9739     # when we should be linking with a yet-to-be-installed one
9740     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9741     test "$hardcode_minus_L" != no; then
9742    # Linking always hardcodes the temporary library directory.
9743    hardcode_action=relink
9744  else
9745    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9746    hardcode_action=immediate
9747  fi
9748else
9749  # We cannot hardcode anything, or else we can only hardcode existing
9750  # directories.
9751  hardcode_action=unsupported
9752fi
9753echo "$as_me:$LINENO: result: $hardcode_action" >&5
9754echo "${ECHO_T}$hardcode_action" >&6
9755
9756if test "$hardcode_action" = relink; then
9757  # Fast installation is not supported
9758  enable_fast_install=no
9759elif test "$shlibpath_overrides_runpath" = yes ||
9760     test "$enable_shared" = no; then
9761  # Fast installation is not necessary
9762  enable_fast_install=needless
9763fi
9764
9765striplib=
9766old_striplib=
9767echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9768echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9769if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9770  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9771  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9772  echo "$as_me:$LINENO: result: yes" >&5
9773echo "${ECHO_T}yes" >&6
9774else
9775# FIXME - insert some real tests, host_os isn't really good enough
9776  case $host_os in
9777   darwin*)
9778       if test -n "$STRIP" ; then
9779         striplib="$STRIP -x"
9780         echo "$as_me:$LINENO: result: yes" >&5
9781echo "${ECHO_T}yes" >&6
9782       else
9783  echo "$as_me:$LINENO: result: no" >&5
9784echo "${ECHO_T}no" >&6
9785fi
9786       ;;
9787   *)
9788  echo "$as_me:$LINENO: result: no" >&5
9789echo "${ECHO_T}no" >&6
9790    ;;
9791  esac
9792fi
9793
9794if test "x$enable_dlopen" != xyes; then
9795  enable_dlopen=unknown
9796  enable_dlopen_self=unknown
9797  enable_dlopen_self_static=unknown
9798else
9799  lt_cv_dlopen=no
9800  lt_cv_dlopen_libs=
9801
9802  case $host_os in
9803  beos*)
9804    lt_cv_dlopen="load_add_on"
9805    lt_cv_dlopen_libs=
9806    lt_cv_dlopen_self=yes
9807    ;;
9808
9809  mingw* | pw32*)
9810    lt_cv_dlopen="LoadLibrary"
9811    lt_cv_dlopen_libs=
9812   ;;
9813
9814  cygwin*)
9815    lt_cv_dlopen="dlopen"
9816    lt_cv_dlopen_libs=
9817   ;;
9818
9819  darwin*)
9820  # if libdl is installed we need to link against it
9821    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9822echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9823if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9824  echo $ECHO_N "(cached) $ECHO_C" >&6
9825else
9826  ac_check_lib_save_LIBS=$LIBS
9827LIBS="-ldl  $LIBS"
9828cat >conftest.$ac_ext <<_ACEOF
9829/* confdefs.h.  */
9830_ACEOF
9831cat confdefs.h >>conftest.$ac_ext
9832cat >>conftest.$ac_ext <<_ACEOF
9833/* end confdefs.h.  */
9834
9835/* Override any gcc2 internal prototype to avoid an error.  */
9836#ifdef __cplusplus
9837extern "C"
9838#endif
9839/* We use char because int might match the return type of a gcc2
9840   builtin and then its argument prototype would still apply.  */
9841char dlopen ();
9842int
9843main ()
9844{
9845dlopen ();
9846  ;
9847  return 0;
9848}
9849_ACEOF
9850rm -f conftest.$ac_objext conftest$ac_exeext
9851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9852  (eval $ac_link) 2>conftest.er1
9853  ac_status=$?
9854  grep -v '^ *+' conftest.er1 >conftest.err
9855  rm -f conftest.er1
9856  cat conftest.err >&5
9857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858  (exit $ac_status); } &&
9859         { ac_try='test -z "$ac_c_werror_flag"
9860                         || test ! -s conftest.err'
9861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862  (eval $ac_try) 2>&5
9863  ac_status=$?
9864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865  (exit $ac_status); }; } &&
9866         { ac_try='test -s conftest$ac_exeext'
9867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868  (eval $ac_try) 2>&5
9869  ac_status=$?
9870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871  (exit $ac_status); }; }; then
9872  ac_cv_lib_dl_dlopen=yes
9873else
9874  echo "$as_me: failed program was:" >&5
9875sed 's/^/| /' conftest.$ac_ext >&5
9876
9877ac_cv_lib_dl_dlopen=no
9878fi
9879rm -f conftest.err conftest.$ac_objext \
9880      conftest$ac_exeext conftest.$ac_ext
9881LIBS=$ac_check_lib_save_LIBS
9882fi
9883echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9884echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9885if test $ac_cv_lib_dl_dlopen = yes; then
9886  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9887else
9888
9889    lt_cv_dlopen="dyld"
9890    lt_cv_dlopen_libs=
9891    lt_cv_dlopen_self=yes
9892
9893fi
9894
9895   ;;
9896
9897  *)
9898    echo "$as_me:$LINENO: checking for shl_load" >&5
9899echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9900if test "${ac_cv_func_shl_load+set}" = set; then
9901  echo $ECHO_N "(cached) $ECHO_C" >&6
9902else
9903  cat >conftest.$ac_ext <<_ACEOF
9904/* confdefs.h.  */
9905_ACEOF
9906cat confdefs.h >>conftest.$ac_ext
9907cat >>conftest.$ac_ext <<_ACEOF
9908/* end confdefs.h.  */
9909/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9910   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9911#define shl_load innocuous_shl_load
9912
9913/* System header to define __stub macros and hopefully few prototypes,
9914    which can conflict with char shl_load (); below.
9915    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9916    <limits.h> exists even on freestanding compilers.  */
9917
9918#ifdef __STDC__
9919# include <limits.h>
9920#else
9921# include <assert.h>
9922#endif
9923
9924#undef shl_load
9925
9926/* Override any gcc2 internal prototype to avoid an error.  */
9927#ifdef __cplusplus
9928extern "C"
9929{
9930#endif
9931/* We use char because int might match the return type of a gcc2
9932   builtin and then its argument prototype would still apply.  */
9933char shl_load ();
9934/* The GNU C library defines this for functions which it implements
9935    to always fail with ENOSYS.  Some functions are actually named
9936    something starting with __ and the normal name is an alias.  */
9937#if defined (__stub_shl_load) || defined (__stub___shl_load)
9938choke me
9939#else
9940char (*f) () = shl_load;
9941#endif
9942#ifdef __cplusplus
9943}
9944#endif
9945
9946int
9947main ()
9948{
9949return f != shl_load;
9950  ;
9951  return 0;
9952}
9953_ACEOF
9954rm -f conftest.$ac_objext conftest$ac_exeext
9955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9956  (eval $ac_link) 2>conftest.er1
9957  ac_status=$?
9958  grep -v '^ *+' conftest.er1 >conftest.err
9959  rm -f conftest.er1
9960  cat conftest.err >&5
9961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962  (exit $ac_status); } &&
9963         { ac_try='test -z "$ac_c_werror_flag"
9964                         || test ! -s conftest.err'
9965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966  (eval $ac_try) 2>&5
9967  ac_status=$?
9968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969  (exit $ac_status); }; } &&
9970         { ac_try='test -s conftest$ac_exeext'
9971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972  (eval $ac_try) 2>&5
9973  ac_status=$?
9974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975  (exit $ac_status); }; }; then
9976  ac_cv_func_shl_load=yes
9977else
9978  echo "$as_me: failed program was:" >&5
9979sed 's/^/| /' conftest.$ac_ext >&5
9980
9981ac_cv_func_shl_load=no
9982fi
9983rm -f conftest.err conftest.$ac_objext \
9984      conftest$ac_exeext conftest.$ac_ext
9985fi
9986echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9987echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9988if test $ac_cv_func_shl_load = yes; then
9989  lt_cv_dlopen="shl_load"
9990else
9991  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9992echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9993if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9994  echo $ECHO_N "(cached) $ECHO_C" >&6
9995else
9996  ac_check_lib_save_LIBS=$LIBS
9997LIBS="-ldld  $LIBS"
9998cat >conftest.$ac_ext <<_ACEOF
9999/* confdefs.h.  */
10000_ACEOF
10001cat confdefs.h >>conftest.$ac_ext
10002cat >>conftest.$ac_ext <<_ACEOF
10003/* end confdefs.h.  */
10004
10005/* Override any gcc2 internal prototype to avoid an error.  */
10006#ifdef __cplusplus
10007extern "C"
10008#endif
10009/* We use char because int might match the return type of a gcc2
10010   builtin and then its argument prototype would still apply.  */
10011char shl_load ();
10012int
10013main ()
10014{
10015shl_load ();
10016  ;
10017  return 0;
10018}
10019_ACEOF
10020rm -f conftest.$ac_objext conftest$ac_exeext
10021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10022  (eval $ac_link) 2>conftest.er1
10023  ac_status=$?
10024  grep -v '^ *+' conftest.er1 >conftest.err
10025  rm -f conftest.er1
10026  cat conftest.err >&5
10027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028  (exit $ac_status); } &&
10029         { ac_try='test -z "$ac_c_werror_flag"
10030                         || test ! -s conftest.err'
10031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032  (eval $ac_try) 2>&5
10033  ac_status=$?
10034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035  (exit $ac_status); }; } &&
10036         { ac_try='test -s conftest$ac_exeext'
10037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038  (eval $ac_try) 2>&5
10039  ac_status=$?
10040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041  (exit $ac_status); }; }; then
10042  ac_cv_lib_dld_shl_load=yes
10043else
10044  echo "$as_me: failed program was:" >&5
10045sed 's/^/| /' conftest.$ac_ext >&5
10046
10047ac_cv_lib_dld_shl_load=no
10048fi
10049rm -f conftest.err conftest.$ac_objext \
10050      conftest$ac_exeext conftest.$ac_ext
10051LIBS=$ac_check_lib_save_LIBS
10052fi
10053echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10054echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10055if test $ac_cv_lib_dld_shl_load = yes; then
10056  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10057else
10058  echo "$as_me:$LINENO: checking for dlopen" >&5
10059echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10060if test "${ac_cv_func_dlopen+set}" = set; then
10061  echo $ECHO_N "(cached) $ECHO_C" >&6
10062else
10063  cat >conftest.$ac_ext <<_ACEOF
10064/* confdefs.h.  */
10065_ACEOF
10066cat confdefs.h >>conftest.$ac_ext
10067cat >>conftest.$ac_ext <<_ACEOF
10068/* end confdefs.h.  */
10069/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10070   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10071#define dlopen innocuous_dlopen
10072
10073/* System header to define __stub macros and hopefully few prototypes,
10074    which can conflict with char dlopen (); below.
10075    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10076    <limits.h> exists even on freestanding compilers.  */
10077
10078#ifdef __STDC__
10079# include <limits.h>
10080#else
10081# include <assert.h>
10082#endif
10083
10084#undef dlopen
10085
10086/* Override any gcc2 internal prototype to avoid an error.  */
10087#ifdef __cplusplus
10088extern "C"
10089{
10090#endif
10091/* We use char because int might match the return type of a gcc2
10092   builtin and then its argument prototype would still apply.  */
10093char dlopen ();
10094/* The GNU C library defines this for functions which it implements
10095    to always fail with ENOSYS.  Some functions are actually named
10096    something starting with __ and the normal name is an alias.  */
10097#if defined (__stub_dlopen) || defined (__stub___dlopen)
10098choke me
10099#else
10100char (*f) () = dlopen;
10101#endif
10102#ifdef __cplusplus
10103}
10104#endif
10105
10106int
10107main ()
10108{
10109return f != dlopen;
10110  ;
10111  return 0;
10112}
10113_ACEOF
10114rm -f conftest.$ac_objext conftest$ac_exeext
10115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10116  (eval $ac_link) 2>conftest.er1
10117  ac_status=$?
10118  grep -v '^ *+' conftest.er1 >conftest.err
10119  rm -f conftest.er1
10120  cat conftest.err >&5
10121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122  (exit $ac_status); } &&
10123         { ac_try='test -z "$ac_c_werror_flag"
10124                         || test ! -s conftest.err'
10125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126  (eval $ac_try) 2>&5
10127  ac_status=$?
10128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129  (exit $ac_status); }; } &&
10130         { ac_try='test -s conftest$ac_exeext'
10131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132  (eval $ac_try) 2>&5
10133  ac_status=$?
10134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135  (exit $ac_status); }; }; then
10136  ac_cv_func_dlopen=yes
10137else
10138  echo "$as_me: failed program was:" >&5
10139sed 's/^/| /' conftest.$ac_ext >&5
10140
10141ac_cv_func_dlopen=no
10142fi
10143rm -f conftest.err conftest.$ac_objext \
10144      conftest$ac_exeext conftest.$ac_ext
10145fi
10146echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10147echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10148if test $ac_cv_func_dlopen = yes; then
10149  lt_cv_dlopen="dlopen"
10150else
10151  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10152echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10153if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10154  echo $ECHO_N "(cached) $ECHO_C" >&6
10155else
10156  ac_check_lib_save_LIBS=$LIBS
10157LIBS="-ldl  $LIBS"
10158cat >conftest.$ac_ext <<_ACEOF
10159/* confdefs.h.  */
10160_ACEOF
10161cat confdefs.h >>conftest.$ac_ext
10162cat >>conftest.$ac_ext <<_ACEOF
10163/* end confdefs.h.  */
10164
10165/* Override any gcc2 internal prototype to avoid an error.  */
10166#ifdef __cplusplus
10167extern "C"
10168#endif
10169/* We use char because int might match the return type of a gcc2
10170   builtin and then its argument prototype would still apply.  */
10171char dlopen ();
10172int
10173main ()
10174{
10175dlopen ();
10176  ;
10177  return 0;
10178}
10179_ACEOF
10180rm -f conftest.$ac_objext conftest$ac_exeext
10181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10182  (eval $ac_link) 2>conftest.er1
10183  ac_status=$?
10184  grep -v '^ *+' conftest.er1 >conftest.err
10185  rm -f conftest.er1
10186  cat conftest.err >&5
10187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188  (exit $ac_status); } &&
10189         { ac_try='test -z "$ac_c_werror_flag"
10190                         || test ! -s conftest.err'
10191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192  (eval $ac_try) 2>&5
10193  ac_status=$?
10194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195  (exit $ac_status); }; } &&
10196         { ac_try='test -s conftest$ac_exeext'
10197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198  (eval $ac_try) 2>&5
10199  ac_status=$?
10200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201  (exit $ac_status); }; }; then
10202  ac_cv_lib_dl_dlopen=yes
10203else
10204  echo "$as_me: failed program was:" >&5
10205sed 's/^/| /' conftest.$ac_ext >&5
10206
10207ac_cv_lib_dl_dlopen=no
10208fi
10209rm -f conftest.err conftest.$ac_objext \
10210      conftest$ac_exeext conftest.$ac_ext
10211LIBS=$ac_check_lib_save_LIBS
10212fi
10213echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10214echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10215if test $ac_cv_lib_dl_dlopen = yes; then
10216  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10217else
10218  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10219echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10220if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10221  echo $ECHO_N "(cached) $ECHO_C" >&6
10222else
10223  ac_check_lib_save_LIBS=$LIBS
10224LIBS="-lsvld  $LIBS"
10225cat >conftest.$ac_ext <<_ACEOF
10226/* confdefs.h.  */
10227_ACEOF
10228cat confdefs.h >>conftest.$ac_ext
10229cat >>conftest.$ac_ext <<_ACEOF
10230/* end confdefs.h.  */
10231
10232/* Override any gcc2 internal prototype to avoid an error.  */
10233#ifdef __cplusplus
10234extern "C"
10235#endif
10236/* We use char because int might match the return type of a gcc2
10237   builtin and then its argument prototype would still apply.  */
10238char dlopen ();
10239int
10240main ()
10241{
10242dlopen ();
10243  ;
10244  return 0;
10245}
10246_ACEOF
10247rm -f conftest.$ac_objext conftest$ac_exeext
10248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10249  (eval $ac_link) 2>conftest.er1
10250  ac_status=$?
10251  grep -v '^ *+' conftest.er1 >conftest.err
10252  rm -f conftest.er1
10253  cat conftest.err >&5
10254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255  (exit $ac_status); } &&
10256         { ac_try='test -z "$ac_c_werror_flag"
10257                         || test ! -s conftest.err'
10258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10259  (eval $ac_try) 2>&5
10260  ac_status=$?
10261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262  (exit $ac_status); }; } &&
10263         { ac_try='test -s conftest$ac_exeext'
10264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265  (eval $ac_try) 2>&5
10266  ac_status=$?
10267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268  (exit $ac_status); }; }; then
10269  ac_cv_lib_svld_dlopen=yes
10270else
10271  echo "$as_me: failed program was:" >&5
10272sed 's/^/| /' conftest.$ac_ext >&5
10273
10274ac_cv_lib_svld_dlopen=no
10275fi
10276rm -f conftest.err conftest.$ac_objext \
10277      conftest$ac_exeext conftest.$ac_ext
10278LIBS=$ac_check_lib_save_LIBS
10279fi
10280echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10281echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10282if test $ac_cv_lib_svld_dlopen = yes; then
10283  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10284else
10285  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10286echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10287if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10288  echo $ECHO_N "(cached) $ECHO_C" >&6
10289else
10290  ac_check_lib_save_LIBS=$LIBS
10291LIBS="-ldld  $LIBS"
10292cat >conftest.$ac_ext <<_ACEOF
10293/* confdefs.h.  */
10294_ACEOF
10295cat confdefs.h >>conftest.$ac_ext
10296cat >>conftest.$ac_ext <<_ACEOF
10297/* end confdefs.h.  */
10298
10299/* Override any gcc2 internal prototype to avoid an error.  */
10300#ifdef __cplusplus
10301extern "C"
10302#endif
10303/* We use char because int might match the return type of a gcc2
10304   builtin and then its argument prototype would still apply.  */
10305char dld_link ();
10306int
10307main ()
10308{
10309dld_link ();
10310  ;
10311  return 0;
10312}
10313_ACEOF
10314rm -f conftest.$ac_objext conftest$ac_exeext
10315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10316  (eval $ac_link) 2>conftest.er1
10317  ac_status=$?
10318  grep -v '^ *+' conftest.er1 >conftest.err
10319  rm -f conftest.er1
10320  cat conftest.err >&5
10321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322  (exit $ac_status); } &&
10323         { ac_try='test -z "$ac_c_werror_flag"
10324                         || test ! -s conftest.err'
10325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326  (eval $ac_try) 2>&5
10327  ac_status=$?
10328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329  (exit $ac_status); }; } &&
10330         { ac_try='test -s conftest$ac_exeext'
10331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332  (eval $ac_try) 2>&5
10333  ac_status=$?
10334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335  (exit $ac_status); }; }; then
10336  ac_cv_lib_dld_dld_link=yes
10337else
10338  echo "$as_me: failed program was:" >&5
10339sed 's/^/| /' conftest.$ac_ext >&5
10340
10341ac_cv_lib_dld_dld_link=no
10342fi
10343rm -f conftest.err conftest.$ac_objext \
10344      conftest$ac_exeext conftest.$ac_ext
10345LIBS=$ac_check_lib_save_LIBS
10346fi
10347echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10348echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10349if test $ac_cv_lib_dld_dld_link = yes; then
10350  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10351fi
10352
10353
10354fi
10355
10356
10357fi
10358
10359
10360fi
10361
10362
10363fi
10364
10365
10366fi
10367
10368    ;;
10369  esac
10370
10371  if test "x$lt_cv_dlopen" != xno; then
10372    enable_dlopen=yes
10373  else
10374    enable_dlopen=no
10375  fi
10376
10377  case $lt_cv_dlopen in
10378  dlopen)
10379    save_CPPFLAGS="$CPPFLAGS"
10380    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10381
10382    save_LDFLAGS="$LDFLAGS"
10383    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10384
10385    save_LIBS="$LIBS"
10386    LIBS="$lt_cv_dlopen_libs $LIBS"
10387
10388    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10389echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10390if test "${lt_cv_dlopen_self+set}" = set; then
10391  echo $ECHO_N "(cached) $ECHO_C" >&6
10392else
10393          if test "$cross_compiling" = yes; then :
10394  lt_cv_dlopen_self=cross
10395else
10396  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10397  lt_status=$lt_dlunknown
10398  cat > conftest.$ac_ext <<EOF
10399#line 10399 "configure"
10400#include "confdefs.h"
10401
10402#if HAVE_DLFCN_H
10403#include <dlfcn.h>
10404#endif
10405
10406#include <stdio.h>
10407
10408#ifdef RTLD_GLOBAL
10409#  define LT_DLGLOBAL           RTLD_GLOBAL
10410#else
10411#  ifdef DL_GLOBAL
10412#    define LT_DLGLOBAL         DL_GLOBAL
10413#  else
10414#    define LT_DLGLOBAL         0
10415#  endif
10416#endif
10417
10418/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10419   find out it does not work in some platform. */
10420#ifndef LT_DLLAZY_OR_NOW
10421#  ifdef RTLD_LAZY
10422#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10423#  else
10424#    ifdef DL_LAZY
10425#      define LT_DLLAZY_OR_NOW          DL_LAZY
10426#    else
10427#      ifdef RTLD_NOW
10428#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10429#      else
10430#        ifdef DL_NOW
10431#          define LT_DLLAZY_OR_NOW      DL_NOW
10432#        else
10433#          define LT_DLLAZY_OR_NOW      0
10434#        endif
10435#      endif
10436#    endif
10437#  endif
10438#endif
10439
10440#ifdef __cplusplus
10441extern "C" void exit (int);
10442#endif
10443
10444void fnord() { int i=42;}
10445int main ()
10446{
10447  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10448  int status = $lt_dlunknown;
10449
10450  if (self)
10451    {
10452      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10453      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10454      /* dlclose (self); */
10455    }
10456  else
10457    puts (dlerror ());
10458
10459    exit (status);
10460}
10461EOF
10462  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10463  (eval $ac_link) 2>&5
10464  ac_status=$?
10465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10467    (./conftest; exit; ) >&5 2>/dev/null
10468    lt_status=$?
10469    case x$lt_status in
10470      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10471      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10472      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10473    esac
10474  else :
10475    # compilation failed
10476    lt_cv_dlopen_self=no
10477  fi
10478fi
10479rm -fr conftest*
10480
10481
10482fi
10483echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10484echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10485
10486    if test "x$lt_cv_dlopen_self" = xyes; then
10487      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10488      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10489echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10490if test "${lt_cv_dlopen_self_static+set}" = set; then
10491  echo $ECHO_N "(cached) $ECHO_C" >&6
10492else
10493          if test "$cross_compiling" = yes; then :
10494  lt_cv_dlopen_self_static=cross
10495else
10496  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10497  lt_status=$lt_dlunknown
10498  cat > conftest.$ac_ext <<EOF
10499#line 10499 "configure"
10500#include "confdefs.h"
10501
10502#if HAVE_DLFCN_H
10503#include <dlfcn.h>
10504#endif
10505
10506#include <stdio.h>
10507
10508#ifdef RTLD_GLOBAL
10509#  define LT_DLGLOBAL           RTLD_GLOBAL
10510#else
10511#  ifdef DL_GLOBAL
10512#    define LT_DLGLOBAL         DL_GLOBAL
10513#  else
10514#    define LT_DLGLOBAL         0
10515#  endif
10516#endif
10517
10518/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10519   find out it does not work in some platform. */
10520#ifndef LT_DLLAZY_OR_NOW
10521#  ifdef RTLD_LAZY
10522#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10523#  else
10524#    ifdef DL_LAZY
10525#      define LT_DLLAZY_OR_NOW          DL_LAZY
10526#    else
10527#      ifdef RTLD_NOW
10528#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10529#      else
10530#        ifdef DL_NOW
10531#          define LT_DLLAZY_OR_NOW      DL_NOW
10532#        else
10533#          define LT_DLLAZY_OR_NOW      0
10534#        endif
10535#      endif
10536#    endif
10537#  endif
10538#endif
10539
10540#ifdef __cplusplus
10541extern "C" void exit (int);
10542#endif
10543
10544void fnord() { int i=42;}
10545int main ()
10546{
10547  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10548  int status = $lt_dlunknown;
10549
10550  if (self)
10551    {
10552      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10553      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10554      /* dlclose (self); */
10555    }
10556  else
10557    puts (dlerror ());
10558
10559    exit (status);
10560}
10561EOF
10562  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563  (eval $ac_link) 2>&5
10564  ac_status=$?
10565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10567    (./conftest; exit; ) >&5 2>/dev/null
10568    lt_status=$?
10569    case x$lt_status in
10570      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10571      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10572      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10573    esac
10574  else :
10575    # compilation failed
10576    lt_cv_dlopen_self_static=no
10577  fi
10578fi
10579rm -fr conftest*
10580
10581
10582fi
10583echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10584echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10585    fi
10586
10587    CPPFLAGS="$save_CPPFLAGS"
10588    LDFLAGS="$save_LDFLAGS"
10589    LIBS="$save_LIBS"
10590    ;;
10591  esac
10592
10593  case $lt_cv_dlopen_self in
10594  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10595  *) enable_dlopen_self=unknown ;;
10596  esac
10597
10598  case $lt_cv_dlopen_self_static in
10599  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10600  *) enable_dlopen_self_static=unknown ;;
10601  esac
10602fi
10603
10604
10605# Report which library types will actually be built
10606echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10607echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10608echo "$as_me:$LINENO: result: $can_build_shared" >&5
10609echo "${ECHO_T}$can_build_shared" >&6
10610
10611echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10612echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10613test "$can_build_shared" = "no" && enable_shared=no
10614
10615# On AIX, shared libraries and static libraries use the same namespace, and
10616# are all built from PIC.
10617case $host_os in
10618aix3*)
10619  test "$enable_shared" = yes && enable_static=no
10620  if test -n "$RANLIB"; then
10621    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10622    postinstall_cmds='$RANLIB $lib'
10623  fi
10624  ;;
10625
10626aix4* | aix5*)
10627  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10628    test "$enable_shared" = yes && enable_static=no
10629  fi
10630    ;;
10631esac
10632echo "$as_me:$LINENO: result: $enable_shared" >&5
10633echo "${ECHO_T}$enable_shared" >&6
10634
10635echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10636echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10637# Make sure either enable_shared or enable_static is yes.
10638test "$enable_shared" = yes || enable_static=yes
10639echo "$as_me:$LINENO: result: $enable_static" >&5
10640echo "${ECHO_T}$enable_static" >&6
10641
10642# The else clause should only fire when bootstrapping the
10643# libtool distribution, otherwise you forgot to ship ltmain.sh
10644# with your package, and you will get complaints that there are
10645# no rules to generate ltmain.sh.
10646if test -f "$ltmain"; then
10647  # See if we are running on zsh, and set the options which allow our commands through
10648  # without removal of \ escapes.
10649  if test -n "${ZSH_VERSION+set}" ; then
10650    setopt NO_GLOB_SUBST
10651  fi
10652  # Now quote all the things that may contain metacharacters while being
10653  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10654  # variables and quote the copies for generation of the libtool script.
10655  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10656    SED SHELL STRIP \
10657    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10658    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10659    deplibs_check_method reload_flag reload_cmds need_locks \
10660    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10661    lt_cv_sys_global_symbol_to_c_name_address \
10662    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10663    old_postinstall_cmds old_postuninstall_cmds \
10664    compiler \
10665    CC \
10666    LD \
10667    lt_prog_compiler_wl \
10668    lt_prog_compiler_pic \
10669    lt_prog_compiler_static \
10670    lt_prog_compiler_no_builtin_flag \
10671    export_dynamic_flag_spec \
10672    thread_safe_flag_spec \
10673    whole_archive_flag_spec \
10674    enable_shared_with_static_runtimes \
10675    old_archive_cmds \
10676    old_archive_from_new_cmds \
10677    predep_objects \
10678    postdep_objects \
10679    predeps \
10680    postdeps \
10681    compiler_lib_search_path \
10682    archive_cmds \
10683    archive_expsym_cmds \
10684    postinstall_cmds \
10685    postuninstall_cmds \
10686    old_archive_from_expsyms_cmds \
10687    allow_undefined_flag \
10688    no_undefined_flag \
10689    export_symbols_cmds \
10690    hardcode_libdir_flag_spec \
10691    hardcode_libdir_flag_spec_ld \
10692    hardcode_libdir_separator \
10693    hardcode_automatic \
10694    module_cmds \
10695    module_expsym_cmds \
10696    lt_cv_prog_compiler_c_o \
10697    exclude_expsyms \
10698    include_expsyms; do
10699
10700    case $var in
10701    old_archive_cmds | \
10702    old_archive_from_new_cmds | \
10703    archive_cmds | \
10704    archive_expsym_cmds | \
10705    module_cmds | \
10706    module_expsym_cmds | \
10707    old_archive_from_expsyms_cmds | \
10708    export_symbols_cmds | \
10709    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10710    postinstall_cmds | postuninstall_cmds | \
10711    old_postinstall_cmds | old_postuninstall_cmds | \
10712    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10713      # Double-quote double-evaled strings.
10714      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10715      ;;
10716    *)
10717      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10718      ;;
10719    esac
10720  done
10721
10722  case $lt_echo in
10723  *'\$0 --fallback-echo"')
10724    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10725    ;;
10726  esac
10727
10728cfgfile="${ofile}T"
10729  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10730  $rm -f "$cfgfile"
10731  { echo "$as_me:$LINENO: creating $ofile" >&5
10732echo "$as_me: creating $ofile" >&6;}
10733
10734  cat <<__EOF__ >> "$cfgfile"
10735#! $SHELL
10736
10737# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10738# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10739# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10740#
10741# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10742# Free Software Foundation, Inc.
10743#
10744# This file is part of GNU Libtool:
10745# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10746#
10747# This program is free software; you can redistribute it and/or modify
10748# it under the terms of the GNU General Public License as published by
10749# the Free Software Foundation; either version 2 of the License, or
10750# (at your option) any later version.
10751#
10752# This program is distributed in the hope that it will be useful, but
10753# WITHOUT ANY WARRANTY; without even the implied warranty of
10754# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10755# General Public License for more details.
10756#
10757# You should have received a copy of the GNU General Public License
10758# along with this program; if not, write to the Free Software
10759# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10760#
10761# As a special exception to the GNU General Public License, if you
10762# distribute this file as part of a program that contains a
10763# configuration script generated by Autoconf, you may include it under
10764# the same distribution terms that you use for the rest of that program.
10765
10766# A sed program that does not truncate output.
10767SED=$lt_SED
10768
10769# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10770Xsed="$SED -e 1s/^X//"