source: branches/autotools-update/Cbc/configure @ 2395

Last change on this file since 2395 was 2395, checked in by stefan, 12 months ago

add get.dependencies.sh and compile; remove check for DEPENDENCY_LINKING; rerun autotools

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