source: branches/autotools-update/Clp/configure @ 2351

Last change on this file since 2351 was 2351, checked in by stefan, 6 months ago

add a FIXME

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