source: ThirdParty/FilterSQP/stable/1.2/configure @ 2919

Last change on this file since 2919 was 2919, checked in by stefan, 7 years ago

temporarily committing release candidate

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