source: ThirdParty/Glpk/branches/BSP/trunk/configure @ 508

Last change on this file since 508 was 508, checked in by andreasw, 14 years ago

suppress warning messages for AIX compilers

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