source: ThirdParty/Glpk/trunk/configure @ 1390

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

update to glpk 4.39

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