source: ThirdParty/FilterSQP/trunk/configure @ 2199

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