source: ThirdParty/ASL/stable/1.1/configure @ 1773

Last change on this file since 1773 was 1773, checked in by stefan, 9 years ago

temporarily committing release candidate

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