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

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

use just GLPK_LIBS

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