source: ThirdParty/Glpk/trunk/configure @ 922

Last change on this file since 922 was 922, checked in by stefan, 12 years ago

results from run_autotools

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