source: ThirdParty/Lapack/stable/1.0/configure @ 217

Last change on this file since 217 was 217, checked in by andreasw, 14 years ago

synchronizing Lapack stable with trunk (rev 216)

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