source: ThirdParty/FilterSQP/trunk/configure @ 2160

Last change on this file since 2160 was 2160, checked in by stefan, 11 years ago

rerun autotools

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