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

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

get it compiling with buildtools/trunk

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