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

Last change on this file since 3246 was 3246, checked in by stefan, 6 years ago

reorganize initialization macros

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