source: trunk/configure @ 379

Last change on this file since 379 was 379, checked in by kulshres, 7 years ago

include advance branching in manual and --help text for configure

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

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