source: ThirdParty/Glpk/stable/1.2/configure @ 2595

Last change on this file since 2595 was 988, checked in by andreasw, 12 years ago

temporarily committing release candidate to stable

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