source: trunk/configure @ 113

Last change on this file since 113 was 113, checked in by kulshres, 9 years ago

Squashed merge of branch 'master' of 'gitclone' into svn

  • 'master' of 'gitclone': (2 commits) document the install and search directory structure Colpack may be built for biarch compilation too.

details of the commits:

commit 859b1765d1d5c53eedca8cfd3566e66a00e25fca
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Jul 19 16:14:25 2010 +0200

document the install and search directory structure

the library install and search paths are {lib,lib64} depending on the
compiler. 32-bit builds will use lib and 64 bit builds will use lib64.

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

commit 1bb08fe936c9bbcab2d776690944552e2ce50f80
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Jul 19 16:03:08 2010 +0200

Colpack may be built for biarch compilation too.

include for headers
lib for 32bit library
lib64 for 64bit library

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

File size: 568.7 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.65 for adolc 2.1.5-trunk.
5#
6# Report bugs to <adol-c@list.coin-or.org>.
7#
8#
9# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11# Inc.
12#
13#
14# This configure script is free software; the Free Software Foundation
15# gives unlimited permission to copy, distribute and modify it.
16## -------------------- ##
17## M4sh Initialization. ##
18## -------------------- ##
19
20# Be more Bourne compatible
21DUALCASE=1; export DUALCASE # for MKS sh
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39as_nl='
40'
41export as_nl
42# Printing a long string crashes Solaris 7 /usr/bin/printf.
43as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46# Prefer a ksh shell builtin over an external printf program on Solaris,
47# but without wasting forks for bash or zsh.
48if test -z "$BASH_VERSION$ZSH_VERSION" \
49    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='print -r --'
51  as_echo_n='print -rn --'
52elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53  as_echo='printf %s\n'
54  as_echo_n='printf %s'
55else
56  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58    as_echo_n='/usr/ucb/echo -n'
59  else
60    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61    as_echo_n_body='eval
62      arg=$1;
63      case $arg in #(
64      *"$as_nl"*)
65        expr "X$arg" : "X\\(.*\\)$as_nl";
66        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67      esac;
68      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69    '
70    export as_echo_n_body
71    as_echo_n='sh -c $as_echo_n_body as_echo'
72  fi
73  export as_echo_body
74  as_echo='sh -c $as_echo_body as_echo'
75fi
76
77# The user is always right.
78if test "${PATH_SEPARATOR+set}" != set; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# IFS
88# We need space, tab and new line, in precisely that order.  Quoting is
89# there to prevent editors from complaining about space-tab.
90# (If _AS_PATH_WALK were called with IFS unset, it would disable word
91# splitting by setting IFS to empty value.)
92IFS=" ""        $as_nl"
93
94# Find who we are.  Look in the path if we contain no directory separator.
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194         /*)
195           for as_base in sh bash ksh sh5; do
196             # Try only shells that exist, to save several forks.
197             as_shell=$as_dir/$as_base
198             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205           done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218        # neutralization value for shells without unset; and this also
219        # works around shells that cannot unset nonexistent variables.
220        BASH_ENV=/dev/null
221        ENV=/dev/null
222        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223        export CONFIG_SHELL
224        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225fi
226
227    if test x$as_have_required = xno; then :
228  $as_echo "$0: This script requires a shell more modern than all"
229  $as_echo "$0: the shells that I found on your system."
230  if test x${ZSH_VERSION+set} = xset ; then
231    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233  else
234    $as_echo "$0: Please tell bug-autoconf@gnu.org and
235$0: adol-c@list.coin-or.org about your system, including
236$0: any error possibly output before this message. Then
237$0: install a modern shell, or manually run the script
238$0: under such a shell if you do have one."
239  fi
240  exit 1
241fi
242fi
243fi
244SHELL=${CONFIG_SHELL-/bin/sh}
245export SHELL
246# Unset more variables known to interfere with behavior of common tools.
247CLICOLOR_FORCE= GREP_OPTIONS=
248unset CLICOLOR_FORCE GREP_OPTIONS
249
250## --------------------- ##
251## M4sh Shell Functions. ##
252## --------------------- ##
253# as_fn_unset VAR
254# ---------------
255# Portably unset VAR.
256as_fn_unset ()
257{
258  { eval $1=; unset $1;}
259}
260as_unset=as_fn_unset
261
262# as_fn_set_status STATUS
263# -----------------------
264# Set $? to STATUS, without forking.
265as_fn_set_status ()
266{
267  return $1
268} # as_fn_set_status
269
270# as_fn_exit STATUS
271# -----------------
272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273as_fn_exit ()
274{
275  set +e
276  as_fn_set_status $1
277  exit $1
278} # as_fn_exit
279
280# as_fn_mkdir_p
281# -------------
282# Create "$as_dir" as a directory, including parents if necessary.
283as_fn_mkdir_p ()
284{
285
286  case $as_dir in #(
287  -*) as_dir=./$as_dir;;
288  esac
289  test -d "$as_dir" || eval $as_mkdir_p || {
290    as_dirs=
291    while :; do
292      case $as_dir in #(
293      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294      *) as_qdir=$as_dir;;
295      esac
296      as_dirs="'$as_qdir' $as_dirs"
297      as_dir=`$as_dirname -- "$as_dir" ||
298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299         X"$as_dir" : 'X\(//\)[^/]' \| \
300         X"$as_dir" : 'X\(//\)$' \| \
301         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302$as_echo X"$as_dir" |
303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304            s//\1/
305            q
306          }
307          /^X\(\/\/\)[^/].*/{
308            s//\1/
309            q
310          }
311          /^X\(\/\/\)$/{
312            s//\1/
313            q
314          }
315          /^X\(\/\).*/{
316            s//\1/
317            q
318          }
319          s/.*/./; q'`
320      test -d "$as_dir" && break
321    done
322    test -z "$as_dirs" || eval "mkdir $as_dirs"
323  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326} # as_fn_mkdir_p
327# as_fn_append VAR VALUE
328# ----------------------
329# Append the text in VALUE to the end of the definition contained in VAR. Take
330# advantage of any shell optimizations that allow amortized linear growth over
331# repeated appends, instead of the typical quadratic growth present in naive
332# implementations.
333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334  eval 'as_fn_append ()
335  {
336    eval $1+=\$2
337  }'
338else
339  as_fn_append ()
340  {
341    eval $1=\$$1\$2
342  }
343fi # as_fn_append
344
345# as_fn_arith ARG...
346# ------------------
347# Perform arithmetic evaluation on the ARGs, and store the result in the
348# global $as_val. Take advantage of shells that can avoid forks. The arguments
349# must be portable across $(()) and expr.
350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351  eval 'as_fn_arith ()
352  {
353    as_val=$(( $* ))
354  }'
355else
356  as_fn_arith ()
357  {
358    as_val=`expr "$@" || test $? -eq 1`
359  }
360fi # as_fn_arith
361
362
363# as_fn_error ERROR [LINENO LOG_FD]
364# ---------------------------------
365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367# script with status $?, using 1 if that was 0.
368as_fn_error ()
369{
370  as_status=$?; test $as_status -eq 0 && as_status=1
371  if test "$3"; then
372    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374  fi
375  $as_echo "$as_me: error: $1" >&2
376  as_fn_exit $as_status
377} # as_fn_error
378
379if expr a : '\(a\)' >/dev/null 2>&1 &&
380   test "X`expr 00001 : '.*\(...\)'`" = X001; then
381  as_expr=expr
382else
383  as_expr=false
384fi
385
386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387  as_basename=basename
388else
389  as_basename=false
390fi
391
392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393  as_dirname=dirname
394else
395  as_dirname=false
396fi
397
398as_me=`$as_basename -- "$0" ||
399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400         X"$0" : 'X\(//\)$' \| \
401         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402$as_echo X/"$0" |
403    sed '/^.*\/\([^/][^/]*\)\/*$/{
404            s//\1/
405            q
406          }
407          /^X\/\(\/\/\)$/{
408            s//\1/
409            q
410          }
411          /^X\/\(\/\).*/{
412            s//\1/
413            q
414          }
415          s/.*/./; q'`
416
417# Avoid depending upon Character Ranges.
418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421as_cr_digits='0123456789'
422as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425  as_lineno_1=$LINENO as_lineno_1a=$LINENO
426  as_lineno_2=$LINENO as_lineno_2a=$LINENO
427  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430  sed -n '
431    p
432    /[$]LINENO/=
433  ' <$as_myself |
434    sed '
435      s/[$]LINENO.*/&-/
436      t lineno
437      b
438      :lineno
439      N
440      :loop
441      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442      t loop
443      s/-\n.*//
444    ' >$as_me.lineno &&
445  chmod +x "$as_me.lineno" ||
446    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448  # Don't try to exec as it changes $[0], causing all sort of problems
449  # (the dirname of $[0] is not the place where we might find the
450  # original and so on.  Autoconf is especially sensitive to this).
451  . "./$as_me.lineno"
452  # Exit status is that of the last command.
453  exit
454}
455
456ECHO_C= ECHO_N= ECHO_T=
457case `echo -n x` in #(((((
458-n*)
459  case `echo 'xy\c'` in
460  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
461  xy)  ECHO_C='\c';;
462  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463       ECHO_T=' ';;
464  esac;;
465*)
466  ECHO_N='-n';;
467esac
468
469rm -f conf$$ conf$$.exe conf$$.file
470if test -d conf$$.dir; then
471  rm -f conf$$.dir/conf$$.file
472else
473  rm -f conf$$.dir
474  mkdir conf$$.dir 2>/dev/null
475fi
476if (echo >conf$$.file) 2>/dev/null; then
477  if ln -s conf$$.file conf$$ 2>/dev/null; then
478    as_ln_s='ln -s'
479    # ... but there are two gotchas:
480    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482    # In both cases, we have to default to `cp -p'.
483    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484      as_ln_s='cp -p'
485  elif ln conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s=ln
487  else
488    as_ln_s='cp -p'
489  fi
490else
491  as_ln_s='cp -p'
492fi
493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494rmdir conf$$.dir 2>/dev/null
495
496if mkdir -p . 2>/dev/null; then
497  as_mkdir_p='mkdir -p "$as_dir"'
498else
499  test -d ./-p && rmdir ./-p
500  as_mkdir_p=false
501fi
502
503if test -x / >/dev/null 2>&1; then
504  as_test_x='test -x'
505else
506  if ls -dL / >/dev/null 2>&1; then
507    as_ls_L_option=L
508  else
509    as_ls_L_option=
510  fi
511  as_test_x='
512    eval sh -c '\''
513      if test -d "$1"; then
514        test -d "$1/.";
515      else
516        case $1 in #(
517        -*)set "./$1";;
518        esac;
519        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520        ???[sx]*):;;*)false;;esac;fi
521    '\'' sh
522  '
523fi
524as_executable_p=$as_test_x
525
526# Sed expression to map a string onto a valid CPP name.
527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529# Sed expression to map a string onto a valid variable name.
530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534# Check that we are running under the correct shell.
535SHELL=${CONFIG_SHELL-/bin/sh}
536
537case X$lt_ECHO in
538X*--fallback-echo)
539  # Remove one level of quotation (which was required for Make).
540  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541  ;;
542esac
543
544ECHO=${lt_ECHO-echo}
545if test "X$1" = X--no-reexec; then
546  # Discard the --no-reexec flag, and continue.
547  shift
548elif test "X$1" = X--fallback-echo; then
549  # Avoid inline document here, it may be left over
550  :
551elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552  # Yippee, $ECHO works!
553  :
554else
555  # Restart under the correct shell.
556  exec $SHELL "$0" --no-reexec ${1+"$@"}
557fi
558
559if test "X$1" = X--fallback-echo; then
560  # used as fallback echo
561  shift
562  cat <<_LT_EOF
563$*
564_LT_EOF
565  exit 0
566fi
567
568# The HP-UX ksh and POSIX shell print the target directory to stdout
569# if CDPATH is set.
570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572if test -z "$lt_ECHO"; then
573  if test "X${echo_test_string+set}" != Xset; then
574    # find a string as large as possible, as long as the shell can cope with it
575    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579      then
580        break
581      fi
582    done
583  fi
584
585  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587     test "X$echo_testing_string" = "X$echo_test_string"; then
588    :
589  else
590    # The Solaris, AIX, and Digital Unix default echo programs unquote
591    # backslashes.  This makes it impossible to quote backslashes using
592    #   echo "$something" | sed 's/\\/\\\\/g'
593    #
594    # So, first we look for a working echo in the user's PATH.
595
596    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597    for dir in $PATH /usr/ucb; do
598      IFS="$lt_save_ifs"
599      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602         test "X$echo_testing_string" = "X$echo_test_string"; then
603        ECHO="$dir/echo"
604        break
605      fi
606    done
607    IFS="$lt_save_ifs"
608
609    if test "X$ECHO" = Xecho; then
610      # We didn't find a better echo, so look for alternatives.
611      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613         test "X$echo_testing_string" = "X$echo_test_string"; then
614        # This shell has a builtin print -r that does the trick.
615        ECHO='print -r'
616      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617           test "X$CONFIG_SHELL" != X/bin/ksh; then
618        # If we have ksh, try running configure again with it.
619        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620        export ORIGINAL_CONFIG_SHELL
621        CONFIG_SHELL=/bin/ksh
622        export CONFIG_SHELL
623        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624      else
625        # Try using printf.
626        ECHO='printf %s\n'
627        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629           test "X$echo_testing_string" = "X$echo_test_string"; then
630          # Cool, printf works
631          :
632        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633             test "X$echo_testing_string" = 'X\t' &&
634             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635             test "X$echo_testing_string" = "X$echo_test_string"; then
636          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637          export CONFIG_SHELL
638          SHELL="$CONFIG_SHELL"
639          export SHELL
640          ECHO="$CONFIG_SHELL $0 --fallback-echo"
641        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642             test "X$echo_testing_string" = 'X\t' &&
643             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644             test "X$echo_testing_string" = "X$echo_test_string"; then
645          ECHO="$CONFIG_SHELL $0 --fallback-echo"
646        else
647          # maybe with a smaller string...
648          prev=:
649
650          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652            then
653              break
654            fi
655            prev="$cmd"
656          done
657
658          if test "$prev" != 'sed 50q "$0"'; then
659            echo_test_string=`eval $prev`
660            export echo_test_string
661            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662          else
663            # Oops.  We lost completely, so just stick with echo.
664            ECHO=echo
665          fi
666        fi
667      fi
668    fi
669  fi
670fi
671
672# Copy echo and quote the copy suitably for passing to libtool from
673# the Makefile, instead of quoting the original, which is used later.
674lt_ECHO=$ECHO
675if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677fi
678
679
680
681
682test -n "$DJDIR" || exec 7<&0 </dev/null
683exec 6>&1
684
685# Name of the host.
686# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
687# so uname gets run too.
688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690#
691# Initializations.
692#
693ac_default_prefix=/usr/local
694ac_clean_files=
695ac_config_libobj_dir=.
696LIBOBJS=
697cross_compiling=no
698subdirs=
699MFLAGS=
700MAKEFLAGS=
701
702# Identity of this package.
703PACKAGE_NAME='adolc'
704PACKAGE_TARNAME='adolc'
705PACKAGE_VERSION='2.1.5-trunk'
706PACKAGE_STRING='adolc 2.1.5-trunk'
707PACKAGE_BUGREPORT='adol-c@list.coin-or.org'
708PACKAGE_URL=''
709
710ac_unique_file="ADOL-C/src/adolc.h"
711ac_default_prefix=${HOME}/adolc_base
712# Factoring default headers for most tests.
713ac_includes_default="\
714#include <stdio.h>
715#ifdef HAVE_SYS_TYPES_H
716# include <sys/types.h>
717#endif
718#ifdef HAVE_SYS_STAT_H
719# include <sys/stat.h>
720#endif
721#ifdef STDC_HEADERS
722# include <stdlib.h>
723# include <stddef.h>
724#else
725# ifdef HAVE_STDLIB_H
726#  include <stdlib.h>
727# endif
728#endif
729#ifdef HAVE_STRING_H
730# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
731#  include <memory.h>
732# endif
733# include <string.h>
734#endif
735#ifdef HAVE_STRINGS_H
736# include <strings.h>
737#endif
738#ifdef HAVE_INTTYPES_H
739# include <inttypes.h>
740#endif
741#ifdef HAVE_STDINT_H
742# include <stdint.h>
743#endif
744#ifdef HAVE_UNISTD_H
745# include <unistd.h>
746#endif"
747
748ac_subst_vars='am__EXEEXT_FALSE
749am__EXEEXT_TRUE
750LTLIBOBJS
751Q
752V
753MCS
754OBJC
755F77
756FC
757AM_MAKEFLAGS
758MAKEFLAGS
759shavedir
760ac_adolc_cxxflags
761ac_adolc_cflags
762PAREXA_FALSE
763PAREXA_TRUE
764ADDEXA_FALSE
765ADDEXA_TRUE
766DOCEXA_FALSE
767DOCEXA_TRUE
768COLPACK_LIBS
769COLPACK_CFLAGS
770SPARSE_FALSE
771SPARSE_TRUE
772HAVE_LIBCOLPACK_FALSE
773HAVE_LIBCOLPACK_TRUE
774ac_aux_dir
775LIBOBJS
776_lib
777LTCXXCOMPILE
778LTCOMPILE
779DOLT_BASH
780CXXCPP
781OTOOL64
782OTOOL
783LIPO
784NMEDIT
785DSYMUTIL
786lt_ECHO
787RANLIB
788AR
789NM
790ac_ct_DUMPBIN
791DUMPBIN
792LD
793FGREP
794EGREP
795GREP
796SED
797LIBTOOL
798OBJDUMP
799DLLTOOL
800AS
801host_os
802host_vendor
803host_cpu
804host
805build_os
806build_vendor
807build_cpu
808build
809LN_S
810CPP
811am__fastdepCC_FALSE
812am__fastdepCC_TRUE
813CCDEPMODE
814ac_ct_CC
815CFLAGS
816CC
817am__fastdepCXX_FALSE
818am__fastdepCXX_TRUE
819CXXDEPMODE
820AMDEPBACKSLASH
821AMDEP_FALSE
822AMDEP_TRUE
823am__quote
824am__include
825DEPDIR
826OBJEXT
827EXEEXT
828ac_ct_CXX
829CPPFLAGS
830LDFLAGS
831CXXFLAGS
832CXX
833am__untar
834am__tar
835AMTAR
836am__leading_dot
837SET_MAKE
838AWK
839mkdir_p
840MKDIR_P
841INSTALL_STRIP_PROGRAM
842STRIP
843install_sh
844MAKEINFO
845AUTOHEADER
846AUTOMAKE
847AUTOCONF
848ACLOCAL
849VERSION
850PACKAGE
851CYGPATH_W
852am__isrc
853INSTALL_DATA
854INSTALL_SCRIPT
855INSTALL_PROGRAM
856target_alias
857host_alias
858build_alias
859LIBS
860ECHO_T
861ECHO_N
862ECHO_C
863DEFS
864mandir
865localedir
866libdir
867psdir
868pdfdir
869dvidir
870htmldir
871infodir
872docdir
873oldincludedir
874includedir
875localstatedir
876sharedstatedir
877sysconfdir
878datadir
879datarootdir
880libexecdir
881sbindir
882bindir
883program_transform_name
884prefix
885exec_prefix
886PACKAGE_URL
887PACKAGE_BUGREPORT
888PACKAGE_STRING
889PACKAGE_VERSION
890PACKAGE_TARNAME
891PACKAGE_NAME
892PATH_SEPARATOR
893SHELL'
894ac_subst_files=''
895ac_user_opts='
896enable_option_checking
897enable_dependency_tracking
898enable_shared
899enable_static
900with_pic
901enable_fast_install
902with_gnu_ld
903enable_libtool_lock
904enable_debug
905enable_harddebug
906enable_stdczero
907enable_tserrno
908enable_safe_extern
909enable_sparse
910with_colpack
911enable_docexa
912enable_addexa
913enable_parexa
914with_openmp_flag
915with_cflags
916with_cxxflags
917enable_shave
918'
919      ac_precious_vars='build_alias
920host_alias
921target_alias
922CXX
923CXXFLAGS
924LDFLAGS
925LIBS
926CPPFLAGS
927CCC
928CC
929CFLAGS
930CPP
931CXXCPP'
932
933
934# Initialize some variables set by options.
935ac_init_help=
936ac_init_version=false
937ac_unrecognized_opts=
938ac_unrecognized_sep=
939# The variables have the same names as the options, with
940# dashes changed to underlines.
941cache_file=/dev/null
942exec_prefix=NONE
943no_create=
944no_recursion=
945prefix=NONE
946program_prefix=NONE
947program_suffix=NONE
948program_transform_name=s,x,x,
949silent=
950site=
951srcdir=
952verbose=
953x_includes=NONE
954x_libraries=NONE
955
956# Installation directory options.
957# These are left unexpanded so users can "make install exec_prefix=/foo"
958# and all the variables that are supposed to be based on exec_prefix
959# by default will actually change.
960# Use braces instead of parens because sh, perl, etc. also accept them.
961# (The list follows the same order as the GNU Coding Standards.)
962bindir='${exec_prefix}/bin'
963sbindir='${exec_prefix}/sbin'
964libexecdir='${exec_prefix}/libexec'
965datarootdir='${prefix}/share'
966datadir='${datarootdir}'
967sysconfdir='${prefix}/etc'
968sharedstatedir='${prefix}/com'
969localstatedir='${prefix}/var'
970includedir='${prefix}/include'
971oldincludedir='/usr/include'
972docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
973infodir='${datarootdir}/info'
974htmldir='${docdir}'
975dvidir='${docdir}'
976pdfdir='${docdir}'
977psdir='${docdir}'
978libdir='${exec_prefix}/lib'
979localedir='${datarootdir}/locale'
980mandir='${datarootdir}/man'
981
982ac_prev=
983ac_dashdash=
984for ac_option
985do
986  # If the previous option needs an argument, assign it.
987  if test -n "$ac_prev"; then
988    eval $ac_prev=\$ac_option
989    ac_prev=
990    continue
991  fi
992
993  case $ac_option in
994  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995  *)    ac_optarg=yes ;;
996  esac
997
998  # Accept the important Cygnus configure options, so we can diagnose typos.
999
1000  case $ac_dashdash$ac_option in
1001  --)
1002    ac_dashdash=yes ;;
1003
1004  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1005    ac_prev=bindir ;;
1006  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1007    bindir=$ac_optarg ;;
1008
1009  -build | --build | --buil | --bui | --bu)
1010    ac_prev=build_alias ;;
1011  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1012    build_alias=$ac_optarg ;;
1013
1014  -cache-file | --cache-file | --cache-fil | --cache-fi \
1015  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016    ac_prev=cache_file ;;
1017  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1019    cache_file=$ac_optarg ;;
1020
1021  --config-cache | -C)
1022    cache_file=config.cache ;;
1023
1024  -datadir | --datadir | --datadi | --datad)
1025    ac_prev=datadir ;;
1026  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1027    datadir=$ac_optarg ;;
1028
1029  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030  | --dataroo | --dataro | --datar)
1031    ac_prev=datarootdir ;;
1032  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034    datarootdir=$ac_optarg ;;
1035
1036  -disable-* | --disable-*)
1037    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1038    # Reject names that are not valid shell variable names.
1039    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040      as_fn_error "invalid feature name: $ac_useropt"
1041    ac_useropt_orig=$ac_useropt
1042    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043    case $ac_user_opts in
1044      *"
1045"enable_$ac_useropt"
1046"*) ;;
1047      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048         ac_unrecognized_sep=', ';;
1049    esac
1050    eval enable_$ac_useropt=no ;;
1051
1052  -docdir | --docdir | --docdi | --doc | --do)
1053    ac_prev=docdir ;;
1054  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055    docdir=$ac_optarg ;;
1056
1057  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1058    ac_prev=dvidir ;;
1059  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060    dvidir=$ac_optarg ;;
1061
1062  -enable-* | --enable-*)
1063    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064    # Reject names that are not valid shell variable names.
1065    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066      as_fn_error "invalid feature name: $ac_useropt"
1067    ac_useropt_orig=$ac_useropt
1068    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069    case $ac_user_opts in
1070      *"
1071"enable_$ac_useropt"
1072"*) ;;
1073      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1074         ac_unrecognized_sep=', ';;
1075    esac
1076    eval enable_$ac_useropt=\$ac_optarg ;;
1077
1078  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080  | --exec | --exe | --ex)
1081    ac_prev=exec_prefix ;;
1082  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084  | --exec=* | --exe=* | --ex=*)
1085    exec_prefix=$ac_optarg ;;
1086
1087  -gas | --gas | --ga | --g)
1088    # Obsolete; use --with-gas.
1089    with_gas=yes ;;
1090
1091  -help | --help | --hel | --he | -h)
1092    ac_init_help=long ;;
1093  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094    ac_init_help=recursive ;;
1095  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096    ac_init_help=short ;;
1097
1098  -host | --host | --hos | --ho)
1099    ac_prev=host_alias ;;
1100  -host=* | --host=* | --hos=* | --ho=*)
1101    host_alias=$ac_optarg ;;
1102
1103  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104    ac_prev=htmldir ;;
1105  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106  | --ht=*)
1107    htmldir=$ac_optarg ;;
1108
1109  -includedir | --includedir | --includedi | --included | --include \
1110  | --includ | --inclu | --incl | --inc)
1111    ac_prev=includedir ;;
1112  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113  | --includ=* | --inclu=* | --incl=* | --inc=*)
1114    includedir=$ac_optarg ;;
1115
1116  -infodir | --infodir | --infodi | --infod | --info | --inf)
1117    ac_prev=infodir ;;
1118  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119    infodir=$ac_optarg ;;
1120
1121  -libdir | --libdir | --libdi | --libd)
1122    ac_prev=libdir ;;
1123  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124    libdir=$ac_optarg ;;
1125
1126  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127  | --libexe | --libex | --libe)
1128    ac_prev=libexecdir ;;
1129  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130  | --libexe=* | --libex=* | --libe=*)
1131    libexecdir=$ac_optarg ;;
1132
1133  -localedir | --localedir | --localedi | --localed | --locale)
1134    ac_prev=localedir ;;
1135  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136    localedir=$ac_optarg ;;
1137
1138  -localstatedir | --localstatedir | --localstatedi | --localstated \
1139  | --localstate | --localstat | --localsta | --localst | --locals)
1140    ac_prev=localstatedir ;;
1141  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143    localstatedir=$ac_optarg ;;
1144
1145  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146    ac_prev=mandir ;;
1147  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148    mandir=$ac_optarg ;;
1149
1150  -nfp | --nfp | --nf)
1151    # Obsolete; use --without-fp.
1152    with_fp=no ;;
1153
1154  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155  | --no-cr | --no-c | -n)
1156    no_create=yes ;;
1157
1158  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160    no_recursion=yes ;;
1161
1162  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164  | --oldin | --oldi | --old | --ol | --o)
1165    ac_prev=oldincludedir ;;
1166  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169    oldincludedir=$ac_optarg ;;
1170
1171  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172    ac_prev=prefix ;;
1173  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174    prefix=$ac_optarg ;;
1175
1176  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177  | --program-pre | --program-pr | --program-p)
1178    ac_prev=program_prefix ;;
1179  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181    program_prefix=$ac_optarg ;;
1182
1183  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184  | --program-suf | --program-su | --program-s)
1185    ac_prev=program_suffix ;;
1186  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188    program_suffix=$ac_optarg ;;
1189
1190  -program-transform-name | --program-transform-name \
1191  | --program-transform-nam | --program-transform-na \
1192  | --program-transform-n | --program-transform- \
1193  | --program-transform | --program-transfor \
1194  | --program-transfo | --program-transf \
1195  | --program-trans | --program-tran \
1196  | --progr-tra | --program-tr | --program-t)
1197    ac_prev=program_transform_name ;;
1198  -program-transform-name=* | --program-transform-name=* \
1199  | --program-transform-nam=* | --program-transform-na=* \
1200  | --program-transform-n=* | --program-transform-=* \
1201  | --program-transform=* | --program-transfor=* \
1202  | --program-transfo=* | --program-transf=* \
1203  | --program-trans=* | --program-tran=* \
1204  | --progr-tra=* | --program-tr=* | --program-t=*)
1205    program_transform_name=$ac_optarg ;;
1206
1207  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208    ac_prev=pdfdir ;;
1209  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210    pdfdir=$ac_optarg ;;
1211
1212  -psdir | --psdir | --psdi | --psd | --ps)
1213    ac_prev=psdir ;;
1214  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215    psdir=$ac_optarg ;;
1216
1217  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218  | -silent | --silent | --silen | --sile | --sil)
1219    silent=yes ;;
1220
1221  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1222    ac_prev=sbindir ;;
1223  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1224  | --sbi=* | --sb=*)
1225    sbindir=$ac_optarg ;;
1226
1227  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229  | --sharedst | --shareds | --shared | --share | --shar \
1230  | --sha | --sh)
1231    ac_prev=sharedstatedir ;;
1232  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1235  | --sha=* | --sh=*)
1236    sharedstatedir=$ac_optarg ;;
1237
1238  -site | --site | --sit)
1239    ac_prev=site ;;
1240  -site=* | --site=* | --sit=*)
1241    site=$ac_optarg ;;
1242
1243  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1244    ac_prev=srcdir ;;
1245  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246    srcdir=$ac_optarg ;;
1247
1248  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249  | --syscon | --sysco | --sysc | --sys | --sy)
1250    ac_prev=sysconfdir ;;
1251  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253    sysconfdir=$ac_optarg ;;
1254
1255  -target | --target | --targe | --targ | --tar | --ta | --t)
1256    ac_prev=target_alias ;;
1257  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258    target_alias=$ac_optarg ;;
1259
1260  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261    verbose=yes ;;
1262
1263  -version | --version | --versio | --versi | --vers | -V)
1264    ac_init_version=: ;;
1265
1266  -with-* | --with-*)
1267    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268    # Reject names that are not valid shell variable names.
1269    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270      as_fn_error "invalid package name: $ac_useropt"
1271    ac_useropt_orig=$ac_useropt
1272    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273    case $ac_user_opts in
1274      *"
1275"with_$ac_useropt"
1276"*) ;;
1277      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1278         ac_unrecognized_sep=', ';;
1279    esac
1280    eval with_$ac_useropt=\$ac_optarg ;;
1281
1282  -without-* | --without-*)
1283    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1284    # Reject names that are not valid shell variable names.
1285    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286      as_fn_error "invalid package name: $ac_useropt"
1287    ac_useropt_orig=$ac_useropt
1288    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289    case $ac_user_opts in
1290      *"
1291"with_$ac_useropt"
1292"*) ;;
1293      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1294         ac_unrecognized_sep=', ';;
1295    esac
1296    eval with_$ac_useropt=no ;;
1297
1298  --x)
1299    # Obsolete; use --with-x.
1300    with_x=yes ;;
1301
1302  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1303  | --x-incl | --x-inc | --x-in | --x-i)
1304    ac_prev=x_includes ;;
1305  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1306  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1307    x_includes=$ac_optarg ;;
1308
1309  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1310  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1311    ac_prev=x_libraries ;;
1312  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1313  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1314    x_libraries=$ac_optarg ;;
1315
1316  -*) as_fn_error "unrecognized option: \`$ac_option'
1317Try \`$0 --help' for more information."
1318    ;;
1319
1320  *=*)
1321    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322    # Reject names that are not valid shell variable names.
1323    case $ac_envvar in #(
1324      '' | [0-9]* | *[!_$as_cr_alnum]* )
1325      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1326    esac
1327    eval $ac_envvar=\$ac_optarg
1328    export $ac_envvar ;;
1329
1330  *)
1331    # FIXME: should be removed in autoconf 3.0.
1332    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1333    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1334      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1335    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1336    ;;
1337
1338  esac
1339done
1340
1341if test -n "$ac_prev"; then
1342  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1343  as_fn_error "missing argument to $ac_option"
1344fi
1345
1346if test -n "$ac_unrecognized_opts"; then
1347  case $enable_option_checking in
1348    no) ;;
1349    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1350    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1351  esac
1352fi
1353
1354# Check all directory arguments for consistency.
1355for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356                datadir sysconfdir sharedstatedir localstatedir includedir \
1357                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358                libdir localedir mandir
1359do
1360  eval ac_val=\$$ac_var
1361  # Remove trailing slashes.
1362  case $ac_val in
1363    */ )
1364      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1365      eval $ac_var=\$ac_val;;
1366  esac
1367  # Be sure to have absolute directory names.
1368  case $ac_val in
1369    [\\/$]* | ?:[\\/]* )  continue;;
1370    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1371  esac
1372  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1373done
1374
1375# There might be people who depend on the old broken behavior: `$host'
1376# used to hold the argument of --host etc.
1377# FIXME: To remove some day.
1378build=$build_alias
1379host=$host_alias
1380target=$target_alias
1381
1382# FIXME: To remove some day.
1383if test "x$host_alias" != x; then
1384  if test "x$build_alias" = x; then
1385    cross_compiling=maybe
1386    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1387    If a cross compiler is detected then cross compile mode will be used." >&2
1388  elif test "x$build_alias" != "x$host_alias"; then
1389    cross_compiling=yes
1390  fi
1391fi
1392
1393ac_tool_prefix=
1394test -n "$host_alias" && ac_tool_prefix=$host_alias-
1395
1396test "$silent" = yes && exec 6>/dev/null
1397
1398
1399ac_pwd=`pwd` && test -n "$ac_pwd" &&
1400ac_ls_di=`ls -di .` &&
1401ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1402  as_fn_error "working directory cannot be determined"
1403test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404  as_fn_error "pwd does not report name of working directory"
1405
1406
1407# Find the source files, if location was not specified.
1408if test -z "$srcdir"; then
1409  ac_srcdir_defaulted=yes
1410  # Try the directory containing this script, then the parent directory.
1411  ac_confdir=`$as_dirname -- "$as_myself" ||
1412$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1413         X"$as_myself" : 'X\(//\)[^/]' \| \
1414         X"$as_myself" : 'X\(//\)$' \| \
1415         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1416$as_echo X"$as_myself" |
1417    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1418            s//\1/
1419            q
1420          }
1421          /^X\(\/\/\)[^/].*/{
1422            s//\1/
1423            q
1424          }
1425          /^X\(\/\/\)$/{
1426            s//\1/
1427            q
1428          }
1429          /^X\(\/\).*/{
1430            s//\1/
1431            q
1432          }
1433          s/.*/./; q'`
1434  srcdir=$ac_confdir
1435  if test ! -r "$srcdir/$ac_unique_file"; then
1436    srcdir=..
1437  fi
1438else
1439  ac_srcdir_defaulted=no
1440fi
1441if test ! -r "$srcdir/$ac_unique_file"; then
1442  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1443  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1444fi
1445ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1446ac_abs_confdir=`(
1447        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1448        pwd)`
1449# When building in place, set srcdir=.
1450if test "$ac_abs_confdir" = "$ac_pwd"; then
1451  srcdir=.
1452fi
1453# Remove unnecessary trailing slashes from srcdir.
1454# Double slashes in file names in object file debugging info
1455# mess up M-x gdb in Emacs.
1456case $srcdir in
1457*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458esac
1459for ac_var in $ac_precious_vars; do
1460  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461  eval ac_env_${ac_var}_value=\$${ac_var}
1462  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1464done
1465
1466#
1467# Report the --help message.
1468#
1469if test "$ac_init_help" = "long"; then
1470  # Omit some internal or obsolete options to make the list less imposing.
1471  # This message is too long to be a string in the A/UX 3.1 sh.
1472  cat <<_ACEOF
1473\`configure' configures adolc 2.1.5-trunk to adapt to many kinds of systems.
1474
1475Usage: $0 [OPTION]... [VAR=VALUE]...
1476
1477To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478VAR=VALUE.  See below for descriptions of some of the useful variables.
1479
1480Defaults for the options are specified in brackets.
1481
1482Configuration:
1483  -h, --help              display this help and exit
1484      --help=short        display options specific to this package
1485      --help=recursive    display the short help of all the included packages
1486  -V, --version           display version information and exit
1487  -q, --quiet, --silent   do not print \`checking...' messages
1488      --cache-file=FILE   cache test results in FILE [disabled]
1489  -C, --config-cache      alias for \`--cache-file=config.cache'
1490  -n, --no-create         do not create output files
1491      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1492
1493Installation directories:
1494  --prefix=PREFIX         install architecture-independent files in PREFIX
1495                          [$ac_default_prefix]
1496  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1497                          [PREFIX]
1498
1499By default, \`make install' will install all the files in
1500\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1501an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502for instance \`--prefix=\$HOME'.
1503
1504For better control, use the options below.
1505
1506Fine tuning of the installation directories:
1507  --bindir=DIR            user executables [EPREFIX/bin]
1508  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1509  --libexecdir=DIR        program executables [EPREFIX/libexec]
1510  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1511  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1512  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1513  --libdir=DIR            object code libraries [EPREFIX/lib]
1514  --includedir=DIR        C header files [PREFIX/include]
1515  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1516  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1517  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1518  --infodir=DIR           info documentation [DATAROOTDIR/info]
1519  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1520  --mandir=DIR            man documentation [DATAROOTDIR/man]
1521  --docdir=DIR            documentation root [DATAROOTDIR/doc/adolc]
1522  --htmldir=DIR           html documentation [DOCDIR]
1523  --dvidir=DIR            dvi documentation [DOCDIR]
1524  --pdfdir=DIR            pdf documentation [DOCDIR]
1525  --psdir=DIR             ps documentation [DOCDIR]
1526_ACEOF
1527
1528  cat <<\_ACEOF
1529
1530Program names:
1531  --program-prefix=PREFIX            prepend PREFIX to installed program names
1532  --program-suffix=SUFFIX            append SUFFIX to installed program names
1533  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1534
1535System types:
1536  --build=BUILD     configure for building on BUILD [guessed]
1537  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1538_ACEOF
1539fi
1540
1541if test -n "$ac_init_help"; then
1542  case $ac_init_help in
1543     short | recursive ) echo "Configuration of adolc 2.1.5-trunk:";;
1544   esac
1545  cat <<\_ACEOF
1546
1547Optional Features:
1548  --disable-option-checking  ignore unrecognized --enable/--with options
1549  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1550  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1551  --disable-dependency-tracking  speeds up one-time build
1552  --enable-dependency-tracking   do not reject slow dependency extractors
1553  --enable-shared[=PKGS]  build shared libraries [default=yes]
1554  --enable-static[=PKGS]  build static libraries [default=yes]
1555  --enable-fast-install[=PKGS]
1556                          optimize for fast installation [default=yes]
1557  --disable-libtool-lock  avoid locking (might break parallel builds)
1558
1559  --enable-debug          enable ADOL-C debug mode [default=no]
1560
1561  --enable-harddebug      enable ADOL-C hard debug mode [default=no]
1562
1563  --enable-stdczero       adouble standard constructor zeros value (at the
1564                          cost of performance) [default=no]
1565
1566  --enable-tserrno        use errno as thread number cache [default=no]
1567
1568  --enable-safe-extern    backup all adoubles before calling an external
1569                          function [default=no]
1570
1571  --enable-sparse         build sparse drivers [default=disabled]
1572
1573  --enable-docexa         build documented examples [default=disabled]
1574  --enable-addexa         build additional examples [default=disabled]
1575  --enable-parexa         build parallel example [default=disabled], if
1576                          enabled -with-openmp-flag=FLAG required
1577  --enable-shave          use shave to make the build pretty [[default=yes]]
1578
1579Optional Packages:
1580  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1581  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1582  --with-pic              try to use only PIC/non-PIC objects [default=use
1583                          both]
1584  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1585
1586  --with-colpack          path to the colpack library and headers
1587                          [default=${PWD}/ThirdParty/ColPack]
1588  --with-openmp-flag=FLAG use FLAG to enable OpenMP at compile time
1589                          [default=none]
1590  --with-cflags=FLAGS     use CFLAGS=FLAGS (default: -O2)
1591  --with-cxxflags=FLAGS   use CXXFLAGS=FLAGS (default: -O2)
1592
1593Some influential environment variables:
1594  CXX         C++ compiler command
1595  CXXFLAGS    C++ compiler flags
1596  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1597              nonstandard directory <lib dir>
1598  LIBS        libraries to pass to the linker, e.g. -l<library>
1599  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1600              you have headers in a nonstandard directory <include dir>
1601  CC          C compiler command
1602  CFLAGS      C compiler flags
1603  CPP         C preprocessor
1604  CXXCPP      C++ preprocessor
1605
1606Use these variables to override the choices made by `configure' or to help
1607it to find libraries and programs with nonstandard names/locations.
1608
1609Report bugs to <adol-c@list.coin-or.org>.
1610_ACEOF
1611ac_status=$?
1612fi
1613
1614if test "$ac_init_help" = "recursive"; then
1615  # If there are subdirs, report their specific --help.
1616  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1617    test -d "$ac_dir" ||
1618      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1619      continue
1620    ac_builddir=.
1621
1622case "$ac_dir" in
1623.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624*)
1625  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1626  # A ".." for each directory in $ac_dir_suffix.
1627  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1628  case $ac_top_builddir_sub in
1629  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1631  esac ;;
1632esac
1633ac_abs_top_builddir=$ac_pwd
1634ac_abs_builddir=$ac_pwd$ac_dir_suffix
1635# for backward compatibility:
1636ac_top_builddir=$ac_top_build_prefix
1637
1638case $srcdir in
1639  .)  # We are building in place.
1640    ac_srcdir=.
1641    ac_top_srcdir=$ac_top_builddir_sub
1642    ac_abs_top_srcdir=$ac_pwd ;;
1643  [\\/]* | ?:[\\/]* )  # Absolute name.
1644    ac_srcdir=$srcdir$ac_dir_suffix;
1645    ac_top_srcdir=$srcdir
1646    ac_abs_top_srcdir=$srcdir ;;
1647  *) # Relative name.
1648    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649    ac_top_srcdir=$ac_top_build_prefix$srcdir
1650    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1651esac
1652ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1653
1654    cd "$ac_dir" || { ac_status=$?; continue; }
1655    # Check for guested configure.
1656    if test -f "$ac_srcdir/configure.gnu"; then
1657      echo &&
1658      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659    elif test -f "$ac_srcdir/configure"; then
1660      echo &&
1661      $SHELL "$ac_srcdir/configure" --help=recursive
1662    else
1663      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664    fi || ac_status=$?
1665    cd "$ac_pwd" || { ac_status=$?; break; }
1666  done
1667fi
1668
1669test -n "$ac_init_help" && exit $ac_status
1670if $ac_init_version; then
1671  cat <<\_ACEOF
1672adolc configure 2.1.5-trunk
1673generated by GNU Autoconf 2.65
1674
1675Copyright (C) 2009 Free Software Foundation, Inc.
1676This configure script is free software; the Free Software Foundation
1677gives unlimited permission to copy, distribute and modify it.
1678_ACEOF
1679  exit
1680fi
1681
1682## ------------------------ ##
1683## Autoconf initialization. ##
1684## ------------------------ ##
1685
1686# ac_fn_cxx_try_compile LINENO
1687# ----------------------------
1688# Try to compile conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_cxx_try_compile ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  rm -f conftest.$ac_objext
1693  if { { ac_try="$ac_compile"
1694case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700  (eval "$ac_compile") 2>conftest.err
1701  ac_status=$?
1702  if test -s conftest.err; then
1703    grep -v '^ *+' conftest.err >conftest.er1
1704    cat conftest.er1 >&5
1705    mv -f conftest.er1 conftest.err
1706  fi
1707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708  test $ac_status = 0; } && {
1709         test -z "$ac_cxx_werror_flag" ||
1710         test ! -s conftest.err
1711       } && test -s conftest.$ac_objext; then :
1712  ac_retval=0
1713else
1714  $as_echo "$as_me: failed program was:" >&5
1715sed 's/^/| /' conftest.$ac_ext >&5
1716
1717        ac_retval=1
1718fi
1719  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720  as_fn_set_status $ac_retval
1721
1722} # ac_fn_cxx_try_compile
1723
1724# ac_fn_c_try_compile LINENO
1725# --------------------------
1726# Try to compile conftest.$ac_ext, and return whether this succeeded.
1727ac_fn_c_try_compile ()
1728{
1729  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730  rm -f conftest.$ac_objext
1731  if { { ac_try="$ac_compile"
1732case "(($ac_try" in
1733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734  *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738  (eval "$ac_compile") 2>conftest.err
1739  ac_status=$?
1740  if test -s conftest.err; then
1741    grep -v '^ *+' conftest.err >conftest.er1
1742    cat conftest.er1 >&5
1743    mv -f conftest.er1 conftest.err
1744  fi
1745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746  test $ac_status = 0; } && {
1747         test -z "$ac_c_werror_flag" ||
1748         test ! -s conftest.err
1749       } && test -s conftest.$ac_objext; then :
1750  ac_retval=0
1751else
1752  $as_echo "$as_me: failed program was:" >&5
1753sed 's/^/| /' conftest.$ac_ext >&5
1754
1755        ac_retval=1
1756fi
1757  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758  as_fn_set_status $ac_retval
1759
1760} # ac_fn_c_try_compile
1761
1762# ac_fn_c_try_cpp LINENO
1763# ----------------------
1764# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1765ac_fn_c_try_cpp ()
1766{
1767  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768  if { { ac_try="$ac_cpp conftest.$ac_ext"
1769case "(($ac_try" in
1770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771  *) ac_try_echo=$ac_try;;
1772esac
1773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774$as_echo "$ac_try_echo"; } >&5
1775  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1776  ac_status=$?
1777  if test -s conftest.err; then
1778    grep -v '^ *+' conftest.err >conftest.er1
1779    cat conftest.er1 >&5
1780    mv -f conftest.er1 conftest.err
1781  fi
1782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783  test $ac_status = 0; } >/dev/null && {
1784         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1785         test ! -s conftest.err
1786       }; then :
1787  ac_retval=0
1788else
1789  $as_echo "$as_me: failed program was:" >&5
1790sed 's/^/| /' conftest.$ac_ext >&5
1791
1792    ac_retval=1
1793fi
1794  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795  as_fn_set_status $ac_retval
1796
1797} # ac_fn_c_try_cpp
1798
1799# ac_fn_c_try_link LINENO
1800# -----------------------
1801# Try to link conftest.$ac_ext, and return whether this succeeded.
1802ac_fn_c_try_link ()
1803{
1804  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805  rm -f conftest.$ac_objext conftest$ac_exeext
1806  if { { ac_try="$ac_link"
1807case "(($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_link") 2>conftest.err
1814  ac_status=$?
1815  if test -s conftest.err; then
1816    grep -v '^ *+' conftest.err >conftest.er1
1817    cat conftest.er1 >&5
1818    mv -f conftest.er1 conftest.err
1819  fi
1820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821  test $ac_status = 0; } && {
1822         test -z "$ac_c_werror_flag" ||
1823         test ! -s conftest.err
1824       } && test -s conftest$ac_exeext && {
1825         test "$cross_compiling" = yes ||
1826         $as_test_x conftest$ac_exeext
1827       }; then :
1828  ac_retval=0
1829else
1830  $as_echo "$as_me: failed program was:" >&5
1831sed 's/^/| /' conftest.$ac_ext >&5
1832
1833        ac_retval=1
1834fi
1835  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1836  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1837  # interfere with the next link command; also delete a directory that is
1838  # left behind by Apple's compiler.  We do this before executing the actions.
1839  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1841  as_fn_set_status $ac_retval
1842
1843} # ac_fn_c_try_link
1844
1845# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1846# -------------------------------------------------------
1847# Tests whether HEADER exists and can be compiled using the include files in
1848# INCLUDES, setting the cache variable VAR accordingly.
1849ac_fn_c_check_header_compile ()
1850{
1851  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853$as_echo_n "checking for $2... " >&6; }
1854if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1855  $as_echo_n "(cached) " >&6
1856else
1857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858/* end confdefs.h.  */
1859$4
1860#include <$2>
1861_ACEOF
1862if ac_fn_c_try_compile "$LINENO"; then :
1863  eval "$3=yes"
1864else
1865  eval "$3=no"
1866fi
1867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868fi
1869eval ac_res=\$$3
1870               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871$as_echo "$ac_res" >&6; }
1872  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1873
1874} # ac_fn_c_check_header_compile
1875
1876# ac_fn_c_try_run LINENO
1877# ----------------------
1878# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1879# that executables *can* be run.
1880ac_fn_c_try_run ()
1881{
1882  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883  if { { ac_try="$ac_link"
1884case "(($ac_try" in
1885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886  *) ac_try_echo=$ac_try;;
1887esac
1888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889$as_echo "$ac_try_echo"; } >&5
1890  (eval "$ac_link") 2>&5
1891  ac_status=$?
1892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1894  { { case "(($ac_try" in
1895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896  *) ac_try_echo=$ac_try;;
1897esac
1898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899$as_echo "$ac_try_echo"; } >&5
1900  (eval "$ac_try") 2>&5
1901  ac_status=$?
1902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903  test $ac_status = 0; }; }; then :
1904  ac_retval=0
1905else
1906  $as_echo "$as_me: program exited with status $ac_status" >&5
1907       $as_echo "$as_me: failed program was:" >&5
1908sed 's/^/| /' conftest.$ac_ext >&5
1909
1910       ac_retval=$ac_status
1911fi
1912  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914  as_fn_set_status $ac_retval
1915
1916} # ac_fn_c_try_run
1917
1918# ac_fn_c_check_func LINENO FUNC VAR
1919# ----------------------------------
1920# Tests whether FUNC exists, setting the cache variable VAR accordingly
1921ac_fn_c_check_func ()
1922{
1923  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925$as_echo_n "checking for $2... " >&6; }
1926if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927  $as_echo_n "(cached) " >&6
1928else
1929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h.  */
1931/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1932   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1933#define $2 innocuous_$2
1934
1935/* System header to define __stub macros and hopefully few prototypes,
1936    which can conflict with char $2 (); below.
1937    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1938    <limits.h> exists even on freestanding compilers.  */
1939
1940#ifdef __STDC__
1941# include <limits.h>
1942#else
1943# include <assert.h>
1944#endif
1945
1946#undef $2
1947
1948/* Override any GCC internal prototype to avoid an error.
1949   Use char because int might match the return type of a GCC
1950   builtin and then its argument prototype would still apply.  */
1951#ifdef __cplusplus
1952extern "C"
1953#endif
1954char $2 ();
1955/* The GNU C library defines this for functions which it implements
1956    to always fail with ENOSYS.  Some functions are actually named
1957    something starting with __ and the normal name is an alias.  */
1958#if defined __stub_$2 || defined __stub___$2
1959choke me
1960#endif
1961
1962int
1963main ()
1964{
1965return $2 ();
1966  ;
1967  return 0;
1968}
1969_ACEOF
1970if ac_fn_c_try_link "$LINENO"; then :
1971  eval "$3=yes"
1972else
1973  eval "$3=no"
1974fi
1975rm -f core conftest.err conftest.$ac_objext \
1976    conftest$ac_exeext conftest.$ac_ext
1977fi
1978eval ac_res=\$$3
1979               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980$as_echo "$ac_res" >&6; }
1981  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1982
1983} # ac_fn_c_check_func
1984
1985# ac_fn_cxx_try_cpp LINENO
1986# ------------------------
1987# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1988ac_fn_cxx_try_cpp ()
1989{
1990  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991  if { { ac_try="$ac_cpp conftest.$ac_ext"
1992case "(($ac_try" in
1993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994  *) ac_try_echo=$ac_try;;
1995esac
1996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997$as_echo "$ac_try_echo"; } >&5
1998  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1999  ac_status=$?
2000  if test -s conftest.err; then
2001    grep -v '^ *+' conftest.err >conftest.er1
2002    cat conftest.er1 >&5
2003    mv -f conftest.er1 conftest.err
2004  fi
2005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006  test $ac_status = 0; } >/dev/null && {
2007         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2008         test ! -s conftest.err
2009       }; then :
2010  ac_retval=0
2011else
2012  $as_echo "$as_me: failed program was:" >&5
2013sed 's/^/| /' conftest.$ac_ext >&5
2014
2015    ac_retval=1
2016fi
2017  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2018  as_fn_set_status $ac_retval
2019
2020} # ac_fn_cxx_try_cpp
2021
2022# ac_fn_cxx_try_link LINENO
2023# -------------------------
2024# Try to link conftest.$ac_ext, and return whether this succeeded.
2025ac_fn_cxx_try_link ()
2026{
2027  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028  rm -f conftest.$ac_objext conftest$ac_exeext
2029  if { { ac_try="$ac_link"
2030case "(($ac_try" in
2031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032  *) ac_try_echo=$ac_try;;
2033esac
2034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035$as_echo "$ac_try_echo"; } >&5
2036  (eval "$ac_link") 2>conftest.err
2037  ac_status=$?
2038  if test -s conftest.err; then
2039    grep -v '^ *+' conftest.err >conftest.er1
2040    cat conftest.er1 >&5
2041    mv -f conftest.er1 conftest.err
2042  fi
2043  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044  test $ac_status = 0; } && {
2045         test -z "$ac_cxx_werror_flag" ||
2046         test ! -s conftest.err
2047       } && test -s conftest$ac_exeext && {
2048         test "$cross_compiling" = yes ||
2049         $as_test_x conftest$ac_exeext
2050       }; then :
2051  ac_retval=0
2052else
2053  $as_echo "$as_me: failed program was:" >&5
2054sed 's/^/| /' conftest.$ac_ext >&5
2055
2056        ac_retval=1
2057fi
2058  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2059  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2060  # interfere with the next link command; also delete a directory that is
2061  # left behind by Apple's compiler.  We do this before executing the actions.
2062  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2063  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2064  as_fn_set_status $ac_retval
2065
2066} # ac_fn_cxx_try_link
2067
2068# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2069# --------------------------------------------
2070# Tries to find the compile-time value of EXPR in a program that includes
2071# INCLUDES, setting VAR accordingly. Returns whether the value could be
2072# computed
2073ac_fn_c_compute_int ()
2074{
2075  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076  if test "$cross_compiling" = yes; then
2077    # Depending upon the size, compute the lo and hi bounds.
2078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079/* end confdefs.h.  */
2080$4
2081int
2082main ()
2083{
2084static int test_array [1 - 2 * !(($2) >= 0)];
2085test_array [0] = 0
2086
2087  ;
2088  return 0;
2089}
2090_ACEOF
2091if ac_fn_c_try_compile "$LINENO"; then :
2092  ac_lo=0 ac_mid=0
2093  while :; do
2094    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095/* end confdefs.h.  */
2096$4
2097int
2098main ()
2099{
2100static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2101test_array [0] = 0
2102
2103  ;
2104  return 0;
2105}
2106_ACEOF
2107if ac_fn_c_try_compile "$LINENO"; then :
2108  ac_hi=$ac_mid; break
2109else
2110  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2111                        if test $ac_lo -le $ac_mid; then
2112                          ac_lo= ac_hi=
2113                          break
2114                        fi
2115                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2116fi
2117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118  done
2119else
2120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121/* end confdefs.h.  */
2122$4
2123int
2124main ()
2125{
2126static int test_array [1 - 2 * !(($2) < 0)];
2127test_array [0] = 0
2128
2129  ;
2130  return 0;
2131}
2132_ACEOF
2133if ac_fn_c_try_compile "$LINENO"; then :
2134  ac_hi=-1 ac_mid=-1
2135  while :; do
2136    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137/* end confdefs.h.  */
2138$4
2139int
2140main ()
2141{
2142static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2143test_array [0] = 0
2144
2145  ;
2146  return 0;
2147}
2148_ACEOF
2149if ac_fn_c_try_compile "$LINENO"; then :
2150  ac_lo=$ac_mid; break
2151else
2152  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2153                        if test $ac_mid -le $ac_hi; then
2154                          ac_lo= ac_hi=
2155                          break
2156                        fi
2157                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2158fi
2159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160  done
2161else
2162  ac_lo= ac_hi=
2163fi
2164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165fi
2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167# Binary search between lo and hi bounds.
2168while test "x$ac_lo" != "x$ac_hi"; do
2169  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171/* end confdefs.h.  */
2172$4
2173int
2174main ()
2175{
2176static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2177test_array [0] = 0
2178
2179  ;
2180  return 0;
2181}
2182_ACEOF
2183if ac_fn_c_try_compile "$LINENO"; then :
2184  ac_hi=$ac_mid
2185else
2186  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2187fi
2188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189done
2190case $ac_lo in #((
2191?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2192'') ac_retval=1 ;;
2193esac
2194  else
2195    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196/* end confdefs.h.  */
2197$4
2198static long int longval () { return $2; }
2199static unsigned long int ulongval () { return $2; }
2200#include <stdio.h>
2201#include <stdlib.h>
2202int
2203main ()
2204{
2205
2206  FILE *f = fopen ("conftest.val", "w");
2207  if (! f)
2208    return 1;
2209  if (($2) < 0)
2210    {
2211      long int i = longval ();
2212      if (i != ($2))
2213        return 1;
2214      fprintf (f, "%ld", i);
2215    }
2216  else
2217    {
2218      unsigned long int i = ulongval ();
2219      if (i != ($2))
2220        return 1;
2221      fprintf (f, "%lu", i);
2222    }
2223  /* Do not output a trailing newline, as this causes \r\n confusion
2224     on some platforms.  */
2225  return ferror (f) || fclose (f) != 0;
2226
2227  ;
2228  return 0;
2229}
2230_ACEOF
2231if ac_fn_c_try_run "$LINENO"; then :
2232  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2233else
2234  ac_retval=1
2235fi
2236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2237  conftest.$ac_objext conftest.beam conftest.$ac_ext
2238rm -f conftest.val
2239
2240  fi
2241  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2242  as_fn_set_status $ac_retval
2243
2244} # ac_fn_c_compute_int
2245
2246# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2247# -------------------------------------------
2248# Tests whether TYPE exists after having included INCLUDES, setting cache
2249# variable VAR accordingly.
2250ac_fn_c_check_type ()
2251{
2252  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254$as_echo_n "checking for $2... " >&6; }
2255if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2256  $as_echo_n "(cached) " >&6
2257else
2258  eval "$3=no"
2259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260/* end confdefs.h.  */
2261$4
2262int
2263main ()
2264{
2265if (sizeof ($2))
2266         return 0;
2267  ;
2268  return 0;
2269}
2270_ACEOF
2271if ac_fn_c_try_compile "$LINENO"; then :
2272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273/* end confdefs.h.  */
2274$4
2275int
2276main ()
2277{
2278if (sizeof (($2)))
2279            return 0;
2280  ;
2281  return 0;
2282}
2283_ACEOF
2284if ac_fn_c_try_compile "$LINENO"; then :
2285
2286else
2287  eval "$3=yes"
2288fi
2289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290fi
2291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292fi
2293eval ac_res=\$$3
2294               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295$as_echo "$ac_res" >&6; }
2296  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2297
2298} # ac_fn_c_check_type
2299
2300# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2301# -------------------------------------------------------
2302# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2303# the include files in INCLUDES and setting the cache variable VAR
2304# accordingly.
2305ac_fn_c_check_header_mongrel ()
2306{
2307  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2308  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2310$as_echo_n "checking for $2... " >&6; }
2311if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2312  $as_echo_n "(cached) " >&6
2313fi
2314eval ac_res=\$$3
2315               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2316$as_echo "$ac_res" >&6; }
2317else
2318  # Is the header compilable?
2319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2320$as_echo_n "checking $2 usability... " >&6; }
2321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322/* end confdefs.h.  */
2323$4
2324#include <$2>
2325_ACEOF
2326if ac_fn_c_try_compile "$LINENO"; then :
2327  ac_header_compiler=yes
2328else
2329  ac_header_compiler=no
2330fi
2331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2333$as_echo "$ac_header_compiler" >&6; }
2334
2335# Is the header present?
2336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2337$as_echo_n "checking $2 presence... " >&6; }
2338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339/* end confdefs.h.  */
2340#include <$2>
2341_ACEOF
2342if ac_fn_c_try_cpp "$LINENO"; then :
2343  ac_header_preproc=yes
2344else
2345  ac_header_preproc=no
2346fi
2347rm -f conftest.err conftest.$ac_ext
2348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2349$as_echo "$ac_header_preproc" >&6; }
2350
2351# So?  What about this header?
2352case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2353  yes:no: )
2354    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2355$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2356    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2357$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2358    ;;
2359  no:yes:* )
2360    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2361$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2362    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2363$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2364    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2365$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2366    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2367$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2368    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2369$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2370( cat <<\_ASBOX
2371## -------------------------------------- ##
2372## Report this to adol-c@list.coin-or.org ##
2373## -------------------------------------- ##
2374_ASBOX
2375     ) | sed "s/^/$as_me: WARNING:     /" >&2
2376    ;;
2377esac
2378  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2379$as_echo_n "checking for $2... " >&6; }
2380if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2381  $as_echo_n "(cached) " >&6
2382else
2383  eval "$3=\$ac_header_compiler"
2384fi
2385eval ac_res=\$$3
2386               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2387$as_echo "$ac_res" >&6; }
2388fi
2389  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2390
2391} # ac_fn_c_check_header_mongrel
2392cat >config.log <<_ACEOF
2393This file contains any messages produced by compilers while
2394running configure, to aid debugging if configure makes a mistake.
2395
2396It was created by adolc $as_me 2.1.5-trunk, which was
2397generated by GNU Autoconf 2.65.  Invocation command line was
2398
2399  $ $0 $@
2400
2401_ACEOF
2402exec 5>>config.log
2403{
2404cat <<_ASUNAME
2405## --------- ##
2406## Platform. ##
2407## --------- ##
2408
2409hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2410uname -m = `(uname -m) 2>/dev/null || echo unknown`
2411uname -r = `(uname -r) 2>/dev/null || echo unknown`
2412uname -s = `(uname -s) 2>/dev/null || echo unknown`
2413uname -v = `(uname -v) 2>/dev/null || echo unknown`
2414
2415/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2416/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2417
2418/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2419/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2420/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2421/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2422/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2423/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2424/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2425
2426_ASUNAME
2427
2428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429for as_dir in $PATH
2430do
2431  IFS=$as_save_IFS
2432  test -z "$as_dir" && as_dir=.
2433    $as_echo "PATH: $as_dir"
2434  done
2435IFS=$as_save_IFS
2436
2437} >&5
2438
2439cat >&5 <<_ACEOF
2440
2441
2442## ----------- ##
2443## Core tests. ##
2444## ----------- ##
2445
2446_ACEOF
2447
2448
2449# Keep a trace of the command line.
2450# Strip out --no-create and --no-recursion so they do not pile up.
2451# Strip out --silent because we don't want to record it for future runs.
2452# Also quote any args containing shell meta-characters.
2453# Make two passes to allow for proper duplicate-argument suppression.
2454ac_configure_args=
2455ac_configure_args0=
2456ac_configure_args1=
2457ac_must_keep_next=false
2458for ac_pass in 1 2
2459do
2460  for ac_arg
2461  do
2462    case $ac_arg in
2463    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2464    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2465    | -silent | --silent | --silen | --sile | --sil)
2466      continue ;;
2467    *\'*)
2468      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2469    esac
2470    case $ac_pass in
2471    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2472    2)
2473      as_fn_append ac_configure_args1 " '$ac_arg'"
2474      if test $ac_must_keep_next = true; then
2475        ac_must_keep_next=false # Got value, back to normal.
2476      else
2477        case $ac_arg in
2478          *=* | --config-cache | -C | -disable-* | --disable-* \
2479          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2480          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2481          | -with-* | --with-* | -without-* | --without-* | --x)
2482            case "$ac_configure_args0 " in
2483              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2484            esac
2485            ;;
2486          -* ) ac_must_keep_next=true ;;
2487        esac
2488      fi
2489      as_fn_append ac_configure_args " '$ac_arg'"
2490      ;;
2491    esac
2492  done
2493done
2494{ ac_configure_args0=; unset ac_configure_args0;}
2495{ ac_configure_args1=; unset ac_configure_args1;}
2496
2497# When interrupted or exit'd, cleanup temporary files, and complete
2498# config.log.  We remove comments because anyway the quotes in there
2499# would cause problems or look ugly.
2500# WARNING: Use '\'' to represent an apostrophe within the trap.
2501# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2502trap 'exit_status=$?
2503  # Save into config.log some information that might help in debugging.
2504  {
2505    echo
2506
2507    cat <<\_ASBOX
2508## ---------------- ##
2509## Cache variables. ##
2510## ---------------- ##
2511_ASBOX
2512    echo
2513    # The following way of writing the cache mishandles newlines in values,
2514(
2515  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2516    eval ac_val=\$$ac_var
2517    case $ac_val in #(
2518    *${as_nl}*)
2519      case $ac_var in #(
2520      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2521$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2522      esac
2523      case $ac_var in #(
2524      _ | IFS | as_nl) ;; #(
2525      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2526      *) { eval $ac_var=; unset $ac_var;} ;;
2527      esac ;;
2528    esac
2529  done
2530  (set) 2>&1 |
2531    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2532    *${as_nl}ac_space=\ *)
2533      sed -n \
2534        "s/'\''/'\''\\\\'\'''\''/g;
2535          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2536      ;; #(
2537    *)
2538      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2539      ;;
2540    esac |
2541    sort
2542)
2543    echo
2544
2545    cat <<\_ASBOX
2546## ----------------- ##
2547## Output variables. ##
2548## ----------------- ##
2549_ASBOX
2550    echo
2551    for ac_var in $ac_subst_vars
2552    do
2553      eval ac_val=\$$ac_var
2554      case $ac_val in
2555      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2556      esac
2557      $as_echo "$ac_var='\''$ac_val'\''"
2558    done | sort
2559    echo
2560
2561    if test -n "$ac_subst_files"; then
2562      cat <<\_ASBOX
2563## ------------------- ##
2564## File substitutions. ##
2565## ------------------- ##
2566_ASBOX
2567      echo
2568      for ac_var in $ac_subst_files
2569      do
2570        eval ac_val=\$$ac_var
2571        case $ac_val in
2572        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2573        esac
2574        $as_echo "$ac_var='\''$ac_val'\''"
2575      done | sort
2576      echo
2577    fi
2578
2579    if test -s confdefs.h; then
2580      cat <<\_ASBOX
2581## ----------- ##
2582## confdefs.h. ##
2583## ----------- ##
2584_ASBOX
2585      echo
2586      cat confdefs.h
2587      echo
2588    fi
2589    test "$ac_signal" != 0 &&
2590      $as_echo "$as_me: caught signal $ac_signal"
2591    $as_echo "$as_me: exit $exit_status"
2592  } >&5
2593  rm -f core *.core core.conftest.* &&
2594    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2595    exit $exit_status
2596' 0
2597for ac_signal in 1 2 13 15; do
2598  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2599done
2600ac_signal=0
2601
2602# confdefs.h avoids OS command line length limits that DEFS can exceed.
2603rm -f -r conftest* confdefs.h
2604
2605$as_echo "/* confdefs.h */" > confdefs.h
2606
2607# Predefined preprocessor variables.
2608
2609cat >>confdefs.h <<_ACEOF
2610#define PACKAGE_NAME "$PACKAGE_NAME"
2611_ACEOF
2612
2613cat >>confdefs.h <<_ACEOF
2614#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2615_ACEOF
2616
2617cat >>confdefs.h <<_ACEOF
2618#define PACKAGE_VERSION "$PACKAGE_VERSION"
2619_ACEOF
2620
2621cat >>confdefs.h <<_ACEOF
2622#define PACKAGE_STRING "$PACKAGE_STRING"
2623_ACEOF
2624
2625cat >>confdefs.h <<_ACEOF
2626#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2627_ACEOF
2628
2629cat >>confdefs.h <<_ACEOF
2630#define PACKAGE_URL "$PACKAGE_URL"
2631_ACEOF
2632
2633
2634# Let the site file select an alternate cache file if it wants to.
2635# Prefer an explicitly selected file to automatically selected ones.
2636ac_site_file1=NONE
2637ac_site_file2=NONE
2638if test -n "$CONFIG_SITE"; then
2639  ac_site_file1=$CONFIG_SITE
2640elif test "x$prefix" != xNONE; then
2641  ac_site_file1=$prefix/share/config.site
2642  ac_site_file2=$prefix/etc/config.site
2643else
2644  ac_site_file1=$ac_default_prefix/share/config.site
2645  ac_site_file2=$ac_default_prefix/etc/config.site
2646fi
2647for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2648do
2649  test "x$ac_site_file" = xNONE && continue
2650  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2651    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2652$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2653    sed 's/^/| /' "$ac_site_file" >&5
2654    . "$ac_site_file"
2655  fi
2656done
2657
2658if test -r "$cache_file"; then
2659  # Some versions of bash will fail to source /dev/null (special files
2660  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2661  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2662    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2663$as_echo "$as_me: loading cache $cache_file" >&6;}
2664    case $cache_file in
2665      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2666      *)                      . "./$cache_file";;
2667    esac
2668  fi
2669else
2670  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2671$as_echo "$as_me: creating cache $cache_file" >&6;}
2672  >$cache_file
2673fi
2674
2675# Check that the precious variables saved in the cache have kept the same
2676# value.
2677ac_cache_corrupted=false
2678for ac_var in $ac_precious_vars; do
2679  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2680  eval ac_new_set=\$ac_env_${ac_var}_set
2681  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2682  eval ac_new_val=\$ac_env_${ac_var}_value
2683  case $ac_old_set,$ac_new_set in
2684    set,)
2685      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2686$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2687      ac_cache_corrupted=: ;;
2688    ,set)
2689      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2690$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2691      ac_cache_corrupted=: ;;
2692    ,);;
2693    *)
2694      if test "x$ac_old_val" != "x$ac_new_val"; then
2695        # differences in whitespace do not lead to failure.
2696        ac_old_val_w=`echo x $ac_old_val`
2697        ac_new_val_w=`echo x $ac_new_val`
2698        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2699          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2700$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2701          ac_cache_corrupted=:
2702        else
2703          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2704$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2705          eval $ac_var=\$ac_old_val
2706        fi
2707        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2708$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2709        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2710$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2711      fi;;
2712  esac
2713  # Pass precious variables to config.status.
2714  if test "$ac_new_set" = set; then
2715    case $ac_new_val in
2716    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2717    *) ac_arg=$ac_var=$ac_new_val ;;
2718    esac
2719    case " $ac_configure_args " in
2720      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2721      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2722    esac
2723  fi
2724done
2725if $ac_cache_corrupted; then
2726  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2728  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2729$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2730  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2731fi
2732## -------------------- ##
2733## Main body of script. ##
2734## -------------------- ##
2735
2736ac_ext=c
2737ac_cpp='$CPP $CPPFLAGS'
2738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741
2742
2743
2744
2745ac_aux_dir=
2746for ac_dir in autoconf "$srcdir"/autoconf; do
2747  for ac_t in install-sh install.sh shtool; do
2748    if test -f "$ac_dir/$ac_t"; then
2749      ac_aux_dir=$ac_dir
2750      ac_install_sh="$ac_aux_dir/$ac_t -c"
2751      break 2
2752    fi
2753  done
2754done
2755if test -z "$ac_aux_dir"; then
2756  as_fn_error "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2757fi
2758
2759# These three variables are undocumented and unsupported,
2760# and are intended to be withdrawn in a future Autoconf release.
2761# They can cause serious problems if a builder's source tree is in a directory
2762# whose full name contains unusual characters.
2763ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2764ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2765ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2766
2767
2768ac_config_headers="$ac_config_headers ADOL-C/src/config.h"
2769
2770
2771am__api_version='1.11'
2772
2773# Find a good install program.  We prefer a C program (faster),
2774# so one script is as good as another.  But avoid the broken or
2775# incompatible versions:
2776# SysV /etc/install, /usr/sbin/install
2777# SunOS /usr/etc/install
2778# IRIX /sbin/install
2779# AIX /bin/install
2780# AmigaOS /C/install, which installs bootblocks on floppy discs
2781# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2782# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2783# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2784# OS/2's system install, which has a completely different semantic
2785# ./install, which can be erroneously created by make from ./install.sh.
2786# Reject install programs that cannot install multiple files.
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2788$as_echo_n "checking for a BSD-compatible install... " >&6; }
2789if test -z "$INSTALL"; then
2790if test "${ac_cv_path_install+set}" = set; then :
2791  $as_echo_n "(cached) " >&6
2792else
2793  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796  IFS=$as_save_IFS
2797  test -z "$as_dir" && as_dir=.
2798    # Account for people who put trailing slashes in PATH elements.
2799case $as_dir/ in #((
2800  ./ | .// | /[cC]/* | \
2801  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2802  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2803  /usr/ucb/* ) ;;
2804  *)
2805    # OSF1 and SCO ODT 3.0 have their own names for install.
2806    # Don't use installbsd from OSF since it installs stuff as root
2807    # by default.
2808    for ac_prog in ginstall scoinst install; do
2809      for ac_exec_ext in '' $ac_executable_extensions; do
2810        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2811          if test $ac_prog = install &&
2812            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2813            # AIX install.  It has an incompatible calling convention.
2814            :
2815          elif test $ac_prog = install &&
2816            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2817            # program-specific install script used by HP pwplus--don't use.
2818            :
2819          else
2820            rm -rf conftest.one conftest.two conftest.dir
2821            echo one > conftest.one
2822            echo two > conftest.two
2823            mkdir conftest.dir
2824            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2825              test -s conftest.one && test -s conftest.two &&
2826              test -s conftest.dir/conftest.one &&
2827              test -s conftest.dir/conftest.two
2828            then
2829              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2830              break 3
2831            fi
2832          fi
2833        fi
2834      done
2835    done
2836    ;;
2837esac
2838
2839  done
2840IFS=$as_save_IFS
2841
2842rm -rf conftest.one conftest.two conftest.dir
2843
2844fi
2845  if test "${ac_cv_path_install+set}" = set; then
2846    INSTALL=$ac_cv_path_install
2847  else
2848    # As a last resort, use the slow shell script.  Don't cache a
2849    # value for INSTALL within a source directory, because that will
2850    # break other packages using the cache if that directory is
2851    # removed, or if the value is a relative name.
2852    INSTALL=$ac_install_sh
2853  fi
2854fi
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2856$as_echo "$INSTALL" >&6; }
2857
2858# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2859# It thinks the first close brace ends the variable substitution.
2860test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2861
2862test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2863
2864test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2865
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2867$as_echo_n "checking whether build environment is sane... " >&6; }
2868# Just in case
2869sleep 1
2870echo timestamp > conftest.file
2871# Reject unsafe characters in $srcdir or the absolute working directory
2872# name.  Accept space and tab only in the latter.
2873am_lf='
2874'
2875case `pwd` in
2876  *[\\\"\#\$\&\'\`$am_lf]*)
2877    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2878esac
2879case $srcdir in
2880  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2881    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2882esac
2883
2884# Do `set' in a subshell so we don't clobber the current shell's
2885# arguments.  Must try -L first in case configure is actually a
2886# symlink; some systems play weird games with the mod time of symlinks
2887# (eg FreeBSD returns the mod time of the symlink's containing
2888# directory).
2889if (
2890   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2891   if test "$*" = "X"; then
2892      # -L didn't work.
2893      set X `ls -t "$srcdir/configure" conftest.file`
2894   fi
2895   rm -f conftest.file
2896   if test "$*" != "X $srcdir/configure conftest.file" \
2897      && test "$*" != "X conftest.file $srcdir/configure"; then
2898
2899      # If neither matched, then we have a broken ls.  This can happen
2900      # if, for instance, CONFIG_SHELL is bash and it inherits a
2901      # broken ls alias from the environment.  This has actually
2902      # happened.  Such a system could not be considered "sane".
2903      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2904alias in your environment" "$LINENO" 5
2905   fi
2906
2907   test "$2" = conftest.file
2908   )
2909then
2910   # Ok.
2911   :
2912else
2913   as_fn_error "newly created file is older than distributed files!
2914Check your system clock" "$LINENO" 5
2915fi
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2917$as_echo "yes" >&6; }
2918test "$program_prefix" != NONE &&
2919  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2920# Use a double $ so make ignores it.
2921test "$program_suffix" != NONE &&
2922  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2923# Double any \ or $.
2924# By default was `s,x,x', remove it if useless.
2925ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2926program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2927
2928# expand $ac_aux_dir to an absolute path
2929am_aux_dir=`cd $ac_aux_dir && pwd`
2930
2931if test x"${MISSING+set}" != xset; then
2932  case $am_aux_dir in
2933  *\ * | *\     *)
2934    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2935  *)
2936    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2937  esac
2938fi
2939# Use eval to expand $SHELL
2940if eval "$MISSING --run true"; then
2941  am_missing_run="$MISSING --run "
2942else
2943  am_missing_run=
2944  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2945$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2946fi
2947
2948if test x"${install_sh}" != xset; then
2949  case $am_aux_dir in
2950  *\ * | *\     *)
2951    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2952  *)
2953    install_sh="\${SHELL} $am_aux_dir/install-sh"
2954  esac
2955fi
2956
2957# Installed binaries are usually stripped using `strip' when the user
2958# run `make install-strip'.  However `strip' might not be the right
2959# tool to use in cross-compilation environments, therefore Automake
2960# will honor the `STRIP' environment variable to overrule this program.
2961if test "$cross_compiling" != no; then
2962  if test -n "$ac_tool_prefix"; then
2963  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2964set dummy ${ac_tool_prefix}strip; ac_word=$2
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966$as_echo_n "checking for $ac_word... " >&6; }
2967if test "${ac_cv_prog_STRIP+set}" = set; then :
2968  $as_echo_n "(cached) " >&6
2969else
2970  if test -n "$STRIP"; then
2971  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2972else
2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH
2975do
2976  IFS=$as_save_IFS
2977  test -z "$as_dir" && as_dir=.
2978    for ac_exec_ext in '' $ac_executable_extensions; do
2979  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982    break 2
2983  fi
2984done
2985  done
2986IFS=$as_save_IFS
2987
2988fi
2989fi
2990STRIP=$ac_cv_prog_STRIP
2991if test -n "$STRIP"; then
2992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2993$as_echo "$STRIP" >&6; }
2994else
2995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996$as_echo "no" >&6; }
2997fi
2998
2999
3000fi
3001if test -z "$ac_cv_prog_STRIP"; then
3002  ac_ct_STRIP=$STRIP
3003  # Extract the first word of "strip", so it can be a program name with args.
3004set dummy strip; ac_word=$2
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006$as_echo_n "checking for $ac_word... " >&6; }
3007if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3008  $as_echo_n "(cached) " >&6
3009else
3010  if test -n "$ac_ct_STRIP"; then
3011  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3012else
3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH
3015do
3016  IFS=$as_save_IFS
3017  test -z "$as_dir" && as_dir=.
3018    for ac_exec_ext in '' $ac_executable_extensions; do
3019  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020    ac_cv_prog_ac_ct_STRIP="strip"
3021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022    break 2
3023  fi
3024done
3025  done
3026IFS=$as_save_IFS
3027
3028fi
3029fi
3030ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3031if test -n "$ac_ct_STRIP"; then
3032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3033$as_echo "$ac_ct_STRIP" >&6; }
3034else
3035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036$as_echo "no" >&6; }
3037fi
3038
3039  if test "x$ac_ct_STRIP" = x; then
3040    STRIP=":"
3041  else
3042    case $cross_compiling:$ac_tool_warned in
3043yes:)
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3046ac_tool_warned=yes ;;
3047esac
3048    STRIP=$ac_ct_STRIP
3049  fi
3050else
3051  STRIP="$ac_cv_prog_STRIP"
3052fi
3053
3054fi
3055INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3056
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3058$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3059if test -z "$MKDIR_P"; then
3060  if test "${ac_cv_path_mkdir+set}" = set; then :
3061  $as_echo_n "(cached) " >&6
3062else
3063  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3065do
3066  IFS=$as_save_IFS
3067  test -z "$as_dir" && as_dir=.
3068    for ac_prog in mkdir gmkdir; do
3069         for ac_exec_ext in '' $ac_executable_extensions; do
3070           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3071           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3072             'mkdir (GNU coreutils) '* | \
3073             'mkdir (coreutils) '* | \
3074             'mkdir (fileutils) '4.1*)
3075               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3076               break 3;;
3077           esac
3078         done
3079       done
3080  done
3081IFS=$as_save_IFS
3082
3083fi
3084
3085  test -d ./--version && rmdir ./--version
3086  if test "${ac_cv_path_mkdir+set}" = set; then
3087    MKDIR_P="$ac_cv_path_mkdir -p"
3088  else
3089    # As a last resort, use the slow shell script.  Don't cache a
3090    # value for MKDIR_P within a source directory, because that will
3091    # break other packages using the cache if that directory is
3092    # removed, or if the value is a relative name.
3093    MKDIR_P="$ac_install_sh -d"
3094  fi
3095fi
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3097$as_echo "$MKDIR_P" >&6; }
3098
3099mkdir_p="$MKDIR_P"
3100case $mkdir_p in
3101  [\\/$]* | ?:[\\/]*) ;;
3102  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3103esac
3104
3105for ac_prog in gawk mawk nawk awk
3106do
3107  # Extract the first word of "$ac_prog", so it can be a program name with args.
3108set dummy $ac_prog; ac_word=$2
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110$as_echo_n "checking for $ac_word... " >&6; }
3111if test "${ac_cv_prog_AWK+set}" = set; then :
3112  $as_echo_n "(cached) " >&6
3113else
3114  if test -n "$AWK"; then
3115  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3116else
3117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118for as_dir in $PATH
3119do
3120  IFS=$as_save_IFS
3121  test -z "$as_dir" && as_dir=.
3122    for ac_exec_ext in '' $ac_executable_extensions; do
3123  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3124    ac_cv_prog_AWK="$ac_prog"
3125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126    break 2
3127  fi
3128done
3129  done
3130IFS=$as_save_IFS
3131
3132fi
3133fi
3134AWK=$ac_cv_prog_AWK
3135if test -n "$AWK"; then
3136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3137$as_echo "$AWK" >&6; }
3138else
3139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140$as_echo "no" >&6; }
3141fi
3142
3143
3144  test -n "$AWK" && break
3145done
3146
3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3148$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3149set x ${MAKE-make}
3150ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3151if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3152  $as_echo_n "(cached) " >&6
3153else
3154  cat >conftest.make <<\_ACEOF
3155SHELL = /bin/sh
3156all:
3157        @echo '@@@%%%=$(MAKE)=@@@%%%'
3158_ACEOF
3159# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3160case `${MAKE-make} -f conftest.make 2>/dev/null` in
3161  *@@@%%%=?*=@@@%%%*)
3162    eval ac_cv_prog_make_${ac_make}_set=yes;;
3163  *)
3164    eval ac_cv_prog_make_${ac_make}_set=no;;
3165esac
3166rm -f conftest.make
3167fi
3168if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3170$as_echo "yes" >&6; }
3171  SET_MAKE=
3172else
3173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174$as_echo "no" >&6; }
3175  SET_MAKE="MAKE=${MAKE-make}"
3176fi
3177
3178rm -rf .tst 2>/dev/null
3179mkdir .tst 2>/dev/null
3180if test -d .tst; then
3181  am__leading_dot=.
3182else
3183  am__leading_dot=_
3184fi
3185rmdir .tst 2>/dev/null
3186
3187if test "`cd $srcdir && pwd`" != "`pwd`"; then
3188  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3189  # is not polluted with repeated "-I."
3190  am__isrc=' -I$(srcdir)'
3191  # test to see if srcdir already configured
3192  if test -f $srcdir/config.status; then
3193    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3194  fi
3195fi
3196
3197# test whether we have cygpath
3198if test -z "$CYGPATH_W"; then
3199  if (cygpath --version) >/dev/null 2>/dev/null; then
3200    CYGPATH_W='cygpath -w'
3201  else
3202    CYGPATH_W=echo
3203  fi
3204fi
3205
3206
3207# Define the identity of the package.
3208 PACKAGE='adolc'
3209 VERSION='2.1.5-trunk'
3210
3211
3212cat >>confdefs.h <<_ACEOF
3213#define PACKAGE "$PACKAGE"
3214_ACEOF
3215
3216
3217cat >>confdefs.h <<_ACEOF
3218#define VERSION "$VERSION"
3219_ACEOF
3220
3221# Some tools Automake needs.
3222
3223ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3224
3225
3226AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3227
3228
3229AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3230
3231
3232AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3233
3234
3235MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3236
3237# We need awk for the "check" target.  The system "awk" is bad on
3238# some platforms.
3239# Always define AMTAR for backward compatibility.
3240
3241AMTAR=${AMTAR-"${am_missing_run}tar"}
3242
3243am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3244
3245
3246
3247
3248
3249
3250if test x$CFLAGS == x ; then
3251    ac_shell_cflags="not_set"
3252else
3253    ac_shell_cflags="$CFLAGS"
3254fi
3255if test x$CXXFLAGS == x ; then
3256    ac_shell_cxxflags="not_set"
3257else
3258    ac_shell_cxxflags="$CXXFLAGS"
3259fi
3260
3261# checks for programs
3262ac_ext=cpp
3263ac_cpp='$CXXCPP $CPPFLAGS'
3264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3267if test -z "$CXX"; then
3268  if test -n "$CCC"; then
3269    CXX=$CCC
3270  else
3271    if test -n "$ac_tool_prefix"; then
3272  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3273  do
3274    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3275set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277$as_echo_n "checking for $ac_word... " >&6; }
3278if test "${ac_cv_prog_CXX+set}" = set; then :
3279  $as_echo_n "(cached) " >&6
3280else
3281  if test -n "$CXX"; then
3282  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3283else
3284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285for as_dir in $PATH
3286do
3287  IFS=$as_save_IFS
3288  test -z "$as_dir" && as_dir=.
3289    for ac_exec_ext in '' $ac_executable_extensions; do
3290  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3292    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293    break 2
3294  fi
3295done
3296  done
3297IFS=$as_save_IFS
3298
3299fi
3300fi
3301CXX=$ac_cv_prog_CXX
3302if test -n "$CXX"; then
3303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3304$as_echo "$CXX" >&6; }
3305else
3306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307$as_echo "no" >&6; }
3308fi
3309
3310
3311    test -n "$CXX" && break
3312  done
3313fi
3314if test -z "$CXX"; then
3315  ac_ct_CXX=$CXX
3316  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3317do
3318  # Extract the first word of "$ac_prog", so it can be a program name with args.
3319set dummy $ac_prog; ac_word=$2
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321$as_echo_n "checking for $ac_word... " >&6; }
3322if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3323  $as_echo_n "(cached) " >&6
3324else
3325  if test -n "$ac_ct_CXX"; then
3326  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3327else
3328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329for as_dir in $PATH
3330do
3331  IFS=$as_save_IFS
3332  test -z "$as_dir" && as_dir=.
3333    for ac_exec_ext in '' $ac_executable_extensions; do
3334  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3335    ac_cv_prog_ac_ct_CXX="$ac_prog"
3336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337    break 2
3338  fi
3339done
3340  done
3341IFS=$as_save_IFS
3342
3343fi
3344fi
3345ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3346if test -n "$ac_ct_CXX"; then
3347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3348$as_echo "$ac_ct_CXX" >&6; }
3349else
3350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351$as_echo "no" >&6; }
3352fi
3353
3354
3355  test -n "$ac_ct_CXX" && break
3356done
3357
3358  if test "x$ac_ct_CXX" = x; then
3359    CXX="g++"
3360  else
3361    case $cross_compiling:$ac_tool_warned in
3362yes:)
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3365ac_tool_warned=yes ;;
3366esac
3367    CXX=$ac_ct_CXX
3368  fi
3369fi
3370
3371  fi
3372fi
3373# Provide some information about the compiler.
3374$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3375set X $ac_compile
3376ac_compiler=$2
3377for ac_option in --version -v -V -qversion; do
3378  { { ac_try="$ac_compiler $ac_option >&5"
3379case "(($ac_try" in
3380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381  *) ac_try_echo=$ac_try;;
3382esac
3383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384$as_echo "$ac_try_echo"; } >&5
3385  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3386  ac_status=$?
3387  if test -s conftest.err; then
3388    sed '10a\
3389... rest of stderr output deleted ...
3390         10q' conftest.err >conftest.er1
3391    cat conftest.er1 >&5
3392  fi
3393  rm -f conftest.er1 conftest.err
3394  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395  test $ac_status = 0; }
3396done
3397
3398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399/* end confdefs.h.  */
3400
3401int
3402main ()
3403{
3404
3405  ;
3406  return 0;
3407}
3408_ACEOF
3409ac_clean_files_save=$ac_clean_files
3410ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3411# Try to create an executable without -o first, disregard a.out.
3412# It will help us diagnose broken compilers, and finding out an intuition
3413# of exeext.
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3415$as_echo_n "checking whether the C++ compiler works... " >&6; }
3416ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3417
3418# The possible output files:
3419ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3420
3421ac_rmfiles=
3422for ac_file in $ac_files
3423do
3424  case $ac_file in
3425    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3426    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3427  esac
3428done
3429rm -f $ac_rmfiles
3430
3431if { { ac_try="$ac_link_default"
3432case "(($ac_try" in
3433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434  *) ac_try_echo=$ac_try;;
3435esac
3436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437$as_echo "$ac_try_echo"; } >&5
3438  (eval "$ac_link_default") 2>&5
3439  ac_status=$?
3440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441  test $ac_status = 0; }; then :
3442  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3443# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3444# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3445# so that the user can short-circuit this test for compilers unknown to
3446# Autoconf.
3447for ac_file in $ac_files ''
3448do
3449  test -f "$ac_file" || continue
3450  case $ac_file in
3451    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3452        ;;
3453    [ab].out )
3454        # We found the default executable, but exeext='' is most
3455        # certainly right.
3456        break;;
3457    *.* )
3458        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3459        then :; else
3460           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3461        fi
3462        # We set ac_cv_exeext here because the later test for it is not
3463        # safe: cross compilers may not add the suffix if given an `-o'
3464        # argument, so we may need to know it at that point already.
3465        # Even if this section looks crufty: it has the advantage of
3466        # actually working.
3467        break;;
3468    * )
3469        break;;
3470  esac
3471done
3472test "$ac_cv_exeext" = no && ac_cv_exeext=
3473
3474else
3475  ac_file=''
3476fi
3477if test -z "$ac_file"; then :
3478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479$as_echo "no" >&6; }
3480$as_echo "$as_me: failed program was:" >&5
3481sed 's/^/| /' conftest.$ac_ext >&5
3482
3483{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3485{ as_fn_set_status 77
3486as_fn_error "C++ compiler cannot create executables
3487See \`config.log' for more details." "$LINENO" 5; }; }
3488else
3489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3490$as_echo "yes" >&6; }
3491fi
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3493$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3495$as_echo "$ac_file" >&6; }
3496ac_exeext=$ac_cv_exeext
3497
3498rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3499ac_clean_files=$ac_clean_files_save
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3501$as_echo_n "checking for suffix of executables... " >&6; }
3502if { { ac_try="$ac_link"
3503case "(($ac_try" in
3504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505  *) ac_try_echo=$ac_try;;
3506esac
3507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508$as_echo "$ac_try_echo"; } >&5
3509  (eval "$ac_link") 2>&5
3510  ac_status=$?
3511  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512  test $ac_status = 0; }; then :
3513  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3514# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3515# work properly (i.e., refer to `conftest.exe'), while it won't with
3516# `rm'.
3517for ac_file in conftest.exe conftest conftest.*; do
3518  test -f "$ac_file" || continue
3519  case $ac_file in
3520    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3521    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3522          break;;
3523    * ) break;;
3524  esac
3525done
3526else
3527  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3529as_fn_error "cannot compute suffix of executables: cannot compile and link
3530See \`config.log' for more details." "$LINENO" 5; }
3531fi
3532rm -f conftest conftest$ac_cv_exeext
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3534$as_echo "$ac_cv_exeext" >&6; }
3535
3536rm -f conftest.$ac_ext
3537EXEEXT=$ac_cv_exeext
3538ac_exeext=$EXEEXT
3539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540/* end confdefs.h.  */
3541#include <stdio.h>
3542int
3543main ()
3544{
3545FILE *f = fopen ("conftest.out", "w");
3546 return ferror (f) || fclose (f) != 0;
3547
3548  ;
3549  return 0;
3550}
3551_ACEOF
3552ac_clean_files="$ac_clean_files conftest.out"
3553# Check that the compiler produces executables we can run.  If not, either
3554# the compiler is broken, or we cross compile.
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3556$as_echo_n "checking whether we are cross compiling... " >&6; }
3557if test "$cross_compiling" != yes; then
3558  { { ac_try="$ac_link"
3559case "(($ac_try" in
3560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561  *) ac_try_echo=$ac_try;;
3562esac
3563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564$as_echo "$ac_try_echo"; } >&5
3565  (eval "$ac_link") 2>&5
3566  ac_status=$?
3567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568  test $ac_status = 0; }
3569  if { ac_try='./conftest$ac_cv_exeext'
3570  { { case "(($ac_try" in
3571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572  *) ac_try_echo=$ac_try;;
3573esac
3574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575$as_echo "$ac_try_echo"; } >&5
3576  (eval "$ac_try") 2>&5
3577  ac_status=$?
3578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579  test $ac_status = 0; }; }; then
3580    cross_compiling=no
3581  else
3582    if test "$cross_compiling" = maybe; then
3583        cross_compiling=yes
3584    else
3585        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3587as_fn_error "cannot run C++ compiled programs.
3588If you meant to cross compile, use \`--host'.
3589See \`config.log' for more details." "$LINENO" 5; }
3590    fi
3591  fi
3592fi
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3594$as_echo "$cross_compiling" >&6; }
3595
3596rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3597ac_clean_files=$ac_clean_files_save
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3599$as_echo_n "checking for suffix of object files... " >&6; }
3600if test "${ac_cv_objext+set}" = set; then :
3601  $as_echo_n "(cached) " >&6
3602else
3603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604/* end confdefs.h.  */
3605
3606int
3607main ()
3608{
3609
3610  ;
3611  return 0;
3612}
3613_ACEOF
3614rm -f conftest.o conftest.obj
3615if { { ac_try="$ac_compile"
3616case "(($ac_try" in
3617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618  *) ac_try_echo=$ac_try;;
3619esac
3620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621$as_echo "$ac_try_echo"; } >&5
3622  (eval "$ac_compile") 2>&5
3623  ac_status=$?
3624  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625  test $ac_status = 0; }; then :
3626  for ac_file in conftest.o conftest.obj conftest.*; do
3627  test -f "$ac_file" || continue;
3628  case $ac_file in
3629    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3630    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3631       break;;
3632  esac
3633done
3634else
3635  $as_echo "$as_me: failed program was:" >&5
3636sed 's/^/| /' conftest.$ac_ext >&5
3637
3638{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3640as_fn_error "cannot compute suffix of object files: cannot compile
3641See \`config.log' for more details." "$LINENO" 5; }
3642fi
3643rm -f conftest.$ac_cv_objext conftest.$ac_ext
3644fi
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3646$as_echo "$ac_cv_objext" >&6; }
3647OBJEXT=$ac_cv_objext
3648ac_objext=$OBJEXT
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3650$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3651if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3652  $as_echo_n "(cached) " >&6
3653else
3654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655/* end confdefs.h.  */
3656
3657int
3658main ()
3659{
3660#ifndef __GNUC__
3661       choke me
3662#endif
3663
3664  ;
3665  return 0;
3666}
3667_ACEOF
3668if ac_fn_cxx_try_compile "$LINENO"; then :
3669  ac_compiler_gnu=yes
3670else
3671  ac_compiler_gnu=no
3672fi
3673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3675
3676fi
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3678$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3679if test $ac_compiler_gnu = yes; then
3680  GXX=yes
3681else
3682  GXX=
3683fi
3684ac_test_CXXFLAGS=${CXXFLAGS+set}
3685ac_save_CXXFLAGS=$CXXFLAGS
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3687$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3688if test "${ac_cv_prog_cxx_g+set}" = set; then :
3689  $as_echo_n "(cached) " >&6
3690else
3691  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3692   ac_cxx_werror_flag=yes
3693   ac_cv_prog_cxx_g=no
3694   CXXFLAGS="-g"
3695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696/* end confdefs.h.  */
3697
3698int
3699main ()
3700{
3701
3702  ;
3703  return 0;
3704}
3705_ACEOF
3706if ac_fn_cxx_try_compile "$LINENO"; then :
3707  ac_cv_prog_cxx_g=yes
3708else
3709  CXXFLAGS=""
3710      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711/* end confdefs.h.  */
3712
3713int
3714main ()
3715{
3716
3717  ;
3718  return 0;
3719}
3720_ACEOF
3721if ac_fn_cxx_try_compile "$LINENO"; then :
3722
3723else
3724  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3725         CXXFLAGS="-g"
3726         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727/* end confdefs.h.  */
3728
3729int
3730main ()
3731{
3732
3733  ;
3734  return 0;
3735}
3736_ACEOF
3737if ac_fn_cxx_try_compile "$LINENO"; then :
3738  ac_cv_prog_cxx_g=yes
3739fi
3740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741fi
3742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743fi
3744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3746fi
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3748$as_echo "$ac_cv_prog_cxx_g" >&6; }
3749if test "$ac_test_CXXFLAGS" = set; then
3750  CXXFLAGS=$ac_save_CXXFLAGS
3751elif test $ac_cv_prog_cxx_g = yes; then
3752  if test "$GXX" = yes; then
3753    CXXFLAGS="-g -O2"
3754  else
3755    CXXFLAGS="-g"
3756  fi
3757else
3758  if test "$GXX" = yes; then
3759    CXXFLAGS="-O2"
3760  else
3761    CXXFLAGS=
3762  fi
3763fi
3764ac_ext=c
3765ac_cpp='$CPP $CPPFLAGS'
3766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769DEPDIR="${am__leading_dot}deps"
3770
3771ac_config_commands="$ac_config_commands depfiles"
3772
3773
3774am_make=${MAKE-make}
3775cat > confinc << 'END'
3776am__doit:
3777        @echo this is the am__doit target
3778.PHONY: am__doit
3779END
3780# If we don't find an include directive, just comment out the code.
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3782$as_echo_n "checking for style of include used by $am_make... " >&6; }
3783am__include="#"
3784am__quote=
3785_am_result=none
3786# First try GNU make style include.
3787echo "include confinc" > confmf
3788# Ignore all kinds of additional output from `make'.
3789case `$am_make -s -f confmf 2> /dev/null` in #(
3790*the\ am__doit\ target*)
3791  am__include=include
3792  am__quote=
3793  _am_result=GNU
3794  ;;
3795esac
3796# Now try BSD make style include.
3797if test "$am__include" = "#"; then
3798   echo '.include "confinc"' > confmf
3799   case `$am_make -s -f confmf 2> /dev/null` in #(
3800   *the\ am__doit\ target*)
3801     am__include=.include
3802     am__quote="\""
3803     _am_result=BSD
3804     ;;
3805   esac
3806fi
3807
3808
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3810$as_echo "$_am_result" >&6; }
3811rm -f confinc confmf
3812
3813# Check whether --enable-dependency-tracking was given.
3814if test "${enable_dependency_tracking+set}" = set; then :
3815  enableval=$enable_dependency_tracking;
3816fi
3817
3818if test "x$enable_dependency_tracking" != xno; then
3819  am_depcomp="$ac_aux_dir/depcomp"
3820  AMDEPBACKSLASH='\'
3821fi
3822 if test "x$enable_dependency_tracking" != xno; then
3823  AMDEP_TRUE=
3824  AMDEP_FALSE='#'
3825else
3826  AMDEP_TRUE='#'
3827  AMDEP_FALSE=
3828fi
3829
3830
3831
3832depcc="$CXX"  am_compiler_list=
3833
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3835$as_echo_n "checking dependency style of $depcc... " >&6; }
3836if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3837  $as_echo_n "(cached) " >&6
3838else
3839  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3840  # We make a subdir and do the tests there.  Otherwise we can end up
3841  # making bogus files that we don't know about and never remove.  For
3842  # instance it was reported that on HP-UX the gcc test will end up
3843  # making a dummy file named `D' -- because `-MD' means `put the output
3844  # in D'.
3845  mkdir conftest.dir
3846  # Copy depcomp to subdir because otherwise we won't find it if we're
3847  # using a relative directory.
3848  cp "$am_depcomp" conftest.dir
3849  cd conftest.dir
3850  # We will build objects and dependencies in a subdirectory because
3851  # it helps to detect inapplicable dependency modes.  For instance
3852  # both Tru64's cc and ICC support -MD to output dependencies as a
3853  # side effect of compilation, but ICC will put the dependencies in
3854  # the current directory while Tru64 will put them in the object
3855  # directory.
3856  mkdir sub
3857
3858  am_cv_CXX_dependencies_compiler_type=none
3859  if test "$am_compiler_list" = ""; then
3860     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3861  fi
3862  am__universal=false
3863  case " $depcc " in #(
3864     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3865     esac
3866
3867  for depmode in $am_compiler_list; do
3868    # Setup a source with many dependencies, because some compilers
3869    # like to wrap large dependency lists on column 80 (with \), and
3870    # we should not choose a depcomp mode which is confused by this.
3871    #
3872    # We need to recreate these files for each test, as the compiler may
3873    # overwrite some of them when testing with obscure command lines.
3874    # This happens at least with the AIX C compiler.
3875    : > sub/conftest.c
3876    for i in 1 2 3 4 5 6; do
3877      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3878      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3879      # Solaris 8's {/usr,}/bin/sh.
3880      touch sub/conftst$i.h
3881    done
3882    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3883
3884    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3885    # mode.  It turns out that the SunPro C++ compiler does not properly
3886    # handle `-M -o', and we need to detect this.  Also, some Intel
3887    # versions had trouble with output in subdirs
3888    am__obj=sub/conftest.${OBJEXT-o}
3889    am__minus_obj="-o $am__obj"
3890    case $depmode in
3891    gcc)
3892      # This depmode causes a compiler race in universal mode.
3893      test "$am__universal" = false || continue
3894      ;;
3895    nosideeffect)
3896      # after this tag, mechanisms are not by side-effect, so they'll
3897      # only be used when explicitly requested
3898      if test "x$enable_dependency_tracking" = xyes; then
3899        continue
3900      else
3901        break
3902      fi
3903      ;;
3904    msvisualcpp | msvcmsys)
3905      # This compiler won't grok `-c -o', but also, the minuso test has
3906      # not run yet.  These depmodes are late enough in the game, and
3907      # so weak that their functioning should not be impacted.
3908      am__obj=conftest.${OBJEXT-o}
3909      am__minus_obj=
3910      ;;
3911    none) break ;;
3912    esac
3913    if depmode=$depmode \
3914       source=sub/conftest.c object=$am__obj \
3915       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3916       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3917         >/dev/null 2>conftest.err &&
3918       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3919       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3920       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3921       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3922      # icc doesn't choke on unknown options, it will just issue warnings
3923      # or remarks (even with -Werror).  So we grep stderr for any message
3924      # that says an option was ignored or not supported.
3925      # When given -MP, icc 7.0 and 7.1 complain thusly:
3926      #   icc: Command line warning: ignoring option '-M'; no argument required
3927      # The diagnosis changed in icc 8.0:
3928      #   icc: Command line remark: option '-MP' not supported
3929      if (grep 'ignoring option' conftest.err ||
3930          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3931        am_cv_CXX_dependencies_compiler_type=$depmode
3932        break
3933      fi
3934    fi
3935  done
3936
3937  cd ..
3938  rm -rf conftest.dir
3939else
3940  am_cv_CXX_dependencies_compiler_type=none
3941fi
3942
3943fi
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3945$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3946CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3947
3948 if
3949  test "x$enable_dependency_tracking" != xno \
3950  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3951  am__fastdepCXX_TRUE=
3952  am__fastdepCXX_FALSE='#'
3953else
3954  am__fastdepCXX_TRUE='#'
3955  am__fastdepCXX_FALSE=
3956fi
3957
3958
3959ac_ext=c
3960ac_cpp='$CPP $CPPFLAGS'
3961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964if test -n "$ac_tool_prefix"; then
3965  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3966set dummy ${ac_tool_prefix}gcc; ac_word=$2
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3968$as_echo_n "checking for $ac_word... " >&6; }
3969if test "${ac_cv_prog_CC+set}" = set; then :
3970  $as_echo_n "(cached) " >&6
3971else
3972  if test -n "$CC"; then
3973  ac_cv_prog_CC="$CC" # Let the user override the test.
3974else
3975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976for as_dir in $PATH
3977do
3978  IFS=$as_save_IFS
3979  test -z "$as_dir" && as_dir=.
3980    for ac_exec_ext in '' $ac_executable_extensions; do
3981  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3982    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3983    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3984    break 2
3985  fi
3986done
3987  done
3988IFS=$as_save_IFS
3989
3990fi
3991fi
3992CC=$ac_cv_prog_CC
3993if test -n "$CC"; then
3994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3995$as_echo "$CC" >&6; }
3996else
3997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998$as_echo "no" >&6; }
3999fi
4000
4001
4002fi
4003if test -z "$ac_cv_prog_CC"; then
4004  ac_ct_CC=$CC
4005  # Extract the first word of "gcc", so it can be a program name with args.
4006set dummy gcc; ac_word=$2
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4008$as_echo_n "checking for $ac_word... " >&6; }
4009if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4010  $as_echo_n "(cached) " >&6
4011else
4012  if test -n "$ac_ct_CC"; then
4013  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4014else
4015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016for as_dir in $PATH
4017do
4018  IFS=$as_save_IFS
4019  test -z "$as_dir" && as_dir=.
4020    for ac_exec_ext in '' $ac_executable_extensions; do
4021  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4022    ac_cv_prog_ac_ct_CC="gcc"
4023    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4024    break 2
4025  fi
4026done
4027  done
4028IFS=$as_save_IFS
4029
4030fi
4031fi
4032ac_ct_CC=$ac_cv_prog_ac_ct_CC
4033if test -n "$ac_ct_CC"; then
4034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4035$as_echo "$ac_ct_CC" >&6; }
4036else
4037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038$as_echo "no" >&6; }
4039fi
4040
4041  if test "x$ac_ct_CC" = x; then
4042    CC=""
4043  else
4044    case $cross_compiling:$ac_tool_warned in
4045yes:)
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4048ac_tool_warned=yes ;;
4049esac
4050    CC=$ac_ct_CC
4051  fi
4052else
4053  CC="$ac_cv_prog_CC"
4054fi
4055
4056if test -z "$CC"; then
4057          if test -n "$ac_tool_prefix"; then
4058    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4059set dummy ${ac_tool_prefix}cc; ac_word=$2
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4061$as_echo_n "checking for $ac_word... " >&6; }
4062if test "${ac_cv_prog_CC+set}" = set; then :
4063  $as_echo_n "(cached) " >&6
4064else
4065  if test -n "$CC"; then
4066  ac_cv_prog_CC="$CC" # Let the user override the test.
4067else
4068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069for as_dir in $PATH
4070do
4071  IFS=$as_save_IFS
4072  test -z "$as_dir" && as_dir=.
4073    for ac_exec_ext in '' $ac_executable_extensions; do
4074  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075    ac_cv_prog_CC="${ac_tool_prefix}cc"
4076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4077    break 2
4078  fi
4079done
4080  done
4081IFS=$as_save_IFS
4082
4083fi
4084fi
4085CC=$ac_cv_prog_CC
4086if test -n "$CC"; then
4087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4088$as_echo "$CC" >&6; }
4089else
4090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091$as_echo "no" >&6; }
4092fi
4093
4094
4095  fi
4096fi
4097if test -z "$CC"; then
4098  # Extract the first word of "cc", so it can be a program name with args.
4099set dummy cc; ac_word=$2
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4101$as_echo_n "checking for $ac_word... " >&6; }
4102if test "${ac_cv_prog_CC+set}" = set; then :
4103  $as_echo_n "(cached) " >&6
4104else
4105  if test -n "$CC"; then
4106  ac_cv_prog_CC="$CC" # Let the user override the test.
4107else
4108  ac_prog_rejected=no
4109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110for as_dir in $PATH
4111do
4112  IFS=$as_save_IFS
4113  test -z "$as_dir" && as_dir=.
4114    for ac_exec_ext in '' $ac_executable_extensions; do
4115  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4116    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4117       ac_prog_rejected=yes
4118       continue
4119     fi
4120    ac_cv_prog_CC="cc"
4121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4122    break 2
4123  fi
4124done
4125  done
4126IFS=$as_save_IFS
4127
4128if test $ac_prog_rejected = yes; then
4129  # We found a bogon in the path, so make sure we never use it.
4130  set dummy $ac_cv_prog_CC
4131  shift
4132  if test $# != 0; then
4133    # We chose a different compiler from the bogus one.
4134    # However, it has the same basename, so the bogon will be chosen
4135    # first if we set CC to just the basename; use the full file name.
4136    shift
4137    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4138  fi
4139fi
4140fi
4141fi
4142CC=$ac_cv_prog_CC
4143if test -n "$CC"; then
4144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4145$as_echo "$CC" >&6; }
4146else
4147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148$as_echo "no" >&6; }
4149fi
4150
4151
4152fi
4153if test -z "$CC"; then
4154  if test -n "$ac_tool_prefix"; then
4155  for ac_prog in cl.exe
4156  do
4157    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4158set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160$as_echo_n "checking for $ac_word... " >&6; }
4161if test "${ac_cv_prog_CC+set}" = set; then :
4162  $as_echo_n "(cached) " >&6
4163else
4164  if test -n "$CC"; then
4165  ac_cv_prog_CC="$CC" # Let the user override the test.
4166else
4167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168for as_dir in $PATH
4169do
4170  IFS=$as_save_IFS
4171  test -z "$as_dir" && as_dir=.
4172    for ac_exec_ext in '' $ac_executable_extensions; do
4173  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4174    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4176    break 2
4177  fi
4178done
4179  done
4180IFS=$as_save_IFS
4181
4182fi
4183fi
4184CC=$ac_cv_prog_CC
4185if test -n "$CC"; then
4186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4187$as_echo "$CC" >&6; }
4188else
4189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190$as_echo "no" >&6; }
4191fi
4192
4193
4194    test -n "$CC" && break
4195  done
4196fi
4197if test -z "$CC"; then
4198  ac_ct_CC=$CC
4199  for ac_prog in cl.exe
4200do
4201  # Extract the first word of "$ac_prog", so it can be a program name with args.
4202set dummy $ac_prog; ac_word=$2
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204$as_echo_n "checking for $ac_word... " >&6; }
4205if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4206  $as_echo_n "(cached) " >&6
4207else
4208  if test -n "$ac_ct_CC"; then
4209  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4210else
4211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212for as_dir in $PATH
4213do
4214  IFS=$as_save_IFS
4215  test -z "$as_dir" && as_dir=.
4216    for ac_exec_ext in '' $ac_executable_extensions; do
4217  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218    ac_cv_prog_ac_ct_CC="$ac_prog"
4219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4220    break 2
4221  fi
4222done
4223  done
4224IFS=$as_save_IFS
4225
4226fi
4227fi
4228ac_ct_CC=$ac_cv_prog_ac_ct_CC
4229if test -n "$ac_ct_CC"; then
4230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4231$as_echo "$ac_ct_CC" >&6; }
4232else
4233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234$as_echo "no" >&6; }
4235fi
4236
4237
4238  test -n "$ac_ct_CC" && break
4239done
4240
4241  if test "x$ac_ct_CC" = x; then
4242    CC=""
4243  else
4244    case $cross_compiling:$ac_tool_warned in
4245yes:)
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4248ac_tool_warned=yes ;;
4249esac
4250    CC=$ac_ct_CC
4251  fi
4252fi
4253
4254fi
4255
4256
4257test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4259as_fn_error "no acceptable C compiler found in \$PATH
4260See \`config.log' for more details." "$LINENO" 5; }
4261
4262# Provide some information about the compiler.
4263$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4264set X $ac_compile
4265ac_compiler=$2
4266for ac_option in --version -v -V -qversion; do
4267  { { ac_try="$ac_compiler $ac_option >&5"
4268case "(($ac_try" in
4269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270  *) ac_try_echo=$ac_try;;
4271esac
4272eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273$as_echo "$ac_try_echo"; } >&5
4274  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4275  ac_status=$?
4276  if test -s conftest.err; then
4277    sed '10a\
4278... rest of stderr output deleted ...
4279         10q' conftest.err >conftest.er1
4280    cat conftest.er1 >&5
4281  fi
4282  rm -f conftest.er1 conftest.err
4283  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4284  test $ac_status = 0; }
4285done
4286
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4288$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4289if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4290  $as_echo_n "(cached) " >&6
4291else
4292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293/* end confdefs.h.  */
4294
4295int
4296main ()
4297{
4298#ifndef __GNUC__
4299       choke me
4300#endif
4301
4302  ;
4303  return 0;
4304}
4305_ACEOF
4306if ac_fn_c_try_compile "$LINENO"; then :
4307  ac_compiler_gnu=yes
4308else
4309  ac_compiler_gnu=no
4310fi
4311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312ac_cv_c_compiler_gnu=$ac_compiler_gnu
4313
4314fi
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4316$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4317if test $ac_compiler_gnu = yes; then
4318  GCC=yes
4319else
4320  GCC=
4321fi
4322ac_test_CFLAGS=${CFLAGS+set}
4323ac_save_CFLAGS=$CFLAGS
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4325$as_echo_n "checking whether $CC accepts -g... " >&6; }
4326if test "${ac_cv_prog_cc_g+set}" = set; then :
4327  $as_echo_n "(cached) " >&6
4328else
4329  ac_save_c_werror_flag=$ac_c_werror_flag
4330   ac_c_werror_flag=yes
4331   ac_cv_prog_cc_g=no
4332   CFLAGS="-g"
4333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334/* end confdefs.h.  */
4335
4336int
4337main ()
4338{
4339
4340  ;
4341  return 0;
4342}
4343_ACEOF
4344if ac_fn_c_try_compile "$LINENO"; then :
4345  ac_cv_prog_cc_g=yes
4346else
4347  CFLAGS=""
4348      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349/* end confdefs.h.  */
4350
4351int
4352main ()
4353{
4354
4355  ;
4356  return 0;
4357}
4358_ACEOF
4359if ac_fn_c_try_compile "$LINENO"; then :
4360
4361else
4362  ac_c_werror_flag=$ac_save_c_werror_flag
4363         CFLAGS="-g"
4364         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365/* end confdefs.h.  */
4366
4367int
4368main ()
4369{
4370
4371  ;
4372  return 0;
4373}
4374_ACEOF
4375if ac_fn_c_try_compile "$LINENO"; then :
4376  ac_cv_prog_cc_g=yes
4377fi
4378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379fi
4380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381fi
4382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383   ac_c_werror_flag=$ac_save_c_werror_flag
4384fi
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4386$as_echo "$ac_cv_prog_cc_g" >&6; }
4387if test "$ac_test_CFLAGS" = set; then
4388  CFLAGS=$ac_save_CFLAGS
4389elif test $ac_cv_prog_cc_g = yes; then
4390  if test "$GCC" = yes; then
4391    CFLAGS="-g -O2"
4392  else
4393    CFLAGS="-g"
4394  fi
4395else
4396  if test "$GCC" = yes; then
4397    CFLAGS="-O2"
4398  else
4399    CFLAGS=
4400  fi
4401fi
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4403$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4404if test "${ac_cv_prog_cc_c89+set}" = set; then :
4405  $as_echo_n "(cached) " >&6
4406else
4407  ac_cv_prog_cc_c89=no
4408ac_save_CC=$CC
4409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410/* end confdefs.h.  */
4411#include <stdarg.h>
4412#include <stdio.h>
4413#include <sys/types.h>
4414#include <sys/stat.h>
4415/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4416struct buf { int x; };
4417FILE * (*rcsopen) (struct buf *, struct stat *, int);
4418static char *e (p, i)
4419     char **p;
4420     int i;
4421{
4422  return p[i];
4423}
4424static char *f (char * (*g) (char **, int), char **p, ...)
4425{
4426  char *s;
4427  va_list v;
4428  va_start (v,p);
4429  s = g (p, va_arg (v,int));
4430  va_end (v);
4431  return s;
4432}
4433
4434/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4435   function prototypes and stuff, but not '\xHH' hex character constants.
4436   These don't provoke an error unfortunately, instead are silently treated
4437   as 'x'.  The following induces an error, until -std is added to get
4438   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4439   array size at least.  It's necessary to write '\x00'==0 to get something
4440   that's true only with -std.  */
4441int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4442
4443/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4444   inside strings and character constants.  */
4445#define FOO(x) 'x'
4446int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4447
4448int test (int i, double x);
4449struct s1 {int (*f) (int a);};
4450struct s2 {int (*f) (double a);};
4451int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4452int argc;
4453char **argv;
4454int
4455main ()
4456{
4457return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4458  ;
4459  return 0;
4460}
4461_ACEOF
4462for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4463        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4464do
4465  CC="$ac_save_CC $ac_arg"
4466  if ac_fn_c_try_compile "$LINENO"; then :
4467  ac_cv_prog_cc_c89=$ac_arg
4468fi
4469rm -f core conftest.err conftest.$ac_objext
4470  test "x$ac_cv_prog_cc_c89" != "xno" && break
4471done
4472rm -f conftest.$ac_ext
4473CC=$ac_save_CC
4474
4475fi
4476# AC_CACHE_VAL
4477case "x$ac_cv_prog_cc_c89" in
4478  x)
4479    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4480$as_echo "none needed" >&6; } ;;
4481  xno)
4482    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4483$as_echo "unsupported" >&6; } ;;
4484  *)
4485    CC="$CC $ac_cv_prog_cc_c89"
4486    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4487$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4488esac
4489if test "x$ac_cv_prog_cc_c89" != xno; then :
4490
4491fi
4492
4493ac_ext=c
4494ac_cpp='$CPP $CPPFLAGS'
4495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497ac_compiler_gnu=$ac_cv_c_compiler_gnu
4498
4499depcc="$CC"   am_compiler_list=
4500
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4502$as_echo_n "checking dependency style of $depcc... " >&6; }
4503if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4504  $as_echo_n "(cached) " >&6
4505else
4506  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4507  # We make a subdir and do the tests there.  Otherwise we can end up
4508  # making bogus files that we don't know about and never remove.  For
4509  # instance it was reported that on HP-UX the gcc test will end up
4510  # making a dummy file named `D' -- because `-MD' means `put the output
4511  # in D'.
4512  mkdir conftest.dir
4513  # Copy depcomp to subdir because otherwise we won't find it if we're
4514  # using a relative directory.
4515  cp "$am_depcomp" conftest.dir
4516  cd conftest.dir
4517  # We will build objects and dependencies in a subdirectory because
4518  # it helps to detect inapplicable dependency modes.  For instance
4519  # both Tru64's cc and ICC support -MD to output dependencies as a
4520  # side effect of compilation, but ICC will put the dependencies in
4521  # the current directory while Tru64 will put them in the object
4522  # directory.
4523  mkdir sub
4524
4525  am_cv_CC_dependencies_compiler_type=none
4526  if test "$am_compiler_list" = ""; then
4527     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4528  fi
4529  am__universal=false
4530  case " $depcc " in #(
4531     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4532     esac
4533
4534  for depmode in $am_compiler_list; do
4535    # Setup a source with many dependencies, because some compilers
4536    # like to wrap large dependency lists on column 80 (with \), and
4537    # we should not choose a depcomp mode which is confused by this.
4538    #
4539    # We need to recreate these files for each test, as the compiler may
4540    # overwrite some of them when testing with obscure command lines.
4541    # This happens at least with the AIX C compiler.
4542    : > sub/conftest.c
4543    for i in 1 2 3 4 5 6; do
4544      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4545      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4546      # Solaris 8's {/usr,}/bin/sh.
4547      touch sub/conftst$i.h
4548    done
4549    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4550
4551    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4552    # mode.  It turns out that the SunPro C++ compiler does not properly
4553    # handle `-M -o', and we need to detect this.  Also, some Intel
4554    # versions had trouble with output in subdirs
4555    am__obj=sub/conftest.${OBJEXT-o}
4556    am__minus_obj="-o $am__obj"
4557    case $depmode in
4558    gcc)
4559      # This depmode causes a compiler race in universal mode.
4560      test "$am__universal" = false || continue
4561      ;;
4562    nosideeffect)
4563      # after this tag, mechanisms are not by side-effect, so they'll
4564      # only be used when explicitly requested
4565      if test "x$enable_dependency_tracking" = xyes; then
4566        continue
4567      else
4568        break
4569      fi
4570      ;;
4571    msvisualcpp | msvcmsys)
4572      # This compiler won't grok `-c -o', but also, the minuso test has
4573      # not run yet.  These depmodes are late enough in the game, and
4574      # so weak that their functioning should not be impacted.
4575      am__obj=conftest.${OBJEXT-o}
4576      am__minus_obj=
4577      ;;
4578    none) break ;;
4579    esac
4580    if depmode=$depmode \
4581       source=sub/conftest.c object=$am__obj \
4582       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4583       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4584         >/dev/null 2>conftest.err &&
4585       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4586       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4587       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4588       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4589      # icc doesn't choke on unknown options, it will just issue warnings
4590      # or remarks (even with -Werror).  So we grep stderr for any message
4591      # that says an option was ignored or not supported.
4592      # When given -MP, icc 7.0 and 7.1 complain thusly:
4593      #   icc: Command line warning: ignoring option '-M'; no argument required
4594      # The diagnosis changed in icc 8.0:
4595      #   icc: Command line remark: option '-MP' not supported
4596      if (grep 'ignoring option' conftest.err ||
4597          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4598        am_cv_CC_dependencies_compiler_type=$depmode
4599        break
4600      fi
4601    fi
4602  done
4603
4604  cd ..
4605  rm -rf conftest.dir
4606else
4607  am_cv_CC_dependencies_compiler_type=none
4608fi
4609
4610fi
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4612$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4613CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4614
4615 if
4616  test "x$enable_dependency_tracking" != xno \
4617  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4618  am__fastdepCC_TRUE=
4619  am__fastdepCC_FALSE='#'
4620else
4621  am__fastdepCC_TRUE='#'
4622  am__fastdepCC_FALSE=
4623fi
4624
4625
4626ac_ext=c
4627ac_cpp='$CPP $CPPFLAGS'
4628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630ac_compiler_gnu=$ac_cv_c_compiler_gnu
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4632$as_echo_n "checking how to run the C preprocessor... " >&6; }
4633# On Suns, sometimes $CPP names a directory.
4634if test -n "$CPP" && test -d "$CPP"; then
4635  CPP=
4636fi
4637if test -z "$CPP"; then
4638  if test "${ac_cv_prog_CPP+set}" = set; then :
4639  $as_echo_n "(cached) " >&6
4640else
4641      # Double quotes because CPP needs to be expanded
4642    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4643    do
4644      ac_preproc_ok=false
4645for ac_c_preproc_warn_flag in '' yes
4646do
4647  # Use a header file that comes with gcc, so configuring glibc
4648  # with a fresh cross-compiler works.
4649  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4650  # <limits.h> exists even on freestanding compilers.
4651  # On the NeXT, cc -E runs the code through the compiler's parser,
4652  # not just through cpp. "Syntax error" is here to catch this case.
4653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654/* end confdefs.h.  */
4655#ifdef __STDC__
4656# include <limits.h>
4657#else
4658# include <assert.h>
4659#endif
4660                     Syntax error
4661_ACEOF
4662if ac_fn_c_try_cpp "$LINENO"; then :
4663
4664else
4665  # Broken: fails on valid input.
4666continue
4667fi
4668rm -f conftest.err conftest.$ac_ext
4669
4670  # OK, works on sane cases.  Now check whether nonexistent headers
4671  # can be detected and how.
4672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673/* end confdefs.h.  */
4674#include <ac_nonexistent.h>
4675_ACEOF
4676if ac_fn_c_try_cpp "$LINENO"; then :
4677  # Broken: success on invalid input.
4678continue
4679else
4680  # Passes both tests.
4681ac_preproc_ok=:
4682break
4683fi
4684rm -f conftest.err conftest.$ac_ext
4685
4686done
4687# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4688rm -f conftest.err conftest.$ac_ext
4689if $ac_preproc_ok; then :
4690  break
4691fi
4692
4693    done
4694    ac_cv_prog_CPP=$CPP
4695
4696fi
4697  CPP=$ac_cv_prog_CPP
4698else
4699  ac_cv_prog_CPP=$CPP
4700fi
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4702$as_echo "$CPP" >&6; }
4703ac_preproc_ok=false
4704for ac_c_preproc_warn_flag in '' yes
4705do
4706  # Use a header file that comes with gcc, so configuring glibc
4707  # with a fresh cross-compiler works.
4708  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4709  # <limits.h> exists even on freestanding compilers.
4710  # On the NeXT, cc -E runs the code through the compiler's parser,
4711  # not just through cpp. "Syntax error" is here to catch this case.
4712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713/* end confdefs.h.  */
4714#ifdef __STDC__
4715# include <limits.h>
4716#else
4717# include <assert.h>
4718#endif
4719                     Syntax error
4720_ACEOF
4721if ac_fn_c_try_cpp "$LINENO"; then :
4722
4723else
4724  # Broken: fails on valid input.
4725continue
4726fi
4727rm -f conftest.err conftest.$ac_ext
4728
4729  # OK, works on sane cases.  Now check whether nonexistent headers
4730  # can be detected and how.
4731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732/* end confdefs.h.  */
4733#include <ac_nonexistent.h>
4734_ACEOF
4735if ac_fn_c_try_cpp "$LINENO"; then :
4736  # Broken: success on invalid input.
4737continue
4738else
4739  # Passes both tests.
4740ac_preproc_ok=:
4741break
4742fi
4743rm -f conftest.err conftest.$ac_ext
4744
4745done
4746# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4747rm -f conftest.err conftest.$ac_ext
4748if $ac_preproc_ok; then :
4749
4750else
4751  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4753as_fn_error "C preprocessor \"$CPP\" fails sanity check
4754See \`config.log' for more details." "$LINENO" 5; }
4755fi
4756
4757ac_ext=c
4758ac_cpp='$CPP $CPPFLAGS'
4759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761ac_compiler_gnu=$ac_cv_c_compiler_gnu
4762
4763
4764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4765$as_echo_n "checking whether ln -s works... " >&6; }
4766LN_S=$as_ln_s
4767if test "$LN_S" = "ln -s"; then
4768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4769$as_echo "yes" >&6; }
4770else
4771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4772$as_echo "no, using $LN_S" >&6; }
4773fi
4774
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4776$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4777set x ${MAKE-make}
4778ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4779if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4780  $as_echo_n "(cached) " >&6
4781else
4782  cat >conftest.make <<\_ACEOF
4783SHELL = /bin/sh
4784all:
4785        @echo '@@@%%%=$(MAKE)=@@@%%%'
4786_ACEOF
4787# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4788case `${MAKE-make} -f conftest.make 2>/dev/null` in
4789  *@@@%%%=?*=@@@%%%*)
4790    eval ac_cv_prog_make_${ac_make}_set=yes;;
4791  *)
4792    eval ac_cv_prog_make_${ac_make}_set=no;;
4793esac
4794rm -f conftest.make
4795fi
4796if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4798$as_echo "yes" >&6; }
4799  SET_MAKE=
4800else
4801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802$as_echo "no" >&6; }
4803  SET_MAKE="MAKE=${MAKE-make}"
4804fi
4805
4806# Make sure we can run config.sub.
4807$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4808  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4809
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4811$as_echo_n "checking build system type... " >&6; }
4812if test "${ac_cv_build+set}" = set; then :
4813  $as_echo_n "(cached) " >&6
4814else
4815  ac_build_alias=$build_alias
4816test "x$ac_build_alias" = x &&
4817  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4818test "x$ac_build_alias" = x &&
4819  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4820ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4821  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4822
4823fi
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4825$as_echo "$ac_cv_build" >&6; }
4826case $ac_cv_build in
4827*-*-*) ;;
4828*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4829esac
4830build=$ac_cv_build
4831ac_save_IFS=$IFS; IFS='-'
4832set x $ac_cv_build
4833shift
4834build_cpu=$1
4835build_vendor=$2
4836shift; shift
4837# Remember, the first character of IFS is used to create $*,
4838# except with old shells:
4839build_os=$*
4840IFS=$ac_save_IFS
4841case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4842
4843
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4845$as_echo_n "checking host system type... " >&6; }
4846if test "${ac_cv_host+set}" = set; then :
4847  $as_echo_n "(cached) " >&6
4848else
4849  if test "x$host_alias" = x; then
4850  ac_cv_host=$ac_cv_build
4851else
4852  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4853    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4854fi
4855
4856fi
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4858$as_echo "$ac_cv_host" >&6; }
4859case $ac_cv_host in
4860*-*-*) ;;
4861*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4862esac
4863host=$ac_cv_host
4864ac_save_IFS=$IFS; IFS='-'
4865set x $ac_cv_host
4866shift
4867host_cpu=$1
4868host_vendor=$2
4869shift; shift
4870# Remember, the first character of IFS is used to create $*,
4871# except with old shells:
4872host_os=$*
4873IFS=$ac_save_IFS
4874case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4875
4876
4877enable_win32_dll=yes
4878
4879case $host in
4880*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4881  if test -n "$ac_tool_prefix"; then
4882  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4883set dummy ${ac_tool_prefix}as; ac_word=$2
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885$as_echo_n "checking for $ac_word... " >&6; }
4886if test "${ac_cv_prog_AS+set}" = set; then :
4887  $as_echo_n "(cached) " >&6
4888else
4889  if test -n "$AS"; then
4890  ac_cv_prog_AS="$AS" # Let the user override the test.
4891else
4892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893for as_dir in $PATH
4894do
4895  IFS=$as_save_IFS
4896  test -z "$as_dir" && as_dir=.
4897    for ac_exec_ext in '' $ac_executable_extensions; do
4898  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899    ac_cv_prog_AS="${ac_tool_prefix}as"
4900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901    break 2
4902  fi
4903done
4904  done
4905IFS=$as_save_IFS
4906
4907fi
4908fi
4909AS=$ac_cv_prog_AS
4910if test -n "$AS"; then
4911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4912$as_echo "$AS" >&6; }
4913else
4914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915$as_echo "no" >&6; }
4916fi
4917
4918
4919fi
4920if test -z "$ac_cv_prog_AS"; then
4921  ac_ct_AS=$AS
4922  # Extract the first word of "as", so it can be a program name with args.
4923set dummy as; ac_word=$2
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925$as_echo_n "checking for $ac_word... " >&6; }
4926if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4927  $as_echo_n "(cached) " >&6
4928else
4929  if test -n "$ac_ct_AS"; then
4930  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4931else
4932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933for as_dir in $PATH
4934do
4935  IFS=$as_save_IFS
4936  test -z "$as_dir" && as_dir=.
4937    for ac_exec_ext in '' $ac_executable_extensions; do
4938  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939    ac_cv_prog_ac_ct_AS="as"
4940    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941    break 2
4942  fi
4943done
4944  done
4945IFS=$as_save_IFS
4946
4947fi
4948fi
4949ac_ct_AS=$ac_cv_prog_ac_ct_AS
4950if test -n "$ac_ct_AS"; then
4951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4952$as_echo "$ac_ct_AS" >&6; }
4953else
4954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955$as_echo "no" >&6; }
4956fi
4957
4958  if test "x$ac_ct_AS" = x; then
4959    AS="false"
4960  else
4961    case $cross_compiling:$ac_tool_warned in
4962yes:)
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4965ac_tool_warned=yes ;;
4966esac
4967    AS=$ac_ct_AS
4968  fi
4969else
4970  AS="$ac_cv_prog_AS"
4971fi
4972
4973  if test -n "$ac_tool_prefix"; then
4974  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4975set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977$as_echo_n "checking for $ac_word... " >&6; }
4978if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
4979  $as_echo_n "(cached) " >&6
4980else
4981  if test -n "$DLLTOOL"; then
4982  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4983else
4984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985for as_dir in $PATH
4986do
4987  IFS=$as_save_IFS
4988  test -z "$as_dir" && as_dir=.
4989    for ac_exec_ext in '' $ac_executable_extensions; do
4990  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4991    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4993    break 2
4994  fi
4995done
4996  done
4997IFS=$as_save_IFS
4998
4999fi
5000fi
5001DLLTOOL=$ac_cv_prog_DLLTOOL
5002if test -n "$DLLTOOL"; then
5003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5004$as_echo "$DLLTOOL" >&6; }
5005else
5006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007$as_echo "no" >&6; }
5008fi
5009
5010
5011fi
5012if test -z "$ac_cv_prog_DLLTOOL"; then
5013  ac_ct_DLLTOOL=$DLLTOOL
5014  # Extract the first word of "dlltool", so it can be a program name with args.
5015set dummy dlltool; ac_word=$2
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5017$as_echo_n "checking for $ac_word... " >&6; }
5018if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5019  $as_echo_n "(cached) " >&6
5020else
5021  if test -n "$ac_ct_DLLTOOL"; then
5022  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5023else
5024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025for as_dir in $PATH
5026do
5027  IFS=$as_save_IFS
5028  test -z "$as_dir" && as_dir=.
5029    for ac_exec_ext in '' $ac_executable_extensions; do
5030  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5033    break 2
5034  fi
5035done
5036  done
5037IFS=$as_save_IFS
5038
5039fi
5040fi
5041ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5042if test -n "$ac_ct_DLLTOOL"; then
5043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5044$as_echo "$ac_ct_DLLTOOL" >&6; }
5045else
5046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047$as_echo "no" >&6; }
5048fi
5049
5050  if test "x$ac_ct_DLLTOOL" = x; then
5051    DLLTOOL="false"
5052  else
5053    case $cross_compiling:$ac_tool_warned in
5054yes:)
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5057ac_tool_warned=yes ;;
5058esac
5059    DLLTOOL=$ac_ct_DLLTOOL
5060  fi
5061else
5062  DLLTOOL="$ac_cv_prog_DLLTOOL"
5063fi
5064
5065  if test -n "$ac_tool_prefix"; then
5066  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5067set dummy ${ac_tool_prefix}objdump; ac_word=$2
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069$as_echo_n "checking for $ac_word... " >&6; }
5070if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5071  $as_echo_n "(cached) " >&6
5072else
5073  if test -n "$OBJDUMP"; then
5074  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5075else
5076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077for as_dir in $PATH
5078do
5079  IFS=$as_save_IFS
5080  test -z "$as_dir" && as_dir=.
5081    for ac_exec_ext in '' $ac_executable_extensions; do
5082  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5083    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085    break 2
5086  fi
5087done
5088  done
5089IFS=$as_save_IFS
5090
5091fi
5092fi
5093OBJDUMP=$ac_cv_prog_OBJDUMP
5094if test -n "$OBJDUMP"; then
5095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5096$as_echo "$OBJDUMP" >&6; }
5097else
5098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099$as_echo "no" >&6; }
5100fi
5101
5102
5103fi
5104if test -z "$ac_cv_prog_OBJDUMP"; then
5105  ac_ct_OBJDUMP=$OBJDUMP
5106  # Extract the first word of "objdump", so it can be a program name with args.
5107set dummy objdump; ac_word=$2
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109$as_echo_n "checking for $ac_word... " >&6; }
5110if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5111  $as_echo_n "(cached) " >&6
5112else
5113  if test -n "$ac_ct_OBJDUMP"; then
5114  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5115else
5116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117for as_dir in $PATH
5118do
5119  IFS=$as_save_IFS
5120  test -z "$as_dir" && as_dir=.
5121    for ac_exec_ext in '' $ac_executable_extensions; do
5122  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5123    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125    break 2
5126  fi
5127done
5128  done
5129IFS=$as_save_IFS
5130
5131fi
5132fi
5133ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5134if test -n "$ac_ct_OBJDUMP"; then
5135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5136$as_echo "$ac_ct_OBJDUMP" >&6; }
5137else
5138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139$as_echo "no" >&6; }
5140fi
5141
5142  if test "x$ac_ct_OBJDUMP" = x; then
5143    OBJDUMP="false"
5144  else
5145    case $cross_compiling:$ac_tool_warned in
5146yes:)
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5149ac_tool_warned=yes ;;
5150esac
5151    OBJDUMP=$ac_ct_OBJDUMP
5152  fi
5153else
5154  OBJDUMP="$ac_cv_prog_OBJDUMP"
5155fi
5156
5157  ;;
5158esac
5159
5160test -z "$AS" && AS=as
5161
5162
5163
5164
5165
5166test -z "$DLLTOOL" && DLLTOOL=dlltool
5167
5168
5169
5170
5171
5172test -z "$OBJDUMP" && OBJDUMP=objdump
5173
5174
5175
5176
5177
5178
5179
5180case `pwd` in
5181  *\ * | *\     *)
5182    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5183$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5184esac
5185
5186
5187
5188macro_version='2.2.6b'
5189macro_revision='1.3017'
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203ltmain="$ac_aux_dir/ltmain.sh"
5204
5205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5206$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5207if test "${ac_cv_path_SED+set}" = set; then :
5208  $as_echo_n "(cached) " >&6
5209else
5210            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5211     for ac_i in 1 2 3 4 5 6 7; do
5212       ac_script="$ac_script$as_nl$ac_script"
5213     done
5214     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5215     { ac_script=; unset ac_script;}
5216     if test -z "$SED"; then
5217  ac_path_SED_found=false
5218  # Loop through the user's path and test for each of PROGNAME-LIST
5219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220for as_dir in $PATH
5221do
5222  IFS=$as_save_IFS
5223  test -z "$as_dir" && as_dir=.
5224    for ac_prog in sed gsed; do
5225    for ac_exec_ext in '' $ac_executable_extensions; do
5226      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5227      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5228# Check for GNU ac_path_SED and select it if it is found.
5229  # Check for GNU $ac_path_SED
5230case `"$ac_path_SED" --version 2>&1` in
5231*GNU*)
5232  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5233*)
5234  ac_count=0
5235  $as_echo_n 0123456789 >"conftest.in"
5236  while :
5237  do
5238    cat "conftest.in" "conftest.in" >"conftest.tmp"
5239    mv "conftest.tmp" "conftest.in"
5240    cp "conftest.in" "conftest.nl"
5241    $as_echo '' >> "conftest.nl"
5242    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5243    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5244    as_fn_arith $ac_count + 1 && ac_count=$as_val
5245    if test $ac_count -gt ${ac_path_SED_max-0}; then
5246      # Best one so far, save it but keep looking for a better one
5247      ac_cv_path_SED="$ac_path_SED"
5248      ac_path_SED_max=$ac_count
5249    fi
5250    # 10*(2^10) chars as input seems more than enough
5251    test $ac_count -gt 10 && break
5252  done
5253  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5254esac
5255
5256      $ac_path_SED_found && break 3
5257    done
5258  done
5259  done
5260IFS=$as_save_IFS
5261  if test -z "$ac_cv_path_SED"; then
5262    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5263  fi
5264else
5265  ac_cv_path_SED=$SED
5266fi
5267
5268fi
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5270$as_echo "$ac_cv_path_SED" >&6; }
5271 SED="$ac_cv_path_SED"
5272  rm -f conftest.sed
5273
5274test -z "$SED" && SED=sed
5275Xsed="$SED -e 1s/^X//"
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5288$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5289if test "${ac_cv_path_GREP+set}" = set; then :
5290  $as_echo_n "(cached) " >&6
5291else
5292  if test -z "$GREP"; then
5293  ac_path_GREP_found=false
5294  # Loop through the user's path and test for each of PROGNAME-LIST
5295  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5297do
5298  IFS=$as_save_IFS
5299  test -z "$as_dir" && as_dir=.
5300    for ac_prog in grep ggrep; do
5301    for ac_exec_ext in '' $ac_executable_extensions; do
5302      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5303      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5304# Check for GNU ac_path_GREP and select it if it is found.
5305  # Check for GNU $ac_path_GREP
5306case `"$ac_path_GREP" --version 2>&1` in
5307*GNU*)
5308  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5309*)
5310  ac_count=0
5311  $as_echo_n 0123456789 >"conftest.in"
5312  while :
5313  do
5314    cat "conftest.in" "conftest.in" >"conftest.tmp"
5315    mv "conftest.tmp" "conftest.in"
5316    cp "conftest.in" "conftest.nl"
5317    $as_echo 'GREP' >> "conftest.nl"
5318    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5319    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5320    as_fn_arith $ac_count + 1 && ac_count=$as_val
5321    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5322      # Best one so far, save it but keep looking for a better one
5323      ac_cv_path_GREP="$ac_path_GREP"
5324      ac_path_GREP_max=$ac_count
5325    fi
5326    # 10*(2^10) chars as input seems more than enough
5327    test $ac_count -gt 10 && break
5328  done
5329  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5330esac
5331
5332      $ac_path_GREP_found && break 3
5333    done
5334  done
5335  done
5336IFS=$as_save_IFS
5337  if test -z "$ac_cv_path_GREP"; then
5338    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5339  fi
5340else
5341  ac_cv_path_GREP=$GREP
5342fi
5343
5344fi
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5346$as_echo "$ac_cv_path_GREP" >&6; }
5347 GREP="$ac_cv_path_GREP"
5348
5349
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5351$as_echo_n "checking for egrep... " >&6; }
5352if test "${ac_cv_path_EGREP+set}" = set; then :
5353  $as_echo_n "(cached) " >&6
5354else
5355  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5356   then ac_cv_path_EGREP="$GREP -E"
5357   else
5358     if test -z "$EGREP"; then
5359  ac_path_EGREP_found=false
5360  # Loop through the user's path and test for each of PROGNAME-LIST
5361  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5363do
5364  IFS=$as_save_IFS
5365  test -z "$as_dir" && as_dir=.
5366    for ac_prog in egrep; do
5367    for ac_exec_ext in '' $ac_executable_extensions; do
5368      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5369      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5370# Check for GNU ac_path_EGREP and select it if it is found.
5371  # Check for GNU $ac_path_EGREP
5372case `"$ac_path_EGREP" --version 2>&1` in
5373*GNU*)
5374  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5375*)
5376  ac_count=0
5377  $as_echo_n 0123456789 >"conftest.in"
5378  while :
5379  do
5380    cat "conftest.in" "conftest.in" >"conftest.tmp"
5381    mv "conftest.tmp" "conftest.in"
5382    cp "conftest.in" "conftest.nl"
5383    $as_echo 'EGREP' >> "conftest.nl"
5384    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5385    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5386    as_fn_arith $ac_count + 1 && ac_count=$as_val
5387    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5388      # Best one so far, save it but keep looking for a better one
5389      ac_cv_path_EGREP="$ac_path_EGREP"
5390      ac_path_EGREP_max=$ac_count
5391    fi
5392    # 10*(2^10) chars as input seems more than enough
5393    test $ac_count -gt 10 && break
5394  done
5395  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5396esac
5397
5398      $ac_path_EGREP_found && break 3
5399    done
5400  done
5401  done
5402IFS=$as_save_IFS
5403  if test -z "$ac_cv_path_EGREP"; then
5404    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5405  fi
5406else
5407  ac_cv_path_EGREP=$EGREP
5408fi
5409
5410   fi
5411fi
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5413$as_echo "$ac_cv_path_EGREP" >&6; }
5414 EGREP="$ac_cv_path_EGREP"
5415
5416
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5418$as_echo_n "checking for fgrep... " >&6; }
5419if test "${ac_cv_path_FGREP+set}" = set; then :
5420  $as_echo_n "(cached) " >&6
5421else
5422  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5423   then ac_cv_path_FGREP="$GREP -F"
5424   else
5425     if test -z "$FGREP"; then
5426  ac_path_FGREP_found=false
5427  # Loop through the user's path and test for each of PROGNAME-LIST
5428  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5430do
5431  IFS=$as_save_IFS
5432  test -z "$as_dir" && as_dir=.
5433    for ac_prog in fgrep; do
5434    for ac_exec_ext in '' $ac_executable_extensions; do
5435      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5436      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5437# Check for GNU ac_path_FGREP and select it if it is found.
5438  # Check for GNU $ac_path_FGREP
5439case `"$ac_path_FGREP" --version 2>&1` in
5440*GNU*)
5441  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5442*)
5443  ac_count=0
5444  $as_echo_n 0123456789 >"conftest.in"
5445  while :
5446  do
5447    cat "conftest.in" "conftest.in" >"conftest.tmp"
5448    mv "conftest.tmp" "conftest.in"
5449    cp "conftest.in" "conftest.nl"
5450    $as_echo 'FGREP' >> "conftest.nl"
5451    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5452    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5453    as_fn_arith $ac_count + 1 && ac_count=$as_val
5454    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5455      # Best one so far, save it but keep looking for a better one
5456      ac_cv_path_FGREP="$ac_path_FGREP"
5457      ac_path_FGREP_max=$ac_count
5458    fi
5459    # 10*(2^10) chars as input seems more than enough
5460    test $ac_count -gt 10 && break
5461  done
5462  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5463esac
5464
5465      $ac_path_FGREP_found && break 3
5466    done
5467  done
5468  done
5469IFS=$as_save_IFS
5470  if test -z "$ac_cv_path_FGREP"; then
5471    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5472  fi
5473else
5474  ac_cv_path_FGREP=$FGREP
5475fi
5476
5477   fi
5478fi
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5480$as_echo "$ac_cv_path_FGREP" >&6; }
5481 FGREP="$ac_cv_path_FGREP"
5482
5483
5484test -z "$GREP" && GREP=grep
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504# Check whether --with-gnu-ld was given.
5505if test "${with_gnu_ld+set}" = set; then :
5506  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5507else
5508  with_gnu_ld=no
5509fi
5510
5511ac_prog=ld
5512if test "$GCC" = yes; then
5513  # Check if gcc -print-prog-name=ld gives a path.
5514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5515$as_echo_n "checking for ld used by $CC... " >&6; }
5516  case $host in
5517  *-*-mingw*)
5518    # gcc leaves a trailing carriage return which upsets mingw
5519    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5520  *)
5521    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5522  esac
5523  case $ac_prog in
5524    # Accept absolute paths.
5525    [\\/]* | ?:[\\/]*)
5526      re_direlt='/[^/][^/]*/\.\./'
5527      # Canonicalize the pathname of ld
5528      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5529      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5530        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5531      done
5532      test -z "$LD" && LD="$ac_prog"
5533      ;;
5534  "")
5535    # If it fails, then pretend we aren't using GCC.
5536    ac_prog=ld
5537    ;;
5538  *)
5539    # If it is relative, then search for the first ld in PATH.
5540    with_gnu_ld=unknown
5541    ;;
5542  esac
5543elif test "$with_gnu_ld" = yes; then
5544  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5545$as_echo_n "checking for GNU ld... " >&6; }
5546else
5547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5548$as_echo_n "checking for non-GNU ld... " >&6; }
5549fi
5550if test "${lt_cv_path_LD+set}" = set; then :
5551  $as_echo_n "(cached) " >&6
5552else
5553  if test -z "$LD"; then
5554  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5555  for ac_dir in $PATH; do
5556    IFS="$lt_save_ifs"
5557    test -z "$ac_dir" && ac_dir=.
5558    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5559      lt_cv_path_LD="$ac_dir/$ac_prog"
5560      # Check to see if the program is GNU ld.  I'd rather use --version,
5561      # but apparently some variants of GNU ld only accept -v.
5562      # Break only if it was the GNU/non-GNU ld that we prefer.
5563      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5564      *GNU* | *'with BFD'*)
5565        test "$with_gnu_ld" != no && break
5566        ;;
5567      *)
5568        test "$with_gnu_ld" != yes && break
5569        ;;
5570      esac
5571    fi
5572  done
5573  IFS="$lt_save_ifs"
5574else
5575  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5576fi
5577fi
5578
5579LD="$lt_cv_path_LD"
5580if test -n "$LD"; then
5581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5582$as_echo "$LD" >&6; }
5583else
5584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5585$as_echo "no" >&6; }
5586fi
5587test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5589$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5590if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5591  $as_echo_n "(cached) " >&6
5592else
5593  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5594case `$LD -v 2>&1 </dev/null` in
5595*GNU* | *'with BFD'*)
5596  lt_cv_prog_gnu_ld=yes
5597  ;;
5598*)
5599  lt_cv_prog_gnu_ld=no
5600  ;;
5601esac
5602fi
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5604$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5605with_gnu_ld=$lt_cv_prog_gnu_ld
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5616$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5617if test "${lt_cv_path_NM+set}" = set; then :
5618  $as_echo_n "(cached) " >&6
5619else
5620  if test -n "$NM"; then
5621  # Let the user override the test.
5622  lt_cv_path_NM="$NM"
5623else
5624  lt_nm_to_check="${ac_tool_prefix}nm"
5625  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5626    lt_nm_to_check="$lt_nm_to_check nm"
5627  fi
5628  for lt_tmp_nm in $lt_nm_to_check; do
5629    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5630    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5631      IFS="$lt_save_ifs"
5632      test -z "$ac_dir" && ac_dir=.
5633      tmp_nm="$ac_dir/$lt_tmp_nm"
5634      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5635        # Check to see if the nm accepts a BSD-compat flag.
5636        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5637        #   nm: unknown option "B" ignored
5638        # Tru64's nm complains that /dev/null is an invalid object file
5639        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5640        */dev/null* | *'Invalid file or object type'*)
5641          lt_cv_path_NM="$tmp_nm -B"
5642          break
5643          ;;
5644        *)
5645          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5646          */dev/null*)
5647            lt_cv_path_NM="$tmp_nm -p"
5648            break
5649            ;;
5650          *)
5651            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5652            continue # so that we can try to find one that supports BSD flags
5653            ;;
5654          esac
5655          ;;
5656        esac
5657      fi
5658    done
5659    IFS="$lt_save_ifs"
5660  done
5661  : ${lt_cv_path_NM=no}
5662fi
5663fi
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5665$as_echo "$lt_cv_path_NM" >&6; }
5666if test "$lt_cv_path_NM" != "no"; then
5667  NM="$lt_cv_path_NM"
5668else
5669  # Didn't find any BSD compatible name lister, look for dumpbin.
5670  if test -n "$ac_tool_prefix"; then
5671  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5672  do
5673    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5674set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676$as_echo_n "checking for $ac_word... " >&6; }
5677if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5678  $as_echo_n "(cached) " >&6
5679else
5680  if test -n "$DUMPBIN"; then
5681  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5682else
5683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684for as_dir in $PATH
5685do
5686  IFS=$as_save_IFS
5687  test -z "$as_dir" && as_dir=.
5688    for ac_exec_ext in '' $ac_executable_extensions; do
5689  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5690    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692    break 2
5693  fi
5694done
5695  done
5696IFS=$as_save_IFS
5697
5698fi
5699fi
5700DUMPBIN=$ac_cv_prog_DUMPBIN
5701if test -n "$DUMPBIN"; then
5702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5703$as_echo "$DUMPBIN" >&6; }
5704else
5705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706$as_echo "no" >&6; }
5707fi
5708
5709
5710    test -n "$DUMPBIN" && break
5711  done
5712fi
5713if test -z "$DUMPBIN"; then
5714  ac_ct_DUMPBIN=$DUMPBIN
5715  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5716do
5717  # Extract the first word of "$ac_prog", so it can be a program name with args.
5718set dummy $ac_prog; ac_word=$2
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720$as_echo_n "checking for $ac_word... " >&6; }
5721if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5722  $as_echo_n "(cached) " >&6
5723else
5724  if test -n "$ac_ct_DUMPBIN"; then
5725  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5726else
5727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728for as_dir in $PATH
5729do
5730  IFS=$as_save_IFS
5731  test -z "$as_dir" && as_dir=.
5732    for ac_exec_ext in '' $ac_executable_extensions; do
5733  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5734    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736    break 2
5737  fi
5738done
5739  done
5740IFS=$as_save_IFS
5741
5742fi
5743fi
5744ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5745if test -n "$ac_ct_DUMPBIN"; then
5746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5747$as_echo "$ac_ct_DUMPBIN" >&6; }
5748else
5749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750$as_echo "no" >&6; }
5751fi
5752
5753
5754  test -n "$ac_ct_DUMPBIN" && break
5755done
5756
5757  if test "x$ac_ct_DUMPBIN" = x; then
5758    DUMPBIN=":"
5759  else
5760    case $cross_compiling:$ac_tool_warned in
5761yes:)
5762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5764ac_tool_warned=yes ;;
5765esac
5766    DUMPBIN=$ac_ct_DUMPBIN
5767  fi
5768fi
5769
5770
5771  if test "$DUMPBIN" != ":"; then
5772    NM="$DUMPBIN"
5773  fi
5774fi
5775test -z "$NM" && NM=nm
5776
5777
5778
5779
5780
5781
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5783$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5784if test "${lt_cv_nm_interface+set}" = set; then :
5785  $as_echo_n "(cached) " >&6
5786else
5787  lt_cv_nm_interface="BSD nm"
5788  echo "int some_variable = 0;" > conftest.$ac_ext
5789  (eval echo "\"\$as_me:5789: $ac_compile\"" >&5)
5790  (eval "$ac_compile" 2>conftest.err)
5791  cat conftest.err >&5
5792  (eval echo "\"\$as_me:5792: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5793  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5794  cat conftest.err >&5
5795  (eval echo "\"\$as_me:5795: output\"" >&5)
5796  cat conftest.out >&5
5797  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5798    lt_cv_nm_interface="MS dumpbin"
5799  fi
5800  rm -f conftest*
5801fi
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5803$as_echo "$lt_cv_nm_interface" >&6; }
5804
5805# find the maximum length of command line arguments
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5807$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5808if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5809  $as_echo_n "(cached) " >&6
5810else
5811    i=0
5812  teststring="ABCD"
5813
5814  case $build_os in
5815  msdosdjgpp*)
5816    # On DJGPP, this test can blow up pretty badly due to problems in libc
5817    # (any single argument exceeding 2000 bytes causes a buffer overrun
5818    # during glob expansion).  Even if it were fixed, the result of this
5819    # check would be larger than it should be.
5820    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5821    ;;
5822
5823  gnu*)
5824    # Under GNU Hurd, this test is not required because there is
5825    # no limit to the length of command line arguments.
5826    # Libtool will interpret -1 as no limit whatsoever
5827    lt_cv_sys_max_cmd_len=-1;
5828    ;;
5829
5830  cygwin* | mingw* | cegcc*)
5831    # On Win9x/ME, this test blows up -- it succeeds, but takes
5832    # about 5 minutes as the teststring grows exponentially.
5833    # Worse, since 9x/ME are not pre-emptively multitasking,
5834    # you end up with a "frozen" computer, even though with patience
5835    # the test eventually succeeds (with a max line length of 256k).
5836    # Instead, let's just punt: use the minimum linelength reported by
5837    # all of the supported platforms: 8192 (on NT/2K/XP).
5838    lt_cv_sys_max_cmd_len=8192;
5839    ;;
5840
5841  amigaos*)
5842    # On AmigaOS with pdksh, this test takes hours, literally.
5843    # So we just punt and use a minimum line length of 8192.
5844    lt_cv_sys_max_cmd_len=8192;
5845    ;;
5846
5847  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5848    # This has been around since 386BSD, at least.  Likely further.
5849    if test -x /sbin/sysctl; then
5850      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5851    elif test -x /usr/sbin/sysctl; then
5852      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5853    else
5854      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5855    fi
5856    # And add a safety zone
5857    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5858    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5859    ;;
5860
5861  interix*)
5862    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5863    lt_cv_sys_max_cmd_len=196608
5864    ;;
5865
5866  osf*)
5867    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5868    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5869    # nice to cause kernel panics so lets avoid the loop below.
5870    # First set a reasonable default.
5871    lt_cv_sys_max_cmd_len=16384
5872    #
5873    if test -x /sbin/sysconfig; then
5874      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5875        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5876      esac
5877    fi
5878    ;;
5879  sco3.2v5*)
5880    lt_cv_sys_max_cmd_len=102400
5881    ;;
5882  sysv5* | sco5v6* | sysv4.2uw2*)
5883    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5884    if test -n "$kargmax"; then
5885      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5886    else
5887      lt_cv_sys_max_cmd_len=32768
5888    fi
5889    ;;
5890  *)
5891    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5892    if test -n "$lt_cv_sys_max_cmd_len"; then
5893      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5894      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5895    else
5896      # Make teststring a little bigger before we do anything with it.
5897      # a 1K string should be a reasonable start.
5898      for i in 1 2 3 4 5 6 7 8 ; do
5899        teststring=$teststring$teststring
5900      done
5901      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5902      # If test is not a shell built-in, we'll probably end up computing a
5903      # maximum length that is only half of the actual maximum length, but
5904      # we can't tell.
5905      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5906                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5907              test $i != 17 # 1/2 MB should be enough
5908      do
5909        i=`expr $i + 1`
5910        teststring=$teststring$teststring
5911      done
5912      # Only check the string length outside the loop.
5913      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5914      teststring=
5915      # Add a significant safety factor because C++ compilers can tack on
5916      # massive amounts of additional arguments before passing them to the
5917      # linker.  It appears as though 1/2 is a usable value.
5918      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5919    fi
5920    ;;
5921  esac
5922
5923fi
5924
5925if test -n $lt_cv_sys_max_cmd_len ; then
5926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5927$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5928else
5929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5930$as_echo "none" >&6; }
5931fi
5932max_cmd_len=$lt_cv_sys_max_cmd_len
5933
5934
5935
5936
5937
5938
5939: ${CP="cp -f"}
5940: ${MV="mv -f"}
5941: ${RM="rm -f"}
5942
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5944$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5945# Try some XSI features
5946xsi_shell=no
5947( _lt_dummy="a/b/c"
5948  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5949      = c,a/b,, \
5950    && eval 'test $(( 1 + 1 )) -eq 2 \
5951    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5952  && xsi_shell=yes
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5954$as_echo "$xsi_shell" >&6; }
5955
5956
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5958$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5959lt_shell_append=no
5960( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5961    >/dev/null 2>&1 \
5962  && lt_shell_append=yes
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5964$as_echo "$lt_shell_append" >&6; }
5965
5966
5967if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5968  lt_unset=unset
5969else
5970  lt_unset=false
5971fi
5972
5973
5974
5975
5976
5977# test EBCDIC or ASCII
5978case `echo X|tr X '\101'` in
5979 A) # ASCII based system
5980    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5981  lt_SP2NL='tr \040 \012'
5982  lt_NL2SP='tr \015\012 \040\040'
5983  ;;
5984 *) # EBCDIC based system
5985  lt_SP2NL='tr \100 \n'
5986  lt_NL2SP='tr \r\n \100\100'
5987  ;;
5988esac
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5999$as_echo_n "checking for $LD option to reload object files... " >&6; }
6000if test "${lt_cv_ld_reload_flag+set}" = set; then :
6001  $as_echo_n "(cached) " >&6
6002else
6003  lt_cv_ld_reload_flag='-r'
6004fi
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6006$as_echo "$lt_cv_ld_reload_flag" >&6; }
6007reload_flag=$lt_cv_ld_reload_flag
6008case $reload_flag in
6009"" | " "*) ;;
6010*) reload_flag=" $reload_flag" ;;
6011esac
6012reload_cmds='$LD$reload_flag -o $output$reload_objs'
6013case $host_os in
6014  darwin*)
6015    if test "$GCC" = yes; then
6016      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6017    else
6018      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6019    fi
6020    ;;
6021esac
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031if test -n "$ac_tool_prefix"; then
6032  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6033set dummy ${ac_tool_prefix}objdump; ac_word=$2
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035$as_echo_n "checking for $ac_word... " >&6; }
6036if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6037  $as_echo_n "(cached) " >&6
6038else
6039  if test -n "$OBJDUMP"; then
6040  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6041else
6042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043for as_dir in $PATH
6044do
6045  IFS=$as_save_IFS
6046  test -z "$as_dir" && as_dir=.
6047    for ac_exec_ext in '' $ac_executable_extensions; do
6048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6049    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051    break 2
6052  fi
6053done
6054  done
6055IFS=$as_save_IFS
6056
6057fi
6058fi
6059OBJDUMP=$ac_cv_prog_OBJDUMP
6060if test -n "$OBJDUMP"; then
6061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6062$as_echo "$OBJDUMP" >&6; }
6063else
6064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065$as_echo "no" >&6; }
6066fi
6067
6068
6069fi
6070if test -z "$ac_cv_prog_OBJDUMP"; then
6071  ac_ct_OBJDUMP=$OBJDUMP
6072  # Extract the first word of "objdump", so it can be a program name with args.
6073set dummy objdump; ac_word=$2
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075$as_echo_n "checking for $ac_word... " >&6; }
6076if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6077  $as_echo_n "(cached) " >&6
6078else
6079  if test -n "$ac_ct_OBJDUMP"; then
6080  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6081else
6082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083for as_dir in $PATH
6084do
6085  IFS=$as_save_IFS
6086  test -z "$as_dir" && as_dir=.
6087    for ac_exec_ext in '' $ac_executable_extensions; do
6088  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091    break 2
6092  fi
6093done
6094  done
6095IFS=$as_save_IFS
6096
6097fi
6098fi
6099ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6100if test -n "$ac_ct_OBJDUMP"; then
6101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6102$as_echo "$ac_ct_OBJDUMP" >&6; }
6103else
6104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105$as_echo "no" >&6; }
6106fi
6107
6108  if test "x$ac_ct_OBJDUMP" = x; then
6109    OBJDUMP="false"
6110  else
6111    case $cross_compiling:$ac_tool_warned in
6112yes:)
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115ac_tool_warned=yes ;;
6116esac
6117    OBJDUMP=$ac_ct_OBJDUMP
6118  fi
6119else
6120  OBJDUMP="$ac_cv_prog_OBJDUMP"
6121fi
6122
6123test -z "$OBJDUMP" && OBJDUMP=objdump
6124
6125
6126
6127
6128
6129
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6131$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6132if test "${lt_cv_deplibs_check_method+set}" = set; then :
6133  $as_echo_n "(cached) " >&6
6134else
6135  lt_cv_file_magic_cmd='$MAGIC_CMD'
6136lt_cv_file_magic_test_file=
6137lt_cv_deplibs_check_method='unknown'
6138# Need to set the preceding variable on all platforms that support
6139# interlibrary dependencies.
6140# 'none' -- dependencies not supported.
6141# `unknown' -- same as none, but documents that we really don't know.
6142# 'pass_all' -- all dependencies passed with no checks.
6143# 'test_compile' -- check by making test program.
6144# 'file_magic [[regex]]' -- check by looking for files in library path
6145# which responds to the $file_magic_cmd with a given extended regex.
6146# If you have `file' or equivalent on your system and you're not sure
6147# whether `pass_all' will *always* work, you probably want this one.
6148
6149case $host_os in
6150aix[4-9]*)
6151  lt_cv_deplibs_check_method=pass_all
6152  ;;
6153
6154beos*)
6155  lt_cv_deplibs_check_method=pass_all
6156  ;;
6157
6158bsdi[45]*)
6159  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6160  lt_cv_file_magic_cmd='/usr/bin/file -L'
6161  lt_cv_file_magic_test_file=/shlib/libc.so
6162  ;;
6163
6164cygwin*)
6165  # func_win32_libid is a shell function defined in ltmain.sh
6166  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6167  lt_cv_file_magic_cmd='func_win32_libid'
6168  ;;
6169
6170mingw* | pw32*)
6171  # Base MSYS/MinGW do not provide the 'file' command needed by
6172  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6173  # unless we find 'file', for example because we are cross-compiling.
6174  if ( file / ) >/dev/null 2>&1; then
6175    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6176    lt_cv_file_magic_cmd='func_win32_libid'
6177  else
6178    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6179    lt_cv_file_magic_cmd='$OBJDUMP -f'
6180  fi
6181  ;;
6182
6183cegcc)
6184  # use the weaker test based on 'objdump'. See mingw*.
6185  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6186  lt_cv_file_magic_cmd='$OBJDUMP -f'
6187  ;;
6188
6189darwin* | rhapsody*)
6190  lt_cv_deplibs_check_method=pass_all
6191  ;;
6192
6193freebsd* | dragonfly*)
6194  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6195    case $host_cpu in
6196    i*86 )
6197      # Not sure whether the presence of OpenBSD here was a mistake.
6198      # Let's accept both of them until this is cleared up.
6199      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6200      lt_cv_file_magic_cmd=/usr/bin/file
6201      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6202      ;;
6203    esac
6204  else
6205    lt_cv_deplibs_check_method=pass_all
6206  fi
6207  ;;
6208
6209gnu*)
6210  lt_cv_deplibs_check_method=pass_all
6211  ;;
6212
6213hpux10.20* | hpux11*)
6214  lt_cv_file_magic_cmd=/usr/bin/file
6215  case $host_cpu in
6216  ia64*)
6217    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6218    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6219    ;;
6220  hppa*64*)
6221    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6222    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6223    ;;
6224  *)
6225    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6226    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6227    ;;
6228  esac
6229  ;;
6230
6231interix[3-9]*)
6232  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6233  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6234  ;;
6235
6236irix5* | irix6* | nonstopux*)
6237  case $LD in
6238  *-32|*"-32 ") libmagic=32-bit;;
6239  *-n32|*"-n32 ") libmagic=N32;;
6240  *-64|*"-64 ") libmagic=64-bit;;
6241  *) libmagic=never-match;;
6242  esac
6243  lt_cv_deplibs_check_method=pass_all
6244  ;;
6245
6246# This must be Linux ELF.
6247linux* | k*bsd*-gnu)
6248  lt_cv_deplibs_check_method=pass_all
6249  ;;
6250
6251netbsd*)
6252  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6253    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6254  else
6255    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6256  fi
6257  ;;
6258
6259newos6*)
6260  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6261  lt_cv_file_magic_cmd=/usr/bin/file
6262  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6263  ;;
6264
6265*nto* | *qnx*)
6266  lt_cv_deplibs_check_method=pass_all
6267  ;;
6268
6269openbsd*)
6270  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6271    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6272  else
6273    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6274  fi
6275  ;;
6276
6277osf3* | osf4* | osf5*)
6278  lt_cv_deplibs_check_method=pass_all
6279  ;;
6280
6281rdos*)
6282  lt_cv_deplibs_check_method=pass_all
6283  ;;
6284
6285solaris*)
6286  lt_cv_deplibs_check_method=pass_all
6287  ;;
6288
6289sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6290  lt_cv_deplibs_check_method=pass_all
6291  ;;
6292
6293sysv4 | sysv4.3*)
6294  case $host_vendor in
6295  motorola)
6296    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]'
6297    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6298    ;;
6299  ncr)
6300    lt_cv_deplibs_check_method=pass_all
6301    ;;
6302  sequent)
6303    lt_cv_file_magic_cmd='/bin/file'
6304    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6305    ;;
6306  sni)
6307    lt_cv_file_magic_cmd='/bin/file'
6308    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6309    lt_cv_file_magic_test_file=/lib/libc.so
6310    ;;
6311  siemens)
6312    lt_cv_deplibs_check_method=pass_all
6313    ;;
6314  pc)
6315    lt_cv_deplibs_check_method=pass_all
6316    ;;
6317  esac
6318  ;;
6319
6320tpf*)
6321  lt_cv_deplibs_check_method=pass_all
6322  ;;
6323esac
6324
6325fi
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6327$as_echo "$lt_cv_deplibs_check_method" >&6; }
6328file_magic_cmd=$lt_cv_file_magic_cmd
6329deplibs_check_method=$lt_cv_deplibs_check_method
6330test -z "$deplibs_check_method" && deplibs_check_method=unknown
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343if test -n "$ac_tool_prefix"; then
6344  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6345set dummy ${ac_tool_prefix}ar; ac_word=$2
6346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347$as_echo_n "checking for $ac_word... " >&6; }
6348if test "${ac_cv_prog_AR+set}" = set; then :
6349  $as_echo_n "(cached) " >&6
6350else
6351  if test -n "$AR"; then
6352  ac_cv_prog_AR="$AR" # Let the user override the test.
6353else
6354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355for as_dir in $PATH
6356do
6357  IFS=$as_save_IFS
6358  test -z "$as_dir" && as_dir=.
6359    for ac_exec_ext in '' $ac_executable_extensions; do
6360  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361    ac_cv_prog_AR="${ac_tool_prefix}ar"
6362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363    break 2
6364  fi
6365done
6366  done
6367IFS=$as_save_IFS
6368
6369fi
6370fi
6371AR=$ac_cv_prog_AR
6372if test -n "$AR"; then
6373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6374$as_echo "$AR" >&6; }
6375else
6376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377$as_echo "no" >&6; }
6378fi
6379
6380
6381fi
6382if test -z "$ac_cv_prog_AR"; then
6383  ac_ct_AR=$AR
6384  # Extract the first word of "ar", so it can be a program name with args.
6385set dummy ar; ac_word=$2
6386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387$as_echo_n "checking for $ac_word... " >&6; }
6388if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6389  $as_echo_n "(cached) " >&6
6390else
6391  if test -n "$ac_ct_AR"; then
6392  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6393else
6394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395for as_dir in $PATH
6396do
6397  IFS=$as_save_IFS
6398  test -z "$as_dir" && as_dir=.
6399    for ac_exec_ext in '' $ac_executable_extensions; do
6400  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6401    ac_cv_prog_ac_ct_AR="ar"
6402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403    break 2
6404  fi
6405done
6406  done
6407IFS=$as_save_IFS
6408
6409fi
6410fi
6411ac_ct_AR=$ac_cv_prog_ac_ct_AR
6412if test -n "$ac_ct_AR"; then
6413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6414$as_echo "$ac_ct_AR" >&6; }
6415else
6416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417$as_echo "no" >&6; }
6418fi
6419
6420  if test "x$ac_ct_AR" = x; then
6421    AR="false"
6422  else
6423    case $cross_compiling:$ac_tool_warned in
6424yes:)
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6427ac_tool_warned=yes ;;
6428esac
6429    AR=$ac_ct_AR
6430  fi
6431else
6432  AR="$ac_cv_prog_AR"
6433fi
6434
6435test -z "$AR" && AR=ar
6436test -z "$AR_FLAGS" && AR_FLAGS=cru
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448if test -n "$ac_tool_prefix"; then
6449  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6450set dummy ${ac_tool_prefix}strip; ac_word=$2
6451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452$as_echo_n "checking for $ac_word... " >&6; }
6453if test "${ac_cv_prog_STRIP+set}" = set; then :
6454  $as_echo_n "(cached) " >&6
6455else
6456  if test -n "$STRIP"; then
6457  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6458else
6459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460for as_dir in $PATH
6461do
6462  IFS=$as_save_IFS
6463  test -z "$as_dir" && as_dir=.
6464    for ac_exec_ext in '' $ac_executable_extensions; do
6465  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6466    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6467    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468    break 2
6469  fi
6470done
6471  done
6472IFS=$as_save_IFS
6473
6474fi
6475fi
6476STRIP=$ac_cv_prog_STRIP
6477if test -n "$STRIP"; then
6478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6479$as_echo "$STRIP" >&6; }
6480else
6481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482$as_echo "no" >&6; }
6483fi
6484
6485
6486fi
6487if test -z "$ac_cv_prog_STRIP"; then
6488  ac_ct_STRIP=$STRIP
6489  # Extract the first word of "strip", so it can be a program name with args.
6490set dummy strip; ac_word=$2
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492$as_echo_n "checking for $ac_word... " >&6; }
6493if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6494  $as_echo_n "(cached) " >&6
6495else
6496  if test -n "$ac_ct_STRIP"; then
6497  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6498else
6499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500for as_dir in $PATH
6501do
6502  IFS=$as_save_IFS
6503  test -z "$as_dir" && as_dir=.
6504    for ac_exec_ext in '' $ac_executable_extensions; do
6505  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6506    ac_cv_prog_ac_ct_STRIP="strip"
6507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508    break 2
6509  fi
6510done
6511  done
6512IFS=$as_save_IFS
6513
6514fi
6515fi
6516ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6517if test -n "$ac_ct_STRIP"; then
6518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6519$as_echo "$ac_ct_STRIP" >&6; }
6520else
6521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522$as_echo "no" >&6; }
6523fi
6524
6525  if test "x$ac_ct_STRIP" = x; then
6526    STRIP=":"
6527  else
6528    case $cross_compiling:$ac_tool_warned in
6529yes:)
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6532ac_tool_warned=yes ;;
6533esac
6534    STRIP=$ac_ct_STRIP
6535  fi
6536else
6537  STRIP="$ac_cv_prog_STRIP"
6538fi
6539
6540test -z "$STRIP" && STRIP=:
6541
6542
6543
6544
6545
6546
6547if test -n "$ac_tool_prefix"; then
6548  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6549set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6551$as_echo_n "checking for $ac_word... " >&6; }
6552if test "${ac_cv_prog_RANLIB+set}" = set; then :
6553  $as_echo_n "(cached) " >&6
6554else
6555  if test -n "$RANLIB"; then
6556  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6557else
6558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559for as_dir in $PATH
6560do
6561  IFS=$as_save_IFS
6562  test -z "$as_dir" && as_dir=.
6563    for ac_exec_ext in '' $ac_executable_extensions; do
6564  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6565    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6567    break 2
6568  fi
6569done
6570  done
6571IFS=$as_save_IFS
6572
6573fi
6574fi
6575RANLIB=$ac_cv_prog_RANLIB
6576if test -n "$RANLIB"; then
6577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6578$as_echo "$RANLIB" >&6; }
6579else
6580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581$as_echo "no" >&6; }
6582fi
6583
6584
6585fi
6586if test -z "$ac_cv_prog_RANLIB"; then
6587  ac_ct_RANLIB=$RANLIB
6588  # Extract the first word of "ranlib", so it can be a program name with args.
6589set dummy ranlib; ac_word=$2
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591$as_echo_n "checking for $ac_word... " >&6; }
6592if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6593  $as_echo_n "(cached) " >&6
6594else
6595  if test -n "$ac_ct_RANLIB"; then
6596  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6597else
6598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599for as_dir in $PATH
6600do
6601  IFS=$as_save_IFS
6602  test -z "$as_dir" && as_dir=.
6603    for ac_exec_ext in '' $ac_executable_extensions; do
6604  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605    ac_cv_prog_ac_ct_RANLIB="ranlib"
6606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607    break 2
6608  fi
6609done
6610  done
6611IFS=$as_save_IFS
6612
6613fi
6614fi
6615ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6616if test -n "$ac_ct_RANLIB"; then
6617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6618$as_echo "$ac_ct_RANLIB" >&6; }
6619else
6620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621$as_echo "no" >&6; }
6622fi
6623
6624  if test "x$ac_ct_RANLIB" = x; then
6625    RANLIB=":"
6626  else
6627    case $cross_compiling:$ac_tool_warned in
6628yes:)
6629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6631ac_tool_warned=yes ;;
6632esac
6633    RANLIB=$ac_ct_RANLIB
6634  fi
6635else
6636  RANLIB="$ac_cv_prog_RANLIB"
6637fi
6638
6639test -z "$RANLIB" && RANLIB=:
6640
6641
6642
6643
6644
6645
6646# Determine commands to create old-style static archives.
6647old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6648old_postinstall_cmds='chmod 644 $oldlib'
6649old_postuninstall_cmds=
6650
6651if test -n "$RANLIB"; then
6652  case $host_os in
6653  openbsd*)
6654    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6655    ;;
6656  *)
6657    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6658    ;;
6659  esac
6660  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6661fi
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696# If no C compiler was specified, use CC.
6697LTCC=${LTCC-"$CC"}
6698
6699# If no C compiler flags were specified, use CFLAGS.
6700LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6701
6702# Allow CC to be a program name with arguments.
6703compiler=$CC
6704
6705
6706# Check for command to grab the raw symbol name followed by C symbol from nm.
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6708$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6709if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6710  $as_echo_n "(cached) " >&6
6711else
6712
6713# These are sane defaults that work on at least a few old systems.
6714# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6715
6716# Character class describing NM global symbol codes.
6717symcode='[BCDEGRST]'
6718
6719# Regexp to match symbols that can be accessed directly from C.
6720sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6721
6722# Define system-specific variables.
6723case $host_os in
6724aix*)
6725  symcode='[BCDT]'
6726  ;;
6727cygwin* | mingw* | pw32* | cegcc*)
6728  symcode='[ABCDGISTW]'
6729  ;;
6730hpux*)
6731  if test "$host_cpu" = ia64; then
6732    symcode='[ABCDEGRST]'
6733  fi
6734  ;;
6735irix* | nonstopux*)
6736  symcode='[BCDEGRST]'
6737  ;;
6738osf*)
6739  symcode='[BCDEGQRST]'
6740  ;;
6741solaris*)
6742  symcode='[BDRT]'
6743  ;;
6744sco3.2v5*)
6745  symcode='[DT]'
6746  ;;
6747sysv4.2uw2*)
6748  symcode='[DT]'
6749  ;;
6750sysv5* | sco5v6* | unixware* | OpenUNIX*)
6751  symcode='[ABDT]'
6752  ;;
6753sysv4)
6754  symcode='[DFNSTU]'
6755  ;;
6756esac
6757
6758# If we're using GNU nm, then use its standard symbol codes.
6759case `$NM -V 2>&1` in
6760*GNU* | *'with BFD'*)
6761  symcode='[ABCDGIRSTW]' ;;
6762esac
6763
6764# Transform an extracted symbol line into a proper C declaration.
6765# Some systems (esp. on ia64) link data and code symbols differently,
6766# so use this general approach.
6767lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6768
6769# Transform an extracted symbol line into symbol name and symbol address
6770lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6771lt_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'"
6772
6773# Handle CRLF in mingw tool chain
6774opt_cr=
6775case $build_os in
6776mingw*)
6777  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6778  ;;
6779esac
6780
6781# Try without a prefix underscore, then with it.
6782for ac_symprfx in "" "_"; do
6783
6784  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6785  symxfrm="\\1 $ac_symprfx\\2 \\2"
6786
6787  # Write the raw and C identifiers.
6788  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6789    # Fake it for dumpbin and say T for any non-static function
6790    # and D for any global variable.
6791    # Also find C++ and __fastcall symbols from MSVC++,
6792    # which start with @ or ?.
6793    lt_cv_sys_global_symbol_pipe="$AWK '"\
6794"     {last_section=section; section=\$ 3};"\
6795"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6796"     \$ 0!~/External *\|/{next};"\
6797"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6798"     {if(hide[section]) next};"\
6799"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6800"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6801"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6802"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6803"     ' prfx=^$ac_symprfx"
6804  else
6805    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6806  fi
6807
6808  # Check to see that the pipe works correctly.
6809  pipe_works=no
6810
6811  rm -f conftest*
6812  cat > conftest.$ac_ext <<_LT_EOF
6813#ifdef __cplusplus
6814extern "C" {
6815#endif
6816char nm_test_var;
6817void nm_test_func(void);
6818void nm_test_func(void){}
6819#ifdef __cplusplus
6820}
6821#endif
6822int main(){nm_test_var='a';nm_test_func();return(0);}
6823_LT_EOF
6824
6825  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6826  (eval $ac_compile) 2>&5
6827  ac_status=$?
6828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6829  test $ac_status = 0; }; then
6830    # Now try to grab the symbols.
6831    nlist=conftest.nm
6832    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6833  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6834  ac_status=$?
6835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6836  test $ac_status = 0; } && test -s "$nlist"; then
6837      # Try sorting and uniquifying the output.
6838      if sort "$nlist" | uniq > "$nlist"T; then
6839        mv -f "$nlist"T "$nlist"
6840      else
6841        rm -f "$nlist"T
6842      fi
6843
6844      # Make sure that we snagged all the symbols we need.
6845      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6846        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6847          cat <<_LT_EOF > conftest.$ac_ext
6848#ifdef __cplusplus
6849extern "C" {
6850#endif
6851
6852_LT_EOF
6853          # Now generate the symbol file.
6854          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6855
6856          cat <<_LT_EOF >> conftest.$ac_ext
6857
6858/* The mapping between symbol names and symbols.  */
6859const struct {
6860  const char *name;
6861  void       *address;
6862}
6863lt__PROGRAM__LTX_preloaded_symbols[] =
6864{
6865  { "@PROGRAM@", (void *) 0 },
6866_LT_EOF
6867          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6868          cat <<\_LT_EOF >> conftest.$ac_ext
6869  {0, (void *) 0}
6870};
6871
6872/* This works around a problem in FreeBSD linker */
6873#ifdef FREEBSD_WORKAROUND
6874static const void *lt_preloaded_setup() {
6875  return lt__PROGRAM__LTX_preloaded_symbols;
6876}
6877#endif
6878
6879#ifdef __cplusplus
6880}
6881#endif
6882_LT_EOF
6883          # Now try linking the two files.
6884          mv conftest.$ac_objext conftstm.$ac_objext
6885          lt_save_LIBS="$LIBS"
6886          lt_save_CFLAGS="$CFLAGS"
6887          LIBS="conftstm.$ac_objext"
6888          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6889          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6890  (eval $ac_link) 2>&5
6891  ac_status=$?
6892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6893  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6894            pipe_works=yes
6895          fi
6896          LIBS="$lt_save_LIBS"
6897          CFLAGS="$lt_save_CFLAGS"
6898        else
6899          echo "cannot find nm_test_func in $nlist" >&5
6900        fi
6901      else
6902        echo "cannot find nm_test_var in $nlist" >&5
6903      fi
6904    else
6905      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6906    fi
6907  else
6908    echo "$progname: failed program was:" >&5
6909    cat conftest.$ac_ext >&5
6910  fi
6911  rm -rf conftest* conftst*
6912
6913  # Do not use the global_symbol_pipe unless it works.
6914  if test "$pipe_works" = yes; then
6915    break
6916  else
6917    lt_cv_sys_global_symbol_pipe=
6918  fi
6919done
6920
6921fi
6922
6923if test -z "$lt_cv_sys_global_symbol_pipe"; then
6924  lt_cv_sys_global_symbol_to_cdecl=
6925fi
6926if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6928$as_echo "failed" >&6; }
6929else
6930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6931$as_echo "ok" >&6; }
6932fi
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956# Check whether --enable-libtool-lock was given.
6957if test "${enable_libtool_lock+set}" = set; then :
6958  enableval=$enable_libtool_lock;
6959fi
6960
6961test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6962
6963# Some flags need to be propagated to the compiler or linker for good
6964# libtool support.
6965case $host in
6966ia64-*-hpux*)
6967  # Find out which ABI we are using.
6968  echo 'int i;' > conftest.$ac_ext
6969  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6970  (eval $ac_compile) 2>&5
6971  ac_status=$?
6972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6973  test $ac_status = 0; }; then
6974    case `/usr/bin/file conftest.$ac_objext` in
6975      *ELF-32*)
6976        HPUX_IA64_MODE="32"
6977        ;;
6978      *ELF-64*)
6979        HPUX_IA64_MODE="64"
6980        ;;
6981    esac
6982  fi
6983  rm -rf conftest*
6984  ;;
6985*-*-irix6*)
6986  # Find out which ABI we are using.
6987  echo '#line 6987 "configure"' > conftest.$ac_ext
6988  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6989  (eval $ac_compile) 2>&5
6990  ac_status=$?
6991  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6992  test $ac_status = 0; }; then
6993    if test "$lt_cv_prog_gnu_ld" = yes; then
6994      case `/usr/bin/file conftest.$ac_objext` in
6995        *32-bit*)
6996          LD="${LD-ld} -melf32bsmip"
6997          ;;
6998        *N32*)
6999          LD="${LD-ld} -melf32bmipn32"
7000          ;;
7001        *64-bit*)
7002          LD="${LD-ld} -melf64bmip"
7003        ;;
7004      esac
7005    else
7006      case `/usr/bin/file conftest.$ac_objext` in
7007        *32-bit*)
7008          LD="${LD-ld} -32"
7009          ;;
7010        *N32*)
7011          LD="${LD-ld} -n32"
7012          ;;
7013        *64-bit*)
7014          LD="${LD-ld} -64"
7015          ;;
7016      esac
7017    fi
7018  fi
7019  rm -rf conftest*
7020  ;;
7021
7022x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7023s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7024  # Find out which ABI we are using.
7025  echo 'int i;' > conftest.$ac_ext
7026  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7027  (eval $ac_compile) 2>&5
7028  ac_status=$?
7029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7030  test $ac_status = 0; }; then
7031    case `/usr/bin/file conftest.o` in
7032      *32-bit*)
7033        case $host in
7034          x86_64-*kfreebsd*-gnu)
7035            LD="${LD-ld} -m elf_i386_fbsd"
7036            ;;
7037          x86_64-*linux*)
7038            LD="${LD-ld} -m elf_i386"
7039            ;;
7040          ppc64-*linux*|powerpc64-*linux*)
7041            LD="${LD-ld} -m elf32ppclinux"
7042            ;;
7043          s390x-*linux*)
7044            LD="${LD-ld} -m elf_s390"
7045            ;;
7046          sparc64-*linux*)
7047            LD="${LD-ld} -m elf32_sparc"
7048            ;;
7049        esac
7050        ;;
7051      *64-bit*)
7052        case $host in
7053          x86_64-*kfreebsd*-gnu)
7054            LD="${LD-ld} -m elf_x86_64_fbsd"
7055            ;;
7056          x86_64-*linux*)
7057            LD="${LD-ld} -m elf_x86_64"
7058            ;;
7059          ppc*-*linux*|powerpc*-*linux*)
7060            LD="${LD-ld} -m elf64ppc"
7061            ;;
7062          s390*-*linux*|s390*-*tpf*)
7063            LD="${LD-ld} -m elf64_s390"
7064            ;;
7065          sparc*-*linux*)
7066            LD="${LD-ld} -m elf64_sparc"
7067            ;;
7068        esac
7069        ;;
7070    esac
7071  fi
7072  rm -rf conftest*
7073  ;;
7074
7075*-*-sco3.2v5*)
7076  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7077  SAVE_CFLAGS="$CFLAGS"
7078  CFLAGS="$CFLAGS -belf"
7079  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7080$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7081if test "${lt_cv_cc_needs_belf+set}" = set; then :
7082  $as_echo_n "(cached) " >&6
7083else
7084  ac_ext=c
7085ac_cpp='$CPP $CPPFLAGS'
7086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7088ac_compiler_gnu=$ac_cv_c_compiler_gnu
7089
7090     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091/* end confdefs.h.  */
7092
7093int
7094main ()
7095{
7096
7097  ;
7098  return 0;
7099}
7100_ACEOF
7101if ac_fn_c_try_link "$LINENO"; then :
7102  lt_cv_cc_needs_belf=yes
7103else
7104  lt_cv_cc_needs_belf=no
7105fi
7106rm -f core conftest.err conftest.$ac_objext \
7107    conftest$ac_exeext conftest.$ac_ext
7108     ac_ext=c
7109ac_cpp='$CPP $CPPFLAGS'
7110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7112ac_compiler_gnu=$ac_cv_c_compiler_gnu
7113
7114fi
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7116$as_echo "$lt_cv_cc_needs_belf" >&6; }
7117  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7118    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7119    CFLAGS="$SAVE_CFLAGS"
7120  fi
7121  ;;
7122sparc*-*solaris*)
7123  # Find out which ABI we are using.
7124  echo 'int i;' > conftest.$ac_ext
7125  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7126  (eval $ac_compile) 2>&5
7127  ac_status=$?
7128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7129  test $ac_status = 0; }; then
7130    case `/usr/bin/file conftest.o` in
7131    *64-bit*)
7132      case $lt_cv_prog_gnu_ld in
7133      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7134      *)
7135        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7136          LD="${LD-ld} -64"
7137        fi
7138        ;;
7139      esac
7140      ;;
7141    esac
7142  fi
7143  rm -rf conftest*
7144  ;;
7145esac
7146
7147need_locks="$enable_libtool_lock"
7148
7149
7150  case $host_os in
7151    rhapsody* | darwin*)
7152    if test -n "$ac_tool_prefix"; then
7153  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7154set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156$as_echo_n "checking for $ac_word... " >&6; }
7157if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7158  $as_echo_n "(cached) " >&6
7159else
7160  if test -n "$DSYMUTIL"; then
7161  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7162else
7163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164for as_dir in $PATH
7165do
7166  IFS=$as_save_IFS
7167  test -z "$as_dir" && as_dir=.
7168    for ac_exec_ext in '' $ac_executable_extensions; do
7169  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7170    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172    break 2
7173  fi
7174done
7175  done
7176IFS=$as_save_IFS
7177
7178fi
7179fi
7180DSYMUTIL=$ac_cv_prog_DSYMUTIL
7181if test -n "$DSYMUTIL"; then
7182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7183$as_echo "$DSYMUTIL" >&6; }
7184else
7185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186$as_echo "no" >&6; }
7187fi
7188
7189
7190fi
7191if test -z "$ac_cv_prog_DSYMUTIL"; then
7192  ac_ct_DSYMUTIL=$DSYMUTIL
7193  # Extract the first word of "dsymutil", so it can be a program name with args.
7194set dummy dsymutil; ac_word=$2
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196$as_echo_n "checking for $ac_word... " >&6; }
7197if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7198  $as_echo_n "(cached) " >&6
7199else
7200  if test -n "$ac_ct_DSYMUTIL"; then
7201  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7202else
7203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204for as_dir in $PATH
7205do
7206  IFS=$as_save_IFS
7207  test -z "$as_dir" && as_dir=.
7208    for ac_exec_ext in '' $ac_executable_extensions; do
7209  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7210    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7212    break 2
7213  fi
7214done
7215  done
7216IFS=$as_save_IFS
7217
7218fi
7219fi
7220ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7221if test -n "$ac_ct_DSYMUTIL"; then
7222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7223$as_echo "$ac_ct_DSYMUTIL" >&6; }
7224else
7225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226$as_echo "no" >&6; }
7227fi
7228
7229  if test "x$ac_ct_DSYMUTIL" = x; then
7230    DSYMUTIL=":"
7231  else
7232    case $cross_compiling:$ac_tool_warned in
7233yes:)
7234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7236ac_tool_warned=yes ;;
7237esac
7238    DSYMUTIL=$ac_ct_DSYMUTIL
7239  fi
7240else
7241  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7242fi
7243
7244    if test -n "$ac_tool_prefix"; then
7245  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7246set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248$as_echo_n "checking for $ac_word... " >&6; }
7249if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7250  $as_echo_n "(cached) " >&6
7251else
7252  if test -n "$NMEDIT"; then
7253  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7254else
7255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256for as_dir in $PATH
7257do
7258  IFS=$as_save_IFS
7259  test -z "$as_dir" && as_dir=.
7260    for ac_exec_ext in '' $ac_executable_extensions; do
7261  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7262    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264    break 2
7265  fi
7266done
7267  done
7268IFS=$as_save_IFS
7269
7270fi
7271fi
7272NMEDIT=$ac_cv_prog_NMEDIT
7273if test -n "$NMEDIT"; then
7274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7275$as_echo "$NMEDIT" >&6; }
7276else
7277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278$as_echo "no" >&6; }
7279fi
7280
7281
7282fi
7283if test -z "$ac_cv_prog_NMEDIT"; then
7284  ac_ct_NMEDIT=$NMEDIT
7285  # Extract the first word of "nmedit", so it can be a program name with args.
7286set dummy nmedit; ac_word=$2
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288$as_echo_n "checking for $ac_word... " >&6; }
7289if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7290  $as_echo_n "(cached) " >&6
7291else
7292  if test -n "$ac_ct_NMEDIT"; then
7293  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7294else
7295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296for as_dir in $PATH
7297do
7298  IFS=$as_save_IFS
7299  test -z "$as_dir" && as_dir=.
7300    for ac_exec_ext in '' $ac_executable_extensions; do
7301  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7302    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304    break 2
7305  fi
7306done
7307  done
7308IFS=$as_save_IFS
7309
7310fi
7311fi
7312ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7313if test -n "$ac_ct_NMEDIT"; then
7314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7315$as_echo "$ac_ct_NMEDIT" >&6; }
7316else
7317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318$as_echo "no" >&6; }
7319fi
7320
7321  if test "x$ac_ct_NMEDIT" = x; then
7322    NMEDIT=":"
7323  else
7324    case $cross_compiling:$ac_tool_warned in
7325yes:)
7326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7328ac_tool_warned=yes ;;
7329esac
7330    NMEDIT=$ac_ct_NMEDIT
7331  fi
7332else
7333  NMEDIT="$ac_cv_prog_NMEDIT"
7334fi
7335
7336    if test -n "$ac_tool_prefix"; then
7337  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7338set dummy ${ac_tool_prefix}lipo; ac_word=$2
7339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340$as_echo_n "checking for $ac_word... " >&6; }
7341if test "${ac_cv_prog_LIPO+set}" = set; then :
7342  $as_echo_n "(cached) " >&6
7343else
7344  if test -n "$LIPO"; then
7345  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7346else
7347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348for as_dir in $PATH
7349do
7350  IFS=$as_save_IFS
7351  test -z "$as_dir" && as_dir=.
7352    for ac_exec_ext in '' $ac_executable_extensions; do
7353  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7354    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356    break 2
7357  fi
7358done
7359  done
7360IFS=$as_save_IFS
7361
7362fi
7363fi
7364LIPO=$ac_cv_prog_LIPO
7365if test -n "$LIPO"; then
7366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7367$as_echo "$LIPO" >&6; }
7368else
7369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370$as_echo "no" >&6; }
7371fi
7372
7373
7374fi
7375if test -z "$ac_cv_prog_LIPO"; then
7376  ac_ct_LIPO=$LIPO
7377  # Extract the first word of "lipo", so it can be a program name with args.
7378set dummy lipo; ac_word=$2
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380$as_echo_n "checking for $ac_word... " >&6; }
7381if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7382  $as_echo_n "(cached) " >&6
7383else
7384  if test -n "$ac_ct_LIPO"; then
7385  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7386else
7387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388for as_dir in $PATH
7389do
7390  IFS=$as_save_IFS
7391  test -z "$as_dir" && as_dir=.
7392    for ac_exec_ext in '' $ac_executable_extensions; do
7393  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7394    ac_cv_prog_ac_ct_LIPO="lipo"
7395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396    break 2
7397  fi
7398done
7399  done
7400IFS=$as_save_IFS
7401
7402fi
7403fi
7404ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7405if test -n "$ac_ct_LIPO"; then
7406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7407$as_echo "$ac_ct_LIPO" >&6; }
7408else
7409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410$as_echo "no" >&6; }
7411fi
7412
7413  if test "x$ac_ct_LIPO" = x; then
7414    LIPO=":"
7415  else
7416    case $cross_compiling:$ac_tool_warned in
7417yes:)
7418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7420ac_tool_warned=yes ;;
7421esac
7422    LIPO=$ac_ct_LIPO
7423  fi
7424else
7425  LIPO="$ac_cv_prog_LIPO"
7426fi
7427
7428    if test -n "$ac_tool_prefix"; then
7429  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7430set dummy ${ac_tool_prefix}otool; ac_word=$2
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432$as_echo_n "checking for $ac_word... " >&6; }
7433if test "${ac_cv_prog_OTOOL+set}" = set; then :
7434  $as_echo_n "(cached) " >&6
7435else
7436  if test -n "$OTOOL"; then
7437  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7438else
7439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440for as_dir in $PATH
7441do
7442  IFS=$as_save_IFS
7443  test -z "$as_dir" && as_dir=.
7444    for ac_exec_ext in '' $ac_executable_extensions; do
7445  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448    break 2
7449  fi
7450done
7451  done
7452IFS=$as_save_IFS
7453
7454fi
7455fi
7456OTOOL=$ac_cv_prog_OTOOL
7457if test -n "$OTOOL"; then
7458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7459$as_echo "$OTOOL" >&6; }
7460else
7461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462$as_echo "no" >&6; }
7463fi
7464
7465
7466fi
7467if test -z "$ac_cv_prog_OTOOL"; then
7468  ac_ct_OTOOL=$OTOOL
7469  # Extract the first word of "otool", so it can be a program name with args.
7470set dummy otool; ac_word=$2
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472$as_echo_n "checking for $ac_word... " >&6; }
7473if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7474  $as_echo_n "(cached) " >&6
7475else
7476  if test -n "$ac_ct_OTOOL"; then
7477  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7478else
7479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480for as_dir in $PATH
7481do
7482  IFS=$as_save_IFS
7483  test -z "$as_dir" && as_dir=.
7484    for ac_exec_ext in '' $ac_executable_extensions; do
7485  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7486    ac_cv_prog_ac_ct_OTOOL="otool"
7487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488    break 2
7489  fi
7490done
7491  done
7492IFS=$as_save_IFS
7493
7494fi
7495fi
7496ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7497if test -n "$ac_ct_OTOOL"; then
7498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7499$as_echo "$ac_ct_OTOOL" >&6; }
7500else
7501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502$as_echo "no" >&6; }
7503fi
7504
7505  if test "x$ac_ct_OTOOL" = x; then
7506    OTOOL=":"
7507  else
7508    case $cross_compiling:$ac_tool_warned in
7509yes:)
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7512ac_tool_warned=yes ;;
7513esac
7514    OTOOL=$ac_ct_OTOOL
7515  fi
7516else
7517  OTOOL="$ac_cv_prog_OTOOL"
7518fi
7519
7520    if test -n "$ac_tool_prefix"; then
7521  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7522set dummy ${ac_tool_prefix}otool64; ac_word=$2
7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524$as_echo_n "checking for $ac_word... " >&6; }
7525if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7526  $as_echo_n "(cached) " >&6
7527else
7528  if test -n "$OTOOL64"; then
7529  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7530else
7531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532for as_dir in $PATH
7533do
7534  IFS=$as_save_IFS
7535  test -z "$as_dir" && as_dir=.
7536    for ac_exec_ext in '' $ac_executable_extensions; do
7537  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7538    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7540    break 2
7541  fi
7542done
7543  done
7544IFS=$as_save_IFS
7545
7546fi
7547fi
7548OTOOL64=$ac_cv_prog_OTOOL64
7549if test -n "$OTOOL64"; then
7550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7551$as_echo "$OTOOL64" >&6; }
7552else
7553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554$as_echo "no" >&6; }
7555fi
7556
7557
7558fi
7559if test -z "$ac_cv_prog_OTOOL64"; then
7560  ac_ct_OTOOL64=$OTOOL64
7561  # Extract the first word of "otool64", so it can be a program name with args.
7562set dummy otool64; ac_word=$2
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564$as_echo_n "checking for $ac_word... " >&6; }
7565if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7566  $as_echo_n "(cached) " >&6
7567else
7568  if test -n "$ac_ct_OTOOL64"; then
7569  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7570else
7571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572for as_dir in $PATH
7573do
7574  IFS=$as_save_IFS
7575  test -z "$as_dir" && as_dir=.
7576    for ac_exec_ext in '' $ac_executable_extensions; do
7577  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7578    ac_cv_prog_ac_ct_OTOOL64="otool64"
7579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580    break 2
7581  fi
7582done
7583  done
7584IFS=$as_save_IFS
7585
7586fi
7587fi
7588ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7589if test -n "$ac_ct_OTOOL64"; then
7590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7591$as_echo "$ac_ct_OTOOL64" >&6; }
7592else
7593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594$as_echo "no" >&6; }
7595fi
7596
7597  if test "x$ac_ct_OTOOL64" = x; then
7598    OTOOL64=":"
7599  else
7600    case $cross_compiling:$ac_tool_warned in
7601yes:)
7602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7604ac_tool_warned=yes ;;
7605esac
7606    OTOOL64=$ac_ct_OTOOL64
7607  fi
7608else
7609  OTOOL64="$ac_cv_prog_OTOOL64"
7610fi
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7639$as_echo_n "checking for -single_module linker flag... " >&6; }
7640if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7641  $as_echo_n "(cached) " >&6
7642else
7643  lt_cv_apple_cc_single_mod=no
7644      if test -z "${LT_MULTI_MODULE}"; then
7645        # By default we will add the -single_module flag. You can override
7646        # by either setting the environment variable LT_MULTI_MODULE
7647        # non-empty at configure time, or by adding -multi_module to the
7648        # link flags.
7649        rm -rf libconftest.dylib*
7650        echo "int foo(void){return 1;}" > conftest.c
7651        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7652-dynamiclib -Wl,-single_module conftest.c" >&5
7653        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7654          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7655        _lt_result=$?
7656        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7657          lt_cv_apple_cc_single_mod=yes
7658        else
7659          cat conftest.err >&5
7660        fi
7661        rm -rf libconftest.dylib*
7662        rm -f conftest.*
7663      fi
7664fi
7665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7666$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7667    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7668$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7669if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7670  $as_echo_n "(cached) " >&6
7671else
7672  lt_cv_ld_exported_symbols_list=no
7673      save_LDFLAGS=$LDFLAGS
7674      echo "_main" > conftest.sym
7675      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7676      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677/* end confdefs.h.  */
7678
7679int
7680main ()
7681{
7682
7683  ;
7684  return 0;
7685}
7686_ACEOF
7687if ac_fn_c_try_link "$LINENO"; then :
7688  lt_cv_ld_exported_symbols_list=yes
7689else
7690  lt_cv_ld_exported_symbols_list=no
7691fi
7692rm -f core conftest.err conftest.$ac_objext \
7693    conftest$ac_exeext conftest.$ac_ext
7694        LDFLAGS="$save_LDFLAGS"
7695
7696fi
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7698$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7699    case $host_os in
7700    rhapsody* | darwin1.[012])
7701      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7702    darwin1.*)
7703      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7704    darwin*) # darwin 5.x on
7705      # if running on 10.5 or later, the deployment target defaults
7706      # to the OS version, if on x86, and 10.4, the deployment
7707      # target defaults to 10.4. Don't you love it?
7708      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7709        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7710          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7711        10.[012]*)
7712          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7713        10.*)
7714          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7715      esac
7716    ;;
7717  esac
7718    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7719      _lt_dar_single_mod='$single_module'
7720    fi
7721    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7722      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7723    else
7724      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7725    fi
7726    if test "$DSYMUTIL" != ":"; then
7727      _lt_dsymutil='~$DSYMUTIL $lib || :'
7728    else
7729      _lt_dsymutil=
7730    fi
7731    ;;
7732  esac
7733
7734
7735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7736$as_echo_n "checking for ANSI C header files... " >&6; }
7737if test "${ac_cv_header_stdc+set}" = set; then :
7738  $as_echo_n "(cached) " >&6
7739else
7740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7741/* end confdefs.h.  */
7742#include <stdlib.h>
7743#include <stdarg.h>
7744#include <string.h>
7745#include <float.h>
7746
7747int
7748main ()
7749{
7750
7751  ;
7752  return 0;
7753}
7754_ACEOF
7755if ac_fn_c_try_compile "$LINENO"; then :
7756  ac_cv_header_stdc=yes
7757else
7758  ac_cv_header_stdc=no
7759fi
7760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761
7762if test $ac_cv_header_stdc = yes; then
7763  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765/* end confdefs.h.  */
7766#include <string.h>
7767
7768_ACEOF
7769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7770  $EGREP "memchr" >/dev/null 2>&1; then :
7771
7772else
7773  ac_cv_header_stdc=no
7774fi
7775rm -f conftest*
7776
7777fi
7778
7779if test $ac_cv_header_stdc = yes; then
7780  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782/* end confdefs.h.  */
7783#include <stdlib.h>
7784
7785_ACEOF
7786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7787  $EGREP "free" >/dev/null 2>&1; then :
7788
7789else
7790  ac_cv_header_stdc=no
7791fi
7792rm -f conftest*
7793
7794fi
7795
7796if test $ac_cv_header_stdc = yes; then
7797  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7798  if test "$cross_compiling" = yes; then :
7799  :
7800else
7801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802/* end confdefs.h.  */
7803#include <ctype.h>
7804#include <stdlib.h>
7805#if ((' ' & 0x0FF) == 0x020)
7806# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7807# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7808#else
7809# define ISLOWER(c) \
7810                   (('a' <= (c) && (c) <= 'i') \
7811                     || ('j' <= (c) && (c) <= 'r') \
7812                     || ('s' <= (c) && (c) <= 'z'))
7813# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7814#endif
7815
7816#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7817int
7818main ()
7819{
7820  int i;
7821  for (i = 0; i < 256; i++)
7822    if (XOR (islower (i), ISLOWER (i))
7823        || toupper (i) != TOUPPER (i))
7824      return 2;
7825  return 0;
7826}
7827_ACEOF
7828if ac_fn_c_try_run "$LINENO"; then :
7829
7830else
7831  ac_cv_header_stdc=no
7832fi
7833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7834  conftest.$ac_objext conftest.beam conftest.$ac_ext
7835fi
7836
7837fi
7838fi
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7840$as_echo "$ac_cv_header_stdc" >&6; }
7841if test $ac_cv_header_stdc = yes; then
7842
7843$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7844
7845fi
7846
7847# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7848for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7849                  inttypes.h stdint.h unistd.h
7850do :
7851  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7852ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7853"
7854eval as_val=\$$as_ac_Header
7855   if test "x$as_val" = x""yes; then :
7856  cat >>confdefs.h <<_ACEOF
7857#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7858_ACEOF
7859
7860fi
7861
7862done
7863
7864
7865for ac_header in dlfcn.h
7866do :
7867  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7868"
7869if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7870  cat >>confdefs.h <<_ACEOF
7871#define HAVE_DLFCN_H 1
7872_ACEOF
7873
7874fi
7875
7876done
7877
7878
7879
7880ac_ext=cpp
7881ac_cpp='$CXXCPP $CPPFLAGS'
7882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7885if test -z "$CXX"; then
7886  if test -n "$CCC"; then
7887    CXX=$CCC
7888  else
7889    if test -n "$ac_tool_prefix"; then
7890  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7891  do
7892    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7893set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895$as_echo_n "checking for $ac_word... " >&6; }
7896if test "${ac_cv_prog_CXX+set}" = set; then :
7897  $as_echo_n "(cached) " >&6
7898else
7899  if test -n "$CXX"; then
7900  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7901else
7902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903for as_dir in $PATH
7904do
7905  IFS=$as_save_IFS
7906  test -z "$as_dir" && as_dir=.
7907    for ac_exec_ext in '' $ac_executable_extensions; do
7908  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7909    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911    break 2
7912  fi
7913done
7914  done
7915IFS=$as_save_IFS
7916
7917fi
7918fi
7919CXX=$ac_cv_prog_CXX
7920if test -n "$CXX"; then
7921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7922$as_echo "$CXX" >&6; }
7923else
7924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925$as_echo "no" >&6; }
7926fi
7927
7928
7929    test -n "$CXX" && break
7930  done
7931fi
7932if test -z "$CXX"; then
7933  ac_ct_CXX=$CXX
7934  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7935do
7936  # Extract the first word of "$ac_prog", so it can be a program name with args.
7937set dummy $ac_prog; ac_word=$2
7938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7939$as_echo_n "checking for $ac_word... " >&6; }
7940if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7941  $as_echo_n "(cached) " >&6
7942else
7943  if test -n "$ac_ct_CXX"; then
7944  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7945else
7946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947for as_dir in $PATH
7948do
7949  IFS=$as_save_IFS
7950  test -z "$as_dir" && as_dir=.
7951    for ac_exec_ext in '' $ac_executable_extensions; do
7952  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7953    ac_cv_prog_ac_ct_CXX="$ac_prog"
7954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955    break 2
7956  fi
7957done
7958  done
7959IFS=$as_save_IFS
7960
7961fi
7962fi
7963ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7964if test -n "$ac_ct_CXX"; then
7965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7966$as_echo "$ac_ct_CXX" >&6; }
7967else
7968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969$as_echo "no" >&6; }
7970fi
7971
7972
7973  test -n "$ac_ct_CXX" && break
7974done
7975
7976  if test "x$ac_ct_CXX" = x; then
7977    CXX="g++"
7978  else
7979    case $cross_compiling:$ac_tool_warned in
7980yes:)
7981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7983ac_tool_warned=yes ;;
7984esac
7985    CXX=$ac_ct_CXX
7986  fi
7987fi
7988
7989  fi
7990fi
7991# Provide some information about the compiler.
7992$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7993set X $ac_compile
7994ac_compiler=$2
7995for ac_option in --version -v -V -qversion; do
7996  { { ac_try="$ac_compiler $ac_option >&5"
7997case "(($ac_try" in
7998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7999  *) ac_try_echo=$ac_try;;
8000esac
8001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8002$as_echo "$ac_try_echo"; } >&5
8003  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8004  ac_status=$?
8005  if test -s conftest.err; then
8006    sed '10a\
8007... rest of stderr output deleted ...
8008         10q' conftest.err >conftest.er1
8009    cat conftest.er1 >&5
8010  fi
8011  rm -f conftest.er1 conftest.err
8012  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8013  test $ac_status = 0; }
8014done
8015
8016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8017$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8018if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8019  $as_echo_n "(cached) " >&6
8020else
8021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022/* end confdefs.h.  */
8023
8024int
8025main ()
8026{
8027#ifndef __GNUC__
8028       choke me
8029#endif
8030
8031  ;
8032  return 0;
8033}
8034_ACEOF
8035if ac_fn_cxx_try_compile "$LINENO"; then :
8036  ac_compiler_gnu=yes
8037else
8038  ac_compiler_gnu=no
8039fi
8040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8041ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8042
8043fi
8044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8045$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8046if test $ac_compiler_gnu = yes; then
8047  GXX=yes
8048else
8049  GXX=
8050fi
8051ac_test_CXXFLAGS=${CXXFLAGS+set}
8052ac_save_CXXFLAGS=$CXXFLAGS
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8054$as_echo_n "checking whether $CXX accepts -g... " >&6; }
8055if test "${ac_cv_prog_cxx_g+set}" = set; then :
8056  $as_echo_n "(cached) " >&6
8057else
8058  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8059   ac_cxx_werror_flag=yes
8060   ac_cv_prog_cxx_g=no
8061   CXXFLAGS="-g"
8062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063/* end confdefs.h.  */
8064
8065int
8066main ()
8067{
8068
8069  ;
8070  return 0;
8071}
8072_ACEOF
8073if ac_fn_cxx_try_compile "$LINENO"; then :
8074  ac_cv_prog_cxx_g=yes
8075else
8076  CXXFLAGS=""
8077      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078/* end confdefs.h.  */
8079
8080int
8081main ()
8082{
8083
8084  ;
8085  return 0;
8086}
8087_ACEOF
8088if ac_fn_cxx_try_compile "$LINENO"; then :
8089
8090else
8091  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8092         CXXFLAGS="-g"
8093         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094/* end confdefs.h.  */
8095
8096int
8097main ()
8098{
8099
8100  ;
8101  return 0;
8102}
8103_ACEOF
8104if ac_fn_cxx_try_compile "$LINENO"; then :
8105  ac_cv_prog_cxx_g=yes
8106fi
8107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8108fi
8109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8110fi
8111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8112   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8113fi
8114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8115$as_echo "$ac_cv_prog_cxx_g" >&6; }
8116if test "$ac_test_CXXFLAGS" = set; then
8117  CXXFLAGS=$ac_save_CXXFLAGS
8118elif test $ac_cv_prog_cxx_g = yes; then
8119  if test "$GXX" = yes; then
8120    CXXFLAGS="-g -O2"
8121  else
8122    CXXFLAGS="-g"
8123  fi
8124else
8125  if test "$GXX" = yes; then
8126    CXXFLAGS="-O2"
8127  else
8128    CXXFLAGS=
8129  fi
8130fi
8131ac_ext=c
8132ac_cpp='$CPP $CPPFLAGS'
8133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8135ac_compiler_gnu=$ac_cv_c_compiler_gnu
8136
8137depcc="$CXX"  am_compiler_list=
8138
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8140$as_echo_n "checking dependency style of $depcc... " >&6; }
8141if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8142  $as_echo_n "(cached) " >&6
8143else
8144  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8145  # We make a subdir and do the tests there.  Otherwise we can end up
8146  # making bogus files that we don't know about and never remove.  For
8147  # instance it was reported that on HP-UX the gcc test will end up
8148  # making a dummy file named `D' -- because `-MD' means `put the output
8149  # in D'.
8150  mkdir conftest.dir
8151  # Copy depcomp to subdir because otherwise we won't find it if we're
8152  # using a relative directory.
8153  cp "$am_depcomp" conftest.dir
8154  cd conftest.dir
8155  # We will build objects and dependencies in a subdirectory because
8156  # it helps to detect inapplicable dependency modes.  For instance
8157  # both Tru64's cc and ICC support -MD to output dependencies as a
8158  # side effect of compilation, but ICC will put the dependencies in
8159  # the current directory while Tru64 will put them in the object
8160  # directory.
8161  mkdir sub
8162
8163  am_cv_CXX_dependencies_compiler_type=none
8164  if test "$am_compiler_list" = ""; then
8165     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8166  fi
8167  am__universal=false
8168  case " $depcc " in #(
8169     *\ -arch\ *\ -arch\ *) am__universal=true ;;
8170     esac
8171
8172  for depmode in $am_compiler_list; do
8173    # Setup a source with many dependencies, because some compilers
8174    # like to wrap large dependency lists on column 80 (with \), and
8175    # we should not choose a depcomp mode which is confused by this.
8176    #
8177    # We need to recreate these files for each test, as the compiler may
8178    # overwrite some of them when testing with obscure command lines.
8179    # This happens at least with the AIX C compiler.
8180    : > sub/conftest.c
8181    for i in 1 2 3 4 5 6; do
8182      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8183      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8184      # Solaris 8's {/usr,}/bin/sh.
8185      touch sub/conftst$i.h
8186    done
8187    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8188
8189    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8190    # mode.  It turns out that the SunPro C++ compiler does not properly
8191    # handle `-M -o', and we need to detect this.  Also, some Intel
8192    # versions had trouble with output in subdirs
8193    am__obj=sub/conftest.${OBJEXT-o}
8194    am__minus_obj="-o $am__obj"
8195    case $depmode in
8196    gcc)
8197      # This depmode causes a compiler race in universal mode.
8198      test "$am__universal" = false || continue
8199      ;;
8200    nosideeffect)
8201      # after this tag, mechanisms are not by side-effect, so they'll
8202      # only be used when explicitly requested
8203      if test "x$enable_dependency_tracking" = xyes; then
8204        continue
8205      else
8206        break
8207      fi
8208      ;;
8209    msvisualcpp | msvcmsys)
8210      # This compiler won't grok `-c -o', but also, the minuso test has
8211      # not run yet.  These depmodes are late enough in the game, and
8212      # so weak that their functioning should not be impacted.
8213      am__obj=conftest.${OBJEXT-o}
8214      am__minus_obj=
8215      ;;
8216    none) break ;;
8217    esac
8218    if depmode=$depmode \
8219       source=sub/conftest.c object=$am__obj \
8220       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8221       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8222         >/dev/null 2>conftest.err &&
8223       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8224       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8225       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8226       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8227      # icc doesn't choke on unknown options, it will just issue warnings
8228      # or remarks (even with -Werror).  So we grep stderr for any message
8229      # that says an option was ignored or not supported.
8230      # When given -MP, icc 7.0 and 7.1 complain thusly:
8231      #   icc: Command line warning: ignoring option '-M'; no argument required
8232      # The diagnosis changed in icc 8.0:
8233      #   icc: Command line remark: option '-MP' not supported
8234      if (grep 'ignoring option' conftest.err ||
8235          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8236        am_cv_CXX_dependencies_compiler_type=$depmode
8237        break
8238      fi
8239    fi
8240  done
8241
8242  cd ..
8243  rm -rf conftest.dir
8244else
8245  am_cv_CXX_dependencies_compiler_type=none
8246fi
8247
8248fi
8249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8250$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8251CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8252
8253 if
8254  test "x$enable_dependency_tracking" != xno \
8255  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8256  am__fastdepCXX_TRUE=
8257  am__fastdepCXX_FALSE='#'
8258else
8259  am__fastdepCXX_TRUE='#'
8260  am__fastdepCXX_FALSE=
8261fi
8262
8263
8264if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8265    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8266    (test "X$CXX" != "Xg++"))) ; then
8267  ac_ext=cpp
8268ac_cpp='$CXXCPP $CPPFLAGS'
8269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8273$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8274if test -z "$CXXCPP"; then
8275  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8276  $as_echo_n "(cached) " >&6
8277else
8278      # Double quotes because CXXCPP needs to be expanded
8279    for CXXCPP in "$CXX -E" "/lib/cpp"
8280    do
8281      ac_preproc_ok=false
8282for ac_cxx_preproc_warn_flag in '' yes
8283do
8284  # Use a header file that comes with gcc, so configuring glibc
8285  # with a fresh cross-compiler works.
8286  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8287  # <limits.h> exists even on freestanding compilers.
8288  # On the NeXT, cc -E runs the code through the compiler's parser,
8289  # not just through cpp. "Syntax error" is here to catch this case.
8290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291/* end confdefs.h.  */
8292#ifdef __STDC__
8293# include <limits.h>
8294#else
8295# include <assert.h>
8296#endif
8297                     Syntax error
8298_ACEOF
8299if ac_fn_cxx_try_cpp "$LINENO"; then :
8300
8301else
8302  # Broken: fails on valid input.
8303continue
8304fi
8305rm -f conftest.err conftest.$ac_ext
8306
8307  # OK, works on sane cases.  Now check whether nonexistent headers
8308  # can be detected and how.
8309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8310/* end confdefs.h.  */
8311#include <ac_nonexistent.h>
8312_ACEOF
8313if ac_fn_cxx_try_cpp "$LINENO"; then :
8314  # Broken: success on invalid input.
8315continue
8316else
8317  # Passes both tests.
8318ac_preproc_ok=:
8319break
8320fi
8321rm -f conftest.err conftest.$ac_ext
8322
8323done
8324# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8325rm -f conftest.err conftest.$ac_ext
8326if $ac_preproc_ok; then :
8327  break
8328fi
8329
8330    done
8331    ac_cv_prog_CXXCPP=$CXXCPP
8332
8333fi
8334  CXXCPP=$ac_cv_prog_CXXCPP
8335else
8336  ac_cv_prog_CXXCPP=$CXXCPP
8337fi
8338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8339$as_echo "$CXXCPP" >&6; }
8340ac_preproc_ok=false
8341for ac_cxx_preproc_warn_flag in '' yes
8342do
8343  # Use a header file that comes with gcc, so configuring glibc
8344  # with a fresh cross-compiler works.
8345  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8346  # <limits.h> exists even on freestanding compilers.
8347  # On the NeXT, cc -E runs the code through the compiler's parser,
8348  # not just through cpp. "Syntax error" is here to catch this case.
8349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350/* end confdefs.h.  */
8351#ifdef __STDC__
8352# include <limits.h>
8353#else
8354# include <assert.h>
8355#endif
8356                     Syntax error
8357_ACEOF
8358if ac_fn_cxx_try_cpp "$LINENO"; then :
8359
8360else
8361  # Broken: fails on valid input.
8362continue
8363fi
8364rm -f conftest.err conftest.$ac_ext
8365
8366  # OK, works on sane cases.  Now check whether nonexistent headers
8367  # can be detected and how.
8368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369/* end confdefs.h.  */
8370#include <ac_nonexistent.h>
8371_ACEOF
8372if ac_fn_cxx_try_cpp "$LINENO"; then :
8373  # Broken: success on invalid input.
8374continue
8375else
8376  # Passes both tests.
8377ac_preproc_ok=:
8378break
8379fi
8380rm -f conftest.err conftest.$ac_ext
8381
8382done
8383# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8384rm -f conftest.err conftest.$ac_ext
8385if $ac_preproc_ok; then :
8386
8387else
8388  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8390_lt_caught_CXX_error=yes; }
8391fi
8392
8393ac_ext=c
8394ac_cpp='$CPP $CPPFLAGS'
8395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8397ac_compiler_gnu=$ac_cv_c_compiler_gnu
8398
8399else
8400  _lt_caught_CXX_error=yes
8401fi
8402
8403
8404
8405
8406
8407# Set options
8408
8409
8410
8411        enable_dlopen=no
8412
8413
8414
8415            # Check whether --enable-shared was given.
8416if test "${enable_shared+set}" = set; then :
8417  enableval=$enable_shared; p=${PACKAGE-default}
8418    case $enableval in
8419    yes) enable_shared=yes ;;
8420    no) enable_shared=no ;;
8421    *)
8422      enable_shared=no
8423      # Look at the argument we got.  We use all the common list separators.
8424      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8425      for pkg in $enableval; do
8426        IFS="$lt_save_ifs"
8427        if test "X$pkg" = "X$p"; then
8428          enable_shared=yes
8429        fi
8430      done
8431      IFS="$lt_save_ifs"
8432      ;;
8433    esac
8434else
8435  enable_shared=yes
8436fi
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446  # Check whether --enable-static was given.
8447if test "${enable_static+set}" = set; then :
8448  enableval=$enable_static; p=${PACKAGE-default}
8449    case $enableval in
8450    yes) enable_static=yes ;;
8451    no) enable_static=no ;;
8452    *)
8453     enable_static=no
8454      # Look at the argument we got.  We use all the common list separators.
8455      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8456      for pkg in $enableval; do
8457        IFS="$lt_save_ifs"
8458        if test "X$pkg" = "X$p"; then
8459          enable_static=yes
8460        fi
8461      done
8462      IFS="$lt_save_ifs"
8463      ;;
8464    esac
8465else
8466  enable_static=yes
8467fi
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478# Check whether --with-pic was given.
8479if test "${with_pic+set}" = set; then :
8480  withval=$with_pic; pic_mode="$withval"
8481else
8482  pic_mode=default
8483fi
8484
8485
8486test -z "$pic_mode" && pic_mode=default
8487
8488
8489
8490
8491
8492
8493
8494  # Check whether --enable-fast-install was given.
8495if test "${enable_fast_install+set}" = set; then :
8496  enableval=$enable_fast_install; p=${PACKAGE-default}
8497    case $enableval in
8498    yes) enable_fast_install=yes ;;
8499    no) enable_fast_install=no ;;
8500    *)
8501      enable_fast_install=no
8502      # Look at the argument we got.  We use all the common list separators.
8503      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8504      for pkg in $enableval; do
8505        IFS="$lt_save_ifs"
8506        if test "X$pkg" = "X$p"; then
8507          enable_fast_install=yes
8508        fi
8509      done
8510      IFS="$lt_save_ifs"
8511      ;;
8512    esac
8513else
8514  enable_fast_install=yes
8515fi
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527# This can be used to rebuild libtool when needed
8528LIBTOOL_DEPS="$ltmain"
8529
8530# Always use our own libtool.
8531LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557test -z "$LN_S" && LN_S="ln -s"
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572if test -n "${ZSH_VERSION+set}" ; then
8573   setopt NO_GLOB_SUBST
8574fi
8575
8576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8577$as_echo_n "checking for objdir... " >&6; }
8578if test "${lt_cv_objdir+set}" = set; then :
8579  $as_echo_n "(cached) " >&6
8580else
8581  rm -f .libs 2>/dev/null
8582mkdir .libs 2>/dev/null
8583if test -d .libs; then
8584  lt_cv_objdir=.libs
8585else
8586  # MS-DOS does not allow filenames that begin with a dot.
8587  lt_cv_objdir=_libs
8588fi
8589rmdir .libs 2>/dev/null
8590fi
8591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8592$as_echo "$lt_cv_objdir" >&6; }
8593objdir=$lt_cv_objdir
8594
8595
8596
8597
8598
8599cat >>confdefs.h <<_ACEOF
8600#define LT_OBJDIR "$lt_cv_objdir/"
8601_ACEOF
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619case $host_os in
8620aix3*)
8621  # AIX sometimes has problems with the GCC collect2 program.  For some
8622  # reason, if we set the COLLECT_NAMES environment variable, the problems
8623  # vanish in a puff of smoke.
8624  if test "X${COLLECT_NAMES+set}" != Xset; then
8625    COLLECT_NAMES=
8626    export COLLECT_NAMES
8627  fi
8628  ;;
8629esac
8630
8631# Sed substitution that helps us do robust quoting.  It backslashifies
8632# metacharacters that are still active within double-quoted strings.
8633sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8634
8635# Same as above, but do not quote variable references.
8636double_quote_subst='s/\(["`\\]\)/\\\1/g'
8637
8638# Sed substitution to delay expansion of an escaped shell variable in a
8639# double_quote_subst'ed string.
8640delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8641
8642# Sed substitution to delay expansion of an escaped single quote.
8643delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8644
8645# Sed substitution to avoid accidental globbing in evaled expressions
8646no_glob_subst='s/\*/\\\*/g'
8647
8648# Global variables:
8649ofile=libtool
8650can_build_shared=yes
8651
8652# All known linkers require a `.a' archive for static linking (except MSVC,
8653# which needs '.lib').
8654libext=a
8655
8656with_gnu_ld="$lt_cv_prog_gnu_ld"
8657
8658old_CC="$CC"
8659old_CFLAGS="$CFLAGS"
8660
8661# Set sane defaults for various variables
8662test -z "$CC" && CC=cc
8663test -z "$LTCC" && LTCC=$CC
8664test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8665test -z "$LD" && LD=ld
8666test -z "$ac_objext" && ac_objext=o
8667
8668for cc_temp in $compiler""; do
8669  case $cc_temp in
8670    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8671    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8672    \-*) ;;
8673    *) break;;
8674  esac
8675done
8676cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8677
8678
8679# Only perform the check for file, if the check method requires it
8680test -z "$MAGIC_CMD" && MAGIC_CMD=file
8681case $deplibs_check_method in
8682file_magic*)
8683  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8684    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8685$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8686if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8687  $as_echo_n "(cached) " >&6
8688else
8689  case $MAGIC_CMD in
8690[\\/*] |  ?:[\\/]*)
8691  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8692  ;;
8693*)
8694  lt_save_MAGIC_CMD="$MAGIC_CMD"
8695  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8696  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8697  for ac_dir in $ac_dummy; do
8698    IFS="$lt_save_ifs"
8699    test -z "$ac_dir" && ac_dir=.
8700    if test -f $ac_dir/${ac_tool_prefix}file; then
8701      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8702      if test -n "$file_magic_test_file"; then
8703        case $deplibs_check_method in
8704        "file_magic "*)
8705          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8706          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8707          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8708            $EGREP "$file_magic_regex" > /dev/null; then
8709            :
8710          else
8711            cat <<_LT_EOF 1>&2
8712
8713*** Warning: the command libtool uses to detect shared libraries,
8714*** $file_magic_cmd, produces output that libtool cannot recognize.
8715*** The result is that libtool may fail to recognize shared libraries
8716*** as such.  This will affect the creation of libtool libraries that
8717*** depend on shared libraries, but programs linked with such libtool
8718*** libraries will work regardless of this problem.  Nevertheless, you
8719*** may want to report the problem to your system manager and/or to
8720*** bug-libtool@gnu.org
8721
8722_LT_EOF
8723          fi ;;
8724        esac
8725      fi
8726      break
8727    fi
8728  done
8729  IFS="$lt_save_ifs"
8730  MAGIC_CMD="$lt_save_MAGIC_CMD"
8731  ;;
8732esac
8733fi
8734
8735MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8736if test -n "$MAGIC_CMD"; then
8737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8738$as_echo "$MAGIC_CMD" >&6; }
8739else
8740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8741$as_echo "no" >&6; }
8742fi
8743
8744
8745
8746
8747
8748if test -z "$lt_cv_path_MAGIC_CMD"; then
8749  if test -n "$ac_tool_prefix"; then
8750    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8751$as_echo_n "checking for file... " >&6; }
8752if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8753  $as_echo_n "(cached) " >&6
8754else
8755  case $MAGIC_CMD in
8756[\\/*] |  ?:[\\/]*)
8757  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8758  ;;
8759*)
8760  lt_save_MAGIC_CMD="$MAGIC_CMD"
8761  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8762  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8763  for ac_dir in $ac_dummy; do
8764    IFS="$lt_save_ifs"
8765    test -z "$ac_dir" && ac_dir=.
8766    if test -f $ac_dir/file; then
8767      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8768      if test -n "$file_magic_test_file"; then
8769        case $deplibs_check_method in
8770        "file_magic "*)
8771          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8772          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8773          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8774            $EGREP "$file_magic_regex" > /dev/null; then
8775            :
8776          else
8777            cat <<_LT_EOF 1>&2
8778
8779*** Warning: the command libtool uses to detect shared libraries,
8780*** $file_magic_cmd, produces output that libtool cannot recognize.
8781*** The result is that libtool may fail to recognize shared libraries
8782*** as such.  This will affect the creation of libtool libraries that
8783*** depend on shared libraries, but programs linked with such libtool
8784*** libraries will work regardless of this problem.  Nevertheless, you
8785*** may want to report the problem to your system manager and/or to
8786*** bug-libtool@gnu.org
8787
8788_LT_EOF
8789          fi ;;
8790        esac
8791      fi
8792      break
8793    fi
8794  done
8795  IFS="$lt_save_ifs"
8796  MAGIC_CMD="$lt_save_MAGIC_CMD"
8797  ;;
8798esac
8799fi
8800
8801MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8802if test -n "$MAGIC_CMD"; then
8803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8804$as_echo "$MAGIC_CMD" >&6; }
8805else
8806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807$as_echo "no" >&6; }
8808fi
8809
8810
8811  else
8812    MAGIC_CMD=:
8813  fi
8814fi
8815
8816  fi
8817  ;;
8818esac
8819
8820# Use C for the default configuration in the libtool script
8821
8822lt_save_CC="$CC"
8823ac_ext=c
8824ac_cpp='$CPP $CPPFLAGS'
8825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8827ac_compiler_gnu=$ac_cv_c_compiler_gnu
8828
8829
8830# Source file extension for C test sources.
8831ac_ext=c
8832
8833# Object file extension for compiled C test sources.
8834objext=o
8835objext=$objext
8836
8837# Code to be used in simple compile tests
8838lt_simple_compile_test_code="int some_variable = 0;"
8839
8840# Code to be used in simple link tests
8841lt_simple_link_test_code='int main(){return(0);}'
8842
8843
8844
8845
8846
8847
8848
8849# If no C compiler was specified, use CC.
8850LTCC=${LTCC-"$CC"}
8851
8852# If no C compiler flags were specified, use CFLAGS.
8853LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8854
8855# Allow CC to be a program name with arguments.
8856compiler=$CC
8857
8858# Save the default compiler, since it gets overwritten when the other
8859# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8860compiler_DEFAULT=$CC
8861
8862# save warnings/boilerplate of simple test code
8863ac_outfile=conftest.$ac_objext
8864echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8865eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8866_lt_compiler_boilerplate=`cat conftest.err`
8867$RM conftest*
8868
8869ac_outfile=conftest.$ac_objext
8870echo "$lt_simple_link_test_code" >conftest.$ac_ext
8871eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8872_lt_linker_boilerplate=`cat conftest.err`
8873$RM -r conftest*
8874
8875
8876if test -n "$compiler"; then
8877
8878lt_prog_compiler_no_builtin_flag=
8879
8880if test "$GCC" = yes; then
8881  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8882
8883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8884$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8885if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8886  $as_echo_n "(cached) " >&6
8887else
8888  lt_cv_prog_compiler_rtti_exceptions=no
8889   ac_outfile=conftest.$ac_objext
8890   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8891   lt_compiler_flag="-fno-rtti -fno-exceptions"
8892   # Insert the option either (1) after the last *FLAGS variable, or
8893   # (2) before a word containing "conftest.", or (3) at the end.
8894   # Note that $ac_compile itself does not contain backslashes and begins
8895   # with a dollar sign (not a hyphen), so the echo should work correctly.
8896   # The option is referenced via a variable to avoid confusing sed.
8897   lt_compile=`echo "$ac_compile" | $SED \
8898   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8899   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8900   -e 's:$: $lt_compiler_flag:'`
8901   (eval echo "\"\$as_me:8901: $lt_compile\"" >&5)
8902   (eval "$lt_compile" 2>conftest.err)
8903   ac_status=$?
8904   cat conftest.err >&5
8905   echo "$as_me:8905: \$? = $ac_status" >&5
8906   if (exit $ac_status) && test -s "$ac_outfile"; then
8907     # The compiler can only warn and ignore the option if not recognized
8908     # So say no if there are warnings other than the usual output.
8909     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8910     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8911     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8912       lt_cv_prog_compiler_rtti_exceptions=yes
8913     fi
8914   fi
8915   $RM conftest*
8916
8917fi
8918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8919$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8920
8921if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8922    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8923else
8924    :
8925fi
8926
8927fi
8928
8929
8930
8931
8932
8933
8934  lt_prog_compiler_wl=
8935lt_prog_compiler_pic=
8936lt_prog_compiler_static=
8937
8938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8939$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8940
8941  if test "$GCC" = yes; then
8942    lt_prog_compiler_wl='-Wl,'
8943    lt_prog_compiler_static='-static'
8944
8945    case $host_os in
8946      aix*)
8947      # All AIX code is PIC.
8948      if test "$host_cpu" = ia64; then
8949        # AIX 5 now supports IA64 processor
8950        lt_prog_compiler_static='-Bstatic'
8951      fi
8952      ;;
8953
8954    amigaos*)
8955      case $host_cpu in
8956      powerpc)
8957            # see comment about AmigaOS4 .so support
8958            lt_prog_compiler_pic='-fPIC'
8959        ;;
8960      m68k)
8961            # FIXME: we need at least 68020 code to build shared libraries, but
8962            # adding the `-m68020' flag to GCC prevents building anything better,
8963            # like `-m68040'.
8964            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8965        ;;
8966      esac
8967      ;;
8968
8969    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8970      # PIC is the default for these OSes.
8971      ;;
8972
8973    mingw* | cygwin* | pw32* | os2* | cegcc*)
8974      # This hack is so that the source file can tell whether it is being
8975      # built for inclusion in a dll (and should export symbols for example).
8976      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8977      # (--disable-auto-import) libraries
8978      lt_prog_compiler_pic='-DDLL_EXPORT'
8979      ;;
8980
8981    darwin* | rhapsody*)
8982      # PIC is the default on this platform
8983      # Common symbols not allowed in MH_DYLIB files
8984      lt_prog_compiler_pic='-fno-common'
8985      ;;
8986
8987    hpux*)
8988      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8989      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8990      # sets the default TLS model and affects inlining.
8991      case $host_cpu in
8992      hppa*64*)
8993        # +Z the default
8994        ;;
8995      *)
8996        lt_prog_compiler_pic='-fPIC'
8997        ;;
8998      esac
8999      ;;
9000
9001    interix[3-9]*)
9002      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9003      # Instead, we relocate shared libraries at runtime.
9004      ;;
9005
9006    msdosdjgpp*)
9007      # Just because we use GCC doesn't mean we suddenly get shared libraries
9008      # on systems that don't support them.
9009      lt_prog_compiler_can_build_shared=no
9010      enable_shared=no
9011      ;;
9012
9013    *nto* | *qnx*)
9014      # QNX uses GNU C++, but need to define -shared option too, otherwise
9015      # it will coredump.
9016      lt_prog_compiler_pic='-fPIC -shared'
9017      ;;
9018
9019    sysv4*MP*)
9020      if test -d /usr/nec; then
9021        lt_prog_compiler_pic=-Kconform_pic
9022      fi
9023      ;;
9024
9025    *)
9026      lt_prog_compiler_pic='-fPIC'
9027      ;;
9028    esac
9029  else
9030    # PORTME Check for flag to pass linker flags through the system compiler.
9031    case $host_os in
9032    aix*)
9033      lt_prog_compiler_wl='-Wl,'
9034      if test "$host_cpu" = ia64; then
9035        # AIX 5 now supports IA64 processor
9036        lt_prog_compiler_static='-Bstatic'
9037      else
9038        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9039      fi
9040      ;;
9041
9042    mingw* | cygwin* | pw32* | os2* | cegcc*)
9043      # This hack is so that the source file can tell whether it is being
9044      # built for inclusion in a dll (and should export symbols for example).
9045      lt_prog_compiler_pic='-DDLL_EXPORT'
9046      ;;
9047
9048    hpux9* | hpux10* | hpux11*)
9049      lt_prog_compiler_wl='-Wl,'
9050      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9051      # not for PA HP-UX.
9052      case $host_cpu in
9053      hppa*64*|ia64*)
9054        # +Z the default
9055        ;;
9056      *)
9057        lt_prog_compiler_pic='+Z'
9058        ;;
9059      esac
9060      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9061      lt_prog_compiler_static='${wl}-a ${wl}archive'
9062      ;;
9063
9064    irix5* | irix6* | nonstopux*)
9065      lt_prog_compiler_wl='-Wl,'
9066      # PIC (with -KPIC) is the default.
9067      lt_prog_compiler_static='-non_shared'
9068      ;;
9069
9070    linux* | k*bsd*-gnu)
9071      case $cc_basename in
9072      # old Intel for x86_64 which still supported -KPIC.
9073      ecc*)
9074        lt_prog_compiler_wl='-Wl,'
9075        lt_prog_compiler_pic='-KPIC'
9076        lt_prog_compiler_static='-static'
9077        ;;
9078      # icc used to be incompatible with GCC.
9079      # ICC 10 doesn't accept -KPIC any more.
9080      icc* | ifort*)
9081        lt_prog_compiler_wl='-Wl,'
9082        lt_prog_compiler_pic='-fPIC'
9083        lt_prog_compiler_static='-static'
9084        ;;
9085      # Lahey Fortran 8.1.
9086      lf95*)
9087        lt_prog_compiler_wl='-Wl,'
9088        lt_prog_compiler_pic='--shared'
9089        lt_prog_compiler_static='--static'
9090        ;;
9091      pgcc* | pgf77* | pgf90* | pgf95*)
9092        # Portland Group compilers (*not* the Pentium gcc compiler,
9093        # which looks to be a dead project)
9094        lt_prog_compiler_wl='-Wl,'
9095        lt_prog_compiler_pic='-fpic'
9096        lt_prog_compiler_static='-Bstatic'
9097        ;;
9098      ccc*)
9099        lt_prog_compiler_wl='-Wl,'
9100        # All Alpha code is PIC.
9101        lt_prog_compiler_static='-non_shared'
9102        ;;
9103      xl*)
9104        # IBM XL C 8.0/Fortran 10.1 on PPC
9105        lt_prog_compiler_wl='-Wl,'
9106        lt_prog_compiler_pic='-qpic'
9107        lt_prog_compiler_static='-qstaticlink'
9108        ;;
9109      *)
9110        case `$CC -V 2>&1 | sed 5q` in
9111        *Sun\ C*)
9112          # Sun C 5.9
9113          lt_prog_compiler_pic='-KPIC'
9114          lt_prog_compiler_static='-Bstatic'
9115          lt_prog_compiler_wl='-Wl,'
9116          ;;
9117        *Sun\ F*)
9118          # Sun Fortran 8.3 passes all unrecognized flags to the linker
9119          lt_prog_compiler_pic='-KPIC'
9120          lt_prog_compiler_static='-Bstatic'
9121          lt_prog_compiler_wl=''
9122          ;;
9123        esac
9124        ;;
9125      esac
9126      ;;
9127
9128    newsos6)
9129      lt_prog_compiler_pic='-KPIC'
9130      lt_prog_compiler_static='-Bstatic'
9131      ;;
9132
9133    *nto* | *qnx*)
9134      # QNX uses GNU C++, but need to define -shared option too, otherwise
9135      # it will coredump.
9136      lt_prog_compiler_pic='-fPIC -shared'
9137      ;;
9138
9139    osf3* | osf4* | osf5*)
9140      lt_prog_compiler_wl='-Wl,'
9141      # All OSF/1 code is PIC.
9142      lt_prog_compiler_static='-non_shared'
9143      ;;
9144
9145    rdos*)
9146      lt_prog_compiler_static='-non_shared'
9147      ;;
9148
9149    solaris*)
9150      lt_prog_compiler_pic='-KPIC'
9151      lt_prog_compiler_static='-Bstatic'
9152      case $cc_basename in
9153      f77* | f90* | f95*)
9154        lt_prog_compiler_wl='-Qoption ld ';;
9155      *)
9156        lt_prog_compiler_wl='-Wl,';;
9157      esac
9158      ;;
9159
9160    sunos4*)
9161      lt_prog_compiler_wl='-Qoption ld '
9162      lt_prog_compiler_pic='-PIC'
9163      lt_prog_compiler_static='-Bstatic'
9164      ;;
9165
9166    sysv4 | sysv4.2uw2* | sysv4.3*)
9167      lt_prog_compiler_wl='-Wl,'
9168      lt_prog_compiler_pic='-KPIC'
9169      lt_prog_compiler_static='-Bstatic'
9170      ;;
9171
9172    sysv4*MP*)
9173      if test -d /usr/nec ;then
9174        lt_prog_compiler_pic='-Kconform_pic'
9175        lt_prog_compiler_static='-Bstatic'
9176      fi
9177      ;;
9178
9179    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9180      lt_prog_compiler_wl='-Wl,'
9181      lt_prog_compiler_pic='-KPIC'
9182      lt_prog_compiler_static='-Bstatic'
9183      ;;
9184
9185    unicos*)
9186      lt_prog_compiler_wl='-Wl,'
9187      lt_prog_compiler_can_build_shared=no
9188      ;;
9189
9190    uts4*)
9191      lt_prog_compiler_pic='-pic'
9192      lt_prog_compiler_static='-Bstatic'
9193      ;;
9194
9195    *)
9196      lt_prog_compiler_can_build_shared=no
9197      ;;
9198    esac
9199  fi
9200
9201case $host_os in
9202  # For platforms which do not support PIC, -DPIC is meaningless:
9203  *djgpp*)
9204    lt_prog_compiler_pic=
9205    ;;
9206  *)
9207    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9208    ;;
9209esac
9210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9211$as_echo "$lt_prog_compiler_pic" >&6; }
9212
9213
9214
9215
9216
9217
9218#
9219# Check to make sure the PIC flag actually works.
9220#
9221if test -n "$lt_prog_compiler_pic"; then
9222  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9223$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9224if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9225  $as_echo_n "(cached) " >&6
9226else
9227  lt_cv_prog_compiler_pic_works=no
9228   ac_outfile=conftest.$ac_objext
9229   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9230   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9231   # Insert the option either (1) after the last *FLAGS variable, or
9232   # (2) before a word containing "conftest.", or (3) at the end.
9233   # Note that $ac_compile itself does not contain backslashes and begins
9234   # with a dollar sign (not a hyphen), so the echo should work correctly.
9235   # The option is referenced via a variable to avoid confusing sed.
9236   lt_compile=`echo "$ac_compile" | $SED \
9237   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9238   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9239   -e 's:$: $lt_compiler_flag:'`
9240   (eval echo "\"\$as_me:9240: $lt_compile\"" >&5)
9241   (eval "$lt_compile" 2>conftest.err)
9242   ac_status=$?
9243   cat conftest.err >&5
9244   echo "$as_me:9244: \$? = $ac_status" >&5
9245   if (exit $ac_status) && test -s "$ac_outfile"; then
9246     # The compiler can only warn and ignore the option if not recognized
9247     # So say no if there are warnings other than the usual output.
9248     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9249     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9250     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9251       lt_cv_prog_compiler_pic_works=yes
9252     fi
9253   fi
9254   $RM conftest*
9255
9256fi
9257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9258$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9259
9260if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9261    case $lt_prog_compiler_pic in
9262     "" | " "*) ;;
9263     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9264     esac
9265else
9266    lt_prog_compiler_pic=
9267     lt_prog_compiler_can_build_shared=no
9268fi
9269
9270fi
9271
9272
9273
9274
9275
9276
9277#
9278# Check to make sure the static flag actually works.
9279#
9280wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9282$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9283if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9284  $as_echo_n "(cached) " >&6
9285else
9286  lt_cv_prog_compiler_static_works=no
9287   save_LDFLAGS="$LDFLAGS"
9288   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9289   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9290   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9291     # The linker can only warn and ignore the option if not recognized
9292     # So say no if there are warnings
9293     if test -s conftest.err; then
9294       # Append any errors to the config.log.
9295       cat conftest.err 1>&5
9296       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9297       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9298       if diff conftest.exp conftest.er2 >/dev/null; then
9299         lt_cv_prog_compiler_static_works=yes
9300       fi
9301     else
9302       lt_cv_prog_compiler_static_works=yes
9303     fi
9304   fi
9305   $RM -r conftest*
9306   LDFLAGS="$save_LDFLAGS"
9307
9308fi
9309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9310$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9311
9312if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9313    :
9314else
9315    lt_prog_compiler_static=
9316fi
9317
9318
9319
9320
9321
9322
9323
9324  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9325$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9326if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9327  $as_echo_n "(cached) " >&6
9328else
9329  lt_cv_prog_compiler_c_o=no
9330   $RM -r conftest 2>/dev/null
9331   mkdir conftest
9332   cd conftest
9333   mkdir out
9334   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9335
9336   lt_compiler_flag="-o out/conftest2.$ac_objext"
9337   # Insert the option either (1) after the last *FLAGS variable, or
9338   # (2) before a word containing "conftest.", or (3) at the end.
9339   # Note that $ac_compile itself does not contain backslashes and begins
9340   # with a dollar sign (not a hyphen), so the echo should work correctly.
9341   lt_compile=`echo "$ac_compile" | $SED \
9342   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9343   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9344   -e 's:$: $lt_compiler_flag:'`
9345   (eval echo "\"\$as_me:9345: $lt_compile\"" >&5)
9346   (eval "$lt_compile" 2>out/conftest.err)
9347   ac_status=$?
9348   cat out/conftest.err >&5
9349   echo "$as_me:9349: \$? = $ac_status" >&5
9350   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9351   then
9352     # The compiler can only warn and ignore the option if not recognized
9353     # So say no if there are warnings
9354     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9355     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9356     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9357       lt_cv_prog_compiler_c_o=yes
9358     fi
9359   fi
9360   chmod u+w . 2>&5
9361   $RM conftest*
9362   # SGI C++ compiler will create directory out/ii_files/ for
9363   # template instantiation
9364   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9365   $RM out/* && rmdir out
9366   cd ..
9367   $RM -r conftest
9368   $RM conftest*
9369
9370fi
9371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9372$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9373
9374
9375
9376
9377
9378
9379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9380$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9381if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9382  $as_echo_n "(cached) " >&6
9383else
9384  lt_cv_prog_compiler_c_o=no
9385   $RM -r conftest 2>/dev/null
9386   mkdir conftest
9387   cd conftest
9388   mkdir out
9389   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9390
9391   lt_compiler_flag="-o out/conftest2.$ac_objext"
9392   # Insert the option either (1) after the last *FLAGS variable, or
9393   # (2) before a word containing "conftest.", or (3) at the end.
9394   # Note that $ac_compile itself does not contain backslashes and begins
9395   # with a dollar sign (not a hyphen), so the echo should work correctly.
9396   lt_compile=`echo "$ac_compile" | $SED \
9397   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9398   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9399   -e 's:$: $lt_compiler_flag:'`
9400   (eval echo "\"\$as_me:9400: $lt_compile\"" >&5)
9401   (eval "$lt_compile" 2>out/conftest.err)
9402   ac_status=$?
9403   cat out/conftest.err >&5
9404   echo "$as_me:9404: \$? = $ac_status" >&5
9405   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9406   then
9407     # The compiler can only warn and ignore the option if not recognized
9408     # So say no if there are warnings
9409     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9410     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9411     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9412       lt_cv_prog_compiler_c_o=yes
9413     fi
9414   fi
9415   chmod u+w . 2>&5
9416   $RM conftest*
9417   # SGI C++ compiler will create directory out/ii_files/ for
9418   # template instantiation
9419   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9420   $RM out/* && rmdir out
9421   cd ..
9422   $RM -r conftest
9423   $RM conftest*
9424
9425fi
9426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9427$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9428
9429
9430
9431
9432hard_links="nottested"
9433if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9434  # do not overwrite the value of need_locks provided by the user
9435  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9436$as_echo_n "checking if we can lock with hard links... " >&6; }
9437  hard_links=yes
9438  $RM conftest*
9439  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9440  touch conftest.a
9441  ln conftest.a conftest.b 2>&5 || hard_links=no
9442  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9444$as_echo "$hard_links" >&6; }
9445  if test "$hard_links" = no; then
9446    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9447$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9448    need_locks=warn
9449  fi
9450else
9451  need_locks=no
9452fi
9453
9454
9455
9456
9457
9458
9459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9460$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9461
9462  runpath_var=
9463  allow_undefined_flag=
9464  always_export_symbols=no
9465  archive_cmds=
9466  archive_expsym_cmds=
9467  compiler_needs_object=no
9468  enable_shared_with_static_runtimes=no
9469  export_dynamic_flag_spec=
9470  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9471  hardcode_automatic=no
9472  hardcode_direct=no
9473  hardcode_direct_absolute=no
9474  hardcode_libdir_flag_spec=
9475  hardcode_libdir_flag_spec_ld=
9476  hardcode_libdir_separator=
9477  hardcode_minus_L=no
9478  hardcode_shlibpath_var=unsupported
9479  inherit_rpath=no
9480  link_all_deplibs=unknown
9481  module_cmds=
9482  module_expsym_cmds=
9483  old_archive_from_new_cmds=
9484  old_archive_from_expsyms_cmds=
9485  thread_safe_flag_spec=
9486  whole_archive_flag_spec=
9487  # include_expsyms should be a list of space-separated symbols to be *always*
9488  # included in the symbol list
9489  include_expsyms=
9490  # exclude_expsyms can be an extended regexp of symbols to exclude
9491  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9492  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9493  # as well as any symbol that contains `d'.
9494  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9495  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9496  # platforms (ab)use it in PIC code, but their linkers get confused if
9497  # the symbol is explicitly referenced.  Since portable code cannot
9498  # rely on this symbol name, it's probably fine to never include it in
9499  # preloaded symbol tables.
9500  # Exclude shared library initialization/finalization symbols.
9501  extract_expsyms_cmds=
9502
9503  case $host_os in
9504  cygwin* | mingw* | pw32* | cegcc*)
9505    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9506    # When not using gcc, we currently assume that we are using
9507    # Microsoft Visual C++.
9508    if test "$GCC" != yes; then
9509      with_gnu_ld=no
9510    fi
9511    ;;
9512  interix*)
9513    # we just hope/assume this is gcc and not c89 (= MSVC++)
9514    with_gnu_ld=yes
9515    ;;
9516  openbsd*)
9517    with_gnu_ld=no
9518    ;;
9519  esac
9520
9521  ld_shlibs=yes
9522  if test "$with_gnu_ld" = yes; then
9523    # If archive_cmds runs LD, not CC, wlarc should be empty
9524    wlarc='${wl}'
9525
9526    # Set some defaults for GNU ld with shared library support. These
9527    # are reset later if shared libraries are not supported. Putting them
9528    # here allows them to be overridden if necessary.
9529    runpath_var=LD_RUN_PATH
9530    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9531    export_dynamic_flag_spec='${wl}--export-dynamic'
9532    # ancient GNU ld didn't support --whole-archive et. al.
9533    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9534      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9535    else
9536      whole_archive_flag_spec=
9537    fi
9538    supports_anon_versioning=no
9539    case `$LD -v 2>&1` in
9540      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9541      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9542      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9543      *\ 2.11.*) ;; # other 2.11 versions
9544      *) supports_anon_versioning=yes ;;
9545    esac
9546
9547    # See if GNU ld supports shared libraries.
9548    case $host_os in
9549    aix[3-9]*)
9550      # On AIX/PPC, the GNU linker is very broken
9551      if test "$host_cpu" != ia64; then
9552        ld_shlibs=no
9553        cat <<_LT_EOF 1>&2
9554
9555*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9556*** to be unable to reliably create shared libraries on AIX.
9557*** Therefore, libtool is disabling shared libraries support.  If you
9558*** really care for shared libraries, you may want to modify your PATH
9559*** so that a non-GNU linker is found, and then restart.
9560
9561_LT_EOF
9562      fi
9563      ;;
9564
9565    amigaos*)
9566      case $host_cpu in
9567      powerpc)
9568            # see comment about AmigaOS4 .so support
9569            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9570            archive_expsym_cmds=''
9571        ;;
9572      m68k)
9573            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)'
9574            hardcode_libdir_flag_spec='-L$libdir'
9575            hardcode_minus_L=yes
9576        ;;
9577      esac
9578      ;;
9579
9580    beos*)
9581      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9582        allow_undefined_flag=unsupported
9583        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9584        # support --undefined.  This deserves some investigation.  FIXME
9585        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9586      else
9587        ld_shlibs=no
9588      fi
9589      ;;
9590
9591    cygwin* | mingw* | pw32* | cegcc*)
9592      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9593      # as there is no search path for DLLs.
9594      hardcode_libdir_flag_spec='-L$libdir'
9595      allow_undefined_flag=unsupported
9596      always_export_symbols=no
9597      enable_shared_with_static_runtimes=yes
9598      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9599
9600      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9601        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9602        # If the export-symbols file already is a .def file (1st line
9603        # is EXPORTS), use it as is; otherwise, prepend...
9604        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9605          cp $export_symbols $output_objdir/$soname.def;
9606        else
9607          echo EXPORTS > $output_objdir/$soname.def;
9608          cat $export_symbols >> $output_objdir/$soname.def;
9609        fi~
9610        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9611      else
9612        ld_shlibs=no
9613      fi
9614      ;;
9615
9616    interix[3-9]*)
9617      hardcode_direct=no
9618      hardcode_shlibpath_var=no
9619      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9620      export_dynamic_flag_spec='${wl}-E'
9621      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9622      # Instead, shared libraries are loaded at an image base (0x10000000 by
9623      # default) and relocated if they conflict, which is a slow very memory
9624      # consuming and fragmenting process.  To avoid this, we pick a random,
9625      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9626      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9627      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9628      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'
9629      ;;
9630
9631    gnu* | linux* | tpf* | k*bsd*-gnu)
9632      tmp_diet=no
9633      if test "$host_os" = linux-dietlibc; then
9634        case $cc_basename in
9635          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9636        esac
9637      fi
9638      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9639         && test "$tmp_diet" = no
9640      then
9641        tmp_addflag=
9642        tmp_sharedflag='-shared'
9643        case $cc_basename,$host_cpu in
9644        pgcc*)                          # Portland Group C compiler
9645          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9646          tmp_addflag=' $pic_flag'
9647          ;;
9648        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9649          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9650          tmp_addflag=' $pic_flag -Mnomain' ;;
9651        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9652          tmp_addflag=' -i_dynamic' ;;
9653        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9654          tmp_addflag=' -i_dynamic -nofor_main' ;;
9655        ifc* | ifort*)                  # Intel Fortran compiler
9656          tmp_addflag=' -nofor_main' ;;
9657        lf95*)                          # Lahey Fortran 8.1
9658          whole_archive_flag_spec=
9659          tmp_sharedflag='--shared' ;;
9660        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9661          tmp_sharedflag='-qmkshrobj'
9662          tmp_addflag= ;;
9663        esac
9664        case `$CC -V 2>&1 | sed 5q` in
9665        *Sun\ C*)                       # Sun C 5.9
9666          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9667          compiler_needs_object=yes
9668          tmp_sharedflag='-G' ;;
9669        *Sun\ F*)                       # Sun Fortran 8.3
9670          tmp_sharedflag='-G' ;;
9671        esac
9672        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9673
9674        if test "x$supports_anon_versioning" = xyes; then
9675          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9676            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9677            echo "local: *; };" >> $output_objdir/$libname.ver~
9678            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9679        fi
9680
9681        case $cc_basename in
9682        xlf*)
9683          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9684          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9685          hardcode_libdir_flag_spec=
9686          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9687          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9688          if test "x$supports_anon_versioning" = xyes; then
9689            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9690              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9691              echo "local: *; };" >> $output_objdir/$libname.ver~
9692              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9693          fi
9694          ;;
9695        esac
9696      else
9697        ld_shlibs=no
9698      fi
9699      ;;
9700
9701    netbsd*)
9702      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9703        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9704        wlarc=
9705      else
9706        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9707        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9708      fi
9709      ;;
9710
9711    solaris*)
9712      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9713        ld_shlibs=no
9714        cat <<_LT_EOF 1>&2
9715
9716*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9717*** create shared libraries on Solaris systems.  Therefore, libtool
9718*** is disabling shared libraries support.  We urge you to upgrade GNU
9719*** binutils to release 2.9.1 or newer.  Another option is to modify
9720*** your PATH or compiler configuration so that the native linker is
9721*** used, and then restart.
9722
9723_LT_EOF
9724      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9725        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9726        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9727      else
9728        ld_shlibs=no
9729      fi
9730      ;;
9731
9732    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9733      case `$LD -v 2>&1` in
9734        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9735        ld_shlibs=no
9736        cat <<_LT_EOF 1>&2
9737
9738*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9739*** reliably create shared libraries on SCO systems.  Therefore, libtool
9740*** is disabling shared libraries support.  We urge you to upgrade GNU
9741*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9742*** your PATH or compiler configuration so that the native linker is
9743*** used, and then restart.
9744
9745_LT_EOF
9746        ;;
9747        *)
9748          # For security reasons, it is highly recommended that you always
9749          # use absolute paths for naming shared libraries, and exclude the
9750          # DT_RUNPATH tag from executables and libraries.  But doing so
9751          # requires that you compile everything twice, which is a pain.
9752          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9753            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9754            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9755            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9756          else
9757            ld_shlibs=no
9758          fi
9759        ;;
9760      esac
9761      ;;
9762
9763    sunos4*)
9764      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9765      wlarc=
9766      hardcode_direct=yes
9767      hardcode_shlibpath_var=no
9768      ;;
9769
9770    *)
9771      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9772        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9773        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9774      else
9775        ld_shlibs=no
9776      fi
9777      ;;
9778    esac
9779
9780    if test "$ld_shlibs" = no; then
9781      runpath_var=
9782      hardcode_libdir_flag_spec=
9783      export_dynamic_flag_spec=
9784      whole_archive_flag_spec=
9785    fi
9786  else
9787    # PORTME fill in a description of your system's linker (not GNU ld)
9788    case $host_os in
9789    aix3*)
9790      allow_undefined_flag=unsupported
9791      always_export_symbols=yes
9792      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'
9793      # Note: this linker hardcodes the directories in LIBPATH if there
9794      # are no directories specified by -L.
9795      hardcode_minus_L=yes
9796      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9797        # Neither direct hardcoding nor static linking is supported with a
9798        # broken collect2.
9799        hardcode_direct=unsupported
9800      fi
9801      ;;
9802
9803    aix[4-9]*)
9804      if test "$host_cpu" = ia64; then
9805        # On IA64, the linker does run time linking by default, so we don't
9806        # have to do anything special.
9807        aix_use_runtimelinking=no
9808        exp_sym_flag='-Bexport'
9809        no_entry_flag=""
9810      else
9811        # If we're using GNU nm, then we don't want the "-C" option.
9812        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9813        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9814          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9815        else
9816          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'
9817        fi
9818        aix_use_runtimelinking=no
9819
9820        # Test if we are trying to use run time linking or normal
9821        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9822        # need to do runtime linking.
9823        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9824          for ld_flag in $LDFLAGS; do
9825          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9826            aix_use_runtimelinking=yes
9827            break
9828          fi
9829          done
9830          ;;
9831        esac
9832
9833        exp_sym_flag='-bexport'
9834        no_entry_flag='-bnoentry'
9835      fi
9836
9837      # When large executables or shared objects are built, AIX ld can
9838      # have problems creating the table of contents.  If linking a library
9839      # or program results in "error TOC overflow" add -mminimal-toc to
9840      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9841      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9842
9843      archive_cmds=''
9844      hardcode_direct=yes
9845      hardcode_direct_absolute=yes
9846      hardcode_libdir_separator=':'
9847      link_all_deplibs=yes
9848      file_list_spec='${wl}-f,'
9849
9850      if test "$GCC" = yes; then
9851        case $host_os in aix4.[012]|aix4.[012].*)
9852        # We only want to do this on AIX 4.2 and lower, the check
9853        # below for broken collect2 doesn't work under 4.3+
9854          collect2name=`${CC} -print-prog-name=collect2`
9855          if test -f "$collect2name" &&
9856           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9857          then
9858          # We have reworked collect2
9859          :
9860          else
9861          # We have old collect2
9862          hardcode_direct=unsupported
9863          # It fails to find uninstalled libraries when the uninstalled
9864          # path is not listed in the libpath.  Setting hardcode_minus_L
9865          # to unsupported forces relinking
9866          hardcode_minus_L=yes
9867          hardcode_libdir_flag_spec='-L$libdir'
9868          hardcode_libdir_separator=
9869          fi
9870          ;;
9871        esac
9872        shared_flag='-shared'
9873        if test "$aix_use_runtimelinking" = yes; then
9874          shared_flag="$shared_flag "'${wl}-G'
9875        fi
9876      else
9877        # not using gcc
9878        if test "$host_cpu" = ia64; then
9879        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9880        # chokes on -Wl,-G. The following line is correct:
9881          shared_flag='-G'
9882        else
9883          if test "$aix_use_runtimelinking" = yes; then
9884            shared_flag='${wl}-G'
9885          else
9886            shared_flag='${wl}-bM:SRE'
9887          fi
9888        fi
9889      fi
9890
9891      export_dynamic_flag_spec='${wl}-bexpall'
9892      # It seems that -bexpall does not export symbols beginning with
9893      # underscore (_), so it is better to generate a list of symbols to export.
9894      always_export_symbols=yes
9895      if test "$aix_use_runtimelinking" = yes; then
9896        # Warning - without using the other runtime loading flags (-brtl),
9897        # -berok will link without error, but may produce a broken library.
9898        allow_undefined_flag='-berok'
9899        # Determine the default libpath from the value encoded in an
9900        # empty executable.
9901        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902/* end confdefs.h.  */
9903
9904int
9905main ()
9906{
9907
9908  ;
9909  return 0;
9910}
9911_ACEOF
9912if ac_fn_c_try_link "$LINENO"; then :
9913
9914lt_aix_libpath_sed='
9915    /Import File Strings/,/^$/ {
9916        /^0/ {
9917            s/^0  *\(.*\)$/\1/
9918            p
9919        }
9920    }'
9921aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9922# Check for a 64-bit object if we didn't find anything.
9923if test -z "$aix_libpath"; then
9924  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9925fi
9926fi
9927rm -f core conftest.err conftest.$ac_objext \
9928    conftest$ac_exeext conftest.$ac_ext
9929if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9930
9931        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9932        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9933      else
9934        if test "$host_cpu" = ia64; then
9935          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9936          allow_undefined_flag="-z nodefs"
9937          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"
9938        else
9939         # Determine the default libpath from the value encoded in an
9940         # empty executable.
9941         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942/* end confdefs.h.  */
9943
9944int
9945main ()
9946{
9947
9948  ;
9949  return 0;
9950}
9951_ACEOF
9952if ac_fn_c_try_link "$LINENO"; then :
9953
9954lt_aix_libpath_sed='
9955    /Import File Strings/,/^$/ {
9956        /^0/ {
9957            s/^0  *\(.*\)$/\1/
9958            p
9959        }
9960    }'
9961aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9962# Check for a 64-bit object if we didn't find anything.
9963if test -z "$aix_libpath"; then
9964  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9965fi
9966fi
9967rm -f core conftest.err conftest.$ac_objext \
9968    conftest$ac_exeext conftest.$ac_ext
9969if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9970
9971         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9972          # Warning - without using the other run time loading flags,
9973          # -berok will link without error, but may produce a broken library.
9974          no_undefined_flag=' ${wl}-bernotok'
9975          allow_undefined_flag=' ${wl}-berok'
9976          # Exported symbols can be pulled into shared objects from archives
9977          whole_archive_flag_spec='$convenience'
9978          archive_cmds_need_lc=yes
9979          # This is similar to how AIX traditionally builds its shared libraries.
9980          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'
9981        fi
9982      fi
9983      ;;
9984
9985    amigaos*)
9986      case $host_cpu in
9987      powerpc)
9988            # see comment about AmigaOS4 .so support
9989            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9990            archive_expsym_cmds=''
9991        ;;
9992      m68k)
9993            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)'
9994            hardcode_libdir_flag_spec='-L$libdir'
9995            hardcode_minus_L=yes
9996        ;;
9997      esac
9998      ;;
9999
10000    bsdi[45]*)
10001      export_dynamic_flag_spec=-rdynamic
10002      ;;
10003
10004    cygwin* | mingw* | pw32* | cegcc*)
10005      # When not using gcc, we currently assume that we are using
10006      # Microsoft Visual C++.
10007      # hardcode_libdir_flag_spec is actually meaningless, as there is
10008      # no search path for DLLs.
10009      hardcode_libdir_flag_spec=' '
10010      allow_undefined_flag=unsupported
10011      # Tell ltmain to make .lib files, not .a files.
10012      libext=lib
10013      # Tell ltmain to make .dll files, not .so files.
10014      shrext_cmds=".dll"
10015      # FIXME: Setting linknames here is a bad hack.
10016      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10017      # The linker will automatically build a .lib file if we build a DLL.
10018      old_archive_from_new_cmds='true'
10019      # FIXME: Should let the user specify the lib program.
10020      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10021      fix_srcfile_path='`cygpath -w "$srcfile"`'
10022      enable_shared_with_static_runtimes=yes
10023      ;;
10024
10025    darwin* | rhapsody*)
10026
10027
10028  archive_cmds_need_lc=no
10029  hardcode_direct=no
10030  hardcode_automatic=yes
10031  hardcode_shlibpath_var=unsupported
10032  whole_archive_flag_spec=''
10033  link_all_deplibs=yes
10034  allow_undefined_flag="$_lt_dar_allow_undefined"
10035  case $cc_basename in
10036     ifort*) _lt_dar_can_shared=yes ;;
10037     *) _lt_dar_can_shared=$GCC ;;
10038  esac
10039  if test "$_lt_dar_can_shared" = "yes"; then
10040    output_verbose_link_cmd=echo
10041    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10042    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10043    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}"
10044    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}"
10045
10046  else
10047  ld_shlibs=no
10048  fi
10049
10050      ;;
10051
10052    dgux*)
10053      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10054      hardcode_libdir_flag_spec='-L$libdir'
10055      hardcode_shlibpath_var=no
10056      ;;
10057
10058    freebsd1*)
10059      ld_shlibs=no
10060      ;;
10061
10062    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10063    # support.  Future versions do this automatically, but an explicit c++rt0.o
10064    # does not break anything, and helps significantly (at the cost of a little
10065    # extra space).
10066    freebsd2.2*)
10067      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10068      hardcode_libdir_flag_spec='-R$libdir'
10069      hardcode_direct=yes
10070      hardcode_shlibpath_var=no
10071      ;;
10072
10073    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10074    freebsd2*)
10075      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10076      hardcode_direct=yes
10077      hardcode_minus_L=yes
10078      hardcode_shlibpath_var=no
10079      ;;
10080
10081    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10082    freebsd* | dragonfly*)
10083      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10084      hardcode_libdir_flag_spec='-R$libdir'
10085      hardcode_direct=yes
10086      hardcode_shlibpath_var=no
10087      ;;
10088
10089    hpux9*)
10090      if test "$GCC" = yes; then
10091        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10092      else
10093        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'
10094      fi
10095      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10096      hardcode_libdir_separator=:
10097      hardcode_direct=yes
10098
10099      # hardcode_minus_L: Not really in the search PATH,
10100      # but as the default location of the library.
10101      hardcode_minus_L=yes
10102      export_dynamic_flag_spec='${wl}-E'
10103      ;;
10104
10105    hpux10*)
10106      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10107        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10108      else
10109        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10110      fi
10111      if test "$with_gnu_ld" = no; then
10112        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10113        hardcode_libdir_flag_spec_ld='+b $libdir'
10114        hardcode_libdir_separator=:
10115        hardcode_direct=yes
10116        hardcode_direct_absolute=yes
10117        export_dynamic_flag_spec='${wl}-E'
10118        # hardcode_minus_L: Not really in the search PATH,
10119        # but as the default location of the library.
10120        hardcode_minus_L=yes
10121      fi
10122      ;;
10123
10124    hpux11*)
10125      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10126        case $host_cpu in
10127        hppa*64*)
10128          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10129          ;;
10130        ia64*)
10131          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10132          ;;
10133        *)
10134          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10135          ;;
10136        esac
10137      else
10138        case $host_cpu in
10139        hppa*64*)
10140          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10141          ;;
10142        ia64*)
10143          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10144          ;;
10145        *)
10146          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10147          ;;
10148        esac
10149      fi
10150      if test "$with_gnu_ld" = no; then
10151        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10152        hardcode_libdir_separator=:
10153
10154        case $host_cpu in
10155        hppa*64*|ia64*)
10156          hardcode_direct=no
10157          hardcode_shlibpath_var=no
10158          ;;
10159        *)
10160          hardcode_direct=yes
10161          hardcode_direct_absolute=yes
10162          export_dynamic_flag_spec='${wl}-E'
10163
10164          # hardcode_minus_L: Not really in the search PATH,
10165          # but as the default location of the library.
10166          hardcode_minus_L=yes
10167          ;;
10168        esac
10169      fi
10170      ;;
10171
10172    irix5* | irix6* | nonstopux*)
10173      if test "$GCC" = yes; then
10174        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10175        # Try to use the -exported_symbol ld option, if it does not
10176        # work, assume that -exports_file does not work either and
10177        # implicitly export all symbols.
10178        save_LDFLAGS="$LDFLAGS"
10179        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10180        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181/* end confdefs.h.  */
10182int foo(void) {}
10183_ACEOF
10184if ac_fn_c_try_link "$LINENO"; then :
10185  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10186
10187fi
10188rm -f core conftest.err conftest.$ac_objext \
10189    conftest$ac_exeext conftest.$ac_ext
10190        LDFLAGS="$save_LDFLAGS"
10191      else
10192        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10193        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10194      fi
10195      archive_cmds_need_lc='no'
10196      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10197      hardcode_libdir_separator=:
10198      inherit_rpath=yes
10199      link_all_deplibs=yes
10200      ;;
10201
10202    netbsd*)
10203      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10204        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10205      else
10206        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10207      fi
10208      hardcode_libdir_flag_spec='-R$libdir'
10209      hardcode_direct=yes
10210      hardcode_shlibpath_var=no
10211      ;;
10212
10213    newsos6)
10214      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215      hardcode_direct=yes
10216      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10217      hardcode_libdir_separator=:
10218      hardcode_shlibpath_var=no
10219      ;;
10220
10221    *nto* | *qnx*)
10222      ;;
10223
10224    openbsd*)
10225      if test -f /usr/libexec/ld.so; then
10226        hardcode_direct=yes
10227        hardcode_shlibpath_var=no
10228        hardcode_direct_absolute=yes
10229        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10230          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10231          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10232          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10233          export_dynamic_flag_spec='${wl}-E'
10234        else
10235          case $host_os in
10236           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10237             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10238             hardcode_libdir_flag_spec='-R$libdir'
10239             ;;
10240           *)
10241             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10242             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10243             ;;
10244          esac
10245        fi
10246      else
10247        ld_shlibs=no
10248      fi
10249      ;;
10250
10251    os2*)
10252      hardcode_libdir_flag_spec='-L$libdir'
10253      hardcode_minus_L=yes
10254      allow_undefined_flag=unsupported
10255      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'
10256      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10257      ;;
10258
10259    osf3*)
10260      if test "$GCC" = yes; then
10261        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10262        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10263      else
10264        allow_undefined_flag=' -expect_unresolved \*'
10265        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10266      fi
10267      archive_cmds_need_lc='no'
10268      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10269      hardcode_libdir_separator=:
10270      ;;
10271
10272    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10273      if test "$GCC" = yes; then
10274        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10275        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10276        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10277      else
10278        allow_undefined_flag=' -expect_unresolved \*'
10279        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10280        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~
10281        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10282
10283        # Both c and cxx compiler support -rpath directly
10284        hardcode_libdir_flag_spec='-rpath $libdir'
10285      fi
10286      archive_cmds_need_lc='no'
10287      hardcode_libdir_separator=:
10288      ;;
10289
10290    solaris*)
10291      no_undefined_flag=' -z defs'
10292      if test "$GCC" = yes; then
10293        wlarc='${wl}'
10294        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10295        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10296          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10297      else
10298        case `$CC -V 2>&1` in
10299        *"Compilers 5.0"*)
10300          wlarc=''
10301          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10302          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10303          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10304          ;;
10305        *)
10306          wlarc='${wl}'
10307          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10308          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10309          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10310          ;;
10311        esac
10312      fi
10313      hardcode_libdir_flag_spec='-R$libdir'
10314      hardcode_shlibpath_var=no
10315      case $host_os in
10316      solaris2.[0-5] | solaris2.[0-5].*) ;;
10317      *)
10318        # The compiler driver will combine and reorder linker options,
10319        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10320        # but is careful enough not to reorder.
10321        # Supported since Solaris 2.6 (maybe 2.5.1?)
10322        if test "$GCC" = yes; then
10323          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10324        else
10325          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10326        fi
10327        ;;
10328      esac
10329      link_all_deplibs=yes
10330      ;;
10331
10332    sunos4*)
10333      if test "x$host_vendor" = xsequent; then
10334        # Use $CC to link under sequent, because it throws in some extra .o
10335        # files that make .init and .fini sections work.
10336        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10337      else
10338        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10339      fi
10340      hardcode_libdir_flag_spec='-L$libdir'
10341      hardcode_direct=yes
10342      hardcode_minus_L=yes
10343      hardcode_shlibpath_var=no
10344      ;;
10345
10346    sysv4)
10347      case $host_vendor in
10348        sni)
10349          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10350          hardcode_direct=yes # is this really true???
10351        ;;
10352        siemens)
10353          ## LD is ld it makes a PLAMLIB
10354          ## CC just makes a GrossModule.
10355          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10356          reload_cmds='$CC -r -o $output$reload_objs'
10357          hardcode_direct=no
10358        ;;
10359        motorola)
10360          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10361          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10362        ;;
10363      esac
10364      runpath_var='LD_RUN_PATH'
10365      hardcode_shlibpath_var=no
10366      ;;
10367
10368    sysv4.3*)
10369      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10370      hardcode_shlibpath_var=no
10371      export_dynamic_flag_spec='-Bexport'
10372      ;;
10373
10374    sysv4*MP*)
10375      if test -d /usr/nec; then
10376        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10377        hardcode_shlibpath_var=no
10378        runpath_var=LD_RUN_PATH
10379        hardcode_runpath_var=yes
10380        ld_shlibs=yes
10381      fi
10382      ;;
10383
10384    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10385      no_undefined_flag='${wl}-z,text'
10386      archive_cmds_need_lc=no
10387      hardcode_shlibpath_var=no
10388      runpath_var='LD_RUN_PATH'
10389
10390      if test "$GCC" = yes; then
10391        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10392        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393      else
10394        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396      fi
10397      ;;
10398
10399    sysv5* | sco3.2v5* | sco5v6*)
10400      # Note: We can NOT use -z defs as we might desire, because we do not
10401      # link with -lc, and that would cause any symbols used from libc to
10402      # always be unresolved, which means just about no library would
10403      # ever link correctly.  If we're not using GNU ld we use -z text
10404      # though, which does catch some bad symbols but isn't as heavy-handed
10405      # as -z defs.
10406      no_undefined_flag='${wl}-z,text'
10407      allow_undefined_flag='${wl}-z,nodefs'
10408      archive_cmds_need_lc=no
10409      hardcode_shlibpath_var=no
10410      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10411      hardcode_libdir_separator=':'
10412      link_all_deplibs=yes
10413      export_dynamic_flag_spec='${wl}-Bexport'
10414      runpath_var='LD_RUN_PATH'
10415
10416      if test "$GCC" = yes; then
10417        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10418        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10419      else
10420        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10422      fi
10423      ;;
10424
10425    uts4*)
10426      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427      hardcode_libdir_flag_spec='-L$libdir'
10428      hardcode_shlibpath_var=no
10429      ;;
10430
10431    *)
10432      ld_shlibs=no
10433      ;;
10434    esac
10435
10436    if test x$host_vendor = xsni; then
10437      case $host in
10438      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10439        export_dynamic_flag_spec='${wl}-Blargedynsym'
10440        ;;
10441      esac
10442    fi
10443  fi
10444
10445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10446$as_echo "$ld_shlibs" >&6; }
10447test "$ld_shlibs" = no && can_build_shared=no
10448
10449with_gnu_ld=$with_gnu_ld
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465#
10466# Do we need to explicitly link libc?
10467#
10468case "x$archive_cmds_need_lc" in
10469x|xyes)
10470  # Assume -lc should be added
10471  archive_cmds_need_lc=yes
10472
10473  if test "$enable_shared" = yes && test "$GCC" = yes; then
10474    case $archive_cmds in
10475    *'~'*)
10476      # FIXME: we may have to deal with multi-command sequences.
10477      ;;
10478    '$CC '*)
10479      # Test whether the compiler implicitly links with -lc since on some
10480      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10481      # to ld, don't add -lc before -lgcc.
10482      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10483$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10484      $RM conftest*
10485      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10486
10487      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10488  (eval $ac_compile) 2>&5
10489  ac_status=$?
10490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10491  test $ac_status = 0; } 2>conftest.err; then
10492        soname=conftest
10493        lib=conftest
10494        libobjs=conftest.$ac_objext
10495        deplibs=
10496        wl=$lt_prog_compiler_wl
10497        pic_flag=$lt_prog_compiler_pic
10498        compiler_flags=-v
10499        linker_flags=-v
10500        verstring=
10501        output_objdir=.
10502        libname=conftest
10503        lt_save_allow_undefined_flag=$allow_undefined_flag
10504        allow_undefined_flag=
10505        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10506  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10507  ac_status=$?
10508  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10509  test $ac_status = 0; }
10510        then
10511          archive_cmds_need_lc=no
10512        else
10513          archive_cmds_need_lc=yes
10514        fi
10515        allow_undefined_flag=$lt_save_allow_undefined_flag
10516      else
10517        cat conftest.err 1>&5
10518      fi
10519      $RM conftest*
10520      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10521$as_echo "$archive_cmds_need_lc" >&6; }
10522      ;;
10523    esac
10524  fi
10525  ;;
10526esac
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10685$as_echo_n "checking dynamic linker characteristics... " >&6; }
10686
10687if test "$GCC" = yes; then
10688  case $host_os in
10689    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10690    *) lt_awk_arg="/^libraries:/" ;;
10691  esac
10692  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10693  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10694    # if the path contains ";" then we assume it to be the separator
10695    # otherwise default to the standard path separator (i.e. ":") - it is
10696    # assumed that no part of a normal pathname contains ";" but that should
10697    # okay in the real world where ";" in dirpaths is itself problematic.
10698    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10699  else
10700    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10701  fi
10702  # Ok, now we have the path, separated by spaces, we can step through it
10703  # and add multilib dir if necessary.
10704  lt_tmp_lt_search_path_spec=
10705  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10706  for lt_sys_path in $lt_search_path_spec; do
10707    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10708      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10709    else
10710      test -d "$lt_sys_path" && \
10711        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10712    fi
10713  done
10714  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10715BEGIN {RS=" "; FS="/|\n";} {
10716  lt_foo="";
10717  lt_count=0;
10718  for (lt_i = NF; lt_i > 0; lt_i--) {
10719    if ($lt_i != "" && $lt_i != ".") {
10720      if ($lt_i == "..") {
10721        lt_count++;
10722      } else {
10723        if (lt_count == 0) {
10724          lt_foo="/" $lt_i lt_foo;
10725        } else {
10726          lt_count--;
10727        }
10728      }
10729    }
10730  }
10731  if (lt_foo != "") { lt_freq[lt_foo]++; }
10732  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10733}'`
10734  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10735else
10736  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10737fi
10738library_names_spec=
10739libname_spec='lib$name'
10740soname_spec=
10741shrext_cmds=".so"
10742postinstall_cmds=
10743postuninstall_cmds=
10744finish_cmds=
10745finish_eval=
10746shlibpath_var=
10747shlibpath_overrides_runpath=unknown
10748version_type=none
10749dynamic_linker="$host_os ld.so"
10750sys_lib_dlsearch_path_spec="/lib /usr/lib"
10751need_lib_prefix=unknown
10752hardcode_into_libs=no
10753
10754# when you set need_version to no, make sure it does not cause -set_version
10755# flags to be left without arguments
10756need_version=unknown
10757
10758case $host_os in
10759aix3*)
10760  version_type=linux
10761  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10762  shlibpath_var=LIBPATH
10763
10764  # AIX 3 has no versioning support, so we append a major version to the name.
10765  soname_spec='${libname}${release}${shared_ext}$major'
10766  ;;
10767
10768aix[4-9]*)
10769  version_type=linux
10770  need_lib_prefix=no
10771  need_version=no
10772  hardcode_into_libs=yes
10773  if test "$host_cpu" = ia64; then
10774    # AIX 5 supports IA64
10775    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10776    shlibpath_var=LD_LIBRARY_PATH
10777  else
10778    # With GCC up to 2.95.x, collect2 would create an import file
10779    # for dependence libraries.  The import file would start with
10780    # the line `#! .'.  This would cause the generated library to
10781    # depend on `.', always an invalid library.  This was fixed in
10782    # development snapshots of GCC prior to 3.0.
10783    case $host_os in
10784      aix4 | aix4.[01] | aix4.[01].*)
10785      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10786           echo ' yes '
10787           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10788        :
10789      else
10790        can_build_shared=no
10791      fi
10792      ;;
10793    esac
10794    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10795    # soname into executable. Probably we can add versioning support to
10796    # collect2, so additional links can be useful in future.
10797    if test "$aix_use_runtimelinking" = yes; then
10798      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10799      # instead of lib<name>.a to let people know that these are not
10800      # typical AIX shared libraries.
10801      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802    else
10803      # We preserve .a as extension for shared libraries through AIX4.2
10804      # and later when we are not doing run time linking.
10805      library_names_spec='${libname}${release}.a $libname.a'
10806      soname_spec='${libname}${release}${shared_ext}$major'
10807    fi
10808    shlibpath_var=LIBPATH
10809  fi
10810  ;;
10811
10812amigaos*)
10813  case $host_cpu in
10814  powerpc)
10815    # Since July 2007 AmigaOS4 officially supports .so libraries.
10816    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10817    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10818    ;;
10819  m68k)
10820    library_names_spec='$libname.ixlibrary $libname.a'
10821    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10822    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10823    ;;
10824  esac
10825  ;;
10826
10827beos*)
10828  library_names_spec='${libname}${shared_ext}'
10829  dynamic_linker="$host_os ld.so"
10830  shlibpath_var=LIBRARY_PATH
10831  ;;
10832
10833bsdi[45]*)
10834  version_type=linux
10835  need_version=no
10836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10837  soname_spec='${libname}${release}${shared_ext}$major'
10838  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10839  shlibpath_var=LD_LIBRARY_PATH
10840  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10841  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10842  # the default ld.so.conf also contains /usr/contrib/lib and
10843  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10844  # libtool to hard-code these into programs
10845  ;;
10846
10847cygwin* | mingw* | pw32* | cegcc*)
10848  version_type=windows
10849  shrext_cmds=".dll"
10850  need_version=no
10851  need_lib_prefix=no
10852
10853  case $GCC,$host_os in
10854  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10855    library_names_spec='$libname.dll.a'
10856    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10857    postinstall_cmds='base_file=`basename \${file}`~
10858      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10859      dldir=$destdir/`dirname \$dlpath`~
10860      test -d \$dldir || mkdir -p \$dldir~
10861      $install_prog $dir/$dlname \$dldir/$dlname~
10862      chmod a+x \$dldir/$dlname~
10863      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10864        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10865      fi'
10866    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10867      dlpath=$dir/\$dldll~
10868       $RM \$dlpath'
10869    shlibpath_overrides_runpath=yes
10870
10871    case $host_os in
10872    cygwin*)
10873      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10874      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10875      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10876      ;;
10877    mingw* | cegcc*)
10878      # MinGW DLLs use traditional 'lib' prefix
10879      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10880      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10881      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10882        # It is most probably a Windows format PATH printed by
10883        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10884        # path with ; separators, and with drive letters. We can handle the
10885        # drive letters (cygwin fileutils understands them), so leave them,
10886        # especially as we might pass files found there to a mingw objdump,
10887        # which wouldn't understand a cygwinified path. Ahh.
10888        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10889      else
10890        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10891      fi
10892      ;;
10893    pw32*)
10894      # pw32 DLLs use 'pw' prefix rather than 'lib'
10895      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10896      ;;
10897    esac
10898    ;;
10899
10900  *)
10901    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10902    ;;
10903  esac
10904  dynamic_linker='Win32 ld.exe'
10905  # FIXME: first we should search . and the directory the executable is in
10906  shlibpath_var=PATH
10907  ;;
10908
10909darwin* | rhapsody*)
10910  dynamic_linker="$host_os dyld"
10911  version_type=darwin
10912  need_lib_prefix=no
10913  need_version=no
10914  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10915  soname_spec='${libname}${release}${major}$shared_ext'
10916  shlibpath_overrides_runpath=yes
10917  shlibpath_var=DYLD_LIBRARY_PATH
10918  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10919
10920  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10921  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10922  ;;
10923
10924dgux*)
10925  version_type=linux
10926  need_lib_prefix=no
10927  need_version=no
10928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10929  soname_spec='${libname}${release}${shared_ext}$major'
10930  shlibpath_var=LD_LIBRARY_PATH
10931  ;;
10932
10933freebsd1*)
10934  dynamic_linker=no
10935  ;;
10936
10937freebsd* | dragonfly*)
10938  # DragonFly does not have aout.  When/if they implement a new
10939  # versioning mechanism, adjust this.
10940  if test -x /usr/bin/objformat; then
10941    objformat=`/usr/bin/objformat`
10942  else
10943    case $host_os in
10944    freebsd[123]*) objformat=aout ;;
10945    *) objformat=elf ;;
10946    esac
10947  fi
10948  version_type=freebsd-$objformat
10949  case $version_type in
10950    freebsd-elf*)
10951      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10952      need_version=no
10953      need_lib_prefix=no
10954      ;;
10955    freebsd-*)
10956      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10957      need_version=yes
10958      ;;
10959  esac
10960  shlibpath_var=LD_LIBRARY_PATH
10961  case $host_os in
10962  freebsd2*)
10963    shlibpath_overrides_runpath=yes
10964    ;;
10965  freebsd3.[01]* | freebsdelf3.[01]*)
10966    shlibpath_overrides_runpath=yes
10967    hardcode_into_libs=yes
10968    ;;
10969  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10970  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebs