source: ThirdParty/ASL/trunk/configure @ 1388

Last change on this file since 1388 was 1388, checked in by stefan, 10 years ago

install libraries and header files

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