source: ThirdParty/Glpk/trunk/configure @ 1105

Last change on this file since 1105 was 1105, checked in by stefan, 11 years ago

update to glpk 4.30

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