source: trunk/configure @ 75

Last change on this file since 75 was 75, checked in by awalther, 10 years ago

handling of error function corrected

File size: 741.9 KB
<
Line 
1#! /bin/sh
2# From configure.ac Revision: 73 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61 for adolc 2.1.2-trunk.
5#
6# Report bugs to <adol-c@list.coin-or.org>.
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization.  ##
14## --------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19  emulate sh
20  NULLCMD=:
21  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22  # is contrary to our usage.  Disable this feature.
23  alias -g '${1+"$@"}'='"$@"'
24  setopt NO_GLOB_SUBST
25else
26  case `(set -o) 2>/dev/null` in
27  *posix*) set -o posix ;;
28esac
29
30fi
31
32
33
34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43# The user is always right.
44if test "${PATH_SEPARATOR+set}" != set; then
45  echo "#! /bin/sh" >conf$$.sh
46  echo  "exit 0"   >>conf$$.sh
47  chmod +x conf$$.sh
48  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49    PATH_SEPARATOR=';'
50  else
51    PATH_SEPARATOR=:
52  fi
53  rm -f conf$$.sh
54fi
55
56# Support unset when possible.
57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58  as_unset=unset
59else
60  as_unset=false
61fi
62
63
64# IFS
65# We need space, tab and new line, in precisely that order.  Quoting is
66# there to prevent editors from complaining about space-tab.
67# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68# splitting by setting IFS to empty value.)
69as_nl='
70'
71IFS=" ""        $as_nl"
72
73# Find who we are.  Look in the path if we contain no directory separator.
74case $0 in
75  *[\\/]* ) as_myself=$0 ;;
76  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77for as_dir in $PATH
78do
79  IFS=$as_save_IFS
80  test -z "$as_dir" && as_dir=.
81  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82done
83IFS=$as_save_IFS
84
85     ;;
86esac
87# We did not find ourselves, most probably we were run as `sh COMMAND'
88# in which case we are not to be found in the path.
89if test "x$as_myself" = x; then
90  as_myself=$0
91fi
92if test ! -f "$as_myself"; then
93  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94  { (exit 1); exit 1; }
95fi
96
97# Work around bugs in pre-3.0 UWIN ksh.
98for as_var in ENV MAIL MAILPATH
99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100done
101PS1='$ '
102PS2='> '
103PS4='+ '
104
105# NLS nuisances.
106for as_var in \
107  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109  LC_TELEPHONE LC_TIME
110do
111  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112    eval $as_var=C; export $as_var
113  else
114    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115  fi
116done
117
118# Required to use basename.
119if expr a : '\(a\)' >/dev/null 2>&1 &&
120   test "X`expr 00001 : '.*\(...\)'`" = X001; then
121  as_expr=expr
122else
123  as_expr=false
124fi
125
126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127  as_basename=basename
128else
129  as_basename=false
130fi
131
132
133# Name of the executable.
134as_me=`$as_basename -- "$0" ||
135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136         X"$0" : 'X\(//\)$' \| \
137         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138echo X/"$0" |
139    sed '/^.*\/\([^/][^/]*\)\/*$/{
140            s//\1/
141            q
142          }
143          /^X\/\(\/\/\)$/{
144            s//\1/
145            q
146          }
147          /^X\/\(\/\).*/{
148            s//\1/
149            q
150          }
151          s/.*/./; q'`
152
153# CDPATH.
154$as_unset CDPATH
155
156
157if test "x$CONFIG_SHELL" = x; then
158  if (eval ":") 2>/dev/null; then
159  as_have_required=yes
160else
161  as_have_required=no
162fi
163
164  if test $as_have_required = yes &&     (eval ":
165(as_func_return () {
166  (exit \$1)
167}
168as_func_success () {
169  as_func_return 0
170}
171as_func_failure () {
172  as_func_return 1
173}
174as_func_ret_success () {
175  return 0
176}
177as_func_ret_failure () {
178  return 1
179}
180
181exitcode=0
182if as_func_success; then
183  :
184else
185  exitcode=1
186  echo as_func_success failed.
187fi
188
189if as_func_failure; then
190  exitcode=1
191  echo as_func_failure succeeded.
192fi
193
194if as_func_ret_success; then
195  :
196else
197  exitcode=1
198  echo as_func_ret_success failed.
199fi
200
201if as_func_ret_failure; then
202  exitcode=1
203  echo as_func_ret_failure succeeded.
204fi
205
206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207  :
208else
209  exitcode=1
210  echo positional parameters were not saved.
211fi
212
213test \$exitcode = 0) || { (exit 1); exit 1; }
214
215(
216  as_lineno_1=\$LINENO
217  as_lineno_2=\$LINENO
218  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220") 2> /dev/null; then
221  :
222else
223  as_candidate_shells=
224    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226do
227  IFS=$as_save_IFS
228  test -z "$as_dir" && as_dir=.
229  case $as_dir in
230         /*)
231           for as_base in sh bash ksh sh5; do
232             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233           done;;
234       esac
235done
236IFS=$as_save_IFS
237
238
239      for as_shell in $as_candidate_shells $SHELL; do
240         # Try only shells that exist, to save several forks.
241         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                { ("$as_shell") 2> /dev/null <<\_ASEOF
243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244  emulate sh
245  NULLCMD=:
246  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247  # is contrary to our usage.  Disable this feature.
248  alias -g '${1+"$@"}'='"$@"'
249  setopt NO_GLOB_SUBST
250else
251  case `(set -o) 2>/dev/null` in
252  *posix*) set -o posix ;;
253esac
254
255fi
256
257
258:
259_ASEOF
260}; then
261  CONFIG_SHELL=$as_shell
262               as_have_required=yes
263               if { "$as_shell" 2> /dev/null <<\_ASEOF
264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265  emulate sh
266  NULLCMD=:
267  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268  # is contrary to our usage.  Disable this feature.
269  alias -g '${1+"$@"}'='"$@"'
270  setopt NO_GLOB_SUBST
271else
272  case `(set -o) 2>/dev/null` in
273  *posix*) set -o posix ;;
274esac
275
276fi
277
278
279:
280(as_func_return () {
281  (exit $1)
282}
283as_func_success () {
284  as_func_return 0
285}
286as_func_failure () {
287  as_func_return 1
288}
289as_func_ret_success () {
290  return 0
291}
292as_func_ret_failure () {
293  return 1
294}
295
296exitcode=0
297if as_func_success; then
298  :
299else
300  exitcode=1
301  echo as_func_success failed.
302fi
303
304if as_func_failure; then
305  exitcode=1
306  echo as_func_failure succeeded.
307fi
308
309if as_func_ret_success; then
310  :
311else
312  exitcode=1
313  echo as_func_ret_success failed.
314fi
315
316if as_func_ret_failure; then
317  exitcode=1
318  echo as_func_ret_failure succeeded.
319fi
320
321if ( set x; as_func_ret_success y && test x = "$1" ); then
322  :
323else
324  exitcode=1
325  echo positional parameters were not saved.
326fi
327
328test $exitcode = 0) || { (exit 1); exit 1; }
329
330(
331  as_lineno_1=$LINENO
332  as_lineno_2=$LINENO
333  test "x$as_lineno_1" != "x$as_lineno_2" &&
334  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336_ASEOF
337}; then
338  break
339fi
340
341fi
342
343      done
344
345      if test "x$CONFIG_SHELL" != x; then
346  for as_var in BASH_ENV ENV
347        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348        done
349        export CONFIG_SHELL
350        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351fi
352
353
354    if test $as_have_required = no; then
355  echo This script requires a shell more modern than all the
356      echo shells that I found on your system.  Please install a
357      echo modern shell, or manually run the script under such a
358      echo shell if you do have one.
359      { (exit 1); exit 1; }
360fi
361
362
363fi
364
365fi
366
367
368
369(eval "as_func_return () {
370  (exit \$1)
371}
372as_func_success () {
373  as_func_return 0
374}
375as_func_failure () {
376  as_func_return 1
377}
378as_func_ret_success () {
379  return 0
380}
381as_func_ret_failure () {
382  return 1
383}
384
385exitcode=0
386if as_func_success; then
387  :
388else
389  exitcode=1
390  echo as_func_success failed.
391fi
392
393if as_func_failure; then
394  exitcode=1
395  echo as_func_failure succeeded.
396fi
397
398if as_func_ret_success; then
399  :
400else
401  exitcode=1
402  echo as_func_ret_success failed.
403fi
404
405if as_func_ret_failure; then
406  exitcode=1
407  echo as_func_ret_failure succeeded.
408fi
409
410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411  :
412else
413  exitcode=1
414  echo positional parameters were not saved.
415fi
416
417test \$exitcode = 0") || {
418  echo No shell found that supports shell functions.
419  echo Please tell autoconf@gnu.org about your system,
420  echo including any error possibly output before this
421  echo message
422}
423
424
425
426  as_lineno_1=$LINENO
427  as_lineno_2=$LINENO
428  test "x$as_lineno_1" != "x$as_lineno_2" &&
429  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432  # uniformly replaced by the line number.  The first 'sed' inserts a
433  # line-number line after each line using $LINENO; the second 'sed'
434  # does the real work.  The second script uses 'N' to pair each
435  # line-number line with the line containing $LINENO, and appends
436  # trailing '-' during substitution so that $LINENO is not a special
437  # case at line end.
438  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439  # scripts with optimization help from Paolo Bonzini.  Blame Lee
440  # E. McMahon (1931-1989) for sed's syntax.  :-)
441  sed -n '
442    p
443    /[$]LINENO/=
444  ' <$as_myself |
445    sed '
446      s/[$]LINENO.*/&-/
447      t lineno
448      b
449      :lineno
450      N
451      :loop
452      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453      t loop
454      s/-\n.*//
455    ' >$as_me.lineno &&
456  chmod +x "$as_me.lineno" ||
457    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458   { (exit 1); exit 1; }; }
459
460  # Don't try to exec as it changes $[0], causing all sort of problems
461  # (the dirname of $[0] is not the place where we might find the
462  # original and so on.  Autoconf is especially sensitive to this).
463  . "./$as_me.lineno"
464  # Exit status is that of the last command.
465  exit
466}
467
468
469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470  as_dirname=dirname
471else
472  as_dirname=false
473fi
474
475ECHO_C= ECHO_N= ECHO_T=
476case `echo -n x` in
477-n*)
478  case `echo 'x\c'` in
479  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480  *)   ECHO_C='\c';;
481  esac;;
482*)
483  ECHO_N='-n';;
484esac
485
486if expr a : '\(a\)' >/dev/null 2>&1 &&
487   test "X`expr 00001 : '.*\(...\)'`" = X001; then
488  as_expr=expr
489else
490  as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
494if test -d conf$$.dir; then
495  rm -f conf$$.dir/conf$$.file
496else
497  rm -f conf$$.dir
498  mkdir conf$$.dir
499fi
500echo >conf$$.file
501if ln -s conf$$.file conf$$ 2>/dev/null; then
502  as_ln_s='ln -s'
503  # ... but there are two gotchas:
504  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506  # In both cases, we have to default to `cp -p'.
507  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508    as_ln_s='cp -p'
509elif ln conf$$.file conf$$ 2>/dev/null; then
510  as_ln_s=ln
511else
512  as_ln_s='cp -p'
513fi
514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515rmdir conf$$.dir 2>/dev/null
516
517if mkdir -p . 2>/dev/null; then
518  as_mkdir_p=:
519else
520  test -d ./-p && rmdir ./-p
521  as_mkdir_p=false
522fi
523
524if test -x / >/dev/null 2>&1; then
525  as_test_x='test -x'
526else
527  if ls -dL / >/dev/null 2>&1; then
528    as_ls_L_option=L
529  else
530    as_ls_L_option=
531  fi
532  as_test_x='
533    eval sh -c '\''
534      if test -d "$1"; then
535        test -d "$1/.";
536      else
537        case $1 in
538        -*)set "./$1";;
539        esac;
540        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541        ???[sx]*):;;*)false;;esac;fi
542    '\'' sh
543  '
544fi
545as_executable_p=$as_test_x
546
547# Sed expression to map a string onto a valid CPP name.
548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550# Sed expression to map a string onto a valid variable name.
551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555
556# Check that we are running under the correct shell.
557SHELL=${CONFIG_SHELL-/bin/sh}
558
559case X$ECHO in
560X*--fallback-echo)
561  # Remove one level of quotation (which was required for Make).
562  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563  ;;
564esac
565
566echo=${ECHO-echo}
567if test "X$1" = X--no-reexec; then
568  # Discard the --no-reexec flag, and continue.
569  shift
570elif test "X$1" = X--fallback-echo; then
571  # Avoid inline document here, it may be left over
572  :
573elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574  # Yippee, $echo works!
575  :
576else
577  # Restart under the correct shell.
578  exec $SHELL "$0" --no-reexec ${1+"$@"}
579fi
580
581if test "X$1" = X--fallback-echo; then
582  # used as fallback echo
583  shift
584  cat <<EOF
585$*
586EOF
587  exit 0
588fi
589
590# The HP-UX ksh and POSIX shell print the target directory to stdout
591# if CDPATH is set.
592(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
594if test -z "$ECHO"; then
595if test "X${echo_test_string+set}" != Xset; then
596# find a string as large as possible, as long as the shell can cope with it
597  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600       echo_test_string=`eval $cmd` &&
601       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602    then
603      break
604    fi
605  done
606fi
607
608if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610   test "X$echo_testing_string" = "X$echo_test_string"; then
611  :
612else
613  # The Solaris, AIX, and Digital Unix default echo programs unquote
614  # backslashes.  This makes it impossible to quote backslashes using
615  #   echo "$something" | sed 's/\\/\\\\/g'
616  #
617  # So, first we look for a working echo in the user's PATH.
618
619  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620  for dir in $PATH /usr/ucb; do
621    IFS="$lt_save_ifs"
622    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625       test "X$echo_testing_string" = "X$echo_test_string"; then
626      echo="$dir/echo"
627      break
628    fi
629  done
630  IFS="$lt_save_ifs"
631
632  if test "X$echo" = Xecho; then
633    # We didn't find a better echo, so look for alternatives.
634    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636       test "X$echo_testing_string" = "X$echo_test_string"; then
637      # This shell has a builtin print -r that does the trick.
638      echo='print -r'
639    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640         test "X$CONFIG_SHELL" != X/bin/ksh; then
641      # If we have ksh, try running configure again with it.
642      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643      export ORIGINAL_CONFIG_SHELL
644      CONFIG_SHELL=/bin/ksh
645      export CONFIG_SHELL
646      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647    else
648      # Try using printf.
649      echo='printf %s\n'
650      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652         test "X$echo_testing_string" = "X$echo_test_string"; then
653        # Cool, printf works
654        :
655      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656           test "X$echo_testing_string" = 'X\t' &&
657           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658           test "X$echo_testing_string" = "X$echo_test_string"; then
659        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660        export CONFIG_SHELL
661        SHELL="$CONFIG_SHELL"
662        export SHELL
663        echo="$CONFIG_SHELL $0 --fallback-echo"
664      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665           test "X$echo_testing_string" = 'X\t' &&
666           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667           test "X$echo_testing_string" = "X$echo_test_string"; then
668        echo="$CONFIG_SHELL $0 --fallback-echo"
669      else
670        # maybe with a smaller string...
671        prev=:
672
673        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675          then
676            break
677          fi
678          prev="$cmd"
679        done
680
681        if test "$prev" != 'sed 50q "$0"'; then
682          echo_test_string=`eval $prev`
683          export echo_test_string
684          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685        else
686          # Oops.  We lost completely, so just stick with echo.
687          echo=echo
688        fi
689      fi
690    fi
691  fi
692fi
693fi
694
695# Copy echo and quote the copy suitably for passing to libtool from
696# the Makefile, instead of quoting the original, which is used later.
697ECHO=$echo
698if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700fi
701
702
703
704
705tagnames=${tagnames+${tagnames},}CXX
706
707tagnames=${tagnames+${tagnames},}F77
708
709exec 7<&0 </dev/null 6>&1
710
711# Name of the host.
712# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713# so uname gets run too.
714ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715
716#
717# Initializations.
718#
719ac_default_prefix=/usr/local
720ac_clean_files=
721ac_config_libobj_dir=.
722LIBOBJS=
723cross_compiling=no
724subdirs=
725MFLAGS=
726MAKEFLAGS=
727SHELL=${CONFIG_SHELL-/bin/sh}
728
729# Identity of this package.
730PACKAGE_NAME='adolc'
731PACKAGE_TARNAME='adolc'
732PACKAGE_VERSION='2.1.2-trunk'
733PACKAGE_STRING='adolc 2.1.2-trunk'
734PACKAGE_BUGREPORT='adol-c@list.coin-or.org'
735
736ac_unique_file="ADOL-C/src/adolc.h"
737ac_default_prefix=${HOME}/adolc_base
738# Factoring default headers for most tests.
739ac_includes_default="\
740#include <stdio.h>
741#ifdef HAVE_SYS_TYPES_H
742# include <sys/types.h>
743#endif
744#ifdef HAVE_SYS_STAT_H
745# include <sys/stat.h>
746#endif
747#ifdef STDC_HEADERS
748# include <stdlib.h>
749# include <stddef.h>
750#else
751# ifdef HAVE_STDLIB_H
752#  include <stdlib.h>
753# endif
754#endif
755#ifdef HAVE_STRING_H
756# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757#  include <memory.h>
758# endif
759# include <string.h>
760#endif
761#ifdef HAVE_STRINGS_H
762# include <strings.h>
763#endif
764#ifdef HAVE_INTTYPES_H
765# include <inttypes.h>
766#endif
767#ifdef HAVE_STDINT_H
768# include <stdint.h>
769#endif
770#ifdef HAVE_UNISTD_H
771# include <unistd.h>
772#endif"
773
774ac_subst_vars='SHELL
775PATH_SEPARATOR
776PACKAGE_NAME
777PACKAGE_TARNAME
778PACKAGE_VERSION
779PACKAGE_STRING
780PACKAGE_BUGREPORT
781exec_prefix
782prefix
783program_transform_name
784bindir
785sbindir
786libexecdir
787datarootdir
788datadir
789sysconfdir
790sharedstatedir
791localstatedir
792includedir
793oldincludedir
794docdir
795infodir
796htmldir
797dvidir
798pdfdir
799psdir
800libdir
801localedir
802mandir
803DEFS
804ECHO_C
805ECHO_N
806ECHO_T
807LIBS
808build_alias
809host_alias
810target_alias
811INSTALL_PROGRAM
812INSTALL_SCRIPT
813INSTALL_DATA
814CYGPATH_W
815PACKAGE
816VERSION
817ACLOCAL
818AUTOCONF
819AUTOMAKE
820AUTOHEADER
821MAKEINFO
822AMTAR
823install_sh
824STRIP
825INSTALL_STRIP_PROGRAM
826AWK
827SET_MAKE
828am__leading_dot
829CXX
830CXXFLAGS
831LDFLAGS
832CPPFLAGS
833ac_ct_CXX
834EXEEXT
835OBJEXT
836DEPDIR
837am__include
838am__quote
839AMDEP_TRUE
840AMDEP_FALSE
841AMDEPBACKSLASH
842CXXDEPMODE
843am__fastdepCXX_TRUE
844am__fastdepCXX_FALSE
845CC
846CFLAGS
847ac_ct_CC
848CCDEPMODE
849am__fastdepCC_TRUE
850am__fastdepCC_FALSE
851CPP
852LN_S
853RANLIB
854build
855build_cpu
856build_vendor
857build_os
858host
859host_cpu
860host_vendor
861host_os
862SED
863GREP
864EGREP
865ECHO
866AR
867DSYMUTIL
868NMEDIT
869DLLTOOL
870AS
871OBJDUMP
872CXXCPP
873F77
874FFLAGS
875ac_ct_F77
876LIBTOOL
877LIBOBJS
878ac_aux_dir
879SPARSE_TRUE
880SPARSE_FALSE
881DOCEXA_TRUE
882DOCEXA_FALSE
883ADDEXA_TRUE
884ADDEXA_FALSE
885PAREXA_TRUE
886PAREXA_FALSE
887ac_adolc_cflags
888ac_adolc_cxxflags
889LTLIBOBJS'
890ac_subst_files=''
891      ac_precious_vars='build_alias
892host_alias
893target_alias
894CXX
895CXXFLAGS
896LDFLAGS
897LIBS
898CPPFLAGS
899CCC
900CC
901CFLAGS
902CPP
903CXXCPP
904F77
905FFLAGS'
906
907
908# Initialize some variables set by options.
909ac_init_help=
910ac_init_version=false
911# The variables have the same names as the options, with
912# dashes changed to underlines.
913cache_file=/dev/null
914exec_prefix=NONE
915no_create=
916no_recursion=
917prefix=NONE
918program_prefix=NONE
919program_suffix=NONE
920program_transform_name=s,x,x,
921silent=
922site=
923srcdir=
924verbose=
925x_includes=NONE
926x_libraries=NONE
927
928# Installation directory options.
929# These are left unexpanded so users can "make install exec_prefix=/foo"
930# and all the variables that are supposed to be based on exec_prefix
931# by default will actually change.
932# Use braces instead of parens because sh, perl, etc. also accept them.
933# (The list follows the same order as the GNU Coding Standards.)
934bindir='${exec_prefix}/bin'
935sbindir='${exec_prefix}/sbin'
936libexecdir='${exec_prefix}/libexec'
937datarootdir='${prefix}/share'
938datadir='${datarootdir}'
939sysconfdir='${prefix}/etc'
940sharedstatedir='${prefix}/com'
941localstatedir='${prefix}/var'
942includedir='${prefix}/include'
943oldincludedir='/usr/include'
944docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
945infodir='${datarootdir}/info'
946htmldir='${docdir}'
947dvidir='${docdir}'
948pdfdir='${docdir}'
949psdir='${docdir}'
950libdir='${exec_prefix}/lib'
951localedir='${datarootdir}/locale'
952mandir='${datarootdir}/man'
953
954ac_prev=
955ac_dashdash=
956for ac_option
957do
958  # If the previous option needs an argument, assign it.
959  if test -n "$ac_prev"; then
960    eval $ac_prev=\$ac_option
961    ac_prev=
962    continue
963  fi
964
965  case $ac_option in
966  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967  *)    ac_optarg=yes ;;
968  esac
969
970  # Accept the important Cygnus configure options, so we can diagnose typos.
971
972  case $ac_dashdash$ac_option in
973  --)
974    ac_dashdash=yes ;;
975
976  -bindir | --bindir | --bindi | --bind | --bin | --bi)
977    ac_prev=bindir ;;
978  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979    bindir=$ac_optarg ;;
980
981  -build | --build | --buil | --bui | --bu)
982    ac_prev=build_alias ;;
983  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984    build_alias=$ac_optarg ;;
985
986  -cache-file | --cache-file | --cache-fil | --cache-fi \
987  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988    ac_prev=cache_file ;;
989  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991    cache_file=$ac_optarg ;;
992
993  --config-cache | -C)
994    cache_file=config.cache ;;
995
996  -datadir | --datadir | --datadi | --datad)
997    ac_prev=datadir ;;
998  -datadir=* | --datadir=* | --datadi=* | --datad=*)
999    datadir=$ac_optarg ;;
1000
1001  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002  | --dataroo | --dataro | --datar)
1003    ac_prev=datarootdir ;;
1004  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006    datarootdir=$ac_optarg ;;
1007
1008  -disable-* | --disable-*)
1009    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010    # Reject names that are not valid shell variable names.
1011    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1012      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1013   { (exit 1); exit 1; }; }
1014    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1015    eval enable_$ac_feature=no ;;
1016
1017  -docdir | --docdir | --docdi | --doc | --do)
1018    ac_prev=docdir ;;
1019  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1020    docdir=$ac_optarg ;;
1021
1022  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1023    ac_prev=dvidir ;;
1024  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1025    dvidir=$ac_optarg ;;
1026
1027  -enable-* | --enable-*)
1028    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1029    # Reject names that are not valid shell variable names.
1030    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1031      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1032   { (exit 1); exit 1; }; }
1033    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1034    eval enable_$ac_feature=\$ac_optarg ;;
1035
1036  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038  | --exec | --exe | --ex)
1039    ac_prev=exec_prefix ;;
1040  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042  | --exec=* | --exe=* | --ex=*)
1043    exec_prefix=$ac_optarg ;;
1044
1045  -gas | --gas | --ga | --g)
1046    # Obsolete; use --with-gas.
1047    with_gas=yes ;;
1048
1049  -help | --help | --hel | --he | -h)
1050    ac_init_help=long ;;
1051  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052    ac_init_help=recursive ;;
1053  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054    ac_init_help=short ;;
1055
1056  -host | --host | --hos | --ho)
1057    ac_prev=host_alias ;;
1058  -host=* | --host=* | --hos=* | --ho=*)
1059    host_alias=$ac_optarg ;;
1060
1061  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062    ac_prev=htmldir ;;
1063  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064  | --ht=*)
1065    htmldir=$ac_optarg ;;
1066
1067  -includedir | --includedir | --includedi | --included | --include \
1068  | --includ | --inclu | --incl | --inc)
1069    ac_prev=includedir ;;
1070  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071  | --includ=* | --inclu=* | --incl=* | --inc=*)
1072    includedir=$ac_optarg ;;
1073
1074  -infodir | --infodir | --infodi | --infod | --info | --inf)
1075    ac_prev=infodir ;;
1076  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077    infodir=$ac_optarg ;;
1078
1079  -libdir | --libdir | --libdi | --libd)
1080    ac_prev=libdir ;;
1081  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082    libdir=$ac_optarg ;;
1083
1084  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085  | --libexe | --libex | --libe)
1086    ac_prev=libexecdir ;;
1087  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088  | --libexe=* | --libex=* | --libe=*)
1089    libexecdir=$ac_optarg ;;
1090
1091  -localedir | --localedir | --localedi | --localed | --locale)
1092    ac_prev=localedir ;;
1093  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094    localedir=$ac_optarg ;;
1095
1096  -localstatedir | --localstatedir | --localstatedi | --localstated \
1097  | --localstate | --localstat | --localsta | --localst | --locals)
1098    ac_prev=localstatedir ;;
1099  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101    localstatedir=$ac_optarg ;;
1102
1103  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104    ac_prev=mandir ;;
1105  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106    mandir=$ac_optarg ;;
1107
1108  -nfp | --nfp | --nf)
1109    # Obsolete; use --without-fp.
1110    with_fp=no ;;
1111
1112  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113  | --no-cr | --no-c | -n)
1114    no_create=yes ;;
1115
1116  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118    no_recursion=yes ;;
1119
1120  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122  | --oldin | --oldi | --old | --ol | --o)
1123    ac_prev=oldincludedir ;;
1124  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127    oldincludedir=$ac_optarg ;;
1128
1129  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130    ac_prev=prefix ;;
1131  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132    prefix=$ac_optarg ;;
1133
1134  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135  | --program-pre | --program-pr | --program-p)
1136    ac_prev=program_prefix ;;
1137  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139    program_prefix=$ac_optarg ;;
1140
1141  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142  | --program-suf | --program-su | --program-s)
1143    ac_prev=program_suffix ;;
1144  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146    program_suffix=$ac_optarg ;;
1147
1148  -program-transform-name | --program-transform-name \
1149  | --program-transform-nam | --program-transform-na \
1150  | --program-transform-n | --program-transform- \
1151  | --program-transform | --program-transfor \
1152  | --program-transfo | --program-transf \
1153  | --program-trans | --program-tran \
1154  | --progr-tra | --program-tr | --program-t)
1155    ac_prev=program_transform_name ;;
1156  -program-transform-name=* | --program-transform-name=* \
1157  | --program-transform-nam=* | --program-transform-na=* \
1158  | --program-transform-n=* | --program-transform-=* \
1159  | --program-transform=* | --program-transfor=* \
1160  | --program-transfo=* | --program-transf=* \
1161  | --program-trans=* | --program-tran=* \
1162  | --progr-tra=* | --program-tr=* | --program-t=*)
1163    program_transform_name=$ac_optarg ;;
1164
1165  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166    ac_prev=pdfdir ;;
1167  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168    pdfdir=$ac_optarg ;;
1169
1170  -psdir | --psdir | --psdi | --psd | --ps)
1171    ac_prev=psdir ;;
1172  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173    psdir=$ac_optarg ;;
1174
1175  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176  | -silent | --silent | --silen | --sile | --sil)
1177    silent=yes ;;
1178
1179  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180    ac_prev=sbindir ;;
1181  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182  | --sbi=* | --sb=*)
1183    sbindir=$ac_optarg ;;
1184
1185  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187  | --sharedst | --shareds | --shared | --share | --shar \
1188  | --sha | --sh)
1189    ac_prev=sharedstatedir ;;
1190  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193  | --sha=* | --sh=*)
1194    sharedstatedir=$ac_optarg ;;
1195
1196  -site | --site | --sit)
1197    ac_prev=site ;;
1198  -site=* | --site=* | --sit=*)
1199    site=$ac_optarg ;;
1200
1201  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202    ac_prev=srcdir ;;
1203  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204    srcdir=$ac_optarg ;;
1205
1206  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207  | --syscon | --sysco | --sysc | --sys | --sy)
1208    ac_prev=sysconfdir ;;
1209  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211    sysconfdir=$ac_optarg ;;
1212
1213  -target | --target | --targe | --targ | --tar | --ta | --t)
1214    ac_prev=target_alias ;;
1215  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216    target_alias=$ac_optarg ;;
1217
1218  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219    verbose=yes ;;
1220
1221  -version | --version | --versio | --versi | --vers | -V)
1222    ac_init_version=: ;;
1223
1224  -with-* | --with-*)
1225    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226    # Reject names that are not valid shell variable names.
1227    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228      { echo "$as_me: error: invalid package name: $ac_package" >&2
1229   { (exit 1); exit 1; }; }
1230    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1231    eval with_$ac_package=\$ac_optarg ;;
1232
1233  -without-* | --without-*)
1234    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235    # Reject names that are not valid shell variable names.
1236    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237      { echo "$as_me: error: invalid package name: $ac_package" >&2
1238   { (exit 1); exit 1; }; }
1239    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1240    eval with_$ac_package=no ;;
1241
1242  --x)
1243    # Obsolete; use --with-x.
1244    with_x=yes ;;
1245
1246  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247  | --x-incl | --x-inc | --x-in | --x-i)
1248    ac_prev=x_includes ;;
1249  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251    x_includes=$ac_optarg ;;
1252
1253  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255    ac_prev=x_libraries ;;
1256  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258    x_libraries=$ac_optarg ;;
1259
1260  -*) { echo "$as_me: error: unrecognized option: $ac_option
1261Try \`$0 --help' for more information." >&2
1262   { (exit 1); exit 1; }; }
1263    ;;
1264
1265  *=*)
1266    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267    # Reject names that are not valid shell variable names.
1268    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1269      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1270   { (exit 1); exit 1; }; }
1271    eval $ac_envvar=\$ac_optarg
1272    export $ac_envvar ;;
1273
1274  *)
1275    # FIXME: should be removed in autoconf 3.0.
1276    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1280    ;;
1281
1282  esac
1283done
1284
1285if test -n "$ac_prev"; then
1286  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287  { echo "$as_me: error: missing argument to $ac_option" >&2
1288   { (exit 1); exit 1; }; }
1289fi
1290
1291# Be sure to have absolute directory names.
1292for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293                datadir sysconfdir sharedstatedir localstatedir includedir \
1294                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295                libdir localedir mandir
1296do
1297  eval ac_val=\$$ac_var
1298  case $ac_val in
1299    [\\/$]* | ?:[\\/]* )  continue;;
1300    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301  esac
1302  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1303   { (exit 1); exit 1; }; }
1304done
1305
1306# There might be people who depend on the old broken behavior: `$host'
1307# used to hold the argument of --host etc.
1308# FIXME: To remove some day.
1309build=$build_alias
1310host=$host_alias
1311target=$target_alias
1312
1313# FIXME: To remove some day.
1314if test "x$host_alias" != x; then
1315  if test "x$build_alias" = x; then
1316    cross_compiling=maybe
1317    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1318    If a cross compiler is detected then cross compile mode will be used." >&2
1319  elif test "x$build_alias" != "x$host_alias"; then
1320    cross_compiling=yes
1321  fi
1322fi
1323
1324ac_tool_prefix=
1325test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326
1327test "$silent" = yes && exec 6>/dev/null
1328
1329
1330ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331ac_ls_di=`ls -di .` &&
1332ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333  { echo "$as_me: error: Working directory cannot be determined" >&2
1334   { (exit 1); exit 1; }; }
1335test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336  { echo "$as_me: error: pwd does not report name of working directory" >&2
1337   { (exit 1); exit 1; }; }
1338
1339
1340# Find the source files, if location was not specified.
1341if test -z "$srcdir"; then
1342  ac_srcdir_defaulted=yes
1343  # Try the directory containing this script, then the parent directory.
1344  ac_confdir=`$as_dirname -- "$0" ||
1345$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346         X"$0" : 'X\(//\)[^/]' \| \
1347         X"$0" : 'X\(//\)$' \| \
1348         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1349echo X"$0" |
1350    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351            s//\1/
1352            q
1353          }
1354          /^X\(\/\/\)[^/].*/{
1355            s//\1/
1356            q
1357          }
1358          /^X\(\/\/\)$/{
1359            s//\1/
1360            q
1361          }
1362          /^X\(\/\).*/{
1363            s//\1/
1364            q
1365          }
1366          s/.*/./; q'`
1367  srcdir=$ac_confdir
1368  if test ! -r "$srcdir/$ac_unique_file"; then
1369    srcdir=..
1370  fi
1371else
1372  ac_srcdir_defaulted=no
1373fi
1374if test ! -r "$srcdir/$ac_unique_file"; then
1375  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1377   { (exit 1); exit 1; }; }
1378fi
1379ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380ac_abs_confdir=`(
1381        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1382   { (exit 1); exit 1; }; }
1383        pwd)`
1384# When building in place, set srcdir=.
1385if test "$ac_abs_confdir" = "$ac_pwd"; then
1386  srcdir=.
1387fi
1388# Remove unnecessary trailing slashes from srcdir.
1389# Double slashes in file names in object file debugging info
1390# mess up M-x gdb in Emacs.
1391case $srcdir in
1392*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393esac
1394for ac_var in $ac_precious_vars; do
1395  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396  eval ac_env_${ac_var}_value=\$${ac_var}
1397  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399done
1400
1401#
1402# Report the --help message.
1403#
1404if test "$ac_init_help" = "long"; then
1405  # Omit some internal or obsolete options to make the list less imposing.
1406  # This message is too long to be a string in the A/UX 3.1 sh.
1407  cat <<_ACEOF
1408\`configure' configures adolc 2.1.2-trunk to adapt to many kinds of systems.
1409
1410Usage: $0 [OPTION]... [VAR=VALUE]...
1411
1412To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413VAR=VALUE.  See below for descriptions of some of the useful variables.
1414
1415Defaults for the options are specified in brackets.
1416
1417Configuration:
1418  -h, --help              display this help and exit
1419      --help=short        display options specific to this package
1420      --help=recursive    display the short help of all the included packages
1421  -V, --version           display version information and exit
1422  -q, --quiet, --silent   do not print \`checking...' messages
1423      --cache-file=FILE   cache test results in FILE [disabled]
1424  -C, --config-cache      alias for \`--cache-file=config.cache'
1425  -n, --no-create         do not create output files
1426      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1427
1428Installation directories:
1429  --prefix=PREFIX         install architecture-independent files in PREFIX
1430                          [$ac_default_prefix]
1431  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1432                          [PREFIX]
1433
1434By default, \`make install' will install all the files in
1435\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1436an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437for instance \`--prefix=\$HOME'.
1438
1439For better control, use the options below.
1440
1441Fine tuning of the installation directories:
1442  --bindir=DIR           user executables [EPREFIX/bin]
1443  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1444  --libexecdir=DIR       program executables [EPREFIX/libexec]
1445  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1446  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1447  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1448  --libdir=DIR           object code libraries [EPREFIX/lib]
1449  --includedir=DIR       C header files [PREFIX/include]
1450  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1451  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1452  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1453  --infodir=DIR          info documentation [DATAROOTDIR/info]
1454  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1455  --mandir=DIR           man documentation [DATAROOTDIR/man]
1456  --docdir=DIR           documentation root [DATAROOTDIR/doc/adolc]
1457  --htmldir=DIR          html documentation [DOCDIR]
1458  --dvidir=DIR           dvi documentation [DOCDIR]
1459  --pdfdir=DIR           pdf documentation [DOCDIR]
1460  --psdir=DIR            ps documentation [DOCDIR]
1461_ACEOF
1462
1463  cat <<\_ACEOF
1464
1465Program names:
1466  --program-prefix=PREFIX            prepend PREFIX to installed program names
1467  --program-suffix=SUFFIX            append SUFFIX to installed program names
1468  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1469
1470System types:
1471  --build=BUILD     configure for building on BUILD [guessed]
1472  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1473_ACEOF
1474fi
1475
1476if test -n "$ac_init_help"; then
1477  case $ac_init_help in
1478     short | recursive ) echo "Configuration of adolc 2.1.2-trunk:";;
1479   esac
1480  cat <<\_ACEOF
1481
1482Optional Features:
1483  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1484  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1485  --disable-dependency-tracking Speeds up one-time builds
1486  --enable-dependency-tracking  Do not reject slow dependency extractors
1487  --enable-shared[=PKGS]  build shared libraries [default=yes]
1488  --enable-static[=PKGS]  build static libraries [default=yes]
1489  --enable-fast-install[=PKGS]
1490                          optimize for fast installation [default=yes]
1491  --disable-libtool-lock  avoid locking (might break parallel builds)
1492
1493  --enable-debug          enable ADOL-C debug mode [default=no]
1494
1495  --enable-harddebug      enable ADOL-C hard debug mode [default=no]
1496
1497  --enable-stdczero       adouble standard constructor zeros value (at the
1498                          cost of performance) [default=no]
1499
1500  --enable-tserrno        use errno as thread number cache [default=no]
1501
1502  --enable-safe-extern    backup all adoubles before calling an external
1503                          function [default=no]
1504
1505Optional Packages:
1506  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1507  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1508  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1509  --with-pic              try to use only PIC/non-PIC objects [default=use
1510                          both]
1511  --with-tags[=TAGS]      include additional configurations [automatic]
1512
1513  --with-sparse           build sparse drivers [default=no]
1514
1515  --with-docexa           build documented examples [default=no]
1516  --with-addexa           build additional examples [default=no]
1517  --with-parexa           build parallel example [default=no], if yes
1518                          -with-openmp-flag=FLAG required
1519  --with-openmp-flag=FLAG use FLAG to enable OpenMP at compile time
1520                          [default=none]
1521  --with-cflags=FLAGS     use CFLAGS=FLAGS (default: -O2)
1522  --with-cxxflags=FLAGS   use CXXFLAGS=FLAGS (default: -O2)
1523
1524Some influential environment variables:
1525  CXX         C++ compiler command
1526  CXXFLAGS    C++ compiler flags
1527  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1528              nonstandard directory <lib dir>
1529  LIBS        libraries to pass to the linker, e.g. -l<library>
1530  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1531              you have headers in a nonstandard directory <include dir>
1532  CC          C compiler command
1533  CFLAGS      C compiler flags
1534  CPP         C preprocessor
1535  CXXCPP      C++ preprocessor
1536  F77         Fortran 77 compiler command
1537  FFLAGS      Fortran 77 compiler flags
1538
1539Use these variables to override the choices made by `configure' or to help
1540it to find libraries and programs with nonstandard names/locations.
1541
1542Report bugs to <adol-c@list.coin-or.org>.
1543_ACEOF
1544ac_status=$?
1545fi
1546
1547if test "$ac_init_help" = "recursive"; then
1548  # If there are subdirs, report their specific --help.
1549  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550    test -d "$ac_dir" || continue
1551    ac_builddir=.
1552
1553case "$ac_dir" in
1554.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555*)
1556  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1557  # A ".." for each directory in $ac_dir_suffix.
1558  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1559  case $ac_top_builddir_sub in
1560  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1562  esac ;;
1563esac
1564ac_abs_top_builddir=$ac_pwd
1565ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566# for backward compatibility:
1567ac_top_builddir=$ac_top_build_prefix
1568
1569case $srcdir in
1570  .)  # We are building in place.
1571    ac_srcdir=.
1572    ac_top_srcdir=$ac_top_builddir_sub
1573    ac_abs_top_srcdir=$ac_pwd ;;
1574  [\\/]* | ?:[\\/]* )  # Absolute name.
1575    ac_srcdir=$srcdir$ac_dir_suffix;
1576    ac_top_srcdir=$srcdir
1577    ac_abs_top_srcdir=$srcdir ;;
1578  *) # Relative name.
1579    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580    ac_top_srcdir=$ac_top_build_prefix$srcdir
1581    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582esac
1583ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1584
1585    cd "$ac_dir" || { ac_status=$?; continue; }
1586    # Check for guested configure.
1587    if test -f "$ac_srcdir/configure.gnu"; then
1588      echo &&
1589      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590    elif test -f "$ac_srcdir/configure"; then
1591      echo &&
1592      $SHELL "$ac_srcdir/configure" --help=recursive
1593    else
1594      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595    fi || ac_status=$?
1596    cd "$ac_pwd" || { ac_status=$?; break; }
1597  done
1598fi
1599
1600test -n "$ac_init_help" && exit $ac_status
1601if $ac_init_version; then
1602  cat <<\_ACEOF
1603adolc configure 2.1.2-trunk
1604generated by GNU Autoconf 2.61
1605
1606Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16072002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1608This configure script is free software; the Free Software Foundation
1609gives unlimited permission to copy, distribute and modify it.
1610_ACEOF
1611  exit
1612fi
1613cat >config.log <<_ACEOF
1614This file contains any messages produced by compilers while
1615running configure, to aid debugging if configure makes a mistake.
1616
1617It was created by adolc $as_me 2.1.2-trunk, which was
1618generated by GNU Autoconf 2.61.  Invocation command line was
1619
1620  $ $0 $@
1621
1622_ACEOF
1623exec 5>>config.log
1624{
1625cat <<_ASUNAME
1626## --------- ##
1627## Platform. ##
1628## --------- ##
1629
1630hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1631uname -m = `(uname -m) 2>/dev/null || echo unknown`
1632uname -r = `(uname -r) 2>/dev/null || echo unknown`
1633uname -s = `(uname -s) 2>/dev/null || echo unknown`
1634uname -v = `(uname -v) 2>/dev/null || echo unknown`
1635
1636/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1637/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1638
1639/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1640/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1641/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1642/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1643/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1644/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1645/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1646
1647_ASUNAME
1648
1649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650for as_dir in $PATH
1651do
1652  IFS=$as_save_IFS
1653  test -z "$as_dir" && as_dir=.
1654  echo "PATH: $as_dir"
1655done
1656IFS=$as_save_IFS
1657
1658} >&5
1659
1660cat >&5 <<_ACEOF
1661
1662
1663## ----------- ##
1664## Core tests. ##
1665## ----------- ##
1666
1667_ACEOF
1668
1669
1670# Keep a trace of the command line.
1671# Strip out --no-create and --no-recursion so they do not pile up.
1672# Strip out --silent because we don't want to record it for future runs.
1673# Also quote any args containing shell meta-characters.
1674# Make two passes to allow for proper duplicate-argument suppression.
1675ac_configure_args=
1676ac_configure_args0=
1677ac_configure_args1=
1678ac_must_keep_next=false
1679for ac_pass in 1 2
1680do
1681  for ac_arg
1682  do
1683    case $ac_arg in
1684    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1685    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1686    | -silent | --silent | --silen | --sile | --sil)
1687      continue ;;
1688    *\'*)
1689      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1690    esac
1691    case $ac_pass in
1692    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1693    2)
1694      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1695      if test $ac_must_keep_next = true; then
1696        ac_must_keep_next=false # Got value, back to normal.
1697      else
1698        case $ac_arg in
1699          *=* | --config-cache | -C | -disable-* | --disable-* \
1700          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1701          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1702          | -with-* | --with-* | -without-* | --without-* | --x)
1703            case "$ac_configure_args0 " in
1704              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1705            esac
1706            ;;
1707          -* ) ac_must_keep_next=true ;;
1708        esac
1709      fi
1710      ac_configure_args="$ac_configure_args '$ac_arg'"
1711      ;;
1712    esac
1713  done
1714done
1715$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1716$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1717
1718# When interrupted or exit'd, cleanup temporary files, and complete
1719# config.log.  We remove comments because anyway the quotes in there
1720# would cause problems or look ugly.
1721# WARNING: Use '\'' to represent an apostrophe within the trap.
1722# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1723trap 'exit_status=$?
1724  # Save into config.log some information that might help in debugging.
1725  {
1726    echo
1727
1728    cat <<\_ASBOX
1729## ---------------- ##
1730## Cache variables. ##
1731## ---------------- ##
1732_ASBOX
1733    echo
1734    # The following way of writing the cache mishandles newlines in values,
1735(
1736  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1737    eval ac_val=\$$ac_var
1738    case $ac_val in #(
1739    *${as_nl}*)
1740      case $ac_var in #(
1741      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1742echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1743      esac
1744      case $ac_var in #(
1745      _ | IFS | as_nl) ;; #(
1746      *) $as_unset $ac_var ;;
1747      esac ;;
1748    esac
1749  done
1750  (set) 2>&1 |
1751    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1752    *${as_nl}ac_space=\ *)
1753      sed -n \
1754        "s/'\''/'\''\\\\'\'''\''/g;
1755          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1756      ;; #(
1757    *)
1758      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1759      ;;
1760    esac |
1761    sort
1762)
1763    echo
1764
1765    cat <<\_ASBOX
1766## ----------------- ##
1767## Output variables. ##
1768## ----------------- ##
1769_ASBOX
1770    echo
1771    for ac_var in $ac_subst_vars
1772    do
1773      eval ac_val=\$$ac_var
1774      case $ac_val in
1775      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1776      esac
1777      echo "$ac_var='\''$ac_val'\''"
1778    done | sort
1779    echo
1780
1781    if test -n "$ac_subst_files"; then
1782      cat <<\_ASBOX
1783## ------------------- ##
1784## File substitutions. ##
1785## ------------------- ##
1786_ASBOX
1787      echo
1788      for ac_var in $ac_subst_files
1789      do
1790        eval ac_val=\$$ac_var
1791        case $ac_val in
1792        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1793        esac
1794        echo "$ac_var='\''$ac_val'\''"
1795      done | sort
1796      echo
1797    fi
1798
1799    if test -s confdefs.h; then
1800      cat <<\_ASBOX
1801## ----------- ##
1802## confdefs.h. ##
1803## ----------- ##
1804_ASBOX
1805      echo
1806      cat confdefs.h
1807      echo
1808    fi
1809    test "$ac_signal" != 0 &&
1810      echo "$as_me: caught signal $ac_signal"
1811    echo "$as_me: exit $exit_status"
1812  } >&5
1813  rm -f core *.core core.conftest.* &&
1814    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1815    exit $exit_status
1816' 0
1817for ac_signal in 1 2 13 15; do
1818  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1819done
1820ac_signal=0
1821
1822# confdefs.h avoids OS command line length limits that DEFS can exceed.
1823rm -f -r conftest* confdefs.h
1824
1825# Predefined preprocessor variables.
1826
1827cat >>confdefs.h <<_ACEOF
1828#define PACKAGE_NAME "$PACKAGE_NAME"
1829_ACEOF
1830
1831
1832cat >>confdefs.h <<_ACEOF
1833#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1834_ACEOF
1835
1836
1837cat >>confdefs.h <<_ACEOF
1838#define PACKAGE_VERSION "$PACKAGE_VERSION"
1839_ACEOF
1840
1841
1842cat >>confdefs.h <<_ACEOF
1843#define PACKAGE_STRING "$PACKAGE_STRING"
1844_ACEOF
1845
1846
1847cat >>confdefs.h <<_ACEOF
1848#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1849_ACEOF
1850
1851
1852# Let the site file select an alternate cache file if it wants to.
1853# Prefer explicitly selected file to automatically selected ones.
1854if test -n "$CONFIG_SITE"; then
1855  set x "$CONFIG_SITE"
1856elif test "x$prefix" != xNONE; then
1857  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1858else
1859  set x "$ac_default_prefix/share/config.site" \
1860        "$ac_default_prefix/etc/config.site"
1861fi
1862shift
1863for ac_site_file
1864do
1865  if test -r "$ac_site_file"; then
1866    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1867echo "$as_me: loading site script $ac_site_file" >&6;}
1868    sed 's/^/| /' "$ac_site_file" >&5
1869    . "$ac_site_file"
1870  fi
1871done
1872
1873if test -r "$cache_file"; then
1874  # Some versions of bash will fail to source /dev/null (special
1875  # files actually), so we avoid doing that.
1876  if test -f "$cache_file"; then
1877    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1878echo "$as_me: loading cache $cache_file" >&6;}
1879    case $cache_file in
1880      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1881      *)                      . "./$cache_file";;
1882    esac
1883  fi
1884else
1885  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1886echo "$as_me: creating cache $cache_file" >&6;}
1887  >$cache_file
1888fi
1889
1890# Check that the precious variables saved in the cache have kept the same
1891# value.
1892ac_cache_corrupted=false
1893for ac_var in $ac_precious_vars; do
1894  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1895  eval ac_new_set=\$ac_env_${ac_var}_set
1896  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1897  eval ac_new_val=\$ac_env_${ac_var}_value
1898  case $ac_old_set,$ac_new_set in
1899    set,)
1900      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1901echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1902      ac_cache_corrupted=: ;;
1903    ,set)
1904      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1905echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1906      ac_cache_corrupted=: ;;
1907    ,);;
1908    *)
1909      if test "x$ac_old_val" != "x$ac_new_val"; then
1910        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1911echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1912        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1913echo "$as_me:   former value:  $ac_old_val" >&2;}
1914        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1915echo "$as_me:   current value: $ac_new_val" >&2;}
1916        ac_cache_corrupted=:
1917      fi;;
1918  esac
1919  # Pass precious variables to config.status.
1920  if test "$ac_new_set" = set; then
1921    case $ac_new_val in
1922    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1923    *) ac_arg=$ac_var=$ac_new_val ;;
1924    esac
1925    case " $ac_configure_args " in
1926      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1927      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1928    esac
1929  fi
1930done
1931if $ac_cache_corrupted; then
1932  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1933echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1934  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1935echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1936   { (exit 1); exit 1; }; }
1937fi
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963ac_ext=c
1964ac_cpp='$CPP $CPPFLAGS'
1965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967ac_compiler_gnu=$ac_cv_c_compiler_gnu
1968
1969
1970
1971
1972ac_aux_dir=
1973for ac_dir in autoconf "$srcdir"/autoconf; do
1974  if test -f "$ac_dir/install-sh"; then
1975    ac_aux_dir=$ac_dir
1976    ac_install_sh="$ac_aux_dir/install-sh -c"
1977    break
1978  elif test -f "$ac_dir/install.sh"; then
1979    ac_aux_dir=$ac_dir
1980    ac_install_sh="$ac_aux_dir/install.sh -c"
1981    break
1982  elif test -f "$ac_dir/shtool"; then
1983    ac_aux_dir=$ac_dir
1984    ac_install_sh="$ac_aux_dir/shtool install -c"
1985    break
1986  fi
1987done
1988if test -z "$ac_aux_dir"; then
1989  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1990echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1991   { (exit 1); exit 1; }; }
1992fi
1993
1994# These three variables are undocumented and unsupported,
1995# and are intended to be withdrawn in a future Autoconf release.
1996# They can cause serious problems if a builder's source tree is in a directory
1997# whose full name contains unusual characters.
1998ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1999ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2000ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2001
2002
2003ac_config_headers="$ac_config_headers ADOL-C/src/config.h"
2004
2005
2006am__api_version="1.7"
2007# Find a good install program.  We prefer a C program (faster),
2008# so one script is as good as another.  But avoid the broken or
2009# incompatible versions:
2010# SysV /etc/install, /usr/sbin/install
2011# SunOS /usr/etc/install
2012# IRIX /sbin/install
2013# AIX /bin/install
2014# AmigaOS /C/install, which installs bootblocks on floppy discs
2015# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2016# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2017# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2018# OS/2's system install, which has a completely different semantic
2019# ./install, which can be erroneously created by make from ./install.sh.
2020{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2021echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2022if test -z "$INSTALL"; then
2023if test "${ac_cv_path_install+set}" = set; then
2024  echo $ECHO_N "(cached) $ECHO_C" >&6
2025else
2026  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027for as_dir in $PATH
2028do
2029  IFS=$as_save_IFS
2030  test -z "$as_dir" && as_dir=.
2031  # Account for people who put trailing slashes in PATH elements.
2032case $as_dir/ in
2033  ./ | .// | /cC/* | \
2034  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2035  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2036  /usr/ucb/* ) ;;
2037  *)
2038    # OSF1 and SCO ODT 3.0 have their own names for install.
2039    # Don't use installbsd from OSF since it installs stuff as root
2040    # by default.
2041    for ac_prog in ginstall scoinst install; do
2042      for ac_exec_ext in '' $ac_executable_extensions; do
2043        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2044          if test $ac_prog = install &&
2045            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2046            # AIX install.  It has an incompatible calling convention.
2047            :
2048          elif test $ac_prog = install &&
2049            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2050            # program-specific install script used by HP pwplus--don't use.
2051            :
2052          else
2053            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2054            break 3
2055          fi
2056        fi
2057      done
2058    done
2059    ;;
2060esac
2061done
2062IFS=$as_save_IFS
2063
2064
2065fi
2066  if test "${ac_cv_path_install+set}" = set; then
2067    INSTALL=$ac_cv_path_install
2068  else
2069    # As a last resort, use the slow shell script.  Don't cache a
2070    # value for INSTALL within a source directory, because that will
2071    # break other packages using the cache if that directory is
2072    # removed, or if the value is a relative name.
2073    INSTALL=$ac_install_sh
2074  fi
2075fi
2076{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2077echo "${ECHO_T}$INSTALL" >&6; }
2078
2079# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2080# It thinks the first close brace ends the variable substitution.
2081test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2082
2083test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2084
2085test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2086
2087{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2088echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2089# Just in case
2090sleep 1
2091echo timestamp > conftest.file
2092# Do `set' in a subshell so we don't clobber the current shell's
2093# arguments.  Must try -L first in case configure is actually a
2094# symlink; some systems play weird games with the mod time of symlinks
2095# (eg FreeBSD returns the mod time of the symlink's containing
2096# directory).
2097if (
2098   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2099   if test "$*" = "X"; then
2100      # -L didn't work.
2101      set X `ls -t $srcdir/configure conftest.file`
2102   fi
2103   rm -f conftest.file
2104   if test "$*" != "X $srcdir/configure conftest.file" \
2105      && test "$*" != "X conftest.file $srcdir/configure"; then
2106
2107      # If neither matched, then we have a broken ls.  This can happen
2108      # if, for instance, CONFIG_SHELL is bash and it inherits a
2109      # broken ls alias from the environment.  This has actually
2110      # happened.  Such a system could not be considered "sane".
2111      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2112alias in your environment" >&5
2113echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2114alias in your environment" >&2;}
2115   { (exit 1); exit 1; }; }
2116   fi
2117
2118   test "$2" = conftest.file
2119   )
2120then
2121   # Ok.
2122   :
2123else
2124   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2125Check your system clock" >&5
2126echo "$as_me: error: newly created file is older than distributed files!
2127Check your system clock" >&2;}
2128   { (exit 1); exit 1; }; }
2129fi
2130{ echo "$as_me:$LINENO: result: yes" >&5
2131echo "${ECHO_T}yes" >&6; }
2132test "$program_prefix" != NONE &&
2133  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2134# Use a double $ so make ignores it.
2135test "$program_suffix" != NONE &&
2136  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2137# Double any \ or $.  echo might interpret backslashes.
2138# By default was `s,x,x', remove it if useless.
2139cat <<\_ACEOF >conftest.sed
2140s/[\\$]/&&/g;s/;s,x,x,$//
2141_ACEOF
2142program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2143rm -f conftest.sed
2144
2145
2146# expand $ac_aux_dir to an absolute path
2147am_aux_dir=`cd $ac_aux_dir && pwd`
2148
2149test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2150# Use eval to expand $SHELL
2151if eval "$MISSING --run true"; then
2152  am_missing_run="$MISSING --run "
2153else
2154  am_missing_run=
2155  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2156echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2157fi
2158
2159for ac_prog in gawk mawk nawk awk
2160do
2161  # Extract the first word of "$ac_prog", so it can be a program name with args.
2162set dummy $ac_prog; ac_word=$2
2163{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2165if test "${ac_cv_prog_AWK+set}" = set; then
2166  echo $ECHO_N "(cached) $ECHO_C" >&6
2167else
2168  if test -n "$AWK"; then
2169  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2170else
2171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172for as_dir in $PATH
2173do
2174  IFS=$as_save_IFS
2175  test -z "$as_dir" && as_dir=.
2176  for ac_exec_ext in '' $ac_executable_extensions; do
2177  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2178    ac_cv_prog_AWK="$ac_prog"
2179    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180    break 2
2181  fi
2182done
2183done
2184IFS=$as_save_IFS
2185
2186fi
2187fi
2188AWK=$ac_cv_prog_AWK
2189if test -n "$AWK"; then
2190  { echo "$as_me:$LINENO: result: $AWK" >&5
2191echo "${ECHO_T}$AWK" >&6; }
2192else
2193  { echo "$as_me:$LINENO: result: no" >&5
2194echo "${ECHO_T}no" >&6; }
2195fi
2196
2197
2198  test -n "$AWK" && break
2199done
2200
2201{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2202echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2203set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2204if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2205  echo $ECHO_N "(cached) $ECHO_C" >&6
2206else
2207  cat >conftest.make <<\_ACEOF
2208SHELL = /bin/sh
2209all:
2210        @echo '@@@%%%=$(MAKE)=@@@%%%'
2211_ACEOF
2212# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2213case `${MAKE-make} -f conftest.make 2>/dev/null` in
2214  *@@@%%%=?*=@@@%%%*)
2215    eval ac_cv_prog_make_${ac_make}_set=yes;;
2216  *)
2217    eval ac_cv_prog_make_${ac_make}_set=no;;
2218esac
2219rm -f conftest.make
2220fi
2221if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2222  { echo "$as_me:$LINENO: result: yes" >&5
2223echo "${ECHO_T}yes" >&6; }
2224  SET_MAKE=
2225else
2226  { echo "$as_me:$LINENO: result: no" >&5
2227echo "${ECHO_T}no" >&6; }
2228  SET_MAKE="MAKE=${MAKE-make}"
2229fi
2230
2231rm -rf .tst 2>/dev/null
2232mkdir .tst 2>/dev/null
2233if test -d .tst; then
2234  am__leading_dot=.
2235else
2236  am__leading_dot=_
2237fi
2238rmdir .tst 2>/dev/null
2239
2240 # test to see if srcdir already configured
2241if test "`cd $srcdir && pwd`" != "`pwd`" &&
2242   test -f $srcdir/config.status; then
2243  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2244echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2245   { (exit 1); exit 1; }; }
2246fi
2247
2248# test whether we have cygpath
2249if test -z "$CYGPATH_W"; then
2250  if (cygpath --version) >/dev/null 2>/dev/null; then
2251    CYGPATH_W='cygpath -w'
2252  else
2253    CYGPATH_W=echo
2254  fi
2255fi
2256
2257
2258# Define the identity of the package.
2259 PACKAGE='adolc'
2260 VERSION='2.1.2-trunk'
2261
2262
2263cat >>confdefs.h <<_ACEOF
2264#define PACKAGE "$PACKAGE"
2265_ACEOF
2266
2267
2268cat >>confdefs.h <<_ACEOF
2269#define VERSION "$VERSION"
2270_ACEOF
2271
2272# Some tools Automake needs.
2273
2274ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2275
2276
2277AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2278
2279
2280AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2281
2282
2283AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2284
2285
2286MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2287
2288
2289AMTAR=${AMTAR-"${am_missing_run}tar"}
2290
2291install_sh=${install_sh-"$am_aux_dir/install-sh"}
2292
2293# Installed binaries are usually stripped using `strip' when the user
2294# run `make install-strip'.  However `strip' might not be the right
2295# tool to use in cross-compilation environments, therefore Automake
2296# will honor the `STRIP' environment variable to overrule this program.
2297if test "$cross_compiling" != no; then
2298  if test -n "$ac_tool_prefix"; then
2299  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2300set dummy ${ac_tool_prefix}strip; ac_word=$2
2301{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2303if test "${ac_cv_prog_STRIP+set}" = set; then
2304  echo $ECHO_N "(cached) $ECHO_C" >&6
2305else
2306  if test -n "$STRIP"; then
2307  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2308else
2309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310for as_dir in $PATH
2311do
2312  IFS=$as_save_IFS
2313  test -z "$as_dir" && as_dir=.
2314  for ac_exec_ext in '' $ac_executable_extensions; do
2315  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2316    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2317    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318    break 2
2319  fi
2320done
2321done
2322IFS=$as_save_IFS
2323
2324fi
2325fi
2326STRIP=$ac_cv_prog_STRIP
2327if test -n "$STRIP"; then
2328  { echo "$as_me:$LINENO: result: $STRIP" >&5
2329echo "${ECHO_T}$STRIP" >&6; }
2330else
2331  { echo "$as_me:$LINENO: result: no" >&5
2332echo "${ECHO_T}no" >&6; }
2333fi
2334
2335
2336fi
2337if test -z "$ac_cv_prog_STRIP"; then
2338  ac_ct_STRIP=$STRIP
2339  # Extract the first word of "strip", so it can be a program name with args.
2340set dummy strip; ac_word=$2
2341{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2343if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2344  echo $ECHO_N "(cached) $ECHO_C" >&6
2345else
2346  if test -n "$ac_ct_STRIP"; then
2347  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2348else
2349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350for as_dir in $PATH
2351do
2352  IFS=$as_save_IFS
2353  test -z "$as_dir" && as_dir=.
2354  for ac_exec_ext in '' $ac_executable_extensions; do
2355  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356    ac_cv_prog_ac_ct_STRIP="strip"
2357    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358    break 2
2359  fi
2360done
2361done
2362IFS=$as_save_IFS
2363
2364fi
2365fi
2366ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2367if test -n "$ac_ct_STRIP"; then
2368  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2369echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2370else
2371  { echo "$as_me:$LINENO: result: no" >&5
2372echo "${ECHO_T}no" >&6; }
2373fi
2374
2375  if test "x$ac_ct_STRIP" = x; then
2376    STRIP=":"
2377  else
2378    case $cross_compiling:$ac_tool_warned in
2379yes:)
2380{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2381whose name does not start with the host triplet.  If you think this
2382configuration is useful to you, please write to autoconf@gnu.org." >&5
2383echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2384whose name does not start with the host triplet.  If you think this
2385configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2386ac_tool_warned=yes ;;
2387esac
2388    STRIP=$ac_ct_STRIP
2389  fi
2390else
2391  STRIP="$ac_cv_prog_STRIP"
2392fi
2393
2394fi
2395INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2396
2397# We need awk for the "check" target.  The system "awk" is bad on
2398# some platforms.
2399
2400
2401
2402
2403if test x$CFLAGS == x ; then
2404    ac_shell_cflags="not_set"
2405else
2406    ac_shell_cflags="$CFLAGS"
2407fi
2408if test x$CXXFLAGS == x ; then
2409    ac_shell_cxxflags="not_set"
2410else
2411    ac_shell_cxxflags="$CXXFLAGS"
2412fi
2413
2414# checks for programs
2415ac_ext=cpp
2416ac_cpp='$CXXCPP $CPPFLAGS'
2417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2420if test -z "$CXX"; then
2421  if test -n "$CCC"; then
2422    CXX=$CCC
2423  else
2424    if test -n "$ac_tool_prefix"; then
2425  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2426  do
2427    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2428set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2429{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2431if test "${ac_cv_prog_CXX+set}" = set; then
2432  echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434  if test -n "$CXX"; then
2435  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2436else
2437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438for as_dir in $PATH
2439do
2440  IFS=$as_save_IFS
2441  test -z "$as_dir" && as_dir=.
2442  for ac_exec_ext in '' $ac_executable_extensions; do
2443  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2444    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2445    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2446    break 2
2447  fi
2448done
2449done
2450IFS=$as_save_IFS
2451
2452fi
2453fi
2454CXX=$ac_cv_prog_CXX
2455if test -n "$CXX"; then
2456  { echo "$as_me:$LINENO: result: $CXX" >&5
2457echo "${ECHO_T}$CXX" >&6; }
2458else
2459  { echo "$as_me:$LINENO: result: no" >&5
2460echo "${ECHO_T}no" >&6; }
2461fi
2462
2463
2464    test -n "$CXX" && break
2465  done
2466fi
2467if test -z "$CXX"; then
2468  ac_ct_CXX=$CXX
2469  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2470do
2471  # Extract the first word of "$ac_prog", so it can be a program name with args.
2472set dummy $ac_prog; ac_word=$2
2473{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2475if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2476  echo $ECHO_N "(cached) $ECHO_C" >&6
2477else
2478  if test -n "$ac_ct_CXX"; then
2479  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2480else
2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482for as_dir in $PATH
2483do
2484  IFS=$as_save_IFS
2485  test -z "$as_dir" && as_dir=.
2486  for ac_exec_ext in '' $ac_executable_extensions; do
2487  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488    ac_cv_prog_ac_ct_CXX="$ac_prog"
2489    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490    break 2
2491  fi
2492done
2493done
2494IFS=$as_save_IFS
2495
2496fi
2497fi
2498ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2499if test -n "$ac_ct_CXX"; then
2500  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2501echo "${ECHO_T}$ac_ct_CXX" >&6; }
2502else
2503  { echo "$as_me:$LINENO: result: no" >&5
2504echo "${ECHO_T}no" >&6; }
2505fi
2506
2507
2508  test -n "$ac_ct_CXX" && break
2509done
2510
2511  if test "x$ac_ct_CXX" = x; then
2512    CXX="g++"
2513  else
2514    case $cross_compiling:$ac_tool_warned in
2515yes:)
2516{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2517whose name does not start with the host triplet.  If you think this
2518configuration is useful to you, please write to autoconf@gnu.org." >&5
2519echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2520whose name does not start with the host triplet.  If you think this
2521configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2522ac_tool_warned=yes ;;
2523esac
2524    CXX=$ac_ct_CXX
2525  fi
2526fi
2527
2528  fi
2529fi
2530# Provide some information about the compiler.
2531echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2532ac_compiler=`set X $ac_compile; echo $2`
2533{ (ac_try="$ac_compiler --version >&5"
2534case "(($ac_try" in
2535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536  *) ac_try_echo=$ac_try;;
2537esac
2538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539  (eval "$ac_compiler --version >&5") 2>&5
2540  ac_status=$?
2541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542  (exit $ac_status); }
2543{ (ac_try="$ac_compiler -v >&5"
2544case "(($ac_try" in
2545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546  *) ac_try_echo=$ac_try;;
2547esac
2548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2549  (eval "$ac_compiler -v >&5") 2>&5
2550  ac_status=$?
2551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552  (exit $ac_status); }
2553{ (ac_try="$ac_compiler -V >&5"
2554case "(($ac_try" in
2555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556  *) ac_try_echo=$ac_try;;
2557esac
2558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559  (eval "$ac_compiler -V >&5") 2>&5
2560  ac_status=$?
2561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562  (exit $ac_status); }
2563
2564cat >conftest.$ac_ext <<_ACEOF
2565/* confdefs.h.  */
2566_ACEOF
2567cat confdefs.h >>conftest.$ac_ext
2568cat >>conftest.$ac_ext <<_ACEOF
2569/* end confdefs.h.  */
2570
2571int
2572main ()
2573{
2574
2575  ;
2576  return 0;
2577}
2578_ACEOF
2579ac_clean_files_save=$ac_clean_files
2580ac_clean_files="$ac_clean_files a.out a.exe b.out"
2581# Try to create an executable without -o first, disregard a.out.
2582# It will help us diagnose broken compilers, and finding out an intuition
2583# of exeext.
2584{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2585echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2586ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2587#
2588# List of possible output files, starting from the most likely.
2589# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2590# only as a last resort.  b.out is created by i960 compilers.
2591ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2592#
2593# The IRIX 6 linker writes into existing files which may not be
2594# executable, retaining their permissions.  Remove them first so a
2595# subsequent execution test works.
2596ac_rmfiles=
2597for ac_file in $ac_files
2598do
2599  case $ac_file in
2600    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2601    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2602  esac
2603done
2604rm -f $ac_rmfiles
2605
2606if { (ac_try="$ac_link_default"
2607case "(($ac_try" in
2608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2609  *) ac_try_echo=$ac_try;;
2610esac
2611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2612  (eval "$ac_link_default") 2>&5
2613  ac_status=$?
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); }; then
2616  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2617# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2618# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2619# so that the user can short-circuit this test for compilers unknown to
2620# Autoconf.
2621for ac_file in $ac_files ''
2622do
2623  test -f "$ac_file" || continue
2624  case $ac_file in
2625    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2626        ;;
2627    [ab].out )
2628        # We found the default executable, but exeext='' is most
2629        # certainly right.
2630        break;;
2631    *.* )
2632        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2633        then :; else
2634           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2635        fi
2636        # We set ac_cv_exeext here because the later test for it is not
2637        # safe: cross compilers may not add the suffix if given an `-o'
2638        # argument, so we may need to know it at that point already.
2639        # Even if this section looks crufty: it has the advantage of
2640        # actually working.
2641        break;;
2642    * )
2643        break;;
2644  esac
2645done
2646test "$ac_cv_exeext" = no && ac_cv_exeext=
2647
2648else
2649  ac_file=''
2650fi
2651
2652{ echo "$as_me:$LINENO: result: $ac_file" >&5
2653echo "${ECHO_T}$ac_file" >&6; }
2654if test -z "$ac_file"; then
2655  echo "$as_me: failed program was:" >&5
2656sed 's/^/| /' conftest.$ac_ext >&5
2657
2658{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2659See \`config.log' for more details." >&5
2660echo "$as_me: error: C++ compiler cannot create executables
2661See \`config.log' for more details." >&2;}
2662   { (exit 77); exit 77; }; }
2663fi
2664
2665ac_exeext=$ac_cv_exeext
2666
2667# Check that the compiler produces executables we can run.  If not, either
2668# the compiler is broken, or we cross compile.
2669{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2670echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2671# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2672# If not cross compiling, check that we can run a simple program.
2673if test "$cross_compiling" != yes; then
2674  if { ac_try='./$ac_file'
2675  { (case "(($ac_try" in
2676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677  *) ac_try_echo=$ac_try;;
2678esac
2679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2680  (eval "$ac_try") 2>&5
2681  ac_status=$?
2682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683  (exit $ac_status); }; }; then
2684    cross_compiling=no
2685  else
2686    if test "$cross_compiling" = maybe; then
2687        cross_compiling=yes
2688    else
2689        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2690If you meant to cross compile, use \`--host'.
2691See \`config.log' for more details." >&5
2692echo "$as_me: error: cannot run C++ compiled programs.
2693If you meant to cross compile, use \`--host'.
2694See \`config.log' for more details." >&2;}
2695   { (exit 1); exit 1; }; }
2696    fi
2697  fi
2698fi
2699{ echo "$as_me:$LINENO: result: yes" >&5
2700echo "${ECHO_T}yes" >&6; }
2701
2702rm -f a.out a.exe conftest$ac_cv_exeext b.out
2703ac_clean_files=$ac_clean_files_save
2704# Check that the compiler produces executables we can run.  If not, either
2705# the compiler is broken, or we cross compile.
2706{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2707echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2708{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2709echo "${ECHO_T}$cross_compiling" >&6; }
2710
2711{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2712echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2713if { (ac_try="$ac_link"
2714case "(($ac_try" in
2715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716  *) ac_try_echo=$ac_try;;
2717esac
2718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719  (eval "$ac_link") 2>&5
2720  ac_status=$?
2721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722  (exit $ac_status); }; then
2723  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2724# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2725# work properly (i.e., refer to `conftest.exe'), while it won't with
2726# `rm'.
2727for ac_file in conftest.exe conftest conftest.*; do
2728  test -f "$ac_file" || continue
2729  case $ac_file in
2730    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2731    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2732          break;;
2733    * ) break;;
2734  esac
2735done
2736else
2737  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2738See \`config.log' for more details." >&5
2739echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2740See \`config.log' for more details." >&2;}
2741   { (exit 1); exit 1; }; }
2742fi
2743
2744rm -f conftest$ac_cv_exeext
2745{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2746echo "${ECHO_T}$ac_cv_exeext" >&6; }
2747
2748rm -f conftest.$ac_ext
2749EXEEXT=$ac_cv_exeext
2750ac_exeext=$EXEEXT
2751{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2752echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2753if test "${ac_cv_objext+set}" = set; then
2754  echo $ECHO_N "(cached) $ECHO_C" >&6
2755else
2756  cat >conftest.$ac_ext <<_ACEOF
2757/* confdefs.h.  */
2758_ACEOF
2759cat confdefs.h >>conftest.$ac_ext
2760cat >>conftest.$ac_ext <<_ACEOF
2761/* end confdefs.h.  */
2762
2763int
2764main ()
2765{
2766
2767  ;
2768  return 0;
2769}
2770_ACEOF
2771rm -f conftest.o conftest.obj
2772if { (ac_try="$ac_compile"
2773case "(($ac_try" in
2774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775  *) ac_try_echo=$ac_try;;
2776esac
2777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778  (eval "$ac_compile") 2>&5
2779  ac_status=$?
2780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781  (exit $ac_status); }; then
2782  for ac_file in conftest.o conftest.obj conftest.*; do
2783  test -f "$ac_file" || continue;
2784  case $ac_file in
2785    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2786    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2787       break;;
2788  esac
2789done
2790else
2791  echo "$as_me: failed program was:" >&5
2792sed 's/^/| /' conftest.$ac_ext >&5
2793
2794{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2795See \`config.log' for more details." >&5
2796echo "$as_me: error: cannot compute suffix of object files: cannot compile
2797See \`config.log' for more details." >&2;}
2798   { (exit 1); exit 1; }; }
2799fi
2800
2801rm -f conftest.$ac_cv_objext conftest.$ac_ext
2802fi
2803{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2804echo "${ECHO_T}$ac_cv_objext" >&6; }
2805OBJEXT=$ac_cv_objext
2806ac_objext=$OBJEXT
2807{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2808echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2809if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2810  echo $ECHO_N "(cached) $ECHO_C" >&6
2811else
2812  cat >conftest.$ac_ext <<_ACEOF
2813/* confdefs.h.  */
2814_ACEOF
2815cat confdefs.h >>conftest.$ac_ext
2816cat >>conftest.$ac_ext <<_ACEOF
2817/* end confdefs.h.  */
2818
2819int
2820main ()
2821{
2822#ifndef __GNUC__
2823       choke me
2824#endif
2825
2826  ;
2827  return 0;
2828}
2829_ACEOF
2830rm -f conftest.$ac_objext
2831if { (ac_try="$ac_compile"
2832case "(($ac_try" in
2833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834  *) ac_try_echo=$ac_try;;
2835esac
2836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837  (eval "$ac_compile") 2>conftest.er1
2838  ac_status=$?
2839  grep -v '^ *+' conftest.er1 >conftest.err
2840  rm -f conftest.er1
2841  cat conftest.err >&5
2842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843  (exit $ac_status); } && {
2844         test -z "$ac_cxx_werror_flag" ||
2845         test ! -s conftest.err
2846       } && test -s conftest.$ac_objext; then
2847  ac_compiler_gnu=yes
2848else
2849  echo "$as_me: failed program was:" >&5
2850sed 's/^/| /' conftest.$ac_ext >&5
2851
2852        ac_compiler_gnu=no
2853fi
2854
2855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2856ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2857
2858fi
2859{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2860echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2861GXX=`test $ac_compiler_gnu = yes && echo yes`
2862ac_test_CXXFLAGS=${CXXFLAGS+set}
2863ac_save_CXXFLAGS=$CXXFLAGS
2864{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2865echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2866if test "${ac_cv_prog_cxx_g+set}" = set; then
2867  echo $ECHO_N "(cached) $ECHO_C" >&6
2868else
2869  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2870   ac_cxx_werror_flag=yes
2871   ac_cv_prog_cxx_g=no
2872   CXXFLAGS="-g"
2873   cat >conftest.$ac_ext <<_ACEOF
2874/* confdefs.h.  */
2875_ACEOF
2876cat confdefs.h >>conftest.$ac_ext
2877cat >>conftest.$ac_ext <<_ACEOF
2878/* end confdefs.h.  */
2879
2880int
2881main ()
2882{
2883
2884  ;
2885  return 0;
2886}
2887_ACEOF
2888rm -f conftest.$ac_objext
2889if { (ac_try="$ac_compile"
2890case "(($ac_try" in
2891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892  *) ac_try_echo=$ac_try;;
2893esac
2894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895  (eval "$ac_compile") 2>conftest.er1
2896  ac_status=$?
2897  grep -v '^ *+' conftest.er1 >conftest.err
2898  rm -f conftest.er1
2899  cat conftest.err >&5
2900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901  (exit $ac_status); } && {
2902         test -z "$ac_cxx_werror_flag" ||
2903         test ! -s conftest.err
2904       } && test -s conftest.$ac_objext; then
2905  ac_cv_prog_cxx_g=yes
2906else
2907  echo "$as_me: failed program was:" >&5
2908sed 's/^/| /' conftest.$ac_ext >&5
2909
2910        CXXFLAGS=""
2911      cat >conftest.$ac_ext <<_ACEOF
2912/* confdefs.h.  */
2913_ACEOF
2914cat confdefs.h >>conftest.$ac_ext
2915cat >>conftest.$ac_ext <<_ACEOF
2916/* end confdefs.h.  */
2917
2918int
2919main ()
2920{
2921
2922  ;
2923  return 0;
2924}
2925_ACEOF
2926rm -f conftest.$ac_objext
2927if { (ac_try="$ac_compile"
2928case "(($ac_try" in
2929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930  *) ac_try_echo=$ac_try;;
2931esac
2932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933  (eval "$ac_compile") 2>conftest.er1
2934  ac_status=$?
2935  grep -v '^ *+' conftest.er1 >conftest.err
2936  rm -f conftest.er1
2937  cat conftest.err >&5
2938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939  (exit $ac_status); } && {
2940         test -z "$ac_cxx_werror_flag" ||
2941         test ! -s conftest.err
2942       } && test -s conftest.$ac_objext; then
2943  :
2944else
2945  echo "$as_me: failed program was:" >&5
2946sed 's/^/| /' conftest.$ac_ext >&5
2947
2948        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2949         CXXFLAGS="-g"
2950         cat >conftest.$ac_ext <<_ACEOF
2951/* confdefs.h.  */
2952_ACEOF
2953cat confdefs.h >>conftest.$ac_ext
2954cat >>conftest.$ac_ext <<_ACEOF
2955/* end confdefs.h.  */
2956
2957int
2958main ()
2959{
2960
2961  ;
2962  return 0;
2963}
2964_ACEOF
2965rm -f conftest.$ac_objext
2966if { (ac_try="$ac_compile"
2967case "(($ac_try" in
2968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969  *) ac_try_echo=$ac_try;;
2970esac
2971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972  (eval "$ac_compile") 2>conftest.er1
2973  ac_status=$?
2974  grep -v '^ *+' conftest.er1 >conftest.err
2975  rm -f conftest.er1
2976  cat conftest.err >&5
2977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978  (exit $ac_status); } && {
2979         test -z "$ac_cxx_werror_flag" ||
2980         test ! -s conftest.err
2981       } && test -s conftest.$ac_objext; then
2982  ac_cv_prog_cxx_g=yes
2983else
2984  echo "$as_me: failed program was:" >&5
2985sed 's/^/| /' conftest.$ac_ext >&5
2986
2987
2988fi
2989
2990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2991fi
2992
2993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2994fi
2995
2996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2997   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2998fi
2999{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3000echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3001if test "$ac_test_CXXFLAGS" = set; then
3002  CXXFLAGS=$ac_save_CXXFLAGS
3003elif test $ac_cv_prog_cxx_g = yes; then
3004  if test "$GXX" = yes; then
3005    CXXFLAGS="-g -O2"
3006  else
3007    CXXFLAGS="-g"
3008  fi
3009else
3010  if test "$GXX" = yes; then
3011    CXXFLAGS="-O2"
3012  else
3013    CXXFLAGS=
3014  fi
3015fi
3016ac_ext=c
3017ac_cpp='$CPP $CPPFLAGS'
3018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3020ac_compiler_gnu=$ac_cv_c_compiler_gnu
3021DEPDIR="${am__leading_dot}deps"
3022
3023ac_config_commands="$ac_config_commands depfiles"
3024
3025
3026am_make=${MAKE-make}
3027cat > confinc << 'END'
3028am__doit:
3029        @echo done
3030.PHONY: am__doit
3031END
3032# If we don't find an include directive, just comment out the code.
3033{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3034echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3035am__include="#"
3036am__quote=
3037_am_result=none
3038# First try GNU make style include.
3039echo "include confinc" > confmf
3040# We grep out `Entering directory' and `Leaving directory'
3041# messages which can occur if `w' ends up in MAKEFLAGS.
3042# In particular we don't look at `^make:' because GNU make might
3043# be invoked under some other name (usually "gmake"), in which
3044# case it prints its new name instead of `make'.
3045if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3046   am__include=include
3047   am__quote=
3048   _am_result=GNU
3049fi
3050# Now try BSD make style include.
3051if test "$am__include" = "#"; then
3052   echo '.include "confinc"' > confmf
3053   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3054      am__include=.include
3055      am__quote="\""
3056      _am_result=BSD
3057   fi
3058fi
3059
3060
3061{ echo "$as_me:$LINENO: result: $_am_result" >&5
3062echo "${ECHO_T}$_am_result" >&6; }
3063rm -f confinc confmf
3064
3065# Check whether --enable-dependency-tracking was given.
3066if test "${enable_dependency_tracking+set}" = set; then
3067  enableval=$enable_dependency_tracking;
3068fi
3069
3070if test "x$enable_dependency_tracking" != xno; then
3071  am_depcomp="$ac_aux_dir/depcomp"
3072  AMDEPBACKSLASH='\'
3073fi
3074
3075
3076if test "x$enable_dependency_tracking" != xno; then
3077  AMDEP_TRUE=
3078  AMDEP_FALSE='#'
3079else
3080  AMDEP_TRUE='#'
3081  AMDEP_FALSE=
3082fi
3083
3084
3085
3086
3087depcc="$CXX"  am_compiler_list=
3088
3089{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3090echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3091if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3092  echo $ECHO_N "(cached) $ECHO_C" >&6
3093else
3094  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3095  # We make a subdir and do the tests there.  Otherwise we can end up
3096  # making bogus files that we don't know about and never remove.  For
3097  # instance it was reported that on HP-UX the gcc test will end up
3098  # making a dummy file named `D' -- because `-MD' means `put the output
3099  # in D'.
3100  mkdir conftest.dir
3101  # Copy depcomp to subdir because otherwise we won't find it if we're
3102  # using a relative directory.
3103  cp "$am_depcomp" conftest.dir
3104  cd conftest.dir
3105  # We will build objects and dependencies in a subdirectory because
3106  # it helps to detect inapplicable dependency modes.  For instance
3107  # both Tru64's cc and ICC support -MD to output dependencies as a
3108  # side effect of compilation, but ICC will put the dependencies in
3109  # the current directory while Tru64 will put them in the object
3110  # directory.
3111  mkdir sub
3112
3113  am_cv_CXX_dependencies_compiler_type=none
3114  if test "$am_compiler_list" = ""; then
3115     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3116  fi
3117  for depmode in $am_compiler_list; do
3118    # Setup a source with many dependencies, because some compilers
3119    # like to wrap large dependency lists on column 80 (with \), and
3120    # we should not choose a depcomp mode which is confused by this.
3121    #
3122    # We need to recreate these files for each test, as the compiler may
3123    # overwrite some of them when testing with obscure command lines.
3124    # This happens at least with the AIX C compiler.
3125    : > sub/conftest.c
3126    for i in 1 2 3 4 5 6; do
3127      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3128      : > sub/conftst$i.h
3129    done
3130    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3131
3132    case $depmode in
3133    nosideeffect)
3134      # after this tag, mechanisms are not by side-effect, so they'll
3135      # only be used when explicitly requested
3136      if test "x$enable_dependency_tracking" = xyes; then
3137        continue
3138      else
3139        break
3140      fi
3141      ;;
3142    none) break ;;
3143    esac
3144    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3145    # mode.  It turns out that the SunPro C++ compiler does not properly
3146    # handle `-M -o', and we need to detect this.
3147    if depmode=$depmode \
3148       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3149       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3150       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3151         >/dev/null 2>conftest.err &&
3152       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3153       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3154       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3155      # icc doesn't choke on unknown options, it will just issue warnings
3156      # (even with -Werror).  So we grep stderr for any message
3157      # that says an option was ignored.
3158      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3159        am_cv_CXX_dependencies_compiler_type=$depmode
3160        break
3161      fi
3162    fi
3163  done
3164
3165  cd ..
3166  rm -rf conftest.dir
3167else
3168  am_cv_CXX_dependencies_compiler_type=none
3169fi
3170
3171fi
3172{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3173echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3174CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3175
3176
3177
3178if
3179  test "x$enable_dependency_tracking" != xno \
3180  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3181  am__fastdepCXX_TRUE=
3182  am__fastdepCXX_FALSE='#'
3183else
3184  am__fastdepCXX_TRUE='#'
3185  am__fastdepCXX_FALSE=
3186fi
3187
3188
3189ac_ext=c
3190ac_cpp='$CPP $CPPFLAGS'
3191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193ac_compiler_gnu=$ac_cv_c_compiler_gnu
3194if test -n "$ac_tool_prefix"; then
3195  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3196set dummy ${ac_tool_prefix}gcc; ac_word=$2
3197{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3199if test "${ac_cv_prog_CC+set}" = set; then
3200  echo $ECHO_N "(cached) $ECHO_C" >&6
3201else
3202  if test -n "$CC"; then
3203  ac_cv_prog_CC="$CC" # Let the user override the test.
3204else
3205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206for as_dir in $PATH
3207do
3208  IFS=$as_save_IFS
3209  test -z "$as_dir" && as_dir=.
3210  for ac_exec_ext in '' $ac_executable_extensions; do
3211  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3212    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3213    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3214    break 2
3215  fi
3216done
3217done
3218IFS=$as_save_IFS
3219
3220fi
3221fi
3222CC=$ac_cv_prog_CC
3223if test -n "$CC"; then
3224  { echo "$as_me:$LINENO: result: $CC" >&5
3225echo "${ECHO_T}$CC" >&6; }
3226else
3227  { echo "$as_me:$LINENO: result: no" >&5
3228echo "${ECHO_T}no" >&6; }
3229fi
3230
3231
3232fi
3233if test -z "$ac_cv_prog_CC"; then
3234  ac_ct_CC=$CC
3235  # Extract the first word of "gcc", so it can be a program name with args.
3236set dummy gcc; ac_word=$2
3237{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3239if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3240  echo $ECHO_N "(cached) $ECHO_C" >&6
3241else
3242  if test -n "$ac_ct_CC"; then
3243  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3244else
3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246for as_dir in $PATH
3247do
3248  IFS=$as_save_IFS
3249  test -z "$as_dir" && as_dir=.
3250  for ac_exec_ext in '' $ac_executable_extensions; do
3251  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3252    ac_cv_prog_ac_ct_CC="gcc"
3253    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254    break 2
3255  fi
3256done
3257done
3258IFS=$as_save_IFS
3259
3260fi
3261fi
3262ac_ct_CC=$ac_cv_prog_ac_ct_CC
3263if test -n "$ac_ct_CC"; then
3264  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3265echo "${ECHO_T}$ac_ct_CC" >&6; }
3266else
3267  { echo "$as_me:$LINENO: result: no" >&5
3268echo "${ECHO_T}no" >&6; }
3269fi
3270
3271  if test "x$ac_ct_CC" = x; then
3272    CC=""
3273  else
3274    case $cross_compiling:$ac_tool_warned in
3275yes:)
3276{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3277whose name does not start with the host triplet.  If you think this
3278configuration is useful to you, please write to autoconf@gnu.org." >&5
3279echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3280whose name does not start with the host triplet.  If you think this
3281configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3282ac_tool_warned=yes ;;
3283esac
3284    CC=$ac_ct_CC
3285  fi
3286else
3287  CC="$ac_cv_prog_CC"
3288fi
3289
3290if test -z "$CC"; then
3291          if test -n "$ac_tool_prefix"; then
3292    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3293set dummy ${ac_tool_prefix}cc; ac_word=$2
3294{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3296if test "${ac_cv_prog_CC+set}" = set; then
3297  echo $ECHO_N "(cached) $ECHO_C" >&6
3298else
3299  if test -n "$CC"; then
3300  ac_cv_prog_CC="$CC" # Let the user override the test.
3301else
3302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303for as_dir in $PATH
3304do
3305  IFS=$as_save_IFS
3306  test -z "$as_dir" && as_dir=.
3307  for ac_exec_ext in '' $ac_executable_extensions; do
3308  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3309    ac_cv_prog_CC="${ac_tool_prefix}cc"
3310    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311    break 2
3312  fi
3313done
3314done
3315IFS=$as_save_IFS
3316
3317fi
3318fi
3319CC=$ac_cv_prog_CC
3320if test -n "$CC"; then
3321  { echo "$as_me:$LINENO: result: $CC" >&5
3322echo "${ECHO_T}$CC" >&6; }
3323else
3324  { echo "$as_me:$LINENO: result: no" >&5
3325echo "${ECHO_T}no" >&6; }
3326fi
3327
3328
3329  fi
3330fi
3331if test -z "$CC"; then
3332  # Extract the first word of "cc", so it can be a program name with args.
3333set dummy cc; ac_word=$2
3334{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3336if test "${ac_cv_prog_CC+set}" = set; then
3337  echo $ECHO_N "(cached) $ECHO_C" >&6
3338else
3339  if test -n "$CC"; then
3340  ac_cv_prog_CC="$CC" # Let the user override the test.
3341else
3342  ac_prog_rejected=no
3343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344for as_dir in $PATH
3345do
3346  IFS=$as_save_IFS
3347  test -z "$as_dir" && as_dir=.
3348  for ac_exec_ext in '' $ac_executable_extensions; do
3349  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3350    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3351       ac_prog_rejected=yes
3352       continue
3353     fi
3354    ac_cv_prog_CC="cc"
3355    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356    break 2
3357  fi
3358done
3359done
3360IFS=$as_save_IFS
3361
3362if test $ac_prog_rejected = yes; then
3363  # We found a bogon in the path, so make sure we never use it.
3364  set dummy $ac_cv_prog_CC
3365  shift
3366  if test $# != 0; then
3367    # We chose a different compiler from the bogus one.
3368    # However, it has the same basename, so the bogon will be chosen
3369    # first if we set CC to just the basename; use the full file name.
3370    shift
3371    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3372  fi
3373fi
3374fi
3375fi
3376CC=$ac_cv_prog_CC
3377if test -n "$CC"; then
3378  { echo "$as_me:$LINENO: result: $CC" >&5
3379echo "${ECHO_T}$CC" >&6; }
3380else
3381  { echo "$as_me:$LINENO: result: no" >&5
3382echo "${ECHO_T}no" >&6; }
3383fi
3384
3385
3386fi
3387if test -z "$CC"; then
3388  if test -n "$ac_tool_prefix"; then
3389  for ac_prog in cl.exe
3390  do
3391    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3392set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3395if test "${ac_cv_prog_CC+set}" = set; then
3396  echo $ECHO_N "(cached) $ECHO_C" >&6
3397else
3398  if test -n "$CC"; then
3399  ac_cv_prog_CC="$CC" # Let the user override the test.
3400else
3401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402for as_dir in $PATH
3403do
3404  IFS=$as_save_IFS
3405  test -z "$as_dir" && as_dir=.
3406  for ac_exec_ext in '' $ac_executable_extensions; do
3407  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3408    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3409    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410    break 2
3411  fi
3412done
3413done
3414IFS=$as_save_IFS
3415
3416fi
3417fi
3418CC=$ac_cv_prog_CC
3419if test -n "$CC"; then
3420  { echo "$as_me:$LINENO: result: $CC" >&5
3421echo "${ECHO_T}$CC" >&6; }
3422else
3423  { echo "$as_me:$LINENO: result: no" >&5
3424echo "${ECHO_T}no" >&6; }
3425fi
3426
3427
3428    test -n "$CC" && break
3429  done
3430fi
3431if test -z "$CC"; then
3432  ac_ct_CC=$CC
3433  for ac_prog in cl.exe
3434do
3435  # Extract the first word of "$ac_prog", so it can be a program name with args.
3436set dummy $ac_prog; ac_word=$2
3437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3439if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3440  echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
3442  if test -n "$ac_ct_CC"; then
3443  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3444else
3445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446for as_dir in $PATH
3447do
3448  IFS=$as_save_IFS
3449  test -z "$as_dir" && as_dir=.
3450  for ac_exec_ext in '' $ac_executable_extensions; do
3451  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3452    ac_cv_prog_ac_ct_CC="$ac_prog"
3453    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3454    break 2
3455  fi
3456done
3457done
3458IFS=$as_save_IFS
3459
3460fi
3461fi
3462ac_ct_CC=$ac_cv_prog_ac_ct_CC
3463if test -n "$ac_ct_CC"; then
3464  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3465echo "${ECHO_T}$ac_ct_CC" >&6; }
3466else
3467  { echo "$as_me:$LINENO: result: no" >&5
3468echo "${ECHO_T}no" >&6; }
3469fi
3470
3471
3472  test -n "$ac_ct_CC" && break
3473done
3474
3475  if test "x$ac_ct_CC" = x; then
3476    CC=""
3477  else
3478    case $cross_compiling:$ac_tool_warned in
3479yes:)
3480{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3481whose name does not start with the host triplet.  If you think this
3482configuration is useful to you, please write to autoconf@gnu.org." >&5
3483echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3484whose name does not start with the host triplet.  If you think this
3485configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3486ac_tool_warned=yes ;;
3487esac
3488    CC=$ac_ct_CC
3489  fi
3490fi
3491
3492fi
3493
3494
3495test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3496See \`config.log' for more details." >&5
3497echo "$as_me: error: no acceptable C compiler found in \$PATH
3498See \`config.log' for more details." >&2;}
3499   { (exit 1); exit 1; }; }
3500
3501# Provide some information about the compiler.
3502echo "$as_me:$LINENO: checking for C compiler version" >&5
3503ac_compiler=`set X $ac_compile; echo $2`
3504{ (ac_try="$ac_compiler --version >&5"
3505case "(($ac_try" in
3506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507  *) ac_try_echo=$ac_try;;
3508esac
3509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510  (eval "$ac_compiler --version >&5") 2>&5
3511  ac_status=$?
3512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513  (exit $ac_status); }
3514{ (ac_try="$ac_compiler -v >&5"
3515case "(($ac_try" in
3516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517  *) ac_try_echo=$ac_try;;
3518esac
3519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520  (eval "$ac_compiler -v >&5") 2>&5
3521  ac_status=$?
3522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523  (exit $ac_status); }
3524{ (ac_try="$ac_compiler -V >&5"
3525case "(($ac_try" in
3526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527  *) ac_try_echo=$ac_try;;
3528esac
3529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3530  (eval "$ac_compiler -V >&5") 2>&5
3531  ac_status=$?
3532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533  (exit $ac_status); }
3534
3535{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3536echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3537if test "${ac_cv_c_compiler_gnu+set}" = set; then
3538  echo $ECHO_N "(cached) $ECHO_C" >&6
3539else
3540  cat >conftest.$ac_ext <<_ACEOF
3541/* confdefs.h.  */
3542_ACEOF
3543cat confdefs.h >>conftest.$ac_ext
3544cat >>conftest.$ac_ext <<_ACEOF
3545/* end confdefs.h.  */
3546
3547int
3548main ()
3549{
3550#ifndef __GNUC__
3551       choke me
3552#endif
3553
3554  ;
3555  return 0;
3556}
3557_ACEOF
3558rm -f conftest.$ac_objext
3559if { (ac_try="$ac_compile"
3560case "(($ac_try" in
3561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562  *) ac_try_echo=$ac_try;;
3563esac
3564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565  (eval "$ac_compile") 2>conftest.er1
3566  ac_status=$?
3567  grep -v '^ *+' conftest.er1 >conftest.err
3568  rm -f conftest.er1
3569  cat conftest.err >&5
3570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571  (exit $ac_status); } && {
3572         test -z "$ac_c_werror_flag" ||
3573         test ! -s conftest.err
3574       } && test -s conftest.$ac_objext; then
3575  ac_compiler_gnu=yes
3576else
3577  echo "$as_me: failed program was:" >&5
3578sed 's/^/| /' conftest.$ac_ext >&5
3579
3580        ac_compiler_gnu=no
3581fi
3582
3583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584ac_cv_c_compiler_gnu=$ac_compiler_gnu
3585
3586fi
3587{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3588echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3589GCC=`test $ac_compiler_gnu = yes && echo yes`
3590ac_test_CFLAGS=${CFLAGS+set}
3591ac_save_CFLAGS=$CFLAGS
3592{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3593echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3594if test "${ac_cv_prog_cc_g+set}" = set; then
3595  echo $ECHO_N "(cached) $ECHO_C" >&6
3596else
3597  ac_save_c_werror_flag=$ac_c_werror_flag
3598   ac_c_werror_flag=yes
3599   ac_cv_prog_cc_g=no
3600   CFLAGS="-g"
3601   cat >conftest.$ac_ext <<_ACEOF
3602/* confdefs.h.  */
3603_ACEOF
3604cat confdefs.h >>conftest.$ac_ext
3605cat >>conftest.$ac_ext <<_ACEOF
3606/* end confdefs.h.  */
3607
3608int
3609main ()
3610{
3611
3612  ;
3613  return 0;
3614}
3615_ACEOF
3616rm -f conftest.$ac_objext
3617if { (ac_try="$ac_compile"
3618case "(($ac_try" in
3619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620  *) ac_try_echo=$ac_try;;
3621esac
3622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3623  (eval "$ac_compile") 2>conftest.er1
3624  ac_status=$?
3625  grep -v '^ *+' conftest.er1 >conftest.err
3626  rm -f conftest.er1
3627  cat conftest.err >&5
3628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629  (exit $ac_status); } && {
3630         test -z "$ac_c_werror_flag" ||
3631         test ! -s conftest.err
3632       } && test -s conftest.$ac_objext; then
3633  ac_cv_prog_cc_g=yes
3634else
3635  echo "$as_me: failed program was:" >&5
3636sed 's/^/| /' conftest.$ac_ext >&5
3637
3638        CFLAGS=""
3639      cat >conftest.$ac_ext <<_ACEOF
3640/* confdefs.h.  */
3641_ACEOF
3642cat confdefs.h >>conftest.$ac_ext
3643cat >>conftest.$ac_ext <<_ACEOF
3644/* end confdefs.h.  */
3645
3646int
3647main ()
3648{
3649
3650  ;
3651  return 0;
3652}
3653_ACEOF
3654rm -f conftest.$ac_objext
3655if { (ac_try="$ac_compile"
3656case "(($ac_try" in
3657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658  *) ac_try_echo=$ac_try;;
3659esac
3660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3661  (eval "$ac_compile") 2>conftest.er1
3662  ac_status=$?
3663  grep -v '^ *+' conftest.er1 >conftest.err
3664  rm -f conftest.er1
3665  cat conftest.err >&5
3666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667  (exit $ac_status); } && {
3668         test -z "$ac_c_werror_flag" ||
3669         test ! -s conftest.err
3670       } && test -s conftest.$ac_objext; then
3671  :
3672else
3673  echo "$as_me: failed program was:" >&5
3674sed 's/^/| /' conftest.$ac_ext >&5
3675
3676        ac_c_werror_flag=$ac_save_c_werror_flag
3677         CFLAGS="-g"
3678         cat >conftest.$ac_ext <<_ACEOF
3679/* confdefs.h.  */
3680_ACEOF
3681cat confdefs.h >>conftest.$ac_ext
3682cat >>conftest.$ac_ext <<_ACEOF
3683/* end confdefs.h.  */
3684
3685int
3686main ()
3687{
3688
3689  ;
3690  return 0;
3691}
3692_ACEOF
3693rm -f conftest.$ac_objext
3694if { (ac_try="$ac_compile"
3695case "(($ac_try" in
3696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697  *) ac_try_echo=$ac_try;;
3698esac
3699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700  (eval "$ac_compile") 2>conftest.er1
3701  ac_status=$?
3702  grep -v '^ *+' conftest.er1 >conftest.err
3703  rm -f conftest.er1
3704  cat conftest.err >&5
3705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706  (exit $ac_status); } && {
3707         test -z "$ac_c_werror_flag" ||
3708         test ! -s conftest.err
3709       } && test -s conftest.$ac_objext; then
3710  ac_cv_prog_cc_g=yes
3711else
3712  echo "$as_me: failed program was:" >&5
3713sed 's/^/| /' conftest.$ac_ext >&5
3714
3715
3716fi
3717
3718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719fi
3720
3721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722fi
3723
3724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725   ac_c_werror_flag=$ac_save_c_werror_flag
3726fi
3727{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3728echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3729if test "$ac_test_CFLAGS" = set; then
3730  CFLAGS=$ac_save_CFLAGS
3731elif test $ac_cv_prog_cc_g = yes; then
3732  if test "$GCC" = yes; then
3733    CFLAGS="-g -O2"
3734  else
3735    CFLAGS="-g"
3736  fi
3737else
3738  if test "$GCC" = yes; then
3739    CFLAGS="-O2"
3740  else
3741    CFLAGS=
3742  fi
3743fi
3744{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3745echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3746if test "${ac_cv_prog_cc_c89+set}" = set; then
3747  echo $ECHO_N "(cached) $ECHO_C" >&6
3748else
3749  ac_cv_prog_cc_c89=no
3750ac_save_CC=$CC
3751cat >conftest.$ac_ext <<_ACEOF
3752/* confdefs.h.  */
3753_ACEOF
3754cat confdefs.h >>conftest.$ac_ext
3755cat >>conftest.$ac_ext <<_ACEOF
3756/* end confdefs.h.  */
3757#include <stdarg.h>
3758#include <stdio.h>
3759#include <sys/types.h>
3760#include <sys/stat.h>
3761/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3762struct buf { int x; };
3763FILE * (*rcsopen) (struct buf *, struct stat *, int);
3764static char *e (p, i)
3765     char **p;
3766     int i;
3767{
3768  return p[i];
3769}
3770static char *f (char * (*g) (char **, int), char **p, ...)
3771{
3772  char *s;
3773  va_list v;
3774  va_start (v,p);
3775  s = g (p, va_arg (v,int));
3776  va_end (v);
3777  return s;
3778}
3779
3780/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3781   function prototypes and stuff, but not '\xHH' hex character constants.
3782   These don't provoke an error unfortunately, instead are silently treated
3783   as 'x'.  The following induces an error, until -std is added to get
3784   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3785   array size at least.  It's necessary to write '\x00'==0 to get something
3786   that's true only with -std.  */
3787int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3788
3789/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3790   inside strings and character constants.  */
3791#define FOO(x) 'x'
3792int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3793
3794int test (int i, double x);
3795struct s1 {int (*f) (int a);};
3796struct s2 {int (*f) (double a);};
3797int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3798int argc;
3799char **argv;
3800int
3801main ()
3802{
3803return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3804  ;
3805  return 0;
3806}
3807_ACEOF
3808for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3809        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3810do
3811  CC="$ac_save_CC $ac_arg"
3812  rm -f conftest.$ac_objext
3813if { (ac_try="$ac_compile"
3814case "(($ac_try" in
3815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816  *) ac_try_echo=$ac_try;;
3817esac
3818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3819  (eval "$ac_compile") 2>conftest.er1
3820  ac_status=$?
3821  grep -v '^ *+' conftest.er1 >conftest.err
3822  rm -f conftest.er1
3823  cat conftest.err >&5
3824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825  (exit $ac_status); } && {
3826         test -z "$ac_c_werror_flag" ||
3827         test ! -s conftest.err
3828       } && test -s conftest.$ac_objext; then
3829  ac_cv_prog_cc_c89=$ac_arg
3830else
3831  echo "$as_me: failed program was:" >&5
3832sed 's/^/| /' conftest.$ac_ext >&5
3833
3834
3835fi
3836
3837rm -f core conftest.err conftest.$ac_objext
3838  test "x$ac_cv_prog_cc_c89" != "xno" && break
3839done
3840rm -f conftest.$ac_ext
3841CC=$ac_save_CC
3842
3843fi
3844# AC_CACHE_VAL
3845case "x$ac_cv_prog_cc_c89" in
3846  x)
3847    { echo "$as_me:$LINENO: result: none needed" >&5
3848echo "${ECHO_T}none needed" >&6; } ;;
3849  xno)
3850    { echo "$as_me:$LINENO: result: unsupported" >&5
3851echo "${ECHO_T}unsupported" >&6; } ;;
3852  *)
3853    CC="$CC $ac_cv_prog_cc_c89"
3854    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3855echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3856esac
3857
3858
3859ac_ext=c
3860ac_cpp='$CPP $CPPFLAGS'
3861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3863ac_compiler_gnu=$ac_cv_c_compiler_gnu
3864
3865depcc="$CC"   am_compiler_list=
3866
3867{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3868echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3869if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3870  echo $ECHO_N "(cached) $ECHO_C" >&6
3871else
3872  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3873  # We make a subdir and do the tests there.  Otherwise we can end up
3874  # making bogus files that we don't know about and never remove.  For
3875  # instance it was reported that on HP-UX the gcc test will end up
3876  # making a dummy file named `D' -- because `-MD' means `put the output
3877  # in D'.
3878  mkdir conftest.dir
3879  # Copy depcomp to subdir because otherwise we won't find it if we're
3880  # using a relative directory.
3881  cp "$am_depcomp" conftest.dir
3882  cd conftest.dir
3883  # We will build objects and dependencies in a subdirectory because
3884  # it helps to detect inapplicable dependency modes.  For instance
3885  # both Tru64's cc and ICC support -MD to output dependencies as a
3886  # side effect of compilation, but ICC will put the dependencies in
3887  # the current directory while Tru64 will put them in the object
3888  # directory.
3889  mkdir sub
3890
3891  am_cv_CC_dependencies_compiler_type=none
3892  if test "$am_compiler_list" = ""; then
3893     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3894  fi
3895  for depmode in $am_compiler_list; do
3896    # Setup a source with many dependencies, because some compilers
3897    # like to wrap large dependency lists on column 80 (with \), and
3898    # we should not choose a depcomp mode which is confused by this.
3899    #
3900    # We need to recreate these files for each test, as the compiler may
3901    # overwrite some of them when testing with obscure command lines.
3902    # This happens at least with the AIX C compiler.
3903    : > sub/conftest.c
3904    for i in 1 2 3 4 5 6; do
3905      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3906      : > sub/conftst$i.h
3907    done
3908    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3909
3910    case $depmode in
3911    nosideeffect)
3912      # after this tag, mechanisms are not by side-effect, so they'll
3913      # only be used when explicitly requested
3914      if test "x$enable_dependency_tracking" = xyes; then
3915        continue
3916      else
3917        break
3918      fi
3919      ;;
3920    none) break ;;
3921    esac
3922    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3923    # mode.  It turns out that the SunPro C++ compiler does not properly
3924    # handle `-M -o', and we need to detect this.
3925    if depmode=$depmode \
3926       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3927       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3928       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3929         >/dev/null 2>conftest.err &&
3930       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3931       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3932       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3933      # icc doesn't choke on unknown options, it will just issue warnings
3934      # (even with -Werror).  So we grep stderr for any message
3935      # that says an option was ignored.
3936      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3937        am_cv_CC_dependencies_compiler_type=$depmode
3938        break
3939      fi
3940    fi
3941  done
3942
3943  cd ..
3944  rm -rf conftest.dir
3945else
3946  am_cv_CC_dependencies_compiler_type=none
3947fi
3948
3949fi
3950{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3951echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3952CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3953
3954
3955
3956if
3957  test "x$enable_dependency_tracking" != xno \
3958  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3959  am__fastdepCC_TRUE=
3960  am__fastdepCC_FALSE='#'
3961else
3962  am__fastdepCC_TRUE='#'
3963  am__fastdepCC_FALSE=
3964fi
3965
3966
3967ac_ext=c
3968ac_cpp='$CPP $CPPFLAGS'
3969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3971ac_compiler_gnu=$ac_cv_c_compiler_gnu
3972{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3973echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3974# On Suns, sometimes $CPP names a directory.
3975if test -n "$CPP" && test -d "$CPP"; then
3976  CPP=
3977fi
3978if test -z "$CPP"; then
3979  if test "${ac_cv_prog_CPP+set}" = set; then
3980  echo $ECHO_N "(cached) $ECHO_C" >&6
3981else
3982      # Double quotes because CPP needs to be expanded
3983    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3984    do
3985      ac_preproc_ok=false
3986for ac_c_preproc_warn_flag in '' yes
3987do
3988  # Use a header file that comes with gcc, so configuring glibc
3989  # with a fresh cross-compiler works.
3990  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3991  # <limits.h> exists even on freestanding compilers.
3992  # On the NeXT, cc -E runs the code through the compiler's parser,
3993  # not just through cpp. "Syntax error" is here to catch this case.
3994  cat >conftest.$ac_ext <<_ACEOF
3995/* confdefs.h.  */
3996_ACEOF
3997cat confdefs.h >>conftest.$ac_ext
3998cat >>conftest.$ac_ext <<_ACEOF
3999/* end confdefs.h.  */
4000#ifdef __STDC__
4001# include <limits.h>
4002#else
4003# include <assert.h>
4004#endif
4005                     Syntax error
4006_ACEOF
4007if { (ac_try="$ac_cpp conftest.$ac_ext"
4008case "(($ac_try" in
4009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010  *) ac_try_echo=$ac_try;;
4011esac
4012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4014  ac_status=$?
4015  grep -v '^ *+' conftest.er1 >conftest.err
4016  rm -f conftest.er1
4017  cat conftest.err >&5
4018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019  (exit $ac_status); } >/dev/null && {
4020         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4021         test ! -s conftest.err
4022       }; then
4023  :
4024else
4025  echo "$as_me: failed program was:" >&5
4026sed 's/^/| /' conftest.$ac_ext >&5
4027
4028  # Broken: fails on valid input.
4029continue
4030fi
4031
4032rm -f conftest.err conftest.$ac_ext
4033
4034  # OK, works on sane cases.  Now check whether nonexistent headers
4035  # can be detected and how.
4036  cat >conftest.$ac_ext <<_ACEOF
4037/* confdefs.h.  */
4038_ACEOF
4039cat confdefs.h >>conftest.$ac_ext
4040cat >>conftest.$ac_ext <<_ACEOF
4041/* end confdefs.h.  */
4042#include <ac_nonexistent.h>
4043_ACEOF
4044if { (ac_try="$ac_cpp conftest.$ac_ext"
4045case "(($ac_try" in
4046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047  *) ac_try_echo=$ac_try;;
4048esac
4049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4050  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4051  ac_status=$?
4052  grep -v '^ *+' conftest.er1 >conftest.err
4053  rm -f conftest.er1
4054  cat conftest.err >&5
4055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056  (exit $ac_status); } >/dev/null && {
4057         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4058         test ! -s conftest.err
4059       }; then
4060  # Broken: success on invalid input.
4061continue
4062else
4063  echo "$as_me: failed program was:" >&5
4064sed 's/^/| /' conftest.$ac_ext >&5
4065
4066  # Passes both tests.
4067ac_preproc_ok=:
4068break
4069fi
4070
4071rm -f conftest.err conftest.$ac_ext
4072
4073done
4074# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4075rm -f conftest.err conftest.$ac_ext
4076if $ac_preproc_ok; then
4077  break
4078fi
4079
4080    done
4081    ac_cv_prog_CPP=$CPP
4082
4083fi
4084  CPP=$ac_cv_prog_CPP
4085else
4086  ac_cv_prog_CPP=$CPP
4087fi
4088{ echo "$as_me:$LINENO: result: $CPP" >&5
4089echo "${ECHO_T}$CPP" >&6; }
4090ac_preproc_ok=false
4091for ac_c_preproc_warn_flag in '' yes
4092do
4093  # Use a header file that comes with gcc, so configuring glibc
4094  # with a fresh cross-compiler works.
4095  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4096  # <limits.h> exists even on freestanding compilers.
4097  # On the NeXT, cc -E runs the code through the compiler's parser,
4098  # not just through cpp. "Syntax error" is here to catch this case.
4099  cat >conftest.$ac_ext <<_ACEOF
4100/* confdefs.h.  */
4101_ACEOF
4102cat confdefs.h >>conftest.$ac_ext
4103cat >>conftest.$ac_ext <<_ACEOF
4104/* end confdefs.h.  */
4105#ifdef __STDC__
4106# include <limits.h>
4107#else
4108# include <assert.h>
4109#endif
4110                     Syntax error
4111_ACEOF
4112if { (ac_try="$ac_cpp conftest.$ac_ext"
4113case "(($ac_try" in
4114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115  *) ac_try_echo=$ac_try;;
4116esac
4117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4119  ac_status=$?
4120  grep -v '^ *+' conftest.er1 >conftest.err
4121  rm -f conftest.er1
4122  cat conftest.err >&5
4123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124  (exit $ac_status); } >/dev/null && {
4125         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4126         test ! -s conftest.err
4127       }; then
4128  :
4129else
4130  echo "$as_me: failed program was:" >&5
4131sed 's/^/| /' conftest.$ac_ext >&5
4132
4133  # Broken: fails on valid input.
4134continue
4135fi
4136
4137rm -f conftest.err conftest.$ac_ext
4138
4139  # OK, works on sane cases.  Now check whether nonexistent headers
4140  # can be detected and how.
4141  cat >conftest.$ac_ext <<_ACEOF
4142/* confdefs.h.  */
4143_ACEOF
4144cat confdefs.h >>conftest.$ac_ext
4145cat >>conftest.$ac_ext <<_ACEOF
4146/* end confdefs.h.  */
4147#include <ac_nonexistent.h>
4148_ACEOF
4149if { (ac_try="$ac_cpp conftest.$ac_ext"
4150case "(($ac_try" in
4151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152  *) ac_try_echo=$ac_try;;
4153esac
4154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4156  ac_status=$?
4157  grep -v '^ *+' conftest.er1 >conftest.err
4158  rm -f conftest.er1
4159  cat conftest.err >&5
4160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161  (exit $ac_status); } >/dev/null && {
4162         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4163         test ! -s conftest.err
4164       }; then
4165  # Broken: success on invalid input.
4166continue
4167else
4168  echo "$as_me: failed program was:" >&5
4169sed 's/^/| /' conftest.$ac_ext >&5
4170
4171  # Passes both tests.
4172ac_preproc_ok=:
4173break
4174fi
4175
4176rm -f conftest.err conftest.$ac_ext
4177
4178done
4179# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4180rm -f conftest.err conftest.$ac_ext
4181if $ac_preproc_ok; then
4182  :
4183else
4184  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4185See \`config.log' for more details." >&5
4186echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4187See \`config.log' for more details." >&2;}
4188   { (exit 1); exit 1; }; }
4189fi
4190
4191ac_ext=c
4192ac_cpp='$CPP $CPPFLAGS'
4193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196
4197# Find a good install program.  We prefer a C program (faster),
4198# so one script is as good as another.  But avoid the broken or
4199# incompatible versions:
4200# SysV /etc/install, /usr/sbin/install
4201# SunOS /usr/etc/install
4202# IRIX /sbin/install
4203# AIX /bin/install
4204# AmigaOS /C/install, which installs bootblocks on floppy discs
4205# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4206# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4207# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4208# OS/2's system install, which has a completely different semantic
4209# ./install, which can be erroneously created by make from ./install.sh.
4210{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4211echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4212if test -z "$INSTALL"; then
4213if test "${ac_cv_path_install+set}" = set; then
4214  echo $ECHO_N "(cached) $ECHO_C" >&6
4215else
4216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217for as_dir in $PATH
4218do
4219  IFS=$as_save_IFS
4220  test -z "$as_dir" && as_dir=.
4221  # Account for people who put trailing slashes in PATH elements.
4222case $as_dir/ in
4223  ./ | .// | /cC/* | \
4224  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4225  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4226  /usr/ucb/* ) ;;
4227  *)
4228    # OSF1 and SCO ODT 3.0 have their own names for install.
4229    # Don't use installbsd from OSF since it installs stuff as root
4230    # by default.
4231    for ac_prog in ginstall scoinst install; do
4232      for ac_exec_ext in '' $ac_executable_extensions; do
4233        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4234          if test $ac_prog = install &&
4235            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4236            # AIX install.  It has an incompatible calling convention.
4237            :
4238          elif test $ac_prog = install &&
4239            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4240            # program-specific install script used by HP pwplus--don't use.
4241            :
4242          else
4243            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4244            break 3
4245          fi
4246        fi
4247      done
4248    done
4249    ;;
4250esac
4251done
4252IFS=$as_save_IFS
4253
4254
4255fi
4256  if test "${ac_cv_path_install+set}" = set; then
4257    INSTALL=$ac_cv_path_install
4258  else
4259    # As a last resort, use the slow shell script.  Don't cache a
4260    # value for INSTALL within a source directory, because that will
4261    # break other packages using the cache if that directory is
4262    # removed, or if the value is a relative name.
4263    INSTALL=$ac_install_sh
4264  fi
4265fi
4266{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4267echo "${ECHO_T}$INSTALL" >&6; }
4268
4269# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4270# It thinks the first close brace ends the variable substitution.
4271test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4272
4273test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4274
4275test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4276
4277{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4278echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4279LN_S=$as_ln_s
4280if test "$LN_S" = "ln -s"; then
4281  { echo "$as_me:$LINENO: result: yes" >&5
4282echo "${ECHO_T}yes" >&6; }
4283else
4284  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4285echo "${ECHO_T}no, using $LN_S" >&6; }
4286fi
4287
4288{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4289echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4290set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4291if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4292  echo $ECHO_N "(cached) $ECHO_C" >&6
4293else
4294  cat >conftest.make <<\_ACEOF
4295SHELL = /bin/sh
4296all:
4297        @echo '@@@%%%=$(MAKE)=@@@%%%'
4298_ACEOF
4299# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4300case `${MAKE-make} -f conftest.make 2>/dev/null` in
4301  *@@@%%%=?*=@@@%%%*)
4302    eval ac_cv_prog_make_${ac_make}_set=yes;;
4303  *)
4304    eval ac_cv_prog_make_${ac_make}_set=no;;
4305esac
4306rm -f conftest.make
4307fi
4308if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4309  { echo "$as_me:$LINENO: result: yes" >&5
4310echo "${ECHO_T}yes" >&6; }
4311  SET_MAKE=
4312else
4313  { echo "$as_me:$LINENO: result: no" >&5
4314echo "${ECHO_T}no" >&6; }
4315  SET_MAKE="MAKE=${MAKE-make}"
4316fi
4317
4318if test -n "$ac_tool_prefix"; then
4319  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4320set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4321{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4323if test "${ac_cv_prog_RANLIB+set}" = set; then
4324  echo $ECHO_N "(cached) $ECHO_C" >&6
4325else
4326  if test -n "$RANLIB"; then
4327  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4328else
4329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330for as_dir in $PATH
4331do
4332  IFS=$as_save_IFS
4333  test -z "$as_dir" && as_dir=.
4334  for ac_exec_ext in '' $ac_executable_extensions; do
4335  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4336    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4337    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4338    break 2
4339  fi
4340done
4341done
4342IFS=$as_save_IFS
4343
4344fi
4345fi
4346RANLIB=$ac_cv_prog_RANLIB
4347if test -n "$RANLIB"; then
4348  { echo "$as_me:$LINENO: result: $RANLIB" >&5
4349echo "${ECHO_T}$RANLIB" >&6; }
4350else
4351  { echo "$as_me:$LINENO: result: no" >&5
4352echo "${ECHO_T}no" >&6; }
4353fi
4354
4355
4356fi
4357if test -z "$ac_cv_prog_RANLIB"; then
4358  ac_ct_RANLIB=$RANLIB
4359  # Extract the first word of "ranlib", so it can be a program name with args.
4360set dummy ranlib; ac_word=$2
4361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4363if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4364  echo $ECHO_N "(cached) $ECHO_C" >&6
4365else
4366  if test -n "$ac_ct_RANLIB"; then
4367  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4368else
4369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH
4371do
4372  IFS=$as_save_IFS
4373  test -z "$as_dir" && as_dir=.
4374  for ac_exec_ext in '' $ac_executable_extensions; do
4375  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376    ac_cv_prog_ac_ct_RANLIB="ranlib"
4377    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378    break 2
4379  fi
4380done
4381done
4382IFS=$as_save_IFS
4383
4384fi
4385fi
4386ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4387if test -n "$ac_ct_RANLIB"; then
4388  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4389echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4390else
4391  { echo "$as_me:$LINENO: result: no" >&5
4392echo "${ECHO_T}no" >&6; }
4393fi
4394
4395  if test "x$ac_ct_RANLIB" = x; then
4396    RANLIB=":"
4397  else
4398    case $cross_compiling:$ac_tool_warned in
4399yes:)
4400{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4401whose name does not start with the host triplet.  If you think this
4402configuration is useful to you, please write to autoconf@gnu.org." >&5
4403echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4404whose name does not start with the host triplet.  If you think this
4405configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4406ac_tool_warned=yes ;;
4407esac
4408    RANLIB=$ac_ct_RANLIB
4409  fi
4410else
4411  RANLIB="$ac_cv_prog_RANLIB"
4412fi
4413
4414
4415
4416# Check whether --enable-shared was given.
4417if test "${enable_shared+set}" = set; then
4418  enableval=$enable_shared; p=${PACKAGE-default}
4419    case $enableval in
4420    yes) enable_shared=yes ;;
4421    no) enable_shared=no ;;
4422    *)
4423      enable_shared=no
4424      # Look at the argument we got.  We use all the common list separators.
4425      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4426      for pkg in $enableval; do
4427        IFS="$lt_save_ifs"
4428        if test "X$pkg" = "X$p"; then
4429          enable_shared=yes
4430        fi
4431      done
4432      IFS="$lt_save_ifs"
4433      ;;
4434    esac
4435else
4436  enable_shared=yes
4437fi
4438
4439
4440# Check whether --enable-static was given.
4441if test "${enable_static+set}" = set; then
4442  enableval=$enable_static; p=${PACKAGE-default}
4443    case $enableval in
4444    yes) enable_static=yes ;;
4445    no) enable_static=no ;;
4446    *)
4447     enable_static=no
4448      # Look at the argument we got.  We use all the common list separators.
4449      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4450      for pkg in $enableval; do
4451        IFS="$lt_save_ifs"
4452        if test "X$pkg" = "X$p"; then
4453          enable_static=yes
4454        fi
4455      done
4456      IFS="$lt_save_ifs"
4457      ;;
4458    esac
4459else
4460  enable_static=yes
4461fi
4462
4463
4464# Check whether --enable-fast-install was given.
4465if test "${enable_fast_install+set}" = set; then
4466  enableval=$enable_fast_install; p=${PACKAGE-default}
4467    case $enableval in
4468    yes) enable_fast_install=yes ;;
4469    no) enable_fast_install=no ;;
4470    *)
4471      enable_fast_install=no
4472      # Look at the argument we got.  We use all the common list separators.
4473      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4474      for pkg in $enableval; do
4475        IFS="$lt_save_ifs"
4476        if test "X$pkg" = "X$p"; then
4477          enable_fast_install=yes
4478        fi
4479      done
4480      IFS="$lt_save_ifs"
4481      ;;
4482    esac
4483else
4484  enable_fast_install=yes
4485fi
4486
4487
4488# Make sure we can run config.sub.
4489$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4490  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4491echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4492   { (exit 1); exit 1; }; }
4493
4494{ echo "$as_me:$LINENO: checking build system type" >&5
4495echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4496if test "${ac_cv_build+set}" = set; then
4497  echo $ECHO_N "(cached) $ECHO_C" >&6
4498else
4499  ac_build_alias=$build_alias
4500test "x$ac_build_alias" = x &&
4501  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4502test "x$ac_build_alias" = x &&
4503  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4504echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4505   { (exit 1); exit 1; }; }
4506ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4507  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4508echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4509   { (exit 1); exit 1; }; }
4510
4511fi
4512{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4513echo "${ECHO_T}$ac_cv_build" >&6; }
4514case $ac_cv_build in
4515*-*-*) ;;
4516*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4517echo "$as_me: error: invalid value of canonical build" >&2;}
4518   { (exit 1); exit 1; }; };;
4519esac
4520build=$ac_cv_build
4521ac_save_IFS=$IFS; IFS='-'
4522set x $ac_cv_build
4523shift
4524build_cpu=$1
4525build_vendor=$2
4526shift; shift
4527# Remember, the first character of IFS is used to create $*,
4528# except with old shells:
4529build_os=$*
4530IFS=$ac_save_IFS
4531case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4532
4533
4534{ echo "$as_me:$LINENO: checking host system type" >&5
4535echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4536if test "${ac_cv_host+set}" = set; then
4537  echo $ECHO_N "(cached) $ECHO_C" >&6
4538else
4539  if test "x$host_alias" = x; then
4540  ac_cv_host=$ac_cv_build
4541else
4542  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4543    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4544echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4545   { (exit 1); exit 1; }; }
4546fi
4547
4548fi
4549{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4550echo "${ECHO_T}$ac_cv_host" >&6; }
4551case $ac_cv_host in
4552*-*-*) ;;
4553*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4554echo "$as_me: error: invalid value of canonical host" >&2;}
4555   { (exit 1); exit 1; }; };;
4556esac
4557host=$ac_cv_host
4558ac_save_IFS=$IFS; IFS='-'
4559set x $ac_cv_host
4560shift
4561host_cpu=$1
4562host_vendor=$2
4563shift; shift
4564# Remember, the first character of IFS is used to create $*,
4565# except with old shells:
4566host_os=$*
4567IFS=$ac_save_IFS
4568case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4569
4570
4571{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4572echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4573if test "${lt_cv_path_SED+set}" = set; then
4574  echo $ECHO_N "(cached) $ECHO_C" >&6
4575else
4576  # Loop through the user's path and test for sed and gsed.
4577# Then use that list of sed's as ones to test for truncation.
4578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579for as_dir in $PATH
4580do
4581  IFS=$as_save_IFS
4582  test -z "$as_dir" && as_dir=.
4583  for lt_ac_prog in sed gsed; do
4584    for ac_exec_ext in '' $ac_executable_extensions; do
4585      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4586        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4587      fi
4588    done
4589  done
4590done
4591IFS=$as_save_IFS
4592lt_ac_max=0
4593lt_ac_count=0
4594# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4595# along with /bin/sed that truncates output.
4596for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4597  test ! -f $lt_ac_sed && continue
4598  cat /dev/null > conftest.in
4599  lt_ac_count=0
4600  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4601  # Check for GNU sed and select it if it is found.
4602  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4603    lt_cv_path_SED=$lt_ac_sed
4604    break
4605  fi
4606  while true; do
4607    cat conftest.in conftest.in >conftest.tmp
4608    mv conftest.tmp conftest.in
4609    cp conftest.in conftest.nl
4610    echo >>conftest.nl
4611    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4612    cmp -s conftest.out conftest.nl || break
4613    # 10000 chars as input seems more than enough
4614    test $lt_ac_count -gt 10 && break
4615    lt_ac_count=`expr $lt_ac_count + 1`
4616    if test $lt_ac_count -gt $lt_ac_max; then
4617      lt_ac_max=$lt_ac_count
4618      lt_cv_path_SED=$lt_ac_sed
4619    fi
4620  done
4621done
4622
4623fi
4624
4625SED=$lt_cv_path_SED
4626
4627{ echo "$as_me:$LINENO: result: $SED" >&5
4628echo "${ECHO_T}$SED" >&6; }
4629
4630{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4631echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4632if test "${ac_cv_path_GREP+set}" = set; then
4633  echo $ECHO_N "(cached) $ECHO_C" >&6
4634else
4635  # Extract the first word of "grep ggrep" to use in msg output
4636if test -z "$GREP"; then
4637set dummy grep ggrep; ac_prog_name=$2
4638if test "${ac_cv_path_GREP+set}" = set; then
4639  echo $ECHO_N "(cached) $ECHO_C" >&6
4640else
4641  ac_path_GREP_found=false
4642# Loop through the user's path and test for each of PROGNAME-LIST
4643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4645do
4646  IFS=$as_save_IFS
4647  test -z "$as_dir" && as_dir=.
4648  for ac_prog in grep ggrep; do
4649  for ac_exec_ext in '' $ac_executable_extensions; do
4650    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4651    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4652    # Check for GNU ac_path_GREP and select it if it is found.
4653  # Check for GNU $ac_path_GREP
4654case `"$ac_path_GREP" --version 2>&1` in
4655*GNU*)
4656  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4657*)
4658  ac_count=0
4659  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4660  while :
4661  do
4662    cat "conftest.in" "conftest.in" >"conftest.tmp"
4663    mv "conftest.tmp" "conftest.in"
4664    cp "conftest.in" "conftest.nl"
4665    echo 'GREP' >> "conftest.nl"
4666    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4667    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4668    ac_count=`expr $ac_count + 1`
4669    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4670      # Best one so far, save it but keep looking for a better one
4671      ac_cv_path_GREP="$ac_path_GREP"
4672      ac_path_GREP_max=$ac_count
4673    fi
4674    # 10*(2^10) chars as input seems more than enough
4675    test $ac_count -gt 10 && break
4676  done
4677  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4678esac
4679
4680
4681    $ac_path_GREP_found && break 3
4682  done
4683done
4684
4685done
4686IFS=$as_save_IFS
4687
4688
4689fi
4690
4691GREP="$ac_cv_path_GREP"
4692if test -z "$GREP"; then
4693  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4694echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4695   { (exit 1); exit 1; }; }
4696fi
4697
4698else
4699  ac_cv_path_GREP=$GREP
4700fi
4701
4702
4703fi
4704{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4705echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4706 GREP="$ac_cv_path_GREP"
4707
4708
4709{ echo "$as_me:$LINENO: checking for egrep" >&5
4710echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4711if test "${ac_cv_path_EGREP+set}" = set; then
4712  echo $ECHO_N "(cached) $ECHO_C" >&6
4713else
4714  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4715   then ac_cv_path_EGREP="$GREP -E"
4716   else
4717     # Extract the first word of "egrep" to use in msg output
4718if test -z "$EGREP"; then
4719set dummy egrep; ac_prog_name=$2
4720if test "${ac_cv_path_EGREP+set}" = set; then
4721  echo $ECHO_N "(cached) $ECHO_C" >&6
4722else
4723  ac_path_EGREP_found=false
4724# Loop through the user's path and test for each of PROGNAME-LIST
4725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4727do
4728  IFS=$as_save_IFS
4729  test -z "$as_dir" && as_dir=.
4730  for ac_prog in egrep; do
4731  for ac_exec_ext in '' $ac_executable_extensions; do
4732    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4733    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4734    # Check for GNU ac_path_EGREP and select it if it is found.
4735  # Check for GNU $ac_path_EGREP
4736case `"$ac_path_EGREP" --version 2>&1` in
4737*GNU*)
4738  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4739*)
4740  ac_count=0
4741  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4742  while :
4743  do
4744    cat "conftest.in" "conftest.in" >"conftest.tmp"
4745    mv "conftest.tmp" "conftest.in"
4746    cp "conftest.in" "conftest.nl"
4747    echo 'EGREP' >> "conftest.nl"
4748    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4749    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4750    ac_count=`expr $ac_count + 1`
4751    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4752      # Best one so far, save it but keep looking for a better one
4753      ac_cv_path_EGREP="$ac_path_EGREP"
4754      ac_path_EGREP_max=$ac_count
4755    fi
4756    # 10*(2^10) chars as input seems more than enough
4757    test $ac_count -gt 10 && break
4758  done
4759  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4760esac
4761
4762
4763    $ac_path_EGREP_found && break 3
4764  done
4765done
4766
4767done
4768IFS=$as_save_IFS
4769
4770
4771fi
4772
4773EGREP="$ac_cv_path_EGREP"
4774if test -z "$EGREP"; then
4775  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4776echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4777   { (exit 1); exit 1; }; }
4778fi
4779
4780else
4781  ac_cv_path_EGREP=$EGREP
4782fi
4783
4784
4785   fi
4786fi
4787{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4788echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4789 EGREP="$ac_cv_path_EGREP"
4790
4791
4792
4793# Check whether --with-gnu-ld was given.
4794if test "${with_gnu_ld+set}" = set; then
4795  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4796else
4797  with_gnu_ld=no
4798fi
4799
4800ac_prog=ld
4801if test "$GCC" = yes; then
4802  # Check if gcc -print-prog-name=ld gives a path.
4803  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4804echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4805  case $host in
4806  *-*-mingw*)
4807    # gcc leaves a trailing carriage return which upsets mingw
4808    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4809  *)
4810    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4811  esac
4812  case $ac_prog in
4813    # Accept absolute paths.
4814    [\\/]* | ?:[\\/]*)
4815      re_direlt='/[^/][^/]*/\.\./'
4816      # Canonicalize the pathname of ld
4817      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4818      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4819        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4820      done
4821      test -z "$LD" && LD="$ac_prog"
4822      ;;
4823  "")
4824    # If it fails, then pretend we aren't using GCC.
4825    ac_prog=ld
4826    ;;
4827  *)
4828    # If it is relative, then search for the first ld in PATH.
4829    with_gnu_ld=unknown
4830    ;;
4831  esac
4832elif test "$with_gnu_ld" = yes; then
4833  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4834echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4835else
4836  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4837echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4838fi
4839if test "${lt_cv_path_LD+set}" = set; then
4840  echo $ECHO_N "(cached) $ECHO_C" >&6
4841else
4842  if test -z "$LD"; then
4843  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4844  for ac_dir in $PATH; do
4845    IFS="$lt_save_ifs"
4846    test -z "$ac_dir" && ac_dir=.
4847    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4848      lt_cv_path_LD="$ac_dir/$ac_prog"
4849      # Check to see if the program is GNU ld.  I'd rather use --version,
4850      # but apparently some variants of GNU ld only accept -v.
4851      # Break only if it was the GNU/non-GNU ld that we prefer.
4852      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4853      *GNU* | *'with BFD'*)
4854        test "$with_gnu_ld" != no && break
4855        ;;
4856      *)
4857        test "$with_gnu_ld" != yes && break
4858        ;;
4859      esac
4860    fi
4861  done
4862  IFS="$lt_save_ifs"
4863else
4864  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4865fi
4866fi
4867
4868LD="$lt_cv_path_LD"
4869if test -n "$LD"; then
4870  { echo "$as_me:$LINENO: result: $LD" >&5
4871echo "${ECHO_T}$LD" >&6; }
4872else
4873  { echo "$as_me:$LINENO: result: no" >&5
4874echo "${ECHO_T}no" >&6; }
4875fi
4876test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4877echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4878   { (exit 1); exit 1; }; }
4879{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4880echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4881if test "${lt_cv_prog_gnu_ld+set}" = set; then
4882  echo $ECHO_N "(cached) $ECHO_C" >&6
4883else
4884  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4885case `$LD -v 2>&1 </dev/null` in
4886*GNU* | *'with BFD'*)
4887  lt_cv_prog_gnu_ld=yes
4888  ;;
4889*)
4890  lt_cv_prog_gnu_ld=no
4891  ;;
4892esac
4893fi
4894{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4895echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4896with_gnu_ld=$lt_cv_prog_gnu_ld
4897
4898
4899{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4900echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4901if test "${lt_cv_ld_reload_flag+set}" = set; then
4902  echo $ECHO_N "(cached) $ECHO_C" >&6
4903else
4904  lt_cv_ld_reload_flag='-r'
4905fi
4906{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4907echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4908reload_flag=$lt_cv_ld_reload_flag
4909case $reload_flag in
4910"" | " "*) ;;
4911*) reload_flag=" $reload_flag" ;;
4912esac
4913reload_cmds='$LD$reload_flag -o $output$reload_objs'
4914case $host_os in
4915  darwin*)
4916    if test "$GCC" = yes; then
4917      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4918    else
4919      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4920    fi
4921    ;;
4922esac
4923
4924{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4925echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4926if test "${lt_cv_path_NM+set}" = set; then
4927  echo $ECHO_N "(cached) $ECHO_C" >&6
4928else
4929  if test -n "$NM"; then
4930  # Let the user override the test.
4931  lt_cv_path_NM="$NM"
4932else
4933  lt_nm_to_check="${ac_tool_prefix}nm"
4934  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4935    lt_nm_to_check="$lt_nm_to_check nm"
4936  fi
4937  for lt_tmp_nm in $lt_nm_to_check; do
4938    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4939    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4940      IFS="$lt_save_ifs"
4941      test -z "$ac_dir" && ac_dir=.
4942      tmp_nm="$ac_dir/$lt_tmp_nm"
4943      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4944        # Check to see if the nm accepts a BSD-compat flag.
4945        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4946        #   nm: unknown option "B" ignored
4947        # Tru64's nm complains that /dev/null is an invalid object file
4948        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4949        */dev/null* | *'Invalid file or object type'*)
4950          lt_cv_path_NM="$tmp_nm -B"
4951          break
4952          ;;
4953        *)
4954          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4955          */dev/null*)
4956            lt_cv_path_NM="$tmp_nm -p"
4957            break
4958            ;;
4959          *)
4960            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4961            continue # so that we can try to find one that supports BSD flags
4962            ;;
4963          esac
4964          ;;
4965        esac
4966      fi
4967    done
4968    IFS="$lt_save_ifs"
4969  done
4970  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4971fi
4972fi
4973{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4974echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4975NM="$lt_cv_path_NM"
4976
4977{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4978echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4979if test "${lt_cv_deplibs_check_method+set}" = set; then
4980  echo $ECHO_N "(cached) $ECHO_C" >&6
4981else
4982  lt_cv_file_magic_cmd='$MAGIC_CMD'
4983lt_cv_file_magic_test_file=
4984lt_cv_deplibs_check_method='unknown'
4985# Need to set the preceding variable on all platforms that support
4986# interlibrary dependencies.
4987# 'none' -- dependencies not supported.
4988# `unknown' -- same as none, but documents that we really don't know.
4989# 'pass_all' -- all dependencies passed with no checks.
4990# 'test_compile' -- check by making test program.
4991# 'file_magic [[regex]]' -- check by looking for files in library path
4992# which responds to the $file_magic_cmd with a given extended regex.
4993# If you have `file' or equivalent on your system and you're not sure
4994# whether `pass_all' will *always* work, you probably want this one.
4995
4996case $host_os in
4997aix[4-9]*)
4998  lt_cv_deplibs_check_method=pass_all
4999  ;;
5000
5001beos*)
5002  lt_cv_deplibs_check_method=pass_all
5003  ;;
5004
5005bsdi[45]*)
5006  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5007  lt_cv_file_magic_cmd='/usr/bin/file -L'
5008  lt_cv_file_magic_test_file=/shlib/libc.so
5009  ;;
5010
5011cygwin*)
5012  # func_win32_libid is a shell function defined in ltmain.sh
5013  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5014  lt_cv_file_magic_cmd='func_win32_libid'
5015  ;;
5016
5017mingw* | pw32*)
5018  # Base MSYS/MinGW do not provide the 'file' command needed by
5019  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5020  # unless we find 'file', for example because we are cross-compiling.
5021  if ( file / ) >/dev/null 2>&1; then
5022    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5023    lt_cv_file_magic_cmd='func_win32_libid'
5024  else
5025    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5026    lt_cv_file_magic_cmd='$OBJDUMP -f'
5027  fi
5028  ;;
5029
5030darwin* | rhapsody*)
5031  lt_cv_deplibs_check_method=pass_all
5032  ;;
5033
5034freebsd* | dragonfly*)
5035  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5036    case $host_cpu in
5037    i*86 )
5038      # Not sure whether the presence of OpenBSD here was a mistake.
5039      # Let's accept both of them until this is cleared up.
5040      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5041      lt_cv_file_magic_cmd=/usr/bin/file
5042      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5043      ;;
5044    esac
5045  else
5046    lt_cv_deplibs_check_method=pass_all
5047  fi
5048  ;;
5049
5050gnu*)
5051  lt_cv_deplibs_check_method=pass_all
5052  ;;
5053
5054hpux10.20* | hpux11*)
5055  lt_cv_file_magic_cmd=/usr/bin/file
5056  case $host_cpu in
5057  ia64*)
5058    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5059    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5060    ;;
5061  hppa*64*)
5062    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]'
5063    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5064    ;;
5065  *)
5066    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5067    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5068    ;;
5069  esac
5070  ;;
5071
5072interix[3-9]*)
5073  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5074  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5075  ;;
5076
5077irix5* | irix6* | nonstopux*)
5078  case $LD in
5079  *-32|*"-32 ") libmagic=32-bit;;
5080  *-n32|*"-n32 ") libmagic=N32;;
5081  *-64|*"-64 ") libmagic=64-bit;;
5082  *) libmagic=never-match;;
5083  esac
5084  lt_cv_deplibs_check_method=pass_all
5085  ;;
5086
5087# This must be Linux ELF.
5088linux* | k*bsd*-gnu)
5089  lt_cv_deplibs_check_method=pass_all
5090  ;;
5091
5092netbsd* | netbsdelf*-gnu)
5093  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5094    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5095  else
5096    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5097  fi
5098  ;;
5099
5100newos6*)
5101  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5102  lt_cv_file_magic_cmd=/usr/bin/file
5103  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5104  ;;
5105
5106nto-qnx*)
5107  lt_cv_deplibs_check_method=unknown
5108  ;;
5109
5110openbsd*)
5111  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5112    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5113  else
5114    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5115  fi
5116  ;;
5117
5118osf3* | osf4* | osf5*)
5119  lt_cv_deplibs_check_method=pass_all
5120  ;;
5121
5122rdos*)
5123  lt_cv_deplibs_check_method=pass_all
5124  ;;
5125
5126solaris*)
5127  lt_cv_deplibs_check_method=pass_all
5128  ;;
5129
5130sysv4 | sysv4.3*)
5131  case $host_vendor in
5132  motorola)
5133    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]'
5134    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5135    ;;
5136  ncr)
5137    lt_cv_deplibs_check_method=pass_all
5138    ;;
5139  sequent)
5140    lt_cv_file_magic_cmd='/bin/file'
5141    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5142    ;;
5143  sni)
5144    lt_cv_file_magic_cmd='/bin/file'
5145    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5146    lt_cv_file_magic_test_file=/lib/libc.so
5147    ;;
5148  siemens)
5149    lt_cv_deplibs_check_method=pass_all
5150    ;;
5151  pc)
5152    lt_cv_deplibs_check_method=pass_all
5153    ;;
5154  esac
5155  ;;
5156
5157sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5158  lt_cv_deplibs_check_method=pass_all
5159  ;;
5160esac
5161
5162fi
5163{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5164echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5165file_magic_cmd=$lt_cv_file_magic_cmd
5166deplibs_check_method=$lt_cv_deplibs_check_method
5167test -z "$deplibs_check_method" && deplibs_check_method=unknown
5168
5169
5170
5171
5172# If no C compiler was specified, use CC.
5173LTCC=${LTCC-"$CC"}
5174
5175# If no C compiler flags were specified, use CFLAGS.
5176LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5177
5178# Allow CC to be a program name with arguments.
5179compiler=$CC
5180
5181
5182# Check whether --enable-libtool-lock was given.
5183if test "${enable_libtool_lock+set}" = set; then
5184  enableval=$enable_libtool_lock;
5185fi
5186
5187test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5188
5189# Some flags need to be propagated to the compiler or linker for good
5190# libtool support.
5191case $host in
5192ia64-*-hpux*)
5193  # Find out which ABI we are using.
5194  echo 'int i;' > conftest.$ac_ext
5195  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5196  (eval $ac_compile) 2>&5
5197  ac_status=$?
5198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199  (exit $ac_status); }; then
5200    case `/usr/bin/file conftest.$ac_objext` in
5201    *ELF-32*)
5202      HPUX_IA64_MODE="32"
5203      ;;
5204    *ELF-64*)
5205      HPUX_IA64_MODE="64"
5206      ;;
5207    esac
5208  fi
5209  rm -rf conftest*
5210  ;;
5211*-*-irix6*)
5212  # Find out which ABI we are using.
5213  echo '#line 5213 "configure"' > conftest.$ac_ext
5214  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5215  (eval $ac_compile) 2>&5
5216  ac_status=$?
5217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218  (exit $ac_status); }; then
5219   if test "$lt_cv_prog_gnu_ld" = yes; then
5220    case `/usr/bin/file conftest.$ac_objext` in
5221    *32-bit*)
5222      LD="${LD-ld} -melf32bsmip"
5223      ;;
5224    *N32*)
5225      LD="${LD-ld} -melf32bmipn32"
5226      ;;
5227    *64-bit*)
5228      LD="${LD-ld} -melf64bmip"
5229      ;;
5230    esac
5231   else
5232    case `/usr/bin/file conftest.$ac_objext` in
5233    *32-bit*)
5234      LD="${LD-ld} -32"
5235      ;;
5236    *N32*)
5237      LD="${LD-ld} -n32"
5238      ;;
5239    *64-bit*)
5240      LD="${LD-ld} -64"
5241      ;;
5242    esac
5243   fi
5244  fi
5245  rm -rf conftest*
5246  ;;
5247
5248x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5249s390*-*linux*|sparc*-*linux*)
5250  # Find out which ABI we are using.
5251  echo 'int i;' > conftest.$ac_ext
5252  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5253  (eval $ac_compile) 2>&5
5254  ac_status=$?
5255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256  (exit $ac_status); }; then
5257    case `/usr/bin/file conftest.o` in
5258    *32-bit*)
5259      case $host in
5260        x86_64-*kfreebsd*-gnu)
5261          LD="${LD-ld} -m elf_i386_fbsd"
5262          ;;
5263        x86_64-*linux*)
5264          LD="${LD-ld} -m elf_i386"
5265          ;;
5266        ppc64-*linux*|powerpc64-*linux*)
5267          LD="${LD-ld} -m elf32ppclinux"
5268          ;;
5269        s390x-*linux*)
5270          LD="${LD-ld} -m elf_s390"
5271          ;;
5272        sparc64-*linux*)
5273          LD="${LD-ld} -m elf32_sparc"
5274          ;;
5275      esac
5276      ;;
5277    *64-bit*)
5278      case $host in
5279        x86_64-*kfreebsd*-gnu)
5280          LD="${LD-ld} -m elf_x86_64_fbsd"
5281          ;;
5282        x86_64-*linux*)
5283          LD="${LD-ld} -m elf_x86_64"
5284          ;;
5285        ppc*-*linux*|powerpc*-*linux*)
5286          LD="${LD-ld} -m elf64ppc"
5287          ;;
5288        s390*-*linux*)
5289          LD="${LD-ld} -m elf64_s390"
5290          ;;
5291        sparc*-*linux*)
5292          LD="${LD-ld} -m elf64_sparc"
5293          ;;
5294      esac
5295      ;;
5296    esac
5297  fi
5298  rm -rf conftest*
5299  ;;
5300
5301*-*-sco3.2v5*)
5302  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5303  SAVE_CFLAGS="$CFLAGS"
5304  CFLAGS="$CFLAGS -belf"
5305  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5306echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5307if test "${lt_cv_cc_needs_belf+set}" = set; then
5308  echo $ECHO_N "(cached) $ECHO_C" >&6
5309else
5310  ac_ext=c
5311ac_cpp='$CPP $CPPFLAGS'
5312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5314ac_compiler_gnu=$ac_cv_c_compiler_gnu
5315
5316     cat >conftest.$ac_ext <<_ACEOF
5317/* confdefs.h.  */
5318_ACEOF
5319cat confdefs.h >>conftest.$ac_ext
5320cat >>conftest.$ac_ext <<_ACEOF
5321/* end confdefs.h.  */
5322
5323int
5324main ()
5325{
5326
5327  ;
5328  return 0;
5329}
5330_ACEOF
5331rm -f conftest.$ac_objext conftest$ac_exeext
5332if { (ac_try="$ac_link"
5333case "(($ac_try" in
5334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335  *) ac_try_echo=$ac_try;;
5336esac
5337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338  (eval "$ac_link") 2>conftest.er1
5339  ac_status=$?
5340  grep -v '^ *+' conftest.er1 >conftest.err
5341  rm -f conftest.er1
5342  cat conftest.err >&5
5343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344  (exit $ac_status); } && {
5345         test -z "$ac_c_werror_flag" ||
5346         test ! -s conftest.err
5347       } && test -s conftest$ac_exeext &&
5348       $as_test_x conftest$ac_exeext; then
5349  lt_cv_cc_needs_belf=yes
5350else
5351  echo "$as_me: failed program was:" >&5
5352sed 's/^/| /' conftest.$ac_ext >&5
5353
5354        lt_cv_cc_needs_belf=no
5355fi
5356
5357rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5358      conftest$ac_exeext conftest.$ac_ext
5359     ac_ext=c
5360ac_cpp='$CPP $CPPFLAGS'
5361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5363ac_compiler_gnu=$ac_cv_c_compiler_gnu
5364
5365fi
5366{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5367echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5368  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5369    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5370    CFLAGS="$SAVE_CFLAGS"
5371  fi
5372  ;;
5373sparc*-*solaris*)
5374  # Find out which ABI we are using.
5375  echo 'int i;' > conftest.$ac_ext
5376  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5377  (eval $ac_compile) 2>&5
5378  ac_status=$?
5379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380  (exit $ac_status); }; then
5381    case `/usr/bin/file conftest.o` in
5382    *64-bit*)
5383      case $lt_cv_prog_gnu_ld in
5384      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5385      *)
5386        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5387          LD="${LD-ld} -64"
5388        fi
5389        ;;
5390      esac
5391      ;;
5392    esac
5393  fi
5394  rm -rf conftest*
5395  ;;
5396
5397*-*-cygwin* | *-*-mingw* | *-*-pw32*)
5398  if test -n "$ac_tool_prefix"; then
5399  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5400set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5401{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5403if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5404  echo $ECHO_N "(cached) $ECHO_C" >&6
5405else
5406  if test -n "$DLLTOOL"; then
5407  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5408else
5409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410for as_dir in $PATH
5411do
5412  IFS=$as_save_IFS
5413  test -z "$as_dir" && as_dir=.
5414  for ac_exec_ext in '' $ac_executable_extensions; do
5415  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5416    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5417    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418    break 2
5419  fi
5420done
5421done
5422IFS=$as_save_IFS
5423
5424fi
5425fi
5426DLLTOOL=$ac_cv_prog_DLLTOOL
5427if test -n "$DLLTOOL"; then
5428  { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5429echo "${ECHO_T}$DLLTOOL" >&6; }
5430else
5431  { echo "$as_me:$LINENO: result: no" >&5
5432echo "${ECHO_T}no" >&6; }
5433fi
5434
5435
5436fi
5437if test -z "$ac_cv_prog_DLLTOOL"; then
5438  ac_ct_DLLTOOL=$DLLTOOL
5439  # Extract the first word of "dlltool", so it can be a program name with args.
5440set dummy dlltool; ac_word=$2
5441{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5443if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5444  echo $ECHO_N "(cached) $ECHO_C" >&6
5445else
5446  if test -n "$ac_ct_DLLTOOL"; then
5447  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5448else
5449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450for as_dir in $PATH
5451do
5452  IFS=$as_save_IFS
5453  test -z "$as_dir" && as_dir=.
5454  for ac_exec_ext in '' $ac_executable_extensions; do
5455  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5456    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5457    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5458    break 2
5459  fi
5460done
5461done
5462IFS=$as_save_IFS
5463
5464fi
5465fi
5466ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5467if test -n "$ac_ct_DLLTOOL"; then
5468  { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5469echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5470else
5471  { echo "$as_me:$LINENO: result: no" >&5
5472echo "${ECHO_T}no" >&6; }
5473fi
5474
5475  if test "x$ac_ct_DLLTOOL" = x; then
5476    DLLTOOL="false"
5477  else
5478    case $cross_compiling:$ac_tool_warned in
5479yes:)
5480{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5481whose name does not start with the host triplet.  If you think this
5482configuration is useful to you, please write to autoconf@gnu.org." >&5
5483echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5484whose name does not start with the host triplet.  If you think this
5485configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5486ac_tool_warned=yes ;;
5487esac
5488    DLLTOOL=$ac_ct_DLLTOOL
5489  fi
5490else
5491  DLLTOOL="$ac_cv_prog_DLLTOOL"
5492fi
5493
5494  if test -n "$ac_tool_prefix"; then
5495  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5496set dummy ${ac_tool_prefix}as; ac_word=$2
5497{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5499if test "${ac_cv_prog_AS+set}" = set; then
5500  echo $ECHO_N "(cached) $ECHO_C" >&6
5501else
5502  if test -n "$AS"; then
5503  ac_cv_prog_AS="$AS" # Let the user override the test.
5504else
5505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506for as_dir in $PATH
5507do
5508  IFS=$as_save_IFS
5509  test -z "$as_dir" && as_dir=.
5510  for ac_exec_ext in '' $ac_executable_extensions; do
5511  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512    ac_cv_prog_AS="${ac_tool_prefix}as"
5513    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5514    break 2
5515  fi
5516done
5517done
5518IFS=$as_save_IFS
5519
5520fi
5521fi
5522AS=$ac_cv_prog_AS
5523if test -n "$AS"; then
5524  { echo "$as_me:$LINENO: result: $AS" >&5
5525echo "${ECHO_T}$AS" >&6; }
5526else
5527  { echo "$as_me:$LINENO: result: no" >&5
5528echo "${ECHO_T}no" >&6; }
5529fi
5530
5531
5532fi
5533if test -z "$ac_cv_prog_AS"; then
5534  ac_ct_AS=$AS
5535  # Extract the first word of "as", so it can be a program name with args.
5536set dummy as; ac_word=$2
5537{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5539if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5540  echo $ECHO_N "(cached) $ECHO_C" >&6
5541else
5542  if test -n "$ac_ct_AS"; then
5543  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5544else
5545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546for as_dir in $PATH
5547do
5548  IFS=$as_save_IFS
5549  test -z "$as_dir" && as_dir=.
5550  for ac_exec_ext in '' $ac_executable_extensions; do
5551  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5552    ac_cv_prog_ac_ct_AS="as"
5553    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5554    break 2
5555  fi
5556done
5557done
5558IFS=$as_save_IFS
5559
5560fi
5561fi
5562ac_ct_AS=$ac_cv_prog_ac_ct_AS
5563if test -n "$ac_ct_AS"; then
5564  { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5565echo "${ECHO_T}$ac_ct_AS" >&6; }
5566else
5567  { echo "$as_me:$LINENO: result: no" >&5
5568echo "${ECHO_T}no" >&6; }
5569fi
5570
5571  if test "x$ac_ct_AS" = x; then
5572    AS="false"
5573  else
5574    case $cross_compiling:$ac_tool_warned in
5575yes:)
5576{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5577whose name does not start with the host triplet.  If you think this
5578configuration is useful to you, please write to autoconf@gnu.org." >&5
5579echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5580whose name does not start with the host triplet.  If you think this
5581configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5582ac_tool_warned=yes ;;
5583esac
5584    AS=$ac_ct_AS
5585  fi
5586else
5587  AS="$ac_cv_prog_AS"
5588fi
5589
5590  if test -n "$ac_tool_prefix"; then
5591  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5592set dummy ${ac_tool_prefix}objdump; ac_word=$2
5593{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5595if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5596  echo $ECHO_N "(cached) $ECHO_C" >&6
5597else
5598  if test -n "$OBJDUMP"; then
5599  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5600else
5601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602for as_dir in $PATH
5603do
5604  IFS=$as_save_IFS
5605  test -z "$as_dir" && as_dir=.
5606  for ac_exec_ext in '' $ac_executable_extensions; do
5607  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5608    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5609    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5610    break 2
5611  fi
5612done
5613done
5614IFS=$as_save_IFS
5615
5616fi
5617fi
5618OBJDUMP=$ac_cv_prog_OBJDUMP
5619if test -n "$OBJDUMP"; then
5620  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5621echo "${ECHO_T}$OBJDUMP" >&6; }
5622else
5623  { echo "$as_me:$LINENO: result: no" >&5
5624echo "${ECHO_T}no" >&6; }
5625fi
5626
5627
5628fi
5629if test -z "$ac_cv_prog_OBJDUMP"; then
5630  ac_ct_OBJDUMP=$OBJDUMP
5631  # Extract the first word of "objdump", so it can be a program name with args.
5632set dummy objdump; ac_word=$2
5633{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5635if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5636  echo $ECHO_N "(cached) $ECHO_C" >&6
5637else
5638  if test -n "$ac_ct_OBJDUMP"; then
5639  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5640else
5641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642for as_dir in $PATH
5643do
5644  IFS=$as_save_IFS
5645  test -z "$as_dir" && as_dir=.
5646  for ac_exec_ext in '' $ac_executable_extensions; do
5647  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5648    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5649    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5650    break 2
5651  fi
5652done
5653done
5654IFS=$as_save_IFS
5655
5656fi
5657fi
5658ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5659if test -n "$ac_ct_OBJDUMP"; then
5660  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5661echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5662else
5663  { echo "$as_me:$LINENO: result: no" >&5
5664echo "${ECHO_T}no" >&6; }
5665fi
5666
5667  if test "x$ac_ct_OBJDUMP" = x; then
5668    OBJDUMP="false"
5669  else
5670    case $cross_compiling:$ac_tool_warned in
5671yes:)
5672{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5673whose name does not start with the host triplet.  If you think this
5674configuration is useful to you, please write to autoconf@gnu.org." >&5
5675echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5676whose name does not start with the host triplet.  If you think this
5677configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5678ac_tool_warned=yes ;;
5679esac
5680    OBJDUMP=$ac_ct_OBJDUMP
5681  fi
5682else
5683  OBJDUMP="$ac_cv_prog_OBJDUMP"
5684fi
5685
5686  ;;
5687
5688esac
5689
5690need_locks="$enable_libtool_lock"
5691
5692
5693
5694{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5695echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5696if test "${ac_cv_header_stdc+set}" = set; then
5697  echo $ECHO_N "(cached) $ECHO_C" >&6
5698else
5699  cat >conftest.$ac_ext <<_ACEOF
5700/* confdefs.h.  */
5701_ACEOF
5702cat confdefs.h >>conftest.$ac_ext
5703cat >>conftest.$ac_ext <<_ACEOF
5704/* end confdefs.h.  */
5705#include <stdlib.h>
5706#include <stdarg.h>
5707#include <string.h>
5708#include <float.h>
5709
5710int
5711main ()
5712{
5713
5714  ;
5715  return 0;
5716}
5717_ACEOF
5718rm -f conftest.$ac_objext
5719if { (ac_try="$ac_compile"
5720case "(($ac_try" in
5721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722  *) ac_try_echo=$ac_try;;
5723esac
5724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725  (eval "$ac_compile") 2>conftest.er1
5726  ac_status=$?
5727  grep -v '^ *+' conftest.er1 >conftest.err
5728  rm -f conftest.er1
5729  cat conftest.err >&5
5730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731  (exit $ac_status); } && {
5732         test -z "$ac_c_werror_flag" ||
5733         test ! -s conftest.err
5734       } && test -s conftest.$ac_objext; then
5735  ac_cv_header_stdc=yes
5736else
5737  echo "$as_me: failed program was:" >&5
5738sed 's/^/| /' conftest.$ac_ext >&5
5739
5740        ac_cv_header_stdc=no
5741fi
5742
5743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744
5745if test $ac_cv_header_stdc = yes; then
5746  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5747  cat >conftest.$ac_ext <<_ACEOF
5748/* confdefs.h.  */
5749_ACEOF
5750cat confdefs.h >>conftest.$ac_ext
5751cat >>conftest.$ac_ext <<_ACEOF
5752/* end confdefs.h.  */
5753#include <string.h>
5754
5755_ACEOF
5756if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5757  $EGREP "memchr" >/dev/null 2>&1; then
5758  :
5759else
5760  ac_cv_header_stdc=no
5761fi
5762rm -f conftest*
5763
5764fi
5765
5766if test $ac_cv_header_stdc = yes; then
5767  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5768  cat >conftest.$ac_ext <<_ACEOF
5769/* confdefs.h.  */
5770_ACEOF
5771cat confdefs.h >>conftest.$ac_ext
5772cat >>conftest.$ac_ext <<_ACEOF
5773/* end confdefs.h.  */
5774#include <stdlib.h>
5775
5776_ACEOF
5777if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5778  $EGREP "free" >/dev/null 2>&1; then
5779  :
5780else
5781  ac_cv_header_stdc=no
5782fi
5783rm -f conftest*
5784
5785fi
5786
5787if test $ac_cv_header_stdc = yes; then
5788  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5789  if test "$cross_compiling" = yes; then
5790  :
5791else
5792  cat >conftest.$ac_ext <<_ACEOF
5793/* confdefs.h.  */
5794_ACEOF
5795cat confdefs.h >>conftest.$ac_ext
5796cat >>conftest.$ac_ext <<_ACEOF
5797/* end confdefs.h.  */
5798#include <ctype.h>
5799#include <stdlib.h>
5800#if ((' ' & 0x0FF) == 0x020)
5801# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5802# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5803#else
5804# define ISLOWER(c) \
5805                   (('a' <= (c) && (c) <= 'i') \
5806                     || ('j' <= (c) && (c) <= 'r') \
5807                     || ('s' <= (c) && (c) <= 'z'))
5808# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5809#endif
5810
5811#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5812int
5813main ()
5814{
5815  int i;
5816  for (i = 0; i < 256; i++)
5817    if (XOR (islower (i), ISLOWER (i))
5818        || toupper (i) != TOUPPER (i))
5819      return 2;
5820  return 0;
5821}
5822_ACEOF
5823rm -f conftest$ac_exeext
5824if { (ac_try="$ac_link"
5825case "(($ac_try" in
5826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827  *) ac_try_echo=$ac_try;;
5828esac
5829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830  (eval "$ac_link") 2>&5
5831  ac_status=$?
5832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5834  { (case "(($ac_try" in
5835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836  *) ac_try_echo=$ac_try;;
5837esac
5838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839  (eval "$ac_try") 2>&5
5840  ac_status=$?
5841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842  (exit $ac_status); }; }; then
5843  :
5844else
5845  echo "$as_me: program exited with status $ac_status" >&5
5846echo "$as_me: failed program was:" >&5
5847sed 's/^/| /' conftest.$ac_ext >&5
5848
5849( exit $ac_status )
5850ac_cv_header_stdc=no
5851fi
5852rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5853fi
5854
5855
5856fi
5857fi
5858{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5859echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5860if test $ac_cv_header_stdc = yes; then
5861
5862cat >>confdefs.h <<\_ACEOF
5863#define STDC_HEADERS 1
5864_ACEOF
5865
5866fi
5867
5868# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5879                  inttypes.h stdint.h unistd.h
5880do
5881as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5882{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5883echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5885  echo $ECHO_N "(cached) $ECHO_C" >&6
5886else
5887  cat >conftest.$ac_ext <<_ACEOF
5888/* confdefs.h.  */
5889_ACEOF
5890cat confdefs.h >>conftest.$ac_ext
5891cat >>conftest.$ac_ext <<_ACEOF
5892/* end confdefs.h.  */
5893$ac_includes_default
5894
5895#include <$ac_header>
5896_ACEOF
5897rm -f conftest.$ac_objext
5898if { (ac_try="$ac_compile"
5899case "(($ac_try" in
5900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901  *) ac_try_echo=$ac_try;;
5902esac
5903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904  (eval "$ac_compile") 2>conftest.er1
5905  ac_status=$?
5906  grep -v '^ *+' conftest.er1 >conftest.err
5907  rm -f conftest.er1
5908  cat conftest.err >&5
5909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910  (exit $ac_status); } && {
5911         test -z "$ac_c_werror_flag" ||
5912         test ! -s conftest.err
5913       } && test -s conftest.$ac_objext; then
5914  eval "$as_ac_Header=yes"
5915else
5916  echo "$as_me: failed program was:" >&5
5917sed 's/^/| /' conftest.$ac_ext >&5
5918
5919        eval "$as_ac_Header=no"
5920fi
5921
5922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5923fi
5924ac_res=`eval echo '${'$as_ac_Header'}'`
5925               { echo "$as_me:$LINENO: result: $ac_res" >&5
5926echo "${ECHO_T}$ac_res" >&6; }
5927if test `eval echo '${'$as_ac_Header'}'` = yes; then
5928  cat >>confdefs.h <<_ACEOF
5929#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5930_ACEOF
5931
5932fi
5933
5934done
5935
5936
5937
5938for ac_header in dlfcn.h
5939do
5940as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5941if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5942  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5944if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5945  echo $ECHO_N "(cached) $ECHO_C" >&6
5946fi
5947ac_res=`eval echo '${'$as_ac_Header'}'`
5948               { echo "$as_me:$LINENO: result: $ac_res" >&5
5949echo "${ECHO_T}$ac_res" >&6; }
5950else
5951  # Is the header compilable?
5952{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5953echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5954cat >conftest.$ac_ext <<_ACEOF
5955/* confdefs.h.  */
5956_ACEOF
5957cat confdefs.h >>conftest.$ac_ext
5958cat >>conftest.$ac_ext <<_ACEOF
5959/* end confdefs.h.  */
5960$ac_includes_default
5961#include <$ac_header>
5962_ACEOF
5963rm -f conftest.$ac_objext
5964if { (ac_try="$ac_compile"
5965case "(($ac_try" in
5966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967  *) ac_try_echo=$ac_try;;
5968esac
5969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970  (eval "$ac_compile") 2>conftest.er1
5971  ac_status=$?
5972  grep -v '^ *+' conftest.er1 >conftest.err
5973  rm -f conftest.er1
5974  cat conftest.err >&5
5975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976  (exit $ac_status); } && {
5977         test -z "$ac_c_werror_flag" ||
5978         test ! -s conftest.err
5979       } && test -s conftest.$ac_objext; then
5980  ac_header_compiler=yes
5981else
5982  echo "$as_me: failed program was:" >&5
5983sed 's/^/| /' conftest.$ac_ext >&5
5984
5985        ac_header_compiler=no
5986fi
5987
5988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5989{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5990echo "${ECHO_T}$ac_header_compiler" >&6; }
5991
5992# Is the header present?
5993{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5994echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5995cat >conftest.$ac_ext <<_ACEOF
5996/* confdefs.h.  */
5997_ACEOF
5998cat confdefs.h >>conftest.$ac_ext
5999cat >>conftest.$ac_ext <<_ACEOF
6000/* end confdefs.h.  */
6001#include <$ac_header>
6002_ACEOF
6003if { (ac_try="$ac_cpp conftest.$ac_ext"
6004case "(($ac_try" in
6005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006  *) ac_try_echo=$ac_try;;
6007esac
6008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6010  ac_status=$?
6011  grep -v '^ *+' conftest.er1 >conftest.err
6012  rm -f conftest.er1
6013  cat conftest.err >&5
6014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015  (exit $ac_status); } >/dev/null && {
6016         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6017         test ! -s conftest.err
6018       }; then
6019  ac_header_preproc=yes
6020else
6021  echo "$as_me: failed program was:" >&5
6022sed 's/^/| /' conftest.$ac_ext >&5
6023
6024  ac_header_preproc=no
6025fi
6026
6027rm -f conftest.err conftest.$ac_ext
6028{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6029echo "${ECHO_T}$ac_header_preproc" >&6; }
6030
6031# So?  What about this header?
6032case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6033  yes:no: )
6034    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6035echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6036    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6037echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6038    ac_header_preproc=yes
6039    ;;
6040  no:yes:* )
6041    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6042echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6043    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6044echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6045    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6046echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6047    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6048echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6049    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6050echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6051    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6052echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6053    ( cat <<\_ASBOX
6054## -------------------------------------- ##
6055## Report this to adol-c@list.coin-or.org ##
6056## -------------------------------------- ##
6057_ASBOX
6058     ) | sed "s/^/$as_me: WARNING:     /" >&2
6059    ;;
6060esac
6061{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6063if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6064  echo $ECHO_N "(cached) $ECHO_C" >&6
6065else
6066  eval "$as_ac_Header=\$ac_header_preproc"
6067fi
6068ac_res=`eval echo '${'$as_ac_Header'}'`
6069               { echo "$as_me:$LINENO: result: $ac_res" >&5
6070echo "${ECHO_T}$ac_res" >&6; }
6071
6072fi
6073if test `eval echo '${'$as_ac_Header'}'` = yes; then
6074  cat >>confdefs.h <<_ACEOF
6075#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6076_ACEOF
6077
6078fi
6079
6080done
6081
6082
6083
6084if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6085    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6086    (test "X$CXX" != "Xg++"))) ; then
6087  ac_ext=cpp
6088ac_cpp='$CXXCPP $CPPFLAGS'
6089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6092{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6093echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6094if test -z "$CXXCPP"; then
6095  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6096  echo $ECHO_N "(cached) $ECHO_C" >&6
6097else
6098      # Double quotes because CXXCPP needs to be expanded
6099    for CXXCPP in "$CXX -E" "/lib/cpp"
6100    do
6101      ac_preproc_ok=false
6102for ac_cxx_preproc_warn_flag in '' yes
6103do
6104  # Use a header file that comes with gcc, so configuring glibc
6105  # with a fresh cross-compiler works.
6106  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6107  # <limits.h> exists even on freestanding compilers.
6108  # On the NeXT, cc -E runs the code through the compiler's parser,
6109  # not just through cpp. "Syntax error" is here to catch this case.
6110  cat >conftest.$ac_ext <<_ACEOF
6111/* confdefs.h.  */
6112_ACEOF
6113cat confdefs.h >>conftest.$ac_ext
6114cat >>conftest.$ac_ext <<_ACEOF
6115/* end confdefs.h.  */
6116#ifdef __STDC__
6117# include <limits.h>
6118#else
6119# include <assert.h>
6120#endif
6121                     Syntax error
6122_ACEOF
6123if { (ac_try="$ac_cpp conftest.$ac_ext"
6124case "(($ac_try" in
6125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126  *) ac_try_echo=$ac_try;;
6127esac
6128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6130  ac_status=$?
6131  grep -v '^ *+' conftest.er1 >conftest.err
6132  rm -f conftest.er1
6133  cat conftest.err >&5
6134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135  (exit $ac_status); } >/dev/null && {
6136         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6137         test ! -s conftest.err
6138       }; then
6139  :
6140else
6141  echo "$as_me: failed program was:" >&5
6142sed 's/^/| /' conftest.$ac_ext >&5
6143
6144  # Broken: fails on valid input.
6145continue
6146fi
6147
6148rm -f conftest.err conftest.$ac_ext
6149
6150  # OK, works on sane cases.  Now check whether nonexistent headers
6151  # can be detected and how.
6152  cat >conftest.$ac_ext <<_ACEOF
6153/* confdefs.h.  */
6154_ACEOF
6155cat confdefs.h >>conftest.$ac_ext
6156cat >>conftest.$ac_ext <<_ACEOF
6157/* end confdefs.h.  */
6158#include <ac_nonexistent.h>
6159_ACEOF
6160if { (ac_try="$ac_cpp conftest.$ac_ext"
6161case "(($ac_try" in
6162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163  *) ac_try_echo=$ac_try;;
6164esac
6165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6167  ac_status=$?
6168  grep -v '^ *+' conftest.er1 >conftest.err
6169  rm -f conftest.er1
6170  cat conftest.err >&5
6171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172  (exit $ac_status); } >/dev/null && {
6173         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6174         test ! -s conftest.err
6175       }; then
6176  # Broken: success on invalid input.
6177continue
6178else
6179  echo "$as_me: failed program was:" >&5
6180sed 's/^/| /' conftest.$ac_ext >&5
6181
6182  # Passes both tests.
6183ac_preproc_ok=:
6184break
6185fi
6186
6187rm -f conftest.err conftest.$ac_ext
6188
6189done
6190# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6191rm -f conftest.err conftest.$ac_ext
6192if $ac_preproc_ok; then
6193  break
6194fi
6195
6196    done
6197    ac_cv_prog_CXXCPP=$CXXCPP
6198
6199fi
6200  CXXCPP=$ac_cv_prog_CXXCPP
6201else
6202  ac_cv_prog_CXXCPP=$CXXCPP
6203fi
6204{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6205echo "${ECHO_T}$CXXCPP" >&6; }
6206ac_preproc_ok=false
6207for ac_cxx_preproc_warn_flag in '' yes
6208do
6209  # Use a header file that comes with gcc, so configuring glibc
6210  # with a fresh cross-compiler works.
6211  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6212  # <limits.h> exists even on freestanding compilers.
6213  # On the NeXT, cc -E runs the code through the compiler's parser,
6214  # not just through cpp. "Syntax error" is here to catch this case.
6215  cat >conftest.$ac_ext <<_ACEOF
6216/* confdefs.h.  */
6217_ACEOF
6218cat confdefs.h >>conftest.$ac_ext
6219cat >>conftest.$ac_ext <<_ACEOF
6220/* end confdefs.h.  */
6221#ifdef __STDC__
6222# include <limits.h>
6223#else
6224# include <assert.h>
6225#endif
6226                     Syntax error
6227_ACEOF
6228if { (ac_try="$ac_cpp conftest.$ac_ext"
6229case "(($ac_try" in
6230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231  *) ac_try_echo=$ac_try;;
6232esac
6233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6234  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6235  ac_status=$?
6236  grep -v '^ *+' conftest.er1 >conftest.err
6237  rm -f conftest.er1
6238  cat conftest.err >&5
6239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240  (exit $ac_status); } >/dev/null && {
6241         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6242         test ! -s conftest.err
6243       }; then
6244  :
6245else
6246  echo "$as_me: failed program was:" >&5
6247sed 's/^/| /' conftest.$ac_ext >&5
6248
6249  # Broken: fails on valid input.
6250continue
6251fi
6252
6253rm -f conftest.err conftest.$ac_ext
6254
6255  # OK, works on sane cases.  Now check whether nonexistent headers
6256  # can be detected and how.
6257  cat >conftest.$ac_ext <<_ACEOF
6258/* confdefs.h.  */
6259_ACEOF
6260cat confdefs.h >>conftest.$ac_ext
6261cat >>conftest.$ac_ext <<_ACEOF
6262/* end confdefs.h.  */
6263#include <ac_nonexistent.h>
6264_ACEOF
6265if { (ac_try="$ac_cpp conftest.$ac_ext"
6266case "(($ac_try" in
6267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268  *) ac_try_echo=$ac_try;;
6269esac
6270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6272  ac_status=$?
6273  grep -v '^ *+' conftest.er1 >conftest.err
6274  rm -f conftest.er1
6275  cat conftest.err >&5
6276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277  (exit $ac_status); } >/dev/null && {
6278         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6279         test ! -s conftest.err
6280       }; then
6281  # Broken: success on invalid input.
6282continue
6283else
6284  echo "$as_me: failed program was:" >&5
6285sed 's/^/| /' conftest.$ac_ext >&5
6286
6287  # Passes both tests.
6288ac_preproc_ok=:
6289break
6290fi
6291
6292rm -f conftest.err conftest.$ac_ext
6293
6294done
6295# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6296rm -f conftest.err conftest.$ac_ext
6297if $ac_preproc_ok; then
6298  :
6299else
6300  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6301See \`config.log' for more details." >&5
6302echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6303See \`config.log' for more details." >&2;}
6304   { (exit 1); exit 1; }; }
6305fi
6306
6307ac_ext=cpp
6308ac_cpp='$CXXCPP $CPPFLAGS'
6309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6312
6313fi
6314
6315
6316ac_ext=f
6317ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6318ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6319ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6320if test -n "$ac_tool_prefix"; then
6321  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6322  do
6323    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6324set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6325{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6327if test "${ac_cv_prog_F77+set}" = set; then
6328  echo $ECHO_N "(cached) $ECHO_C" >&6
6329else
6330  if test -n "$F77"; then
6331  ac_cv_prog_F77="$F77" # Let the user override the test.
6332else
6333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334for as_dir in $PATH
6335do
6336  IFS=$as_save_IFS
6337  test -z "$as_dir" && as_dir=.
6338  for ac_exec_ext in '' $ac_executable_extensions; do
6339  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6340    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6341    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342    break 2
6343  fi
6344done
6345done
6346IFS=$as_save_IFS
6347
6348fi
6349fi
6350F77=$ac_cv_prog_F77
6351if test -n "$F77"; then
6352  { echo "$as_me:$LINENO: result: $F77" >&5
6353echo "${ECHO_T}$F77" >&6; }
6354else
6355  { echo "$as_me:$LINENO: result: no" >&5
6356echo "${ECHO_T}no" >&6; }
6357fi
6358
6359
6360    test -n "$F77" && break
6361  done
6362fi
6363if test -z "$F77"; then
6364  ac_ct_F77=$F77
6365  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6366do
6367  # Extract the first word of "$ac_prog", so it can be a program name with args.
6368set dummy $ac_prog; ac_word=$2
6369{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6371if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6372  echo $ECHO_N "(cached) $ECHO_C" >&6
6373else
6374  if test -n "$ac_ct_F77"; then
6375  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6376else
6377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378for as_dir in $PATH
6379do
6380  IFS=$as_save_IFS
6381  test -z "$as_dir" && as_dir=.
6382  for ac_exec_ext in '' $ac_executable_extensions; do
6383  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6384    ac_cv_prog_ac_ct_F77="$ac_prog"
6385    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6386    break 2
6387  fi
6388done
6389done
6390IFS=$as_save_IFS
6391
6392fi
6393fi
6394ac_ct_F77=$ac_cv_prog_ac_ct_F77
6395if test -n "$ac_ct_F77"; then
6396  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6397echo "${ECHO_T}$ac_ct_F77" >&6; }
6398else
6399  { echo "$as_me:$LINENO: result: no" >&5
6400echo "${ECHO_T}no" >&6; }
6401fi
6402
6403
6404  test -n "$ac_ct_F77" && break
6405done
6406
6407  if test "x$ac_ct_F77" = x; then
6408    F77=""
6409  else
6410    case $cross_compiling:$ac_tool_warned in
6411yes:)
6412{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6413whose name does not start with the host triplet.  If you think this
6414configuration is useful to you, please write to autoconf@gnu.org." >&5
6415echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6416whose name does not start with the host triplet.  If you think this
6417configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6418ac_tool_warned=yes ;;
6419esac
6420    F77=$ac_ct_F77
6421  fi
6422fi
6423
6424
6425# Provide some information about the compiler.
6426echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6427ac_compiler=`set X $ac_compile; echo $2`
6428{ (ac_try="$ac_compiler --version >&5"
6429case "(($ac_try" in
6430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431  *) ac_try_echo=$ac_try;;
6432esac
6433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434  (eval "$ac_compiler --version >&5") 2>&5
6435  ac_status=$?
6436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437  (exit $ac_status); }
6438{ (ac_try="$ac_compiler -v >&5"
6439case "(($ac_try" in
6440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441  *) ac_try_echo=$ac_try;;
6442esac
6443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6444  (eval "$ac_compiler -v >&5") 2>&5
6445  ac_status=$?
6446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447  (exit $ac_status); }
6448{ (ac_try="$ac_compiler -V >&5"
6449case "(($ac_try" in
6450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451  *) ac_try_echo=$ac_try;;
6452esac
6453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6454  (eval "$ac_compiler -V >&5") 2>&5
6455  ac_status=$?
6456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457  (exit $ac_status); }
6458rm -f a.out
6459
6460# If we don't use `.F' as extension, the preprocessor is not run on the
6461# input file.  (Note that this only needs to work for GNU compilers.)
6462ac_save_ext=$ac_ext
6463ac_ext=F
6464{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6465echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6466if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6467  echo $ECHO_N "(cached) $ECHO_C" >&6
6468else
6469  cat >conftest.$ac_ext <<_ACEOF
6470      program main
6471#ifndef __GNUC__
6472       choke me
6473#endif
6474
6475      end
6476_ACEOF
6477rm -f conftest.$ac_objext
6478if { (ac_try="$ac_compile"
6479case "(($ac_try" in
6480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481  *) ac_try_echo=$ac_try;;
6482esac
6483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6484  (eval "$ac_compile") 2>conftest.er1
6485  ac_status=$?
6486  grep -v '^ *+' conftest.er1 >conftest.err
6487  rm -f conftest.er1
6488  cat conftest.err >&5
6489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490  (exit $ac_status); } && {
6491         test -z "$ac_f77_werror_flag" ||
6492         test ! -s conftest.err
6493       } && test -s conftest.$ac_objext; then
6494  ac_compiler_gnu=yes
6495else
6496  echo "$as_me: failed program was:" >&5
6497sed 's/^/| /' conftest.$ac_ext >&5
6498
6499        ac_compiler_gnu=no
6500fi
6501
6502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6503ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6504
6505fi
6506{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6507echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6508ac_ext=$ac_save_ext
6509ac_test_FFLAGS=${FFLAGS+set}
6510ac_save_FFLAGS=$FFLAGS
6511FFLAGS=
6512{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6513echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6514if test "${ac_cv_prog_f77_g+set}" = set; then
6515  echo $ECHO_N "(cached) $ECHO_C" >&6
6516else
6517  FFLAGS=-g
6518cat >conftest.$ac_ext <<_ACEOF
6519      program main
6520
6521      end
6522_ACEOF
6523rm -f conftest.$ac_objext
6524if { (ac_try="$ac_compile"
6525case "(($ac_try" in
6526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527  *) ac_try_echo=$ac_try;;
6528esac
6529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530  (eval "$ac_compile") 2>conftest.er1
6531  ac_status=$?
6532  grep -v '^ *+' conftest.er1 >conftest.err
6533  rm -f conftest.er1
6534  cat conftest.err >&5
6535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536  (exit $ac_status); } && {
6537         test -z "$ac_f77_werror_flag" ||
6538         test ! -s conftest.err
6539       } && test -s conftest.$ac_objext; then
6540  ac_cv_prog_f77_g=yes
6541else
6542  echo "$as_me: failed program was:" >&5
6543sed 's/^/| /' conftest.$ac_ext >&5
6544
6545        ac_cv_prog_f77_g=no
6546fi
6547
6548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549
6550fi
6551{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6552echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6553if test "$ac_test_FFLAGS" = set; then
6554  FFLAGS=$ac_save_FFLAGS
6555elif test $ac_cv_prog_f77_g = yes; then
6556  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6557    FFLAGS="-g -O2"
6558  else
6559    FFLAGS="-g"
6560  fi
6561else
6562  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6563    FFLAGS="-O2"
6564  else
6565    FFLAGS=
6566  fi
6567fi
6568
6569G77=`test $ac_compiler_gnu = yes && echo yes`
6570ac_ext=c
6571ac_cpp='$CPP $CPPFLAGS'
6572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6574ac_compiler_gnu=$ac_cv_c_compiler_gnu
6575
6576
6577
6578# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6579# find the maximum length of command line arguments
6580{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6581echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6582if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6583  echo $ECHO_N "(cached) $ECHO_C" >&6
6584else
6585    i=0
6586  teststring="ABCD"
6587
6588  case $build_os in
6589  msdosdjgpp*)
6590    # On DJGPP, this test can blow up pretty badly due to problems in libc
6591    # (any single argument exceeding 2000 bytes causes a buffer overrun
6592    # during glob expansion).  Even if it were fixed, the result of this
6593    # check would be larger than it should be.
6594    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6595    ;;
6596
6597  gnu*)
6598    # Under GNU Hurd, this test is not required because there is
6599    # no limit to the length of command line arguments.
6600    # Libtool will interpret -1 as no limit whatsoever
6601    lt_cv_sys_max_cmd_len=-1;
6602    ;;
6603
6604  cygwin* | mingw*)
6605    # On Win9x/ME, this test blows up -- it succeeds, but takes
6606    # about 5 minutes as the teststring grows exponentially.
6607    # Worse, since 9x/ME are not pre-emptively multitasking,
6608    # you end up with a "frozen" computer, even though with patience
6609    # the test eventually succeeds (with a max line length of 256k).
6610    # Instead, let's just punt: use the minimum linelength reported by
6611    # all of the supported platforms: 8192 (on NT/2K/XP).
6612    lt_cv_sys_max_cmd_len=8192;
6613    ;;
6614
6615  amigaos*)
6616    # On AmigaOS with pdksh, this test takes hours, literally.
6617    # So we just punt and use a minimum line length of 8192.
6618    lt_cv_sys_max_cmd_len=8192;
6619    ;;
6620
6621  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6622    # This has been around since 386BSD, at least.  Likely further.
6623    if test -x /sbin/sysctl; then
6624      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6625    elif test -x /usr/sbin/sysctl; then
6626      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6627    else
6628      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6629    fi
6630    # And add a safety zone
6631    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6632    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6633    ;;
6634
6635  interix*)
6636    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6637    lt_cv_sys_max_cmd_len=196608
6638    ;;
6639
6640  osf*)
6641    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6642    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6643    # nice to cause kernel panics so lets avoid the loop below.
6644    # First set a reasonable default.
6645    lt_cv_sys_max_cmd_len=16384
6646    #
6647    if test -x /sbin/sysconfig; then
6648      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6649        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6650      esac
6651    fi
6652    ;;
6653  sco3.2v5*)
6654    lt_cv_sys_max_cmd_len=102400
6655    ;;
6656  sysv5* | sco5v6* | sysv4.2uw2*)
6657    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6658    if test -n "$kargmax"; then
6659      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6660    else
6661      lt_cv_sys_max_cmd_len=32768
6662    fi
6663    ;;
6664  *)
6665    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6666    if test -n "$lt_cv_sys_max_cmd_len"; then
6667      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6668      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6669    else
6670      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6671      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6672               = "XX$teststring") >/dev/null 2>&1 &&
6673              new_result=`expr "X$teststring" : ".*" 2>&1` &&
6674              lt_cv_sys_max_cmd_len=$new_result &&
6675              test $i != 17 # 1/2 MB should be enough
6676      do
6677        i=`expr $i + 1`
6678        teststring=$teststring$teststring
6679      done
6680      teststring=
6681      # Add a significant safety factor because C++ compilers can tack on massive
6682      # amounts of additional arguments before passing them to the linker.
6683      # It appears as though 1/2 is a usable value.
6684      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6685    fi
6686    ;;
6687  esac
6688
6689fi
6690
6691if test -n $lt_cv_sys_max_cmd_len ; then
6692  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6693echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6694else
6695  { echo "$as_me:$LINENO: result: none" >&5
6696echo "${ECHO_T}none" >&6; }
6697fi
6698
6699
6700
6701
6702
6703# Check for command to grab the raw symbol name followed by C symbol from nm.
6704{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6705echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6706if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6707  echo $ECHO_N "(cached) $ECHO_C" >&6
6708else
6709
6710# These are sane defaults that work on at least a few old systems.
6711# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6712
6713# Character class describing NM global symbol codes.
6714symcode='[BCDEGRST]'
6715
6716# Regexp to match symbols that can be accessed directly from C.
6717sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6718
6719# Transform an extracted symbol line into a proper C declaration
6720lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6721
6722# Transform an extracted symbol line into symbol name and symbol address
6723lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6724
6725# Define system-specific variables.
6726case $host_os in
6727aix*)
6728  symcode='[BCDT]'
6729  ;;
6730cygwin* | mingw* | pw32*)
6731  symcode='[ABCDGISTW]'
6732  ;;
6733hpux*) # Its linker distinguishes data from code symbols
6734  if test "$host_cpu" = ia64; then
6735    symcode='[ABCDEGRST]'
6736  fi
6737  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6738  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6739  ;;
6740linux* | k*bsd*-gnu)
6741  if test "$host_cpu" = ia64; then
6742    symcode='[ABCDGIRSTW]'
6743    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6744    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6745  fi
6746  ;;
6747irix* | nonstopux*)
6748  symcode='[BCDEGRST]'
6749  ;;
6750osf*)
6751  symcode='[BCDEGQRST]'
6752  ;;
6753solaris*)
6754  symcode='[BDRT]'
6755  ;;
6756sco3.2v5*)
6757  symcode='[DT]'
6758  ;;
6759sysv4.2uw2*)
6760  symcode='[DT]'
6761  ;;
6762sysv5* | sco5v6* | unixware* | OpenUNIX*)
6763  symcode='[ABDT]'
6764  ;;
6765sysv4)
6766  symcode='[DFNSTU]'
6767  ;;
6768esac
6769
6770# Handle CRLF in mingw tool chain
6771opt_cr=
6772case $build_os in
6773mingw*)
6774  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6775  ;;
6776esac
6777
6778# If we're using GNU nm, then use its standard symbol codes.
6779case `$NM -V 2>&1` in
6780*GNU* | *'with BFD'*)
6781  symcode='[ABCDGIRSTW]' ;;
6782esac
6783
6784# Try without a prefix undercore, then with it.
6785for ac_symprfx in "" "_"; do
6786
6787  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6788  symxfrm="\\1 $ac_symprfx\\2 \\2"
6789
6790  # Write the raw and C identifiers.
6791  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6792
6793  # Check to see that the pipe works correctly.
6794  pipe_works=no
6795
6796  rm -f conftest*
6797  cat > conftest.$ac_ext <<EOF
6798#ifdef __cplusplus
6799extern "C" {
6800#endif
6801char nm_test_var;
6802void nm_test_func(){}
6803#ifdef __cplusplus
6804}
6805#endif
6806int main(){nm_test_var='a';nm_test_func();return(0);}
6807EOF
6808
6809  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6810  (eval $ac_compile) 2>&5
6811  ac_status=$?
6812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813  (exit $ac_status); }; then
6814    # Now try to grab the symbols.
6815    nlist=conftest.nm
6816    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6817  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6818  ac_status=$?
6819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820  (exit $ac_status); } && test -s "$nlist"; then
6821      # Try sorting and uniquifying the output.
6822      if sort "$nlist" | uniq > "$nlist"T; then
6823        mv -f "$nlist"T "$nlist"
6824      else
6825        rm -f "$nlist"T
6826      fi
6827
6828      # Make sure that we snagged all the symbols we need.
6829      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6830        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6831          cat <<EOF > conftest.$ac_ext
6832#ifdef __cplusplus
6833extern "C" {
6834#endif
6835
6836EOF
6837          # Now generate the symbol file.
6838          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6839
6840          cat <<EOF >> conftest.$ac_ext
6841#if defined (__STDC__) && __STDC__
6842# define lt_ptr_t void *
6843#else
6844# define lt_ptr_t char *
6845# define const
6846#endif
6847
6848/* The mapping between symbol names and symbols. */
6849const struct {
6850  const char *name;
6851  lt_ptr_t address;
6852}
6853lt_preloaded_symbols[] =
6854{
6855EOF
6856          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6857          cat <<\EOF >> conftest.$ac_ext
6858  {0, (lt_ptr_t) 0}
6859};
6860
6861#ifdef __cplusplus
6862}
6863#endif
6864EOF
6865          # Now try linking the two files.
6866          mv conftest.$ac_objext conftstm.$ac_objext
6867          lt_save_LIBS="$LIBS"
6868          lt_save_CFLAGS="$CFLAGS"
6869          LIBS="conftstm.$ac_objext"
6870          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6871          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6872  (eval $ac_link) 2>&5
6873  ac_status=$?
6874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6876            pipe_works=yes
6877          fi
6878          LIBS="$lt_save_LIBS"
6879          CFLAGS="$lt_save_CFLAGS"
6880        else
6881          echo "cannot find nm_test_func in $nlist" >&5
6882        fi
6883      else
6884        echo "cannot find nm_test_var in $nlist" >&5
6885      fi
6886    else
6887      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6888    fi
6889  else
6890    echo "$progname: failed program was:" >&5
6891    cat conftest.$ac_ext >&5
6892  fi
6893  rm -rf conftest* conftst*
6894
6895  # Do not use the global_symbol_pipe unless it works.
6896  if test "$pipe_works" = yes; then
6897    break
6898  else
6899    lt_cv_sys_global_symbol_pipe=
6900  fi
6901done
6902
6903fi
6904
6905if test -z "$lt_cv_sys_global_symbol_pipe"; then
6906  lt_cv_sys_global_symbol_to_cdecl=
6907fi
6908if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6909  { echo "$as_me:$LINENO: result: failed" >&5
6910echo "${ECHO_T}failed" >&6; }
6911else
6912  { echo "$as_me:$LINENO: result: ok" >&5
6913echo "${ECHO_T}ok" >&6; }
6914fi
6915
6916{ echo "$as_me:$LINENO: checking for objdir" >&5
6917echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6918if test "${lt_cv_objdir+set}" = set; then
6919  echo $ECHO_N "(cached) $ECHO_C" >&6
6920else
6921  rm -f .libs 2>/dev/null
6922mkdir .libs 2>/dev/null
6923if test -d .libs; then
6924  lt_cv_objdir=.libs
6925else
6926  # MS-DOS does not allow filenames that begin with a dot.
6927  lt_cv_objdir=_libs
6928fi
6929rmdir .libs 2>/dev/null
6930fi
6931{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6932echo "${ECHO_T}$lt_cv_objdir" >&6; }
6933objdir=$lt_cv_objdir
6934
6935
6936
6937
6938
6939case $host_os in
6940aix3*)
6941  # AIX sometimes has problems with the GCC collect2 program.  For some
6942  # reason, if we set the COLLECT_NAMES environment variable, the problems
6943  # vanish in a puff of smoke.
6944  if test "X${COLLECT_NAMES+set}" != Xset; then
6945    COLLECT_NAMES=
6946    export COLLECT_NAMES
6947  fi
6948  ;;
6949esac
6950
6951# Sed substitution that helps us do robust quoting.  It backslashifies
6952# metacharacters that are still active within double-quoted strings.
6953Xsed='sed -e 1s/^X//'
6954sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6955
6956# Same as above, but do not quote variable references.
6957double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6958
6959# Sed substitution to delay expansion of an escaped shell variable in a
6960# double_quote_subst'ed string.
6961delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6962
6963# Sed substitution to avoid accidental globbing in evaled expressions
6964no_glob_subst='s/\*/\\\*/g'
6965
6966# Constants:
6967rm="rm -f"
6968
6969# Global variables:
6970default_ofile=libtool
6971can_build_shared=yes
6972
6973# All known linkers require a `.a' archive for static linking (except MSVC,
6974# which needs '.lib').
6975libext=a
6976ltmain="$ac_aux_dir/ltmain.sh"
6977ofile="$default_ofile"
6978with_gnu_ld="$lt_cv_prog_gnu_ld"
6979
6980if test -n "$ac_tool_prefix"; then
6981  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6982set dummy ${ac_tool_prefix}ar; ac_word=$2
6983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6985if test "${ac_cv_prog_AR+set}" = set; then
6986  echo $ECHO_N "(cached) $ECHO_C" >&6
6987else
6988  if test -n "$AR"; then
6989  ac_cv_prog_AR="$AR" # Let the user override the test.
6990else
6991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992for as_dir in $PATH
6993do
6994  IFS=$as_save_IFS
6995  test -z "$as_dir" && as_dir=.
6996  for ac_exec_ext in '' $ac_executable_extensions; do
6997  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6998    ac_cv_prog_AR="${ac_tool_prefix}ar"
6999    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7000    break 2
7001  fi
7002done
7003done
7004IFS=$as_save_IFS
7005
7006fi
7007fi
7008AR=$ac_cv_prog_AR
7009if test -n "$AR"; then
7010  { echo "$as_me:$LINENO: result: $AR" >&5
7011echo "${ECHO_T}$AR" >&6; }
7012else
7013  { echo "$as_me:$LINENO: result: no" >&5
7014echo "${ECHO_T}no" >&6; }
7015fi
7016
7017
7018fi
7019if test -z "$ac_cv_prog_AR"; then
7020  ac_ct_AR=$AR
7021  # Extract the first word of "ar", so it can be a program name with args.
7022set dummy ar; ac_word=$2
7023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7025if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7026  echo $ECHO_N "(cached) $ECHO_C" >&6
7027else
7028  if test -n "$ac_ct_AR"; then
7029  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7030else
7031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032for as_dir in $PATH
7033do
7034  IFS=$as_save_IFS
7035  test -z "$as_dir" && as_dir=.
7036  for ac_exec_ext in '' $ac_executable_extensions; do
7037  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7038    ac_cv_prog_ac_ct_AR="ar"
7039    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7040    break 2
7041  fi
7042done
7043done
7044IFS=$as_save_IFS
7045
7046fi
7047fi
7048ac_ct_AR=$ac_cv_prog_ac_ct_AR
7049if test -n "$ac_ct_AR"; then
7050  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7051echo "${ECHO_T}$ac_ct_AR" >&6; }
7052else
7053  { echo "$as_me:$LINENO: result: no" >&5
7054echo "${ECHO_T}no" >&6; }
7055fi
7056
7057  if test "x$ac_ct_AR" = x; then
7058    AR="false"
7059  else
7060    case $cross_compiling:$ac_tool_warned in
7061yes:)
7062{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7063whose name does not start with the host triplet.  If you think this
7064configuration is useful to you, please write to autoconf@gnu.org." >&5
7065echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7066whose name does not start with the host triplet.  If you think this
7067configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7068ac_tool_warned=yes ;;
7069esac
7070    AR=$ac_ct_AR
7071  fi
7072else
7073  AR="$ac_cv_prog_AR"
7074fi
7075
7076if test -n "$ac_tool_prefix"; then
7077  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7078set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7079{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081if test "${ac_cv_prog_RANLIB+set}" = set; then
7082  echo $ECHO_N "(cached) $ECHO_C" >&6
7083else
7084  if test -n "$RANLIB"; then
7085  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7086else
7087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088for as_dir in $PATH
7089do
7090  IFS=$as_save_IFS
7091  test -z "$as_dir" && as_dir=.
7092  for ac_exec_ext in '' $ac_executable_extensions; do
7093  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7094    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7095    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096    break 2
7097  fi
7098done
7099done
7100IFS=$as_save_IFS
7101
7102fi
7103fi
7104RANLIB=$ac_cv_prog_RANLIB
7105if test -n "$RANLIB"; then
7106  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7107echo "${ECHO_T}$RANLIB" >&6; }
7108else
7109  { echo "$as_me:$LINENO: result: no" >&5
7110echo "${ECHO_T}no" >&6; }
7111fi
7112
7113
7114fi
7115if test -z "$ac_cv_prog_RANLIB"; then
7116  ac_ct_RANLIB=$RANLIB
7117  # Extract the first word of "ranlib", so it can be a program name with args.
7118set dummy ranlib; ac_word=$2
7119{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7122  echo $ECHO_N "(cached) $ECHO_C" >&6
7123else
7124  if test -n "$ac_ct_RANLIB"; then
7125  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7126else
7127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128for as_dir in $PATH
7129do
7130  IFS=$as_save_IFS
7131  test -z "$as_dir" && as_dir=.
7132  for ac_exec_ext in '' $ac_executable_extensions; do
7133  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134    ac_cv_prog_ac_ct_RANLIB="ranlib"
7135    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136    break 2
7137  fi
7138done
7139done
7140IFS=$as_save_IFS
7141
7142fi
7143fi
7144ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7145if test -n "$ac_ct_RANLIB"; then
7146  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7147echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7148else
7149  { echo "$as_me:$LINENO: result: no" >&5
7150echo "${ECHO_T}no" >&6; }
7151fi
7152
7153  if test "x$ac_ct_RANLIB" = x; then
7154    RANLIB=":"
7155  else
7156    case $cross_compiling:$ac_tool_warned in
7157yes:)
7158{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7159whose name does not start with the host triplet.  If you think this
7160configuration is useful to you, please write to autoconf@gnu.org." >&5
7161echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7162whose name does not start with the host triplet.  If you think this
7163configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7164ac_tool_warned=yes ;;
7165esac
7166    RANLIB=$ac_ct_RANLIB
7167  fi
7168else
7169  RANLIB="$ac_cv_prog_RANLIB"
7170fi
7171
7172if test -n "$ac_tool_prefix"; then
7173  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7174set dummy ${ac_tool_prefix}strip; ac_word=$2
7175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7177if test "${ac_cv_prog_STRIP+set}" = set; then
7178  echo $ECHO_N "(cached) $ECHO_C" >&6
7179else
7180  if test -n "$STRIP"; then
7181  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7182else
7183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184for as_dir in $PATH
7185do
7186  IFS=$as_save_IFS
7187  test -z "$as_dir" && as_dir=.
7188  for ac_exec_ext in '' $ac_executable_extensions; do
7189  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7190    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7191    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192    break 2
7193  fi
7194done
7195done
7196IFS=$as_save_IFS
7197
7198fi
7199fi
7200STRIP=$ac_cv_prog_STRIP
7201if test -n "$STRIP"; then
7202  { echo "$as_me:$LINENO: result: $STRIP" >&5
7203echo "${ECHO_T}$STRIP" >&6; }
7204else
7205  { echo "$as_me:$LINENO: result: no" >&5
7206echo "${ECHO_T}no" >&6; }
7207fi
7208
7209
7210fi
7211if test -z "$ac_cv_prog_STRIP"; then
7212  ac_ct_STRIP=$STRIP
7213  # Extract the first word of "strip", so it can be a program name with args.
7214set dummy strip; ac_word=$2
7215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7217if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7218  echo $ECHO_N "(cached) $ECHO_C" >&6
7219else
7220  if test -n "$ac_ct_STRIP"; then
7221  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7222else
7223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224for as_dir in $PATH
7225do
7226  IFS=$as_save_IFS
7227  test -z "$as_dir" && as_dir=.
7228  for ac_exec_ext in '' $ac_executable_extensions; do
7229  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7230    ac_cv_prog_ac_ct_STRIP="strip"
7231    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232    break 2
7233  fi
7234done
7235done
7236IFS=$as_save_IFS
7237
7238fi
7239fi
7240ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7241if test -n "$ac_ct_STRIP"; then
7242  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7243echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7244else
7245  { echo "$as_me:$LINENO: result: no" >&5
7246echo "${ECHO_T}no" >&6; }
7247fi
7248
7249  if test "x$ac_ct_STRIP" = x; then
7250    STRIP=":"
7251  else
7252    case $cross_compiling:$ac_tool_warned in
7253yes:)
7254{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7255whose name does not start with the host triplet.  If you think this
7256configuration is useful to you, please write to autoconf@gnu.org." >&5
7257echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7258whose name does not start with the host triplet.  If you think this
7259configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7260ac_tool_warned=yes ;;
7261esac
7262    STRIP=$ac_ct_STRIP
7263  fi
7264else
7265  STRIP="$ac_cv_prog_STRIP"
7266fi
7267
7268
7269old_CC="$CC"
7270old_CFLAGS="$CFLAGS"
7271
7272# Set sane defaults for various variables
7273test -z "$AR" && AR=ar
7274test -z "$AR_FLAGS" && AR_FLAGS=cru
7275test -z "$AS" && AS=as
7276test -z "$CC" && CC=cc
7277test -z "$LTCC" && LTCC=$CC
7278test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7279test -z "$DLLTOOL" && DLLTOOL=dlltool
7280test -z "$LD" && LD=ld
7281test -z "$LN_S" && LN_S="ln -s"
7282test -z "$MAGIC_CMD" && MAGIC_CMD=file
7283test -z "$NM" && NM=nm
7284test -z "$SED" && SED=sed
7285test -z "$OBJDUMP" && OBJDUMP=objdump
7286test -z "$RANLIB" && RANLIB=:
7287test -z "$STRIP" && STRIP=:
7288test -z "$ac_objext" && ac_objext=o
7289
7290# Determine commands to create old-style static archives.
7291old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7292old_postinstall_cmds='chmod 644 $oldlib'
7293old_postuninstall_cmds=
7294
7295if test -n "$RANLIB"; then
7296  case $host_os in
7297  openbsd*)
7298    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7299    ;;
7300  *)
7301    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7302    ;;
7303  esac
7304  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7305fi
7306
7307for cc_temp in $compiler""; do
7308  case $cc_temp in
7309    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7310    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7311    \-*) ;;
7312    *) break;;
7313  esac
7314done
7315cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7316
7317
7318# Only perform the check for file, if the check method requires it
7319case $deplibs_check_method in
7320file_magic*)
7321  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7322    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7323echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7324if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7325  echo $ECHO_N "(cached) $ECHO_C" >&6
7326else
7327  case $MAGIC_CMD in
7328[\\/*] |  ?:[\\/]*)
7329  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7330  ;;
7331*)
7332  lt_save_MAGIC_CMD="$MAGIC_CMD"
7333  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7334  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7335  for ac_dir in $ac_dummy; do
7336    IFS="$lt_save_ifs"
7337    test -z "$ac_dir" && ac_dir=.
7338    if test -f $ac_dir/${ac_tool_prefix}file; then
7339      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7340      if test -n "$file_magic_test_file"; then
7341        case $deplibs_check_method in
7342        "file_magic "*)
7343          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7344          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7345          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7346            $EGREP "$file_magic_regex" > /dev/null; then
7347            :
7348          else
7349            cat <<EOF 1>&2
7350
7351*** Warning: the command libtool uses to detect shared libraries,
7352*** $file_magic_cmd, produces output that libtool cannot recognize.
7353*** The result is that libtool may fail to recognize shared libraries
7354*** as such.  This will affect the creation of libtool libraries that
7355*** depend on shared libraries, but programs linked with such libtool
7356*** libraries will work regardless of this problem.  Nevertheless, you
7357*** may want to report the problem to your system manager and/or to
7358*** bug-libtool@gnu.org
7359
7360EOF
7361          fi ;;
7362        esac
7363      fi
7364      break
7365    fi
7366  done
7367  IFS="$lt_save_ifs"
7368  MAGIC_CMD="$lt_save_MAGIC_CMD"
7369  ;;
7370esac
7371fi
7372
7373MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7374if test -n "$MAGIC_CMD"; then
7375  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7376echo "${ECHO_T}$MAGIC_CMD" >&6; }
7377else
7378  { echo "$as_me:$LINENO: result: no" >&5
7379echo "${ECHO_T}no" >&6; }
7380fi
7381
7382if test -z "$lt_cv_path_MAGIC_CMD"; then
7383  if test -n "$ac_tool_prefix"; then
7384    { echo "$as_me:$LINENO: checking for file" >&5
7385echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7386if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7387  echo $ECHO_N "(cached) $ECHO_C" >&6
7388else
7389  case $MAGIC_CMD in
7390[\\/*] |  ?:[\\/]*)
7391  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7392  ;;
7393*)
7394  lt_save_MAGIC_CMD="$MAGIC_CMD"
7395  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7396  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7397  for ac_dir in $ac_dummy; do
7398    IFS="$lt_save_ifs"
7399    test -z "$ac_dir" && ac_dir=.
7400    if test -f $ac_dir/file; then
7401      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7402      if test -n "$file_magic_test_file"; then
7403        case $deplibs_check_method in
7404        "file_magic "*)
7405          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7406          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7407          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7408            $EGREP "$file_magic_regex" > /dev/null; then
7409            :
7410          else
7411            cat <<EOF 1>&2
7412
7413*** Warning: the command libtool uses to detect shared libraries,
7414*** $file_magic_cmd, produces output that libtool cannot recognize.
7415*** The result is that libtool may fail to recognize shared libraries
7416*** as such.  This will affect the creation of libtool libraries that
7417*** depend on shared libraries, but programs linked with such libtool
7418*** libraries will work regardless of this problem.  Nevertheless, you
7419*** may want to report the problem to your system manager and/or to
7420*** bug-libtool@gnu.org
7421
7422EOF
7423          fi ;;
7424        esac
7425      fi
7426      break
7427    fi
7428  done
7429  IFS="$lt_save_ifs"
7430  MAGIC_CMD="$lt_save_MAGIC_CMD"
7431  ;;
7432esac
7433fi
7434
7435MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7436if test -n "$MAGIC_CMD"; then
7437  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7438echo "${ECHO_T}$MAGIC_CMD" >&6; }
7439else
7440  { echo "$as_me:$LINENO: result: no" >&5
7441echo "${ECHO_T}no" >&6; }
7442fi
7443
7444  else
7445    MAGIC_CMD=:
7446  fi
7447fi
7448
7449  fi
7450  ;;
7451esac
7452
7453
7454  case $host_os in
7455    rhapsody* | darwin*)
7456    if test -n "$ac_tool_prefix"; then
7457  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7458set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7459{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7461if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7462  echo $ECHO_N "(cached) $ECHO_C" >&6
7463else
7464  if test -n "$DSYMUTIL"; then
7465  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7466else
7467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468for as_dir in $PATH
7469do
7470  IFS=$as_save_IFS
7471  test -z "$as_dir" && as_dir=.
7472  for ac_exec_ext in '' $ac_executable_extensions; do
7473  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7474    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7475    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476    break 2
7477  fi
7478done
7479done
7480IFS=$as_save_IFS
7481
7482fi
7483fi
7484DSYMUTIL=$ac_cv_prog_DSYMUTIL
7485if test -n "$DSYMUTIL"; then
7486  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7487echo "${ECHO_T}$DSYMUTIL" >&6; }
7488else
7489  { echo "$as_me:$LINENO: result: no" >&5
7490echo "${ECHO_T}no" >&6; }
7491fi
7492
7493
7494fi
7495if test -z "$ac_cv_prog_DSYMUTIL"; then
7496  ac_ct_DSYMUTIL=$DSYMUTIL
7497  # Extract the first word of "dsymutil", so it can be a program name with args.
7498set dummy dsymutil; ac_word=$2
7499{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7501if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7502  echo $ECHO_N "(cached) $ECHO_C" >&6
7503else
7504  if test -n "$ac_ct_DSYMUTIL"; then
7505  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7506else
7507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508for as_dir in $PATH
7509do
7510  IFS=$as_save_IFS
7511  test -z "$as_dir" && as_dir=.
7512  for ac_exec_ext in '' $ac_executable_extensions; do
7513  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7514    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7515    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516    break 2
7517  fi
7518done
7519done
7520IFS=$as_save_IFS
7521
7522fi
7523fi
7524ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7525if test -n "$ac_ct_DSYMUTIL"; then
7526  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7527echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7528else
7529  { echo "$as_me:$LINENO: result: no" >&5
7530echo "${ECHO_T}no" >&6; }
7531fi
7532
7533  if test "x$ac_ct_DSYMUTIL" = x; then
7534    DSYMUTIL=":"
7535  else
7536    case $cross_compiling:$ac_tool_warned in
7537yes:)
7538{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7539whose name does not start with the host triplet.  If you think this
7540configuration is useful to you, please write to autoconf@gnu.org." >&5
7541echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7542whose name does not start with the host triplet.  If you think this
7543configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7544ac_tool_warned=yes ;;
7545esac
7546    DSYMUTIL=$ac_ct_DSYMUTIL
7547  fi
7548else
7549  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7550fi
7551
7552    if test -n "$ac_tool_prefix"; then
7553  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7554set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7555{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7557if test "${ac_cv_prog_NMEDIT+set}" = set; then
7558  echo $ECHO_N "(cached) $ECHO_C" >&6
7559else
7560  if test -n "$NMEDIT"; then
7561  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7562else
7563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564for as_dir in $PATH
7565do
7566  IFS=$as_save_IFS
7567  test -z "$as_dir" && as_dir=.
7568  for ac_exec_ext in '' $ac_executable_extensions; do
7569  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7570    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7571    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572    break 2
7573  fi
7574done
7575done
7576IFS=$as_save_IFS
7577
7578fi
7579fi
7580NMEDIT=$ac_cv_prog_NMEDIT
7581if test -n "$NMEDIT"; then
7582  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7583echo "${ECHO_T}$NMEDIT" >&6; }
7584else
7585  { echo "$as_me:$LINENO: result: no" >&5
7586echo "${ECHO_T}no" >&6; }
7587fi
7588
7589
7590fi
7591if test -z "$ac_cv_prog_NMEDIT"; then
7592  ac_ct_NMEDIT=$NMEDIT
7593  # Extract the first word of "nmedit", so it can be a program name with args.
7594set dummy nmedit; ac_word=$2
7595{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7597if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7598  echo $ECHO_N "(cached) $ECHO_C" >&6
7599else
7600  if test -n "$ac_ct_NMEDIT"; then
7601  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7602else
7603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604for as_dir in $PATH
7605do
7606  IFS=$as_save_IFS
7607  test -z "$as_dir" && as_dir=.
7608  for ac_exec_ext in '' $ac_executable_extensions; do
7609  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7611    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612    break 2
7613  fi
7614done
7615done
7616IFS=$as_save_IFS
7617
7618fi
7619fi
7620ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7621if test -n "$ac_ct_NMEDIT"; then
7622  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7623echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7624else
7625  { echo "$as_me:$LINENO: result: no" >&5
7626echo "${ECHO_T}no" >&6; }
7627fi
7628
7629  if test "x$ac_ct_NMEDIT" = x; then
7630    NMEDIT=":"
7631  else
7632    case $cross_compiling:$ac_tool_warned in
7633yes:)
7634{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7635whose name does not start with the host triplet.  If you think this
7636configuration is useful to you, please write to autoconf@gnu.org." >&5
7637echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7638whose name does not start with the host triplet.  If you think this
7639configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7640ac_tool_warned=yes ;;
7641esac
7642    NMEDIT=$ac_ct_NMEDIT
7643  fi
7644else
7645  NMEDIT="$ac_cv_prog_NMEDIT"
7646fi
7647
7648
7649    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7650echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7651if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7652  echo $ECHO_N "(cached) $ECHO_C" >&6
7653else
7654  lt_cv_apple_cc_single_mod=no
7655      if test -z "${LT_MULTI_MODULE}"; then
7656   # By default we will add the -single_module flag. You can override
7657   # by either setting the environment variable LT_MULTI_MODULE
7658   # non-empty at configure time, or by adding -multi_module to the
7659   # link flags.
7660   echo "int foo(void){return 1;}" > conftest.c
7661   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7662     -dynamiclib ${wl}-single_module conftest.c
7663   if test -f libconftest.dylib; then
7664     lt_cv_apple_cc_single_mod=yes
7665     rm -rf libconftest.dylib*
7666   fi
7667   rm conftest.c
7668      fi
7669fi
7670{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7671echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7672    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7673echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7674if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7675  echo $ECHO_N "(cached) $ECHO_C" >&6
7676else
7677  lt_cv_ld_exported_symbols_list=no
7678      save_LDFLAGS=$LDFLAGS
7679      echo "_main" > conftest.sym
7680      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7681      cat >conftest.$ac_ext <<_ACEOF
7682/* confdefs.h.  */
7683_ACEOF
7684cat confdefs.h >>conftest.$ac_ext
7685cat >>conftest.$ac_ext <<_ACEOF
7686/* end confdefs.h.  */
7687
7688int
7689main ()
7690{
7691
7692  ;
7693  return 0;
7694}
7695_ACEOF
7696rm -f conftest.$ac_objext conftest$ac_exeext
7697if { (ac_try="$ac_link"
7698case "(($ac_try" in
7699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700  *) ac_try_echo=$ac_try;;
7701esac
7702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703  (eval "$ac_link") 2>conftest.er1
7704  ac_status=$?
7705  grep -v '^ *+' conftest.er1 >conftest.err
7706  rm -f conftest.er1
7707  cat conftest.err >&5
7708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709  (exit $ac_status); } && {
7710         test -z "$ac_c_werror_flag" ||
7711         test ! -s conftest.err
7712       } && test -s conftest$ac_exeext &&
7713       $as_test_x conftest$ac_exeext; then
7714  lt_cv_ld_exported_symbols_list=yes
7715else
7716  echo "$as_me: failed program was:" >&5
7717sed 's/^/| /' conftest.$ac_ext >&5
7718
7719        lt_cv_ld_exported_symbols_list=no
7720fi
7721
7722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7723      conftest$ac_exeext conftest.$ac_ext
7724   LDFLAGS="$save_LDFLAGS"
7725
7726fi
7727{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7728echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7729    case $host_os in
7730    rhapsody* | darwin1.[0123])
7731      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7732    darwin1.*)
7733     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7734    darwin*)
7735      # if running on 10.5 or later, the deployment target defaults
7736      # to the OS version, if on x86, and 10.4, the deployment
7737      # target defaults to 10.4. Don't you love it?
7738      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7739   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7740     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7741   10.[012]*)
7742     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7743   10.*)
7744     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7745      esac
7746    ;;
7747  esac
7748    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7749      _lt_dar_single_mod='$single_module'
7750    fi
7751    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7752      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7753    else
7754      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7755    fi
7756    if test "$DSYMUTIL" != ":"; then
7757      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7758    else
7759      _lt_dsymutil=
7760    fi
7761    ;;
7762  esac
7763
7764
7765enable_dlopen=no
7766enable_win32_dll=yes
7767
7768# Check whether --enable-libtool-lock was given.
7769if test "${enable_libtool_lock+set}" = set; then
7770  enableval=$enable_libtool_lock;
7771fi
7772
7773test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7774
7775
7776# Check whether --with-pic was given.
7777if test "${with_pic+set}" = set; then
7778  withval=$with_pic; pic_mode="$withval"
7779else
7780  pic_mode=default
7781fi
7782
7783test -z "$pic_mode" && pic_mode=default
7784
7785# Use C for the default configuration in the libtool script
7786tagname=
7787lt_save_CC="$CC"
7788ac_ext=c
7789ac_cpp='$CPP $CPPFLAGS'
7790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7792ac_compiler_gnu=$ac_cv_c_compiler_gnu
7793
7794
7795# Source file extension for C test sources.
7796ac_ext=c
7797
7798# Object file extension for compiled C test sources.
7799objext=o
7800objext=$objext
7801
7802# Code to be used in simple compile tests
7803lt_simple_compile_test_code="int some_variable = 0;"
7804
7805# Code to be used in simple link tests
7806lt_simple_link_test_code='int main(){return(0);}'
7807
7808
7809# If no C compiler was specified, use CC.
7810LTCC=${LTCC-"$CC"}
7811
7812# If no C compiler flags were specified, use CFLAGS.
7813LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7814
7815# Allow CC to be a program name with arguments.
7816compiler=$CC
7817
7818
7819# save warnings/boilerplate of simple test code
7820ac_outfile=conftest.$ac_objext
7821echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7822eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7823_lt_compiler_boilerplate=`cat conftest.err`
7824$rm conftest*
7825
7826ac_outfile=conftest.$ac_objext
7827echo "$lt_simple_link_test_code" >conftest.$ac_ext
7828eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7829_lt_linker_boilerplate=`cat conftest.err`
7830$rm -r conftest*
7831
7832
7833
7834lt_prog_compiler_no_builtin_flag=
7835
7836if test "$GCC" = yes; then
7837  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7838
7839
7840{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7841echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7842if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7843  echo $ECHO_N "(cached) $ECHO_C" >&6
7844else
7845  lt_cv_prog_compiler_rtti_exceptions=no
7846  ac_outfile=conftest.$ac_objext
7847   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7848   lt_compiler_flag="-fno-rtti -fno-exceptions"
7849   # Insert the option either (1) after the last *FLAGS variable, or
7850   # (2) before a word containing "conftest.", or (3) at the end.
7851   # Note that $ac_compile itself does not contain backslashes and begins
7852   # with a dollar sign (not a hyphen), so the echo should work correctly.
7853   # The option is referenced via a variable to avoid confusing sed.
7854   lt_compile=`echo "$ac_compile" | $SED \
7855   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7856   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7857   -e 's:$: $lt_compiler_flag:'`
7858   (eval echo "\"\$as_me:7858: $lt_compile\"" >&5)
7859   (eval "$lt_compile" 2>conftest.err)
7860   ac_status=$?
7861   cat conftest.err >&5
7862   echo "$as_me:7862: \$? = $ac_status" >&5
7863   if (exit $ac_status) && test -s "$ac_outfile"; then
7864     # The compiler can only warn and ignore the option if not recognized
7865     # So say no if there are warnings other than the usual output.
7866     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7867     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7868     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7869       lt_cv_prog_compiler_rtti_exceptions=yes
7870     fi
7871   fi
7872   $rm conftest*
7873
7874fi
7875{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7876echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7877
7878if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7879    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7880else
7881    :
7882fi
7883
7884fi
7885
7886lt_prog_compiler_wl=
7887lt_prog_compiler_pic=
7888lt_prog_compiler_static=
7889
7890{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7891echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7892
7893  if test "$GCC" = yes; then
7894    lt_prog_compiler_wl='-Wl,'
7895    lt_prog_compiler_static='-static'
7896
7897    case $host_os in
7898      aix*)
7899      # All AIX code is PIC.
7900      if test "$host_cpu" = ia64; then
7901        # AIX 5 now supports IA64 processor
7902        lt_prog_compiler_static='-Bstatic'
7903      fi
7904      ;;
7905
7906    amigaos*)
7907      # FIXME: we need at least 68020 code to build shared libraries, but
7908      # adding the `-m68020' flag to GCC prevents building anything better,
7909      # like `-m68040'.
7910      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7911      ;;
7912
7913    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7914      # PIC is the default for these OSes.
7915      ;;
7916
7917    mingw* | cygwin* | pw32* | os2*)
7918      # This hack is so that the source file can tell whether it is being
7919      # built for inclusion in a dll (and should export symbols for example).
7920      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7921      # (--disable-auto-import) libraries
7922      lt_prog_compiler_pic='-DDLL_EXPORT'
7923      ;;
7924
7925    darwin* | rhapsody*)
7926      # PIC is the default on this platform
7927      # Common symbols not allowed in MH_DYLIB files
7928      lt_prog_compiler_pic='-fno-common'
7929      ;;
7930
7931    interix[3-9]*)
7932      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7933      # Instead, we relocate shared libraries at runtime.
7934      ;;
7935
7936    msdosdjgpp*)
7937      # Just because we use GCC doesn't mean we suddenly get shared libraries
7938      # on systems that don't support them.
7939      lt_prog_compiler_can_build_shared=no
7940      enable_shared=no
7941      ;;
7942
7943    sysv4*MP*)
7944      if test -d /usr/nec; then
7945        lt_prog_compiler_pic=-Kconform_pic
7946      fi
7947      ;;
7948
7949    hpux*)
7950      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7951      # not for PA HP-UX.
7952      case $host_cpu in
7953      hppa*64*|ia64*)
7954        # +Z the default
7955        ;;
7956      *)
7957        lt_prog_compiler_pic='-fPIC'
7958        ;;
7959      esac
7960      ;;
7961
7962    *)
7963      lt_prog_compiler_pic='-fPIC'
7964      ;;
7965    esac
7966  else
7967    # PORTME Check for flag to pass linker flags through the system compiler.
7968    case $host_os in
7969    aix*)
7970      lt_prog_compiler_wl='-Wl,'
7971      if test "$host_cpu" = ia64; then
7972        # AIX 5 now supports IA64 processor
7973        lt_prog_compiler_static='-Bstatic'
7974      else
7975        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7976      fi
7977      ;;
7978      darwin*)
7979        # PIC is the default on this platform
7980        # Common symbols not allowed in MH_DYLIB files
7981       case $cc_basename in
7982         xlc*)
7983         lt_prog_compiler_pic='-qnocommon'
7984         lt_prog_compiler_wl='-Wl,'
7985         ;;
7986       esac
7987       ;;
7988
7989    mingw* | cygwin* | pw32* | os2*)
7990      # This hack is so that the source file can tell whether it is being
7991      # built for inclusion in a dll (and should export symbols for example).
7992      lt_prog_compiler_pic='-DDLL_EXPORT'
7993      ;;
7994
7995    hpux9* | hpux10* | hpux11*)
7996      lt_prog_compiler_wl='-Wl,'
7997      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7998      # not for PA HP-UX.
7999      case $host_cpu in
8000      hppa*64*|ia64*)
8001        # +Z the default
8002        ;;
8003      *)
8004        lt_prog_compiler_pic='+Z'
8005        ;;
8006      esac
8007      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8008      lt_prog_compiler_static='${wl}-a ${wl}archive'
8009      ;;
8010
8011    irix5* | irix6* | nonstopux*)
8012      lt_prog_compiler_wl='-Wl,'
8013      # PIC (with -KPIC) is the default.
8014      lt_prog_compiler_static='-non_shared'
8015      ;;
8016
8017    newsos6)
8018      lt_prog_compiler_pic='-KPIC'
8019      lt_prog_compiler_static='-Bstatic'
8020      ;;
8021
8022    linux* | k*bsd*-gnu)
8023      case $cc_basename in
8024      icc* | ecc*)
8025        lt_prog_compiler_wl='-Wl,'
8026        lt_prog_compiler_pic='-KPIC'
8027        lt_prog_compiler_static='-static'
8028        ;;
8029      pgcc* | pgf77* | pgf90* | pgf95*)
8030        # Portland Group compilers (*not* the Pentium gcc compiler,
8031        # which looks to be a dead project)
8032        lt_prog_compiler_wl='-Wl,'
8033        lt_prog_compiler_pic='-fpic'
8034        lt_prog_compiler_static='-Bstatic'
8035        ;;
8036      ccc*)
8037        lt_prog_compiler_wl='-Wl,'
8038        # All Alpha code is PIC.
8039        lt_prog_compiler_static='-non_shared'
8040        ;;
8041      *)
8042        case `$CC -V 2>&1 | sed 5q` in
8043        *Sun\ C*)
8044          # Sun C 5.9
8045          lt_prog_compiler_pic='-KPIC'
8046          lt_prog_compiler_static='-Bstatic'
8047          lt_prog_compiler_wl='-Wl,'
8048          ;;
8049        *Sun\ F*)
8050          # Sun Fortran 8.3 passes all unrecognized flags to the linker
8051          lt_prog_compiler_pic='-KPIC'
8052          lt_prog_compiler_static='-Bstatic'
8053          lt_prog_compiler_wl=''
8054          ;;
8055        esac
8056        ;;
8057      esac
8058      ;;
8059
8060    osf3* | osf4* | osf5*)
8061      lt_prog_compiler_wl='-Wl,'
8062      # All OSF/1 code is PIC.
8063      lt_prog_compiler_static='-non_shared'
8064      ;;
8065
8066    rdos*)
8067      lt_prog_compiler_static='-non_shared'
8068      ;;
8069
8070    solaris*)
8071      lt_prog_compiler_pic='-KPIC'
8072      lt_prog_compiler_static='-Bstatic'
8073      case $cc_basename in
8074      f77* | f90* | f95*)
8075        lt_prog_compiler_wl='-Qoption ld ';;
8076      *)
8077        lt_prog_compiler_wl='-Wl,';;
8078      esac
8079      ;;
8080
8081    sunos4*)
8082      lt_prog_compiler_wl='-Qoption ld '
8083      lt_prog_compiler_pic='-PIC'
8084      lt_prog_compiler_static='-Bstatic'
8085      ;;
8086
8087    sysv4 | sysv4.2uw2* | sysv4.3*)
8088      lt_prog_compiler_wl='-Wl,'
8089      lt_prog_compiler_pic='-KPIC'
8090      lt_prog_compiler_static='-Bstatic'
8091      ;;
8092
8093    sysv4*MP*)
8094      if test -d /usr/nec ;then
8095        lt_prog_compiler_pic='-Kconform_pic'
8096        lt_prog_compiler_static='-Bstatic'
8097      fi
8098      ;;
8099
8100    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8101      lt_prog_compiler_wl='-Wl,'
8102      lt_prog_compiler_pic='-KPIC'
8103      lt_prog_compiler_static='-Bstatic'
8104      ;;
8105
8106    unicos*)
8107      lt_prog_compiler_wl='-Wl,'
8108      lt_prog_compiler_can_build_shared=no
8109      ;;
8110
8111    uts4*)
8112      lt_prog_compiler_pic='-pic'
8113      lt_prog_compiler_static='-Bstatic'
8114      ;;
8115
8116    *)
8117      lt_prog_compiler_can_build_shared=no
8118      ;;
8119    esac
8120  fi
8121
8122{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8123echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8124
8125#
8126# Check to make sure the PIC flag actually works.
8127#
8128if test -n "$lt_prog_compiler_pic"; then
8129
8130{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8131echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8132if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8133  echo $ECHO_N "(cached) $ECHO_C" >&6
8134else
8135  lt_cv_prog_compiler_pic_works=no
8136  ac_outfile=conftest.$ac_objext
8137   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8138   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8139   # Insert the option either (1) after the last *FLAGS variable, or
8140   # (2) before a word containing "conftest.", or (3) at the end.
8141   # Note that $ac_compile itself does not contain backslashes and begins
8142   # with a dollar sign (not a hyphen), so the echo should work correctly.
8143   # The option is referenced via a variable to avoid confusing sed.
8144   lt_compile=`echo "$ac_compile" | $SED \
8145   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8146   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8147   -e 's:$: $lt_compiler_flag:'`
8148   (eval echo "\"\$as_me:8148: $lt_compile\"" >&5)
8149   (eval "$lt_compile" 2>conftest.err)
8150   ac_status=$?
8151   cat conftest.err >&5
8152   echo "$as_me:8152: \$? = $ac_status" >&5
8153   if (exit $ac_status) && test -s "$ac_outfile"; then
8154     # The compiler can only warn and ignore the option if not recognized
8155     # So say no if there are warnings other than the usual output.
8156     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8157     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8158     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8159       lt_cv_prog_compiler_pic_works=yes
8160     fi
8161   fi
8162   $rm conftest*
8163
8164fi
8165{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8166echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8167
8168if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8169    case $lt_prog_compiler_pic in
8170     "" | " "*) ;;
8171     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8172     esac
8173else
8174    lt_prog_compiler_pic=
8175     lt_prog_compiler_can_build_shared=no
8176fi
8177
8178fi
8179case $host_os in
8180  # For platforms which do not support PIC, -DPIC is meaningless:
8181  *djgpp*)
8182    lt_prog_compiler_pic=
8183    ;;
8184  *)
8185    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8186    ;;
8187esac
8188
8189#
8190# Check to make sure the static flag actually works.
8191#
8192wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8193{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8194echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8195if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8196  echo $ECHO_N "(cached) $ECHO_C" >&6
8197else
8198  lt_cv_prog_compiler_static_works=no
8199   save_LDFLAGS="$LDFLAGS"
8200   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8201   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8202   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8203     # The linker can only warn and ignore the option if not recognized
8204     # So say no if there are warnings
8205     if test -s conftest.err; then
8206       # Append any errors to the config.log.
8207       cat conftest.err 1>&5
8208       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8209       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8210       if diff conftest.exp conftest.er2 >/dev/null; then
8211         lt_cv_prog_compiler_static_works=yes
8212       fi
8213     else
8214       lt_cv_prog_compiler_static_works=yes
8215     fi
8216   fi
8217   $rm -r conftest*
8218   LDFLAGS="$save_LDFLAGS"
8219
8220fi
8221{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8222echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8223
8224if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8225    :
8226else
8227    lt_prog_compiler_static=
8228fi
8229
8230
8231{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8232echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8233if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8234  echo $ECHO_N "(cached) $ECHO_C" >&6
8235else
8236  lt_cv_prog_compiler_c_o=no
8237   $rm -r conftest 2>/dev/null
8238   mkdir conftest
8239   cd conftest
8240   mkdir out
8241   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8242
8243   lt_compiler_flag="-o out/conftest2.$ac_objext"
8244   # Insert the option either (1) after the last *FLAGS variable, or
8245   # (2) before a word containing "conftest.", or (3) at the end.
8246   # Note that $ac_compile itself does not contain backslashes and begins
8247   # with a dollar sign (not a hyphen), so the echo should work correctly.
8248   lt_compile=`echo "$ac_compile" | $SED \
8249   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8250   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8251   -e 's:$: $lt_compiler_flag:'`
8252   (eval echo "\"\$as_me:8252: $lt_compile\"" >&5)
8253   (eval "$lt_compile" 2>out/conftest.err)
8254   ac_status=$?
8255   cat out/conftest.err >&5
8256   echo "$as_me:8256: \$? = $ac_status" >&5
8257   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8258   then
8259     # The compiler can only warn and ignore the option if not recognized
8260     # So say no if there are warnings
8261     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8262     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8263     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8264       lt_cv_prog_compiler_c_o=yes
8265     fi
8266   fi
8267   chmod u+w . 2>&5
8268   $rm conftest*
8269   # SGI C++ compiler will create directory out/ii_files/ for
8270   # template instantiation
8271   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8272   $rm out/* && rmdir out
8273   cd ..
8274   rmdir conftest
8275   $rm conftest*
8276
8277fi
8278{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8279echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8280
8281
8282hard_links="nottested"
8283if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8284  # do not overwrite the value of need_locks provided by the user
8285  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8286echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8287  hard_links=yes
8288  $rm conftest*
8289  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8290  touch conftest.a
8291  ln conftest.a conftest.b 2>&5 || hard_links=no
8292  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8293  { echo "$as_me:$LINENO: result: $hard_links" >&5
8294echo "${ECHO_T}$hard_links" >&6; }
8295  if test "$hard_links" = no; then
8296    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8297echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8298    need_locks=warn
8299  fi
8300else
8301  need_locks=no
8302fi
8303
8304{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8305echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8306
8307  runpath_var=
8308  allow_undefined_flag=
8309  enable_shared_with_static_runtimes=no
8310  archive_cmds=
8311  archive_expsym_cmds=
8312  old_archive_From_new_cmds=
8313  old_archive_from_expsyms_cmds=
8314  export_dynamic_flag_spec=
8315  whole_archive_flag_spec=
8316  thread_safe_flag_spec=
8317  hardcode_libdir_flag_spec=
8318  hardcode_libdir_flag_spec_ld=
8319  hardcode_libdir_separator=
8320  hardcode_direct=no
8321  hardcode_minus_L=no
8322  hardcode_shlibpath_var=unsupported
8323  link_all_deplibs=unknown
8324  hardcode_automatic=no
8325  module_cmds=
8326  module_expsym_cmds=
8327  always_export_symbols=no
8328  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8329  # include_expsyms should be a list of space-separated symbols to be *always*
8330  # included in the symbol list
8331  include_expsyms=
8332  # exclude_expsyms can be an extended regexp of symbols to exclude
8333  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8334  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8335  # as well as any symbol that contains `d'.
8336  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8337  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8338  # platforms (ab)use it in PIC code, but their linkers get confused if
8339  # the symbol is explicitly referenced.  Since portable code cannot
8340  # rely on this symbol name, it's probably fine to never include it in
8341  # preloaded symbol tables.
8342  # Exclude shared library initialization/finalization symbols.
8343  extract_expsyms_cmds=
8344  # Just being paranoid about ensuring that cc_basename is set.
8345  for cc_temp in $compiler""; do
8346  case $cc_temp in
8347    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8348    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8349    \-*) ;;
8350    *) break;;
8351  esac
8352done
8353cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8354
8355  case $host_os in
8356  cygwin* | mingw* | pw32*)
8357    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8358    # When not using gcc, we currently assume that we are using
8359    # Microsoft Visual C++.
8360    if test "$GCC" != yes; then
8361      with_gnu_ld=no
8362    fi
8363    ;;
8364  interix*)
8365    # we just hope/assume this is gcc and not c89 (= MSVC++)
8366    with_gnu_ld=yes
8367    ;;
8368  openbsd*)
8369    with_gnu_ld=no
8370    ;;
8371  esac
8372
8373  ld_shlibs=yes
8374  if test "$with_gnu_ld" = yes; then
8375    # If archive_cmds runs LD, not CC, wlarc should be empty
8376    wlarc='${wl}'
8377
8378    # Set some defaults for GNU ld with shared library support. These
8379    # are reset later if shared libraries are not supported. Putting them
8380    # here allows them to be overridden if necessary.
8381    runpath_var=LD_RUN_PATH
8382    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8383    export_dynamic_flag_spec='${wl}--export-dynamic'
8384    # ancient GNU ld didn't support --whole-archive et. al.
8385    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8386        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8387      else
8388        whole_archive_flag_spec=
8389    fi
8390    supports_anon_versioning=no
8391    case `$LD -v 2>/dev/null` in
8392      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8393      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8394      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8395      *\ 2.11.*) ;; # other 2.11 versions
8396      *) supports_anon_versioning=yes ;;
8397    esac
8398
8399    # See if GNU ld supports shared libraries.
8400    case $host_os in
8401    aix[3-9]*)
8402      # On AIX/PPC, the GNU linker is very broken
8403      if test "$host_cpu" != ia64; then
8404        ld_shlibs=no
8405        cat <<EOF 1>&2
8406
8407*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8408*** to be unable to reliably create shared libraries on AIX.
8409*** Therefore, libtool is disabling shared libraries support.  If you
8410*** really care for shared libraries, you may want to modify your PATH
8411*** so that a non-GNU linker is found, and then restart.
8412
8413EOF
8414      fi
8415      ;;
8416
8417    amigaos*)
8418      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)'
8419      hardcode_libdir_flag_spec='-L$libdir'
8420      hardcode_minus_L=yes
8421
8422      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8423      # that the semantics of dynamic libraries on AmigaOS, at least up
8424      # to version 4, is to share data among multiple programs linked
8425      # with the same dynamic library.  Since this doesn't match the
8426      # behavior of shared libraries on other platforms, we can't use
8427      # them.
8428      ld_shlibs=no
8429      ;;
8430
8431    beos*)
8432      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8433        allow_undefined_flag=unsupported
8434        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8435        # support --undefined.  This deserves some investigation.  FIXME
8436        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8437      else
8438        ld_shlibs=no
8439      fi
8440      ;;
8441
8442    cygwin* | mingw* | pw32*)
8443      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8444      # as there is no search path for DLLs.
8445      hardcode_libdir_flag_spec='-L$libdir'
8446      allow_undefined_flag=unsupported
8447      always_export_symbols=no
8448      enable_shared_with_static_runtimes=yes
8449      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8450
8451      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8452        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8453        # If the export-symbols file already is a .def file (1st line
8454        # is EXPORTS), use it as is; otherwise, prepend...
8455        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8456          cp $export_symbols $output_objdir/$soname.def;
8457        else
8458          echo EXPORTS > $output_objdir/$soname.def;
8459          cat $export_symbols >> $output_objdir/$soname.def;
8460        fi~
8461        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8462      else
8463        ld_shlibs=no
8464      fi
8465      ;;
8466
8467    interix[3-9]*)
8468      hardcode_direct=no
8469      hardcode_shlibpath_var=no
8470      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8471      export_dynamic_flag_spec='${wl}-E'
8472      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8473      # Instead, shared libraries are loaded at an image base (0x10000000 by
8474      # default) and relocated if they conflict, which is a slow very memory
8475      # consuming and fragmenting process.  To avoid this, we pick a random,
8476      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8477      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8478      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8479      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'
8480      ;;
8481
8482    gnu* | linux* | k*bsd*-gnu)
8483      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8484        tmp_addflag=
8485        case $cc_basename,$host_cpu in
8486        pgcc*)                          # Portland Group C compiler
8487          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'
8488          tmp_addflag=' $pic_flag'
8489          ;;
8490        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8491          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'
8492          tmp_addflag=' $pic_flag -Mnomain' ;;
8493        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8494          tmp_addflag=' -i_dynamic' ;;
8495        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8496          tmp_addflag=' -i_dynamic -nofor_main' ;;
8497        ifc* | ifort*)                  # Intel Fortran compiler
8498          tmp_addflag=' -nofor_main' ;;
8499        esac
8500        case `$CC -V 2>&1 | sed 5q` in
8501        *Sun\ C*)                       # Sun C 5.9
8502          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'
8503          tmp_sharedflag='-G' ;;
8504        *Sun\ F*)                       # Sun Fortran 8.3
8505          tmp_sharedflag='-G' ;;
8506        *)
8507          tmp_sharedflag='-shared' ;;
8508        esac
8509        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8510
8511        if test $supports_anon_versioning = yes; then
8512          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8513  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8514  $echo "local: *; };" >> $output_objdir/$libname.ver~
8515          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8516        fi
8517        link_all_deplibs=no
8518      else
8519        ld_shlibs=no
8520      fi
8521      ;;
8522
8523    netbsd* | netbsdelf*-gnu)
8524      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8525        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8526        wlarc=
8527      else
8528        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8529        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8530      fi
8531      ;;
8532
8533    solaris*)
8534      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8535        ld_shlibs=no
8536        cat <<EOF 1>&2
8537
8538*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8539*** create shared libraries on Solaris systems.  Therefore, libtool
8540*** is disabling shared libraries support.  We urge you to upgrade GNU
8541*** binutils to release 2.9.1 or newer.  Another option is to modify
8542*** your PATH or compiler configuration so that the native linker is
8543*** used, and then restart.
8544
8545EOF
8546      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8547        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8548        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8549      else
8550        ld_shlibs=no
8551      fi
8552      ;;
8553
8554    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8555      case `$LD -v 2>&1` in
8556        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8557        ld_shlibs=no
8558        cat <<_LT_EOF 1>&2
8559
8560*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8561*** reliably create shared libraries on SCO systems.  Therefore, libtool
8562*** is disabling shared libraries support.  We urge you to upgrade GNU
8563*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8564*** your PATH or compiler configuration so that the native linker is
8565*** used, and then restart.
8566
8567_LT_EOF
8568        ;;
8569        *)
8570          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8571            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8572            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8573            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8574          else
8575            ld_shlibs=no
8576          fi
8577        ;;
8578      esac
8579      ;;
8580
8581    sunos4*)
8582      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8583      wlarc=
8584      hardcode_direct=yes
8585      hardcode_shlibpath_var=no
8586      ;;
8587
8588    *)
8589      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8590        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8591        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8592      else
8593        ld_shlibs=no
8594      fi
8595      ;;
8596    esac
8597
8598    if test "$ld_shlibs" = no; then
8599      runpath_var=
8600      hardcode_libdir_flag_spec=
8601      export_dynamic_flag_spec=
8602      whole_archive_flag_spec=
8603    fi
8604  else
8605    # PORTME fill in a description of your system's linker (not GNU ld)
8606    case $host_os in
8607    aix3*)
8608      allow_undefined_flag=unsupported
8609      always_export_symbols=yes
8610      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'
8611      # Note: this linker hardcodes the directories in LIBPATH if there
8612      # are no directories specified by -L.
8613      hardcode_minus_L=yes
8614      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8615        # Neither direct hardcoding nor static linking is supported with a
8616        # broken collect2.
8617        hardcode_direct=unsupported
8618      fi
8619      ;;
8620
8621    aix[4-9]*)
8622      if test "$host_cpu" = ia64; then
8623        # On IA64, the linker does run time linking by default, so we don't
8624        # have to do anything special.
8625        aix_use_runtimelinking=no
8626        exp_sym_flag='-Bexport'
8627        no_entry_flag=""
8628      else
8629        # If we're using GNU nm, then we don't want the "-C" option.
8630        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8631        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8632          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'
8633        else
8634          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'
8635        fi
8636        aix_use_runtimelinking=no
8637
8638        # Test if we are trying to use run time linking or normal
8639        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8640        # need to do runtime linking.
8641        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8642          for ld_flag in $LDFLAGS; do
8643          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8644            aix_use_runtimelinking=yes
8645            break
8646          fi
8647          done
8648          ;;
8649        esac
8650
8651        exp_sym_flag='-bexport'
8652        no_entry_flag='-bnoentry'
8653      fi
8654
8655      # When large executables or shared objects are built, AIX ld can
8656      # have problems creating the table of contents.  If linking a library
8657      # or program results in "error TOC overflow" add -mminimal-toc to
8658      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8659      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8660
8661      archive_cmds=''
8662      hardcode_direct=yes
8663      hardcode_libdir_separator=':'
8664      link_all_deplibs=yes
8665
8666      if test "$GCC" = yes; then
8667        case $host_os in aix4.[012]|aix4.[012].*)
8668        # We only want to do this on AIX 4.2 and lower, the check
8669        # below for broken collect2 doesn't work under 4.3+
8670          collect2name=`${CC} -print-prog-name=collect2`
8671          if test -f "$collect2name" && \
8672           strings "$collect2name" | grep resolve_lib_name >/dev/null
8673          then
8674          # We have reworked collect2
8675          :
8676          else
8677          # We have old collect2
8678          hardcode_direct=unsupported
8679          # It fails to find uninstalled libraries when the uninstalled
8680          # path is not listed in the libpath.  Setting hardcode_minus_L
8681          # to unsupported forces relinking
8682          hardcode_minus_L=yes
8683          hardcode_libdir_flag_spec='-L$libdir'
8684          hardcode_libdir_separator=
8685          fi
8686          ;;
8687        esac
8688        shared_flag='-shared'
8689        if test "$aix_use_runtimelinking" = yes; then
8690          shared_flag="$shared_flag "'${wl}-G'
8691        fi
8692      else
8693        # not using gcc
8694        if test "$host_cpu" = ia64; then
8695        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8696        # chokes on -Wl,-G. The following line is correct:
8697          shared_flag='-G'
8698        else
8699          if test "$aix_use_runtimelinking" = yes; then
8700            shared_flag='${wl}-G'
8701          else
8702            shared_flag='${wl}-bM:SRE'
8703          fi
8704        fi
8705      fi
8706
8707      # It seems that -bexpall does not export symbols beginning with
8708      # underscore (_), so it is better to generate a list of symbols to export.
8709      always_export_symbols=yes
8710      if test "$aix_use_runtimelinking" = yes; then
8711        # Warning - without using the other runtime loading flags (-brtl),
8712        # -berok will link without error, but may produce a broken library.
8713        allow_undefined_flag='-berok'
8714       # Determine the default libpath from the value encoded in an empty executable.
8715       cat >conftest.$ac_ext <<_ACEOF
8716/* confdefs.h.  */
8717_ACEOF
8718cat confdefs.h >>conftest.$ac_ext
8719cat >>conftest.$ac_ext <<_ACEOF
8720/* end confdefs.h.  */
8721
8722int
8723main ()
8724{
8725
8726  ;
8727  return 0;
8728}
8729_ACEOF
8730rm -f conftest.$ac_objext conftest$ac_exeext
8731if { (ac_try="$ac_link"
8732case "(($ac_try" in
8733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8734  *) ac_try_echo=$ac_try;;
8735esac
8736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8737  (eval "$ac_link") 2>conftest.er1
8738  ac_status=$?
8739  grep -v '^ *+' conftest.er1 >conftest.err
8740  rm -f conftest.er1
8741  cat conftest.err >&5
8742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743  (exit $ac_status); } && {
8744         test -z "$ac_c_werror_flag" ||
8745         test ! -s conftest.err
8746       } && test -s conftest$ac_exeext &&
8747       $as_test_x conftest$ac_exeext; then
8748
8749lt_aix_libpath_sed='
8750    /Import File Strings/,/^$/ {
8751        /^0/ {
8752            s/^0  *\(.*\)$/\1/
8753            p
8754        }
8755    }'
8756aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8757# Check for a 64-bit object if we didn't find anything.
8758if test -z "$aix_libpath"; then
8759  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8760fi
8761else
8762  echo "$as_me: failed program was:" >&5
8763sed 's/^/| /' conftest.$ac_ext >&5
8764
8765
8766fi
8767
8768rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8769      conftest$ac_exeext conftest.$ac_ext
8770if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8771
8772       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8773        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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8774       else
8775        if test "$host_cpu" = ia64; then
8776          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8777          allow_undefined_flag="-z nodefs"
8778          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"
8779        else
8780         # Determine the default libpath from the value encoded in an empty executable.
8781         cat >conftest.$ac_ext <<_ACEOF
8782/* confdefs.h.  */
8783_ACEOF
8784cat confdefs.h >>conftest.$ac_ext
8785cat >>conftest.$ac_ext <<_ACEOF
8786/* end confdefs.h.  */
8787
8788int
8789main ()
8790{
8791
8792  ;
8793  return 0;
8794}
8795_ACEOF
8796rm -f conftest.$ac_objext conftest$ac_exeext
8797if { (ac_try="$ac_link"
8798case "(($ac_try" in
8799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8800  *) ac_try_echo=$ac_try;;
8801esac
8802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8803  (eval "$ac_link") 2>conftest.er1
8804  ac_status=$?
8805  grep -v '^ *+' conftest.er1 >conftest.err
8806  rm -f conftest.er1
8807  cat conftest.err >&5
8808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809  (exit $ac_status); } && {
8810         test -z "$ac_c_werror_flag" ||
8811         test ! -s conftest.err
8812       } && test -s conftest$ac_exeext &&
8813       $as_test_x conftest$ac_exeext; then
8814
8815lt_aix_libpath_sed='
8816    /Import File Strings/,/^$/ {
8817        /^0/ {
8818            s/^0  *\(.*\)$/\1/
8819            p
8820        }
8821    }'
8822aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8823# Check for a 64-bit object if we didn't find anything.
8824if test -z "$aix_libpath"; then
8825  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8826fi
8827else
8828  echo "$as_me: failed program was:" >&5
8829sed 's/^/| /' conftest.$ac_ext >&5
8830
8831
8832fi
8833
8834rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8835      conftest$ac_exeext conftest.$ac_ext
8836if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8837
8838         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8839          # Warning - without using the other run time loading flags,
8840          # -berok will link without error, but may produce a broken library.
8841          no_undefined_flag=' ${wl}-bernotok'
8842          allow_undefined_flag=' ${wl}-berok'
8843          # Exported symbols can be pulled into shared objects from archives
8844          whole_archive_flag_spec='$convenience'
8845          archive_cmds_need_lc=yes
8846          # This is similar to how AIX traditionally builds its shared libraries.
8847          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'
8848        fi
8849      fi
8850      ;;
8851
8852    amigaos*)
8853      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)'
8854      hardcode_libdir_flag_spec='-L$libdir'
8855      hardcode_minus_L=yes
8856      # see comment about different semantics on the GNU ld section
8857      ld_shlibs=no
8858      ;;
8859
8860    bsdi[45]*)
8861      export_dynamic_flag_spec=-rdynamic
8862      ;;
8863
8864    cygwin* | mingw* | pw32*)
8865      # When not using gcc, we currently assume that we are using
8866      # Microsoft Visual C++.
8867      # hardcode_libdir_flag_spec is actually meaningless, as there is
8868      # no search path for DLLs.
8869      hardcode_libdir_flag_spec=' '
8870      allow_undefined_flag=unsupported
8871      # Tell ltmain to make .lib files, not .a files.
8872      libext=lib
8873      # Tell ltmain to make .dll files, not .so files.
8874      shrext_cmds=".dll"
8875      # FIXME: Setting linknames here is a bad hack.
8876      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8877      # The linker will automatically build a .lib file if we build a DLL.
8878      old_archive_From_new_cmds='true'
8879      # FIXME: Should let the user specify the lib program.
8880      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8881      fix_srcfile_path='`cygpath -w "$srcfile"`'
8882      enable_shared_with_static_runtimes=yes
8883      ;;
8884
8885    darwin* | rhapsody*)
8886      case $host_os in
8887        rhapsody* | darwin1.[012])
8888         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8889         ;;
8890       *) # Darwin 1.3 on
8891         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8892           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8893         else
8894           case ${MACOSX_DEPLOYMENT_TARGET} in
8895             10.[012])
8896               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8897               ;;
8898             10.*)
8899               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8900               ;;
8901           esac
8902         fi
8903         ;;
8904      esac
8905      archive_cmds_need_lc=no
8906      hardcode_direct=no
8907      hardcode_automatic=yes
8908      hardcode_shlibpath_var=unsupported
8909      whole_archive_flag_spec=''
8910      link_all_deplibs=yes
8911    if test "$GCC" = yes ; then
8912        output_verbose_link_cmd='echo'
8913        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8914        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8915        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}"
8916        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}"
8917    else
8918      case $cc_basename in
8919        xlc*)
8920         output_verbose_link_cmd='echo'
8921         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8922         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8923          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8924         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8925          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8926          ;;
8927       *)
8928         ld_shlibs=no
8929          ;;
8930      esac
8931    fi
8932      ;;
8933
8934    dgux*)
8935      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8936      hardcode_libdir_flag_spec='-L$libdir'
8937      hardcode_shlibpath_var=no
8938      ;;
8939
8940    freebsd1*)
8941      ld_shlibs=no
8942      ;;
8943
8944    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8945    # support.  Future versions do this automatically, but an explicit c++rt0.o
8946    # does not break anything, and helps significantly (at the cost of a little
8947    # extra space).
8948    freebsd2.2*)
8949      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8950      hardcode_libdir_flag_spec='-R$libdir'
8951      hardcode_direct=yes
8952      hardcode_shlibpath_var=no
8953      ;;
8954
8955    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8956    freebsd2*)
8957      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8958      hardcode_direct=yes
8959      hardcode_minus_L=yes
8960      hardcode_shlibpath_var=no
8961      ;;
8962
8963    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8964    freebsd* | dragonfly*)
8965      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8966      hardcode_libdir_flag_spec='-R$libdir'
8967      hardcode_direct=yes
8968      hardcode_shlibpath_var=no
8969      ;;
8970
8971    hpux9*)
8972      if test "$GCC" = yes; then
8973        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'
8974      else
8975        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'
8976      fi
8977      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8978      hardcode_libdir_separator=:
8979      hardcode_direct=yes
8980
8981      # hardcode_minus_L: Not really in the search PATH,
8982      # but as the default location of the library.
8983      hardcode_minus_L=yes
8984      export_dynamic_flag_spec='${wl}-E'
8985      ;;
8986
8987    hpux10*)
8988      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8989        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8990      else
8991        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8992      fi
8993      if test "$with_gnu_ld" = no; then
8994        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8995        hardcode_libdir_separator=:
8996
8997        hardcode_direct=yes
8998        export_dynamic_flag_spec='${wl}-E'
8999
9000        # hardcode_minus_L: Not really in the search PATH,
9001        # but as the default location of the library.
9002        hardcode_minus_L=yes
9003      fi
9004      ;;
9005
9006    hpux11*)
9007      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9008        case $host_cpu in
9009        hppa*64*)
9010          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9011          ;;
9012        ia64*)
9013          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9014          ;;
9015        *)
9016          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9017          ;;
9018        esac
9019      else
9020        case $host_cpu in
9021        hppa*64*)
9022          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9023          ;;
9024        ia64*)
9025          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9026          ;;
9027        *)
9028          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9029          ;;
9030        esac
9031      fi
9032      if test "$with_gnu_ld" = no; then
9033        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9034        hardcode_libdir_separator=:
9035
9036        case $host_cpu in
9037        hppa*64*|ia64*)
9038          hardcode_libdir_flag_spec_ld='+b $libdir'
9039          hardcode_direct=no
9040          hardcode_shlibpath_var=no
9041          ;;
9042        *)
9043          hardcode_direct=yes
9044          export_dynamic_flag_spec='${wl}-E'
9045
9046          # hardcode_minus_L: Not really in the search PATH,
9047          # but as the default location of the library.
9048          hardcode_minus_L=yes
9049          ;;
9050        esac
9051      fi
9052      ;;
9053
9054    irix5* | irix6* | nonstopux*)
9055      if test "$GCC" = yes; then
9056        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9057      else
9058        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9059        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9060      fi
9061      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9062      hardcode_libdir_separator=:
9063      link_all_deplibs=yes
9064      ;;
9065
9066    netbsd* | netbsdelf*-gnu)
9067      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9068        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9069      else
9070        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9071      fi
9072      hardcode_libdir_flag_spec='-R$libdir'
9073      hardcode_direct=yes
9074      hardcode_shlibpath_var=no
9075      ;;
9076
9077    newsos6)
9078      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079      hardcode_direct=yes
9080      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9081      hardcode_libdir_separator=:
9082      hardcode_shlibpath_var=no
9083      ;;
9084
9085    openbsd*)
9086      if test -f /usr/libexec/ld.so; then
9087        hardcode_direct=yes
9088        hardcode_shlibpath_var=no
9089        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9090          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9091          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9092          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9093          export_dynamic_flag_spec='${wl}-E'
9094        else
9095          case $host_os in
9096           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9097             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9098             hardcode_libdir_flag_spec='-R$libdir'
9099             ;;
9100           *)
9101             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9102             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9103             ;;
9104          esac
9105        fi
9106      else
9107        ld_shlibs=no
9108      fi
9109      ;;
9110
9111    os2*)
9112      hardcode_libdir_flag_spec='-L$libdir'
9113      hardcode_minus_L=yes
9114      allow_undefined_flag=unsupported
9115      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'
9116      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9117      ;;
9118
9119    osf3*)
9120      if test "$GCC" = yes; then
9121        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9122        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9123      else
9124        allow_undefined_flag=' -expect_unresolved \*'
9125        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9126      fi
9127      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9128      hardcode_libdir_separator=:
9129      ;;
9130
9131    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9132      if test "$GCC" = yes; then
9133        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9134        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9135        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9136      else
9137        allow_undefined_flag=' -expect_unresolved \*'
9138        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9139        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9140        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9141
9142        # Both c and cxx compiler support -rpath directly
9143        hardcode_libdir_flag_spec='-rpath $libdir'
9144      fi
9145      hardcode_libdir_separator=:
9146      ;;
9147
9148    solaris*)
9149      no_undefined_flag=' -z text'
9150      if test "$GCC" = yes; then
9151        wlarc='${wl}'
9152        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9153        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9154          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9155      else
9156        wlarc=''
9157        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9158        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9159        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9160      fi
9161      hardcode_libdir_flag_spec='-R$libdir'
9162      hardcode_shlibpath_var=no
9163      case $host_os in
9164      solaris2.[0-5] | solaris2.[0-5].*) ;;
9165      *)
9166        # The compiler driver will combine and reorder linker options,
9167        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9168        # but is careful enough not to reorder.
9169        # Supported since Solaris 2.6 (maybe 2.5.1?)
9170        if test "$GCC" = yes; then
9171          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9172        else
9173          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9174        fi
9175        ;;
9176      esac
9177      link_all_deplibs=yes
9178      ;;
9179
9180    sunos4*)
9181      if test "x$host_vendor" = xsequent; then
9182        # Use $CC to link under sequent, because it throws in some extra .o
9183        # files that make .init and .fini sections work.
9184        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9185      else
9186        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9187      fi
9188      hardcode_libdir_flag_spec='-L$libdir'
9189      hardcode_direct=yes
9190      hardcode_minus_L=yes
9191      hardcode_shlibpath_var=no
9192      ;;
9193
9194    sysv4)
9195      case $host_vendor in
9196        sni)
9197          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9198          hardcode_direct=yes # is this really true???
9199        ;;
9200        siemens)
9201          ## LD is ld it makes a PLAMLIB
9202          ## CC just makes a GrossModule.
9203          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9204          reload_cmds='$CC -r -o $output$reload_objs'
9205          hardcode_direct=no
9206        ;;
9207        motorola)
9208          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9209          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9210        ;;
9211      esac
9212      runpath_var='LD_RUN_PATH'
9213      hardcode_shlibpath_var=no
9214      ;;
9215
9216    sysv4.3*)
9217      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9218      hardcode_shlibpath_var=no
9219      export_dynamic_flag_spec='-Bexport'
9220      ;;
9221
9222    sysv4*MP*)
9223      if test -d /usr/nec; then
9224        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9225        hardcode_shlibpath_var=no
9226        runpath_var=LD_RUN_PATH
9227        hardcode_runpath_var=yes
9228        ld_shlibs=yes
9229      fi
9230      ;;
9231
9232    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9233      no_undefined_flag='${wl}-z,text'
9234      archive_cmds_need_lc=no
9235      hardcode_shlibpath_var=no
9236      runpath_var='LD_RUN_PATH'
9237
9238      if test "$GCC" = yes; then
9239        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9240        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9241      else
9242        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9243        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9244      fi
9245      ;;
9246
9247    sysv5* | sco3.2v5* | sco5v6*)
9248      # Note: We can NOT use -z defs as we might desire, because we do not
9249      # link with -lc, and that would cause any symbols used from libc to
9250      # always be unresolved, which means just about no library would
9251      # ever link correctly.  If we're not using GNU ld we use -z text
9252      # though, which does catch some bad symbols but isn't as heavy-handed
9253      # as -z defs.
9254      no_undefined_flag='${wl}-z,text'
9255      allow_undefined_flag='${wl}-z,nodefs'
9256      archive_cmds_need_lc=no
9257      hardcode_shlibpath_var=no
9258      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9259      hardcode_libdir_separator=':'
9260      link_all_deplibs=yes
9261      export_dynamic_flag_spec='${wl}-Bexport'
9262      runpath_var='LD_RUN_PATH'
9263
9264      if test "$GCC" = yes; then
9265        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9266        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9267      else
9268        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9269        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9270      fi
9271      ;;
9272
9273    uts4*)
9274      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9275      hardcode_libdir_flag_spec='-L$libdir'
9276      hardcode_shlibpath_var=no
9277      ;;
9278
9279    *)
9280      ld_shlibs=no
9281      ;;
9282    esac
9283  fi
9284
9285{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9286echo "${ECHO_T}$ld_shlibs" >&6; }
9287test "$ld_shlibs" = no && can_build_shared=no
9288
9289#
9290# Do we need to explicitly link libc?
9291#
9292case "x$archive_cmds_need_lc" in
9293x|xyes)
9294  # Assume -lc should be added
9295  archive_cmds_need_lc=yes
9296
9297  if test "$enable_shared" = yes && test "$GCC" = yes; then
9298    case $archive_cmds in
9299    *'~'*)
9300      # FIXME: we may have to deal with multi-command sequences.
9301      ;;
9302    '$CC '*)
9303      # Test whether the compiler implicitly links with -lc since on some
9304      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9305      # to ld, don't add -lc before -lgcc.
9306      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9307echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9308      $rm conftest*
9309      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9310
9311      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9312  (eval $ac_compile) 2>&5
9313  ac_status=$?
9314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315  (exit $ac_status); } 2>conftest.err; then
9316        soname=conftest
9317        lib=conftest
9318        libobjs=conftest.$ac_objext
9319        deplibs=
9320        wl=$lt_prog_compiler_wl
9321        pic_flag=$lt_prog_compiler_pic
9322        compiler_flags=-v
9323        linker_flags=-v
9324        verstring=
9325        output_objdir=.
9326        libname=conftest
9327        lt_save_allow_undefined_flag=$allow_undefined_flag
9328        allow_undefined_flag=
9329        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9330  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9331  ac_status=$?
9332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333  (exit $ac_status); }
9334        then
9335          archive_cmds_need_lc=no
9336        else
9337          archive_cmds_need_lc=yes
9338        fi
9339        allow_undefined_flag=$lt_save_allow_undefined_flag
9340      else
9341        cat conftest.err 1>&5
9342      fi
9343      $rm conftest*
9344      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9345echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9346      ;;
9347    esac
9348  fi
9349  ;;
9350esac
9351
9352{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9353echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9354library_names_spec=
9355libname_spec='lib$name'
9356soname_spec=
9357shrext_cmds=".so"
9358postinstall_cmds=
9359postuninstall_cmds=
9360finish_cmds=
9361finish_eval=
9362shlibpath_var=
9363shlibpath_overrides_runpath=unknown
9364version_type=none
9365dynamic_linker="$host_os ld.so"
9366sys_lib_dlsearch_path_spec="/lib /usr/lib"
9367
9368if test "$GCC" = yes; then
9369  case $host_os in
9370    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9371    *) lt_awk_arg="/^libraries:/" ;;
9372  esac
9373  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9374  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9375    # if the path contains ";" then we assume it to be the separator
9376    # otherwise default to the standard path separator (i.e. ":") - it is
9377    # assumed that no part of a normal pathname contains ";" but that should
9378    # okay in the real world where ";" in dirpaths is itself problematic.
9379    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9380  else
9381    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9382  fi
9383  # Ok, now we have the path, separated by spaces, we can step through it
9384  # and add multilib dir if necessary.
9385  lt_tmp_lt_search_path_spec=
9386  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9387  for lt_sys_path in $lt_search_path_spec; do
9388    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9389      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9390    else
9391      test -d "$lt_sys_path" && \
9392        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9393    fi
9394  done
9395  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9396BEGIN {RS=" "; FS="/|\n";} {
9397  lt_foo="";
9398  lt_count=0;
9399  for (lt_i = NF; lt_i > 0; lt_i--) {
9400    if ($lt_i != "" && $lt_i != ".") {
9401      if ($lt_i == "..") {
9402        lt_count++;
9403      } else {
9404        if (lt_count == 0) {
9405          lt_foo="/" $lt_i lt_foo;
9406        } else {
9407          lt_count--;
9408        }
9409      }
9410    }
9411  }
9412  if (lt_foo != "") { lt_freq[lt_foo]++; }
9413  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9414}'`
9415  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9416else
9417  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9418fi
9419need_lib_prefix=unknown
9420hardcode_into_libs=no
9421
9422# when you set need_version to no, make sure it does not cause -set_version
9423# flags to be left without arguments
9424need_version=unknown
9425
9426case $host_os in
9427aix3*)
9428  version_type=linux
9429  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9430  shlibpath_var=LIBPATH
9431
9432  # AIX 3 has no versioning support, so we append a major version to the name.
9433  soname_spec='${libname}${release}${shared_ext}$major'
9434  ;;
9435
9436aix[4-9]*)
9437  version_type=linux
9438  need_lib_prefix=no
9439  need_version=no
9440  hardcode_into_libs=yes
9441  if test "$host_cpu" = ia64; then
9442    # AIX 5 supports IA64
9443    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9444    shlibpath_var=LD_LIBRARY_PATH
9445  else
9446    # With GCC up to 2.95.x, collect2 would create an import file
9447    # for dependence libraries.  The import file would start with
9448    # the line `#! .'.  This would cause the generated library to
9449    # depend on `.', always an invalid library.  This was fixed in
9450    # development snapshots of GCC prior to 3.0.
9451    case $host_os in
9452      aix4 | aix4.[01] | aix4.[01].*)
9453      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9454           echo ' yes '
9455           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9456        :
9457      else
9458        can_build_shared=no
9459      fi
9460      ;;
9461    esac
9462    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9463    # soname into executable. Probably we can add versioning support to
9464    # collect2, so additional links can be useful in future.
9465    if test "$aix_use_runtimelinking" = yes; then
9466      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9467      # instead of lib<name>.a to let people know that these are not
9468      # typical AIX shared libraries.
9469      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9470    else
9471      # We preserve .a as extension for shared libraries through AIX4.2
9472      # and later when we are not doing run time linking.
9473      library_names_spec='${libname}${release}.a $libname.a'
9474      soname_spec='${libname}${release}${shared_ext}$major'
9475    fi
9476    shlibpath_var=LIBPATH
9477  fi
9478  ;;
9479
9480amigaos*)
9481  library_names_spec='$libname.ixlibrary $libname.a'
9482  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9483  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'
9484  ;;
9485
9486beos*)
9487  library_names_spec='${libname}${shared_ext}'
9488  dynamic_linker="$host_os ld.so"
9489  shlibpath_var=LIBRARY_PATH
9490  ;;
9491
9492bsdi[45]*)
9493  version_type=linux
9494  need_version=no
9495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9496  soname_spec='${libname}${release}${shared_ext}$major'
9497  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9498  shlibpath_var=LD_LIBRARY_PATH
9499  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9500  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9501  # the default ld.so.conf also contains /usr/contrib/lib and
9502  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9503  # libtool to hard-code these into programs
9504  ;;
9505
9506cygwin* | mingw* | pw32*)
9507  version_type=windows
9508  shrext_cmds=".dll"
9509  need_version=no
9510  need_lib_prefix=no
9511
9512  case $GCC,$host_os in
9513  yes,cygwin* | yes,mingw* | yes,pw32*)
9514    library_names_spec='$libname.dll.a'
9515    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9516    postinstall_cmds='base_file=`basename \${file}`~
9517      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9518      dldir=$destdir/`dirname \$dlpath`~
9519      test -d \$dldir || mkdir -p \$dldir~
9520      $install_prog $dir/$dlname \$dldir/$dlname~
9521      chmod a+x \$dldir/$dlname'
9522    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9523      dlpath=$dir/\$dldll~
9524       $rm \$dlpath'
9525    shlibpath_overrides_runpath=yes
9526
9527    case $host_os in
9528    cygwin*)
9529      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9530      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9531      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9532      ;;
9533    mingw*)
9534      # MinGW DLLs use traditional 'lib' prefix
9535      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9536      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9537      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9538        # It is most probably a Windows format PATH printed by
9539        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9540        # path with ; separators, and with drive letters. We can handle the
9541        # drive letters (cygwin fileutils understands them), so leave them,
9542        # especially as we might pass files found there to a mingw objdump,
9543        # which wouldn't understand a cygwinified path. Ahh.
9544        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9545      else
9546        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9547      fi
9548      ;;
9549    pw32*)
9550      # pw32 DLLs use 'pw' prefix rather than 'lib'
9551      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9552      ;;
9553    esac
9554    ;;
9555
9556  *)
9557    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9558    ;;
9559  esac
9560  dynamic_linker='Win32 ld.exe'
9561  # FIXME: first we should search . and the directory the executable is in
9562  shlibpath_var=PATH
9563  ;;
9564
9565darwin* | rhapsody*)
9566  dynamic_linker="$host_os dyld"
9567  version_type=darwin
9568  need_lib_prefix=no
9569  need_version=no
9570  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9571  soname_spec='${libname}${release}${major}$shared_ext'
9572  shlibpath_overrides_runpath=yes
9573  shlibpath_var=DYLD_LIBRARY_PATH
9574  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9575
9576  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9577  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9578  ;;
9579
9580dgux*)
9581  version_type=linux
9582  need_lib_prefix=no
9583  need_version=no
9584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9585  soname_spec='${libname}${release}${shared_ext}$major'
9586  shlibpath_var=LD_LIBRARY_PATH
9587  ;;
9588
9589freebsd1*)
9590  dynamic_linker=no
9591  ;;
9592
9593freebsd* | dragonfly*)
9594  # DragonFly does not have aout.  When/if they implement a new
9595  # versioning mechanism, adjust this.
9596  if test -x /usr/bin/objformat; then
9597    objformat=`/usr/bin/objformat`
9598  else
9599    case $host_os in
9600    freebsd[123]*) objformat=aout ;;
9601    *) objformat=elf ;;
9602    esac
9603  fi
9604  version_type=freebsd-$objformat
9605  case $version_type in
9606    freebsd-elf*)
9607      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9608      need_version=no
9609      need_lib_prefix=no
9610      ;;
9611    freebsd-*)
9612      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9613      need_version=yes
9614      ;;
9615  esac
9616  shlibpath_var=LD_LIBRARY_PATH
9617  case $host_os in
9618  freebsd2*)
9619    shlibpath_overrides_runpath=yes
9620    ;;
9621  freebsd3.[01]* | freebsdelf3.[01]*)
9622    shlibpath_overrides_runpath=yes
9623    hardcode_into_libs=yes
9624    ;;
9625  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9626  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9627    shlibpath_overrides_runpath=no
9628    hardcode_into_libs=yes
9629    ;;
9630  *) # from 4.6 on, and DragonFly
9631    shlibpath_overrides_runpath=yes
9632    hardcode_into_libs=yes
9633    ;;
9634  esac
9635  ;;
9636
9637gnu*)
9638  version_type=linux
9639  need_lib_prefix=no
9640  need_version=no
9641  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9642  soname_spec='${libname}${release}${shared_ext}$major'
9643  shlibpath_var=LD_LIBRARY_PATH
9644  hardcode_into_libs=yes
9645  ;;
9646
9647hpux9* | hpux10* | hpux11*)
9648  # Give a soname corresponding to the major version so that dld.sl refuses to
9649  # link against other versions.
9650  version_type=sunos
9651  need_lib_prefix=no
9652  need_version=no
9653  case $host_cpu in
9654  ia64*)
9655    shrext_cmds='.so'
9656    hardcode_into_libs=yes
9657    dynamic_linker="$host_os dld.so"
9658    shlibpath_var=LD_LIBRARY_PATH
9659    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9660    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9661    soname_spec='${libname}${release}${shared_ext}$major'
9662    if test "X$HPUX_IA64_MODE" = X32; then
9663      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9664    else
9665      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9666    fi
9667    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9668    ;;
9669   hppa*64*)
9670     shrext_cmds='.sl'
9671     hardcode_into_libs=yes
9672     dynamic_linker="$host_os dld.sl"
9673     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9674     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9675     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676     soname_spec='${libname}${release}${shared_ext}$major'
9677     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9678     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9679     ;;
9680   *)
9681    shrext_cmds='.sl'
9682    dynamic_linker="$host_os dld.sl"
9683    shlibpath_var=SHLIB_PATH
9684    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9685    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9686    soname_spec='${libname}${release}${shared_ext}$major'
9687    ;;
9688  esac
9689  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9690  postinstall_cmds='chmod 555 $lib'
9691  ;;
9692
9693interix[3-9]*)
9694  version_type=linux
9695  need_lib_prefix=no
9696  need_version=no
9697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9698  soname_spec='${libname}${release}${shared_ext}$major'
9699  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9700  shlibpath_var=LD_LIBRARY_PATH
9701  shlibpath_overrides_runpath=no
9702  hardcode_into_libs=yes
9703  ;;
9704
9705irix5* | irix6* | nonstopux*)
9706  case $host_os in
9707    nonstopux*) version_type=nonstopux ;;
9708    *)
9709        if test "$lt_cv_prog_gnu_ld" = yes; then
9710                version_type=linux
9711        else
9712                version_type=irix
9713        fi ;;
9714  esac
9715  need_lib_prefix=no
9716  need_version=no
9717  soname_spec='${libname}${release}${shared_ext}$major'
9718  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9719  case $host_os in
9720  irix5* | nonstopux*)
9721    libsuff= shlibsuff=
9722    ;;
9723  *)
9724    case $LD in # libtool.m4 will add one of these switches to LD
9725    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9726      libsuff= shlibsuff= libmagic=32-bit;;
9727    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9728      libsuff=32 shlibsuff=N32 libmagic=N32;;
9729    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9730      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9731    *) libsuff= shlibsuff= libmagic=never-match;;
9732    esac
9733    ;;
9734  esac
9735  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9736  shlibpath_overrides_runpath=no
9737  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9738  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9739  hardcode_into_libs=yes
9740  ;;
9741
9742# No shared lib support for Linux oldld, aout, or coff.
9743linux*oldld* | linux*aout* | linux*coff*)
9744  dynamic_linker=no
9745  ;;
9746
9747# This must be Linux ELF.
9748linux* | k*bsd*-gnu)
9749  version_type=linux
9750  need_lib_prefix=no
9751  need_version=no
9752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9753  soname_spec='${libname}${release}${shared_ext}$major'
9754  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9755  shlibpath_var=LD_LIBRARY_PATH
9756  shlibpath_overrides_runpath=no
9757  # This implies no fast_install, which is unacceptable.
9758  # Some rework will be needed to allow for fast_install
9759  # before this can be enabled.
9760  hardcode_into_libs=yes
9761
9762  # Append ld.so.conf contents to the search path
9763  if test -f /etc/ld.so.conf; then
9764    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9765    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9766  fi
9767
9768  # We used to test for /lib/ld.so.1 and disable shared libraries on
9769  # powerpc, because MkLinux only supported shared libraries with the
9770  # GNU dynamic linker.  Since this was broken with cross compilers,
9771  # most powerpc-linux boxes support dynamic linking these days and
9772  # people can always --disable-shared, the test was removed, and we
9773  # assume the GNU/Linux dynamic linker is in use.
9774  dynamic_linker='GNU/Linux ld.so'
9775  ;;
9776
9777netbsdelf*-gnu)
9778  version_type=linux
9779  need_lib_prefix=no
9780  need_version=no
9781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9782  soname_spec='${libname}${release}${shared_ext}$major'
9783  shlibpath_var=LD_LIBRARY_PATH
9784  shlibpath_overrides_runpath=no
9785  hardcode_into_libs=yes
9786  dynamic_linker='NetBSD ld.elf_so'
9787  ;;
9788
9789netbsd*)
9790  version_type=sunos
9791  need_lib_prefix=no
9792  need_version=no
9793  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9794    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9795    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9796    dynamic_linker='NetBSD (a.out) ld.so'
9797  else
9798    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9799    soname_spec='${libname}${release}${shared_ext}$major'
9800    dynamic_linker='NetBSD ld.elf_so'
9801  fi
9802  shlibpath_var=LD_LIBRARY_PATH
9803  shlibpath_overrides_runpath=yes
9804  hardcode_into_libs=yes
9805  ;;
9806
9807newsos6)
9808  version_type=linux
9809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9810  shlibpath_var=LD_LIBRARY_PATH
9811  shlibpath_overrides_runpath=yes
9812  ;;
9813
9814nto-qnx*)
9815  version_type=linux
9816  need_lib_prefix=no
9817  need_version=no
9818  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819  soname_spec='${libname}${release}${shared_ext}$major'
9820  shlibpath_var=LD_LIBRARY_PATH
9821  shlibpath_overrides_runpath=yes
9822  ;;
9823
9824openbsd*)
9825  version_type=sunos
9826  sys_lib_dlsearch_path_spec="/usr/lib"
9827  need_lib_prefix=no
9828  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9829  case $host_os in
9830    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9831    *)                         need_version=no  ;;
9832  esac
9833  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9834  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9835  shlibpath_var=LD_LIBRARY_PATH
9836  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9837    case $host_os in
9838      openbsd2.[89] | openbsd2.[89].*)
9839        shlibpath_overrides_runpath=no
9840        ;;
9841      *)
9842        shlibpath_overrides_runpath=yes
9843        ;;
9844      esac
9845  else
9846    shlibpath_overrides_runpath=yes
9847  fi
9848  ;;
9849
9850os2*)
9851  libname_spec='$name'
9852  shrext_cmds=".dll"
9853  need_lib_prefix=no
9854  library_names_spec='$libname${shared_ext} $libname.a'
9855  dynamic_linker='OS/2 ld.exe'
9856  shlibpath_var=LIBPATH
9857  ;;
9858
9859osf3* | osf4* | osf5*)
9860  version_type=osf
9861  need_lib_prefix=no
9862  need_version=no
9863  soname_spec='${libname}${release}${shared_ext}$major'
9864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9865  shlibpath_var=LD_LIBRARY_PATH
9866  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9867  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9868  ;;
9869
9870rdos*)
9871  dynamic_linker=no
9872  ;;
9873
9874solaris*)
9875  version_type=linux
9876  need_lib_prefix=no
9877  need_version=no
9878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9879  soname_spec='${libname}${release}${shared_ext}$major'
9880  shlibpath_var=LD_LIBRARY_PATH
9881  shlibpath_overrides_runpath=yes
9882  hardcode_into_libs=yes
9883  # ldd complains unless libraries are executable
9884  postinstall_cmds='chmod +x $lib'
9885  ;;
9886
9887sunos4*)
9888  version_type=sunos
9889  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9890  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9891  shlibpath_var=LD_LIBRARY_PATH
9892  shlibpath_overrides_runpath=yes
9893  if test "$with_gnu_ld" = yes; then
9894    need_lib_prefix=no
9895  fi
9896  need_version=yes
9897  ;;
9898
9899sysv4 | sysv4.3*)
9900  version_type=linux
9901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902  soname_spec='${libname}${release}${shared_ext}$major'
9903  shlibpath_var=LD_LIBRARY_PATH
9904  case $host_vendor in
9905    sni)
9906      shlibpath_overrides_runpath=no
9907      need_lib_prefix=no
9908      export_dynamic_flag_spec='${wl}-Blargedynsym'
9909      runpath_var=LD_RUN_PATH
9910      ;;
9911    siemens)
9912      need_lib_prefix=no
9913      ;;
9914    motorola)
9915      need_lib_prefix=no
9916      need_version=no
9917      shlibpath_overrides_runpath=no
9918      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9919      ;;
9920  esac
9921  ;;
9922
9923sysv4*MP*)
9924  if test -d /usr/nec ;then
9925    version_type=linux
9926    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9927    soname_spec='$libname${shared_ext}.$major'
9928    shlibpath_var=LD_LIBRARY_PATH
9929  fi
9930  ;;
9931
9932sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9933  version_type=freebsd-elf
9934  need_lib_prefix=no
9935  need_version=no
9936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9937  soname_spec='${libname}${release}${shared_ext}$major'
9938  shlibpath_var=LD_LIBRARY_PATH
9939  hardcode_into_libs=yes
9940  if test "$with_gnu_ld" = yes; then
9941    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9942    shlibpath_overrides_runpath=no
9943  else
9944    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9945    shlibpath_overrides_runpath=yes
9946    case $host_os in
9947      sco3.2v5*)
9948        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9949        ;;
9950    esac
9951  fi
9952  sys_lib_dlsearch_path_spec='/usr/lib'
9953  ;;
9954
9955uts4*)
9956  version_type=linux
9957  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958  soname_spec='${libname}${release}${shared_ext}$major'
9959  shlibpath_var=LD_LIBRARY_PATH
9960  ;;
9961
9962*)
9963  dynamic_linker=no
9964  ;;
9965esac
9966{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9967echo "${ECHO_T}$dynamic_linker" >&6; }
9968test "$dynamic_linker" = no && can_build_shared=no
9969
9970if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9971  echo $ECHO_N "(cached) $ECHO_C" >&6
9972else
9973  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9974fi
9975
9976sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9977if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9978  echo $ECHO_N "(cached) $ECHO_C" >&6
9979else
9980  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9981fi
9982
9983sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9984
9985variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9986if test "$GCC" = yes; then
9987  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9988fi
9989
9990{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9991echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9992hardcode_action=
9993if test -n "$hardcode_libdir_flag_spec" || \
9994   test -n "$runpath_var" || \
9995   test "X$hardcode_automatic" = "Xyes" ; then
9996
9997  # We can hardcode non-existant directories.
9998  if test "$hardcode_direct" != no &&
9999     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10000     # have to relink, otherwise we might link with an installed library
10001     # when we should be linking with a yet-to-be-installed one
10002     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10003     test "$hardcode_minus_L" != no; then
10004    # Linking always hardcodes the temporary library directory.
10005    hardcode_action=relink
10006  else
10007    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10008    hardcode_action=immediate
10009  fi
10010else
10011  # We cannot hardcode anything, or else we can only hardcode existing
10012  # directories.
10013  hardcode_action=unsupported
10014fi
10015{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10016echo "${ECHO_T}$hardcode_action" >&6; }
10017
10018if test "$hardcode_action" = relink; then
10019  # Fast installation is not supported
10020  enable_fast_install=no
10021elif test "$shlibpath_overrides_runpath" = yes ||
10022     test "$enable_shared" = no; then
10023  # Fast installation is not necessary
10024  enable_fast_install=needless
10025fi
10026
10027striplib=
10028old_striplib=
10029{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10030echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10031if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10032  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10033  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10034  { echo "$as_me:$LINENO: result: yes" >&5
10035echo "${ECHO_T}yes" >&6; }
10036else
10037# FIXME - insert some real tests, host_os isn't really good enough
10038  case $host_os in
10039   darwin*)
10040       if test -n "$STRIP" ; then
10041         striplib="$STRIP -x"
10042         old_striplib="$STRIP -S"
10043         { echo "$as_me:$LINENO: result: yes" >&5
10044echo "${ECHO_T}yes" >&6; }
10045       else
10046  { echo "$as_me:$LINENO: result: no" >&5
10047echo "${ECHO_T}no" >&6; }
10048fi
10049       ;;
10050   *)
10051  { echo "$as_me:$LINENO: result: no" >&5
10052echo "${ECHO_T}no" >&6; }
10053    ;;
10054  esac
10055fi
10056
10057if test "x$enable_dlopen" != xyes; then
10058  enable_dlopen=unknown
10059  enable_dlopen_self=unknown
10060  enable_dlopen_self_static=unknown
10061else
10062  lt_cv_dlopen=no
10063  lt_cv_dlopen_libs=
10064
10065  case $host_os in
10066  beos*)
10067    lt_cv_dlopen="load_add_on"
10068    lt_cv_dlopen_libs=
10069    lt_cv_dlopen_self=yes
10070    ;;
10071
10072  mingw* | pw32*)
10073    lt_cv_dlopen="LoadLibrary"
10074    lt_cv_dlopen_libs=
10075   ;;
10076
10077  cygwin*)
10078    lt_cv_dlopen="dlopen"
10079    lt_cv_dlopen_libs=
10080   ;;
10081
10082  darwin*)
10083  # if libdl is installed we need to link against it
10084    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10085echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10086if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10087  echo $ECHO_N "(cached) $ECHO_C" >&6
10088else
10089  ac_check_lib_save_LIBS=$LIBS
10090LIBS="-ldl  $LIBS"
10091cat >conftest.$ac_ext <<_ACEOF
10092/* confdefs.h.  */
10093_ACEOF
10094cat confdefs.h >>conftest.$ac_ext
10095cat >>conftest.$ac_ext <<_ACEOF
10096/* end confdefs.h.  */
10097
10098/* Override any GCC internal prototype to avoid an error.
10099   Use char because int might match the return type of a GCC
10100   builtin and then its argument prototype would still apply.  */
10101#ifdef __cplusplus
10102extern "C"
10103#endif
10104char dlopen ();
10105int
10106main ()
10107{
10108return dlopen ();
10109  ;
10110  return 0;
10111}
10112_ACEOF
10113rm -f conftest.$ac_objext conftest$ac_exeext
10114if { (ac_try="$ac_link"
10115case "(($ac_try" in
10116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117  *) ac_try_echo=$ac_try;;
10118esac
10119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120  (eval "$ac_link") 2>conftest.er1
10121  ac_status=$?
10122  grep -v '^ *+' conftest.er1 >conftest.err
10123  rm -f conftest.er1
10124  cat conftest.err >&5
10125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126  (exit $ac_status); } && {
10127         test -z "$ac_c_werror_flag" ||
10128         test ! -s conftest.err
10129       } && test -s conftest$ac_exeext &&
10130       $as_test_x conftest$ac_exeext; then
10131  ac_cv_lib_dl_dlopen=yes
10132else
10133  echo "$as_me: failed program was:" >&5
10134sed 's/^/| /' conftest.$ac_ext >&5
10135
10136        ac_cv_lib_dl_dlopen=no
10137fi
10138
10139rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10140      conftest$ac_exeext conftest.$ac_ext
10141LIBS=$ac_check_lib_save_LIBS
10142fi
10143{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10144echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10145if test $ac_cv_lib_dl_dlopen = yes; then
10146  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10147else
10148
10149    lt_cv_dlopen="dyld"
10150    lt_cv_dlopen_libs=
10151    lt_cv_dlopen_self=yes
10152
10153fi
10154
10155   ;;
10156
10157  *)
10158    { echo "$as_me:$LINENO: checking for shl_load" >&5
10159echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10160if test "${ac_cv_func_shl_load+set}" = set; then
10161  echo $ECHO_N "(cached) $ECHO_C" >&6
10162else
10163  cat >conftest.$ac_ext <<_ACEOF
10164/* confdefs.h.  */
10165_ACEOF
10166cat confdefs.h >>conftest.$ac_ext
10167cat >>conftest.$ac_ext <<_ACEOF
10168/* end confdefs.h.  */
10169/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10170   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10171#define shl_load innocuous_shl_load
10172
10173/* System header to define __stub macros and hopefully few prototypes,
10174    which can conflict with char shl_load (); below.
10175    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10176    <limits.h> exists even on freestanding compilers.  */
10177
10178#ifdef __STDC__
10179# include <limits.h>
10180#else
10181# include <assert.h>
10182#endif
10183
10184#undef shl_load
10185
10186/* Override any GCC internal prototype to avoid an error.
10187   Use char because int might match the return type of a GCC
10188   builtin and then its argument prototype would still apply.  */
10189#ifdef __cplusplus
10190extern "C"
10191#endif
10192char shl_load ();
10193/* The GNU C library defines this for functions which it implements
10194    to always fail with ENOSYS.  Some functions are actually named
10195    something starting with __ and the normal name is an alias.  */
10196#if defined __stub_shl_load || defined __stub___shl_load
10197choke me
10198#endif
10199
10200int
10201main ()
10202{
10203return shl_load ();
10204  ;
10205  return 0;
10206}
10207_ACEOF
10208rm -f conftest.$ac_objext conftest$ac_exeext
10209if { (ac_try="$ac_link"
10210case "(($ac_try" in
10211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212  *) ac_try_echo=$ac_try;;
10213esac
10214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215  (eval "$ac_link") 2>conftest.er1
10216  ac_status=$?
10217  grep -v '^ *+' conftest.er1 >conftest.err
10218  rm -f conftest.er1
10219  cat conftest.err >&5
10220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221  (exit $ac_status); } && {
10222         test -z "$ac_c_werror_flag" ||
10223         test ! -s conftest.err
10224       } && test -s conftest$ac_exeext &&
10225       $as_test_x conftest$ac_exeext; then
10226  ac_cv_func_shl_load=yes
10227else
10228  echo "$as_me: failed program was:" >&5
10229sed 's/^/| /' conftest.$ac_ext >&5
10230
10231        ac_cv_func_shl_load=no
10232fi
10233
10234rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10235      conftest$ac_exeext conftest.$ac_ext
10236fi
10237{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10238echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10239if test $ac_cv_func_shl_load = yes; then
10240  lt_cv_dlopen="shl_load"
10241else
10242  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10243echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10244if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10245  echo $ECHO_N "(cached) $ECHO_C" >&6
10246else
10247  ac_check_lib_save_LIBS=$LIBS
10248LIBS="-ldld  $LIBS"
10249cat >conftest.$ac_ext <<_ACEOF
10250/* confdefs.h.  */
10251_ACEOF
10252cat confdefs.h >>conftest.$ac_ext
10253cat >>conftest.$ac_ext <<_ACEOF
10254/* end confdefs.h.  */
10255
10256/* Override any GCC internal prototype to avoid an error.
10257   Use char because int might match the return type of a GCC
10258   builtin and then its argument prototype would still apply.  */
10259#ifdef __cplusplus
10260extern "C"
10261#endif
10262char shl_load ();
10263int
10264main ()
10265{
10266return shl_load ();
10267  ;
10268  return 0;
10269}
10270_ACEOF
10271rm -f conftest.$ac_objext conftest$ac_exeext
10272if { (ac_try="$ac_link"
10273case "(($ac_try" in
10274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275  *) ac_try_echo=$ac_try;;
10276esac
10277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278  (eval "$ac_link") 2>conftest.er1
10279  ac_status=$?
10280  grep -v '^ *+' conftest.er1 >conftest.err
10281  rm -f conftest.er1
10282  cat conftest.err >&5
10283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284  (exit $ac_status); } && {
10285         test -z "$ac_c_werror_flag" ||
10286         test ! -s conftest.err
10287       } && test -s conftest$ac_exeext &&
10288       $as_test_x conftest$ac_exeext; then
10289  ac_cv_lib_dld_shl_load=yes
10290else
10291  echo "$as_me: failed program was:" >&5
10292sed 's/^/| /' conftest.$ac_ext >&5
10293
10294        ac_cv_lib_dld_shl_load=no
10295fi
10296
10297rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10298      conftest$ac_exeext conftest.$ac_ext
10299LIBS=$ac_check_lib_save_LIBS
10300fi
10301{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10302echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10303if test $ac_cv_lib_dld_shl_load = yes; then
10304  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10305else
10306  { echo "$as_me:$LINENO: checking for dlopen" >&5
10307echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10308if test "${ac_cv_func_dlopen+set}" = set; then
10309  echo $ECHO_N "(cached) $ECHO_C" >&6
10310else
10311  cat >conftest.$ac_ext <<_ACEOF
10312/* confdefs.h.  */
10313_ACEOF
10314cat confdefs.h >>conftest.$ac_ext
10315cat >>conftest.$ac_ext <<_ACEOF
10316/* end confdefs.h.  */
10317/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10318   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10319#define dlopen innocuous_dlopen
10320
10321/* System header to define __stub macros and hopefully few prototypes,
10322    which can conflict with char dlopen (); below.
10323    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10324    <limits.h> exists even on freestanding compilers.  */
10325
10326#ifdef __STDC__
10327# include <limits.h>
10328#else
10329# include <assert.h>
10330#endif
10331
10332#undef dlopen
10333
10334/* Override any GCC internal prototype to avoid an error.
10335   Use char because int might match the return type of a GCC
10336   builtin and then its argument prototype would still apply.  */
10337#ifdef __cplusplus
10338extern "C"
10339#endif
10340char dlopen ();
10341/* The GNU C library defines this for functions which it implements
10342    to always fail with ENOSYS.  Some functions are actually named
10343    something starting with __ and the normal name is an alias.  */
10344#if defined __stub_dlopen || defined __stub___dlopen
10345choke me
10346#endif
10347
10348int
10349main ()
10350{
10351return dlopen ();
10352  ;
10353  return 0;
10354}
10355_ACEOF
10356rm -f conftest.$ac_objext conftest$ac_exeext
10357if { (ac_try="$ac_link"
10358case "(($ac_try" in
10359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360  *) ac_try_echo=$ac_try;;
10361esac
10362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10363  (eval "$ac_link") 2>conftest.er1
10364  ac_status=$?
10365  grep -v '^ *+' conftest.er1 >conftest.err
10366  rm -f conftest.er1
10367  cat conftest.err >&5
10368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369  (exit $ac_status); } && {
10370         test -z "$ac_c_werror_flag" ||
10371         test ! -s conftest.err
10372       } && test -s conftest$ac_exeext &&
10373       $as_test_x conftest$ac_exeext; then
10374  ac_cv_func_dlopen=yes
10375else
10376  echo "$as_me: failed program was:" >&5
10377sed 's/^/| /' conftest.$ac_ext >&5
10378
10379        ac_cv_func_dlopen=no
10380fi
10381
10382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10383      conftest$ac_exeext conftest.$ac_ext
10384fi
10385{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10386echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10387if test $ac_cv_func_dlopen = yes; then
10388  lt_cv_dlopen="dlopen"
10389else
10390  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10391echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10392if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10393  echo $ECHO_N "(cached) $ECHO_C" >&6
10394else
10395  ac_check_lib_save_LIBS=$LIBS
10396LIBS="-ldl  $LIBS"
10397cat >conftest.$ac_ext <<_ACEOF
10398/* confdefs.h.  */
10399_ACEOF
10400cat confdefs.h >>conftest.$ac_ext
10401cat >>conftest.$ac_ext <<_ACEOF
10402/* end confdefs.h.  */
10403
10404/* Override any GCC internal prototype to avoid an error.
10405   Use char because int might match the return type of a GCC
10406   builtin and then its argument prototype would still apply.  */
10407#ifdef __cplusplus
10408extern "C"
10409#endif
10410char dlopen ();
10411int
10412main ()
10413{
10414return dlopen ();
10415  ;
10416  return 0;
10417}
10418_ACEOF
10419rm -f conftest.$ac_objext conftest$ac_exeext
10420if { (ac_try="$ac_link"
10421case "(($ac_try" in
10422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423  *) ac_try_echo=$ac_try;;
10424esac
10425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426  (eval "$ac_link") 2>conftest.er1
10427  ac_status=$?
10428  grep -v '^ *+' conftest.er1 >conftest.err
10429  rm -f conftest.er1
10430  cat conftest.err >&5
10431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432  (exit $ac_status); } && {
10433         test -z "$ac_c_werror_flag" ||
10434         test ! -s conftest.err
10435       } && test -s conftest$ac_exeext &&
10436       $as_test_x conftest$ac_exeext; then
10437  ac_cv_lib_dl_dlopen=yes
10438else
10439  echo "$as_me: failed program was:" >&5
10440sed 's/^/| /' conftest.$ac_ext >&5
10441
10442        ac_cv_lib_dl_dlopen=no
10443fi
10444
10445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10446      conftest$ac_exeext conftest.$ac_ext
10447LIBS=$ac_check_lib_save_LIBS
10448fi
10449{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10450echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10451if test $ac_cv_lib_dl_dlopen = yes; then
10452  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10453else
10454  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10455echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10456if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10457  echo $ECHO_N "(cached) $ECHO_C" >&6
10458else
10459  ac_check_lib_save_LIBS=$LIBS
10460LIBS="-lsvld  $LIBS"
10461cat >conftest.$ac_ext <<_ACEOF
10462/* confdefs.h.  */
10463_ACEOF
10464cat confdefs.h >>conftest.$ac_ext
10465cat >>conftest.$ac_ext <<_ACEOF
10466/* end confdefs.h.  */
10467
10468/* Override any GCC internal prototype to avoid an error.
10469   Use char because int might match the return type of a GCC
10470   builtin and then its argument prototype would still apply.  */
10471#ifdef __cplusplus
10472extern "C"
10473#endif
10474char dlopen ();
10475int
10476main ()
10477{
10478return dlopen ();
10479  ;
10480  return 0;
10481}
10482_ACEOF
10483rm -f conftest.$ac_objext conftest$ac_exeext
10484if { (ac_try="$ac_link"
10485case "(($ac_try" in
10486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487  *) ac_try_echo=$ac_try;;
10488esac
10489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490  (eval "$ac_link") 2>conftest.er1
10491  ac_status=$?
10492  grep -v '^ *+' conftest.er1 >conftest.err
10493  rm -f conftest.er1
10494  cat conftest.err >&5
10495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496  (exit $ac_status); } && {
10497         test -z "$ac_c_werror_flag" ||
10498         test ! -s conftest.err
10499       } && test -s conftest$ac_exeext &&
10500       $as_test_x conftest$ac_exeext; then
10501  ac_cv_lib_svld_dlopen=yes
10502else
10503  echo "$as_me: failed program was:" >&5
10504sed 's/^/| /' conftest.$ac_ext >&5
10505
10506        ac_cv_lib_svld_dlopen=no
10507fi
10508
10509rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10510      conftest$ac_exeext conftest.$ac_ext
10511LIBS=$ac_check_lib_save_LIBS
10512fi
10513{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10514echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10515if test $ac_cv_lib_svld_dlopen = yes; then
10516  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10517else
10518  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10519echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10520if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10521  echo $ECHO_N "(cached) $ECHO_C" >&6
10522else
10523  ac_check_lib_save_LIBS=$LIBS
10524LIBS="-ldld  $LIBS"
10525cat >conftest.$ac_ext <<_ACEOF
10526/* confdefs.h.  */
10527_ACEOF
10528cat confdefs.h >>conftest.$ac_ext
10529cat >>conftest.$ac_ext <<_ACEOF
10530/* end confdefs.h.  */
10531
10532/* Override any GCC internal prototype to avoid an error.
10533   Use char because int might match the return type of a GCC
10534   builtin and then its argument prototype would still apply.  */
10535#ifdef __cplusplus
10536extern "C"
10537#endif
10538char dld_link ();
10539int
10540main ()
10541{
10542return dld_link ();
10543  ;
10544  return 0;
10545}
10546_ACEOF
10547rm -f conftest.$ac_objext conftest$ac_exeext
10548if { (ac_try="$ac_link"
10549case "(($ac_try" in
10550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551  *) ac_try_echo=$ac_try;;
10552esac
10553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554  (eval "$ac_link") 2>conftest.er1
10555  ac_status=$?
10556  grep -v '^ *+' conftest.er1 >conftest.err
10557  rm -f conftest.er1
10558  cat conftest.err >&5
10559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560  (exit $ac_status); } && {
10561         test -z "$ac_c_werror_flag" ||
10562         test ! -s conftest.err
10563       } && test -s conftest$ac_exeext &&
10564       $as_test_x conftest$ac_exeext; then
10565  ac_cv_lib_dld_dld_link=yes
10566else
10567  echo "$as_me: failed program was:" >&5
10568sed 's/^/| /' conftest.$ac_ext >&5
10569
10570        ac_cv_lib_dld_dld_link=no
10571fi
10572
10573rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10574      conftest$ac_exeext conftest.$ac_ext
10575LIBS=$ac_check_lib_save_LIBS
10576fi
10577{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10578echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10579if test $ac_cv_lib_dld_dld_link = yes; then
10580  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10581fi
10582
10583
10584fi
10585
10586
10587fi
10588
10589
10590fi
10591
10592
10593fi
10594
10595
10596fi
10597
10598    ;;
10599  esac
10600
10601  if test "x$lt_cv_dlopen" != xno; then
10602    enable_dlopen=yes
10603  else
10604    enable_dlopen=no
10605  fi
10606
10607  case $lt_cv_dlopen in
10608  dlopen)
10609    save_CPPFLAGS="$CPPFLAGS"
10610    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10611
10612    save_LDFLAGS="$LDFLAGS"
10613    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10614
10615    save_LIBS="$LIBS"
10616    LIBS="$lt_cv_dlopen_libs $LIBS"
10617
10618    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10619echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10620if test "${lt_cv_dlopen_self+set}" = set; then
10621  echo $ECHO_N "(cached) $ECHO_C" >&6
10622else
10623          if test "$cross_compiling" = yes; then :
10624  lt_cv_dlopen_self=cross
10625else
10626  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10627  lt_status=$lt_dlunknown
10628  cat > conftest.$ac_ext <<EOF
10629#line 10629 "configure"
10630#include "confdefs.h"
10631
10632#if HAVE_DLFCN_H
10633#include <dlfcn.h>
10634#endif
10635
10636#include <stdio.h>
10637
10638#ifdef RTLD_GLOBAL
10639#  define LT_DLGLOBAL           RTLD_GLOBAL
10640#else
10641#  ifdef DL_GLOBAL
10642#    define LT_DLGLOBAL         DL_GLOBAL
10643#  else
10644#    define LT_DLGLOBAL         0
10645#  endif
10646#endif
10647
10648/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10649   find out it does not work in some platform. */
10650#ifndef LT_DLLAZY_OR_NOW
10651#  ifdef RTLD_LAZY
10652#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10653#  else
10654#    ifdef DL_LAZY
10655#      define LT_DLLAZY_OR_NOW          DL_LAZY
10656#    else
10657#      ifdef RTLD_NOW
10658#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10659#      else
10660#        ifdef DL_NOW
10661#          define LT_DLLAZY_OR_NOW      DL_NOW
10662#        else
10663#          define LT_DLLAZY_OR_NOW      0
10664#        endif
10665#      endif
10666#    endif
10667#  endif
10668#endif
10669
10670#ifdef __cplusplus
10671extern "C" void exit (int);
10672#endif
10673
10674void fnord() { int i=42;}
10675int main ()
10676{
10677  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10678  int status = $lt_dlunknown;
10679
10680  if (self)
10681    {
10682      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10683      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10684      /* dlclose (self); */
10685    }
10686  else
10687    puts (dlerror ());
10688
10689    exit (status);
10690}
10691EOF
10692  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10693  (eval $ac_link) 2>&5
10694  ac_status=$?
10695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10697    (./conftest; exit; ) >&5 2>/dev/null
10698    lt_status=$?
10699    case x$lt_status in
10700      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10701      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10702      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10703    esac
10704  else :
10705    # compilation failed
10706    lt_cv_dlopen_self=no
10707  fi
10708fi
10709rm -fr conftest*
10710
10711
10712fi
10713{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10714echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10715
10716    if test "x$lt_cv_dlopen_self" = xyes; then
10717      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10718      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10719echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10720if test "${lt_cv_dlopen_self_static+set}" = set; then
10721  echo $ECHO_N "(cached) $ECHO_C" >&6
10722else
10723          if test "$cross_compiling" = yes; then :
10724  lt_cv_dlopen_self_static=cross
10725else
10726  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10727  lt_status=$lt_dlunknown
10728  cat > conftest.$ac_ext <<EOF
10729#line 10729 "configure"
10730#include "confdefs.h"
10731
10732#if HAVE_DLFCN_H
10733#include <dlfcn.h>
10734#endif
10735
10736#include <stdio.h>
10737
10738#ifdef RTLD_GLOBAL
10739#  define LT_DLGLOBAL           RTLD_GLOBAL
10740#else
10741#  ifdef DL_GLOBAL
10742#    define LT_DLGLOBAL         DL_GLOBAL
10743#  else
10744#    define LT_DLGLOBAL         0
10745#  endif
10746#endif
10747
10748/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10749   find out it does not work in some platform. */
10750#ifndef LT_DLLAZY_OR_NOW
10751#  ifdef RTLD_LAZY
10752#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10753#  else
10754#    ifdef DL_LAZY
10755#      define LT_DLLAZY_OR_NOW          DL_LAZY
10756#    else
10757#      ifdef RTLD_NOW
10758#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10759#      else
10760#        ifdef DL_NOW
10761#          define LT_DLLAZY_OR_NOW      DL_NOW
10762#        else
10763#          define LT_DLLAZY_OR_NOW      0
10764#        endif
10765#      endif
10766#    endif
10767#  endif
10768#endif
10769
10770#ifdef __cplusplus
10771extern "C" void exit (int);
10772#endif
10773
10774void fnord() { int i=42;}
10775int main ()
10776{
10777  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10778  int status = $lt_dlunknown;
10779
10780  if (self)
10781    {
10782      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10783      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10784      /* dlclose (self); */
10785    }
10786  else
10787    puts (dlerror ());
10788
10789    exit (status);
10790}
10791EOF
10792  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10793  (eval $ac_link) 2>&5
10794  ac_status=$?
10795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10797    (./conftest; exit; ) >&5 2>/dev/null
10798    lt_status=$?
10799    case x$lt_status in
10800      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10801      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10802      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10803    esac
10804  else :
10805    # compilation failed
10806    lt_cv_dlopen_self_static=no
10807  fi
10808fi
10809rm -fr conftest*
10810
10811
10812fi
10813{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10814echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10815    fi
10816
10817    CPPFLAGS="$save_CPPFLAGS"
10818    LDFLAGS="$save_LDFLAGS"
10819    LIBS="$save_LIBS"
10820    ;;
10821  esac
10822
10823  case $lt_cv_dlopen_self in
10824  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10825  *) enable_dlopen_self=unknown ;;
10826  esac
10827
10828  case $lt_cv_dlopen_self_static in
10829  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10830  *) enable_dlopen_self_static=unknown ;;
10831  esac
10832fi
10833
10834
10835# Report which library types will actually be built
10836{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10837echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10838{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10839echo "${ECHO_T}$can_build_shared" >&6; }
10840
10841{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10842echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10843test "$can_build_shared" = "no" && enable_shared=no
10844
10845# On AIX, shared libraries and static libraries use the same namespace, and
10846# are all built from PIC.
10847case $host_os in
10848aix3*)
10849  test "$enable_shared" = yes && enable_static=no
10850  if test -n "$RANLIB"; then
10851    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10852    postinstall_cmds='$RANLIB $lib'
10853  fi
10854  ;;
10855
10856aix[4-9]*)
10857  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10858    test "$enable_shared" = yes && enable_static=no
10859  fi
10860    ;;
10861esac
10862{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10863echo "${ECHO_T}$enable_shared" >&6; }
10864
10865{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10866echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10867# Make sure either enable_shared or enable_static is yes.
10868test "$enable_shared" = yes || enable_static=yes
10869{ echo "$as_me:$LINENO: result: $enable_static" >&5
10870echo "${ECHO_T}$enable_static" >&6; }
10871
10872# The else clause should only fire when bootstrapping the
10873# libtool distribution, otherwise you forgot to ship ltmain.sh
10874# with your package, and you will get complaints that there are
10875# no rules to generate ltmain.sh.
10876if test -f "$ltmain"; then
10877  # See if we are running on zsh, and set the options which allow our commands through
10878  # without removal of \ escapes.
10879  if test -n "${ZSH_VERSION+set}" ; then
10880    setopt NO_GLOB_SUBST
10881  fi
10882  # Now quote all the things that may contain metacharacters while being
10883  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10884  # variables and quote the copies for generation of the libtool script.
10885  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10886    SED SHELL STRIP \
10887    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10888    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10889    deplibs_check_method reload_flag reload_cmds need_locks \
10890    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10891    lt_cv_sys_global_symbol_to_c_name_address \
10892    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10893    old_postinstall_cmds old_postuninstall_cmds \
10894    compiler \
10895    CC \
10896    LD \
10897    lt_prog_compiler_wl \
10898    lt_prog_compiler_pic \
10899    lt_prog_compiler_static \
10900    lt_prog_compiler_no_builtin_flag \