source: ThirdParty/FilterSQP/branches/BSPsplit/configure @ 1454

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

add .pc files for ASL, HSL, and FilterSQP

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