source: ThirdParty/ASL/stable/1.2/configure @ 2481

Last change on this file since 2481 was 2481, checked in by stefan, 8 years ago

merge chgset2480 from trunk

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