source: ThirdParty/Glpk/branches/autotools-update/configure @ 3252

Last change on this file since 3252 was 3252, checked in by stefan, 5 years ago

reenable check for gmp

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