source: ThirdParty/Glpk/branches/BSPsplit/configure @ 1446

Last change on this file since 1446 was 1446, checked in by stefan, 10 years ago

stop using COIN_HAS_PROJECT; some cleanup; use MODULE_BLAS in Mumps

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