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

Last change on this file since 3886 was 3886, checked in by lou, 11 months ago

Propagate BuildTools? changes.

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