1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for clipper 2.1.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    PATH=/empty FPATH=/empty; export PATH FPATH
205    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='clipper'
589PACKAGE_TARNAME='clipper'
590PACKAGE_VERSION='2.1'
591PACKAGE_STRING='clipper 2.1'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="clipper/clipper.h"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636CLIPPER_REQUIRES
637CLIPPER_LIBS
638VERSION_INFO
639PTHREAD_CFLAGS
640PTHREAD_LIBS
641PTHREAD_CC
642ax_pthread_config
643FFTW2_LIBS
644FLIBS
645ac_ct_F77
646FFLAGS
647F77
648BUILD_FORTRAN_FALSE
649BUILD_FORTRAN_TRUE
650BUILD_CCTBX_FALSE
651BUILD_CCTBX_TRUE
652BUILD_CCP4_FALSE
653BUILD_CCP4_TRUE
654BUILD_CIF_FALSE
655BUILD_CIF_TRUE
656BUILD_MINIMOL_FALSE
657BUILD_MINIMOL_TRUE
658BUILD_MMDBOLD_FALSE
659BUILD_MMDBOLD_TRUE
660BUILD_MMDB_FALSE
661BUILD_MMDB_TRUE
662BUILD_CNS_FALSE
663BUILD_CNS_TRUE
664BUILD_PHS_FALSE
665BUILD_PHS_TRUE
666BUILD_CONTRIB_FALSE
667BUILD_CONTRIB_TRUE
668MAINT
669MAINTAINER_MODE_FALSE
670MAINTAINER_MODE_TRUE
671CXXCPP
672CPP
673OTOOL64
674OTOOL
675LIPO
676NMEDIT
677DSYMUTIL
678MANIFEST_TOOL
679RANLIB
680DLLTOOL
681OBJDUMP
682LN_S
683NM
684ac_ct_DUMPBIN
685DUMPBIN
686LD
687FGREP
688EGREP
689GREP
690SED
691host_os
692host_vendor
693host_cpu
694host
695build_os
696build_vendor
697build_cpu
698build
699LIBTOOL
700ac_ct_AR
701AR
702am__fastdepCXX_FALSE
703am__fastdepCXX_TRUE
704CXXDEPMODE
705ac_ct_CXX
706CXXFLAGS
707CXX
708am__fastdepCC_FALSE
709am__fastdepCC_TRUE
710CCDEPMODE
711am__nodep
712AMDEPBACKSLASH
713AMDEP_FALSE
714AMDEP_TRUE
715am__quote
716am__include
717DEPDIR
718OBJEXT
719EXEEXT
720ac_ct_CC
721CPPFLAGS
722LDFLAGS
723CFLAGS
724CC
725AM_BACKSLASH
726AM_DEFAULT_VERBOSITY
727AM_DEFAULT_V
728AM_V
729am__untar
730am__tar
731AMTAR
732am__leading_dot
733SET_MAKE
734AWK
735mkdir_p
736MKDIR_P
737INSTALL_STRIP_PROGRAM
738STRIP
739install_sh
740MAKEINFO
741AUTOHEADER
742AUTOMAKE
743AUTOCONF
744ACLOCAL
745VERSION
746PACKAGE
747CYGPATH_W
748am__isrc
749INSTALL_DATA
750INSTALL_SCRIPT
751INSTALL_PROGRAM
752target_alias
753host_alias
754build_alias
755LIBS
756ECHO_T
757ECHO_N
758ECHO_C
759DEFS
760mandir
761localedir
762libdir
763psdir
764pdfdir
765dvidir
766htmldir
767infodir
768docdir
769oldincludedir
770includedir
771localstatedir
772sharedstatedir
773sysconfdir
774datadir
775datarootdir
776libexecdir
777sbindir
778bindir
779program_transform_name
780prefix
781exec_prefix
782PACKAGE_URL
783PACKAGE_BUGREPORT
784PACKAGE_STRING
785PACKAGE_VERSION
786PACKAGE_TARNAME
787PACKAGE_NAME
788PATH_SEPARATOR
789SHELL'
790ac_subst_files=''
791ac_user_opts='
792enable_option_checking
793enable_silent_rules
794enable_dependency_tracking
795enable_shared
796enable_static
797with_pic
798enable_fast_install
799with_gnu_ld
800with_sysroot
801enable_libtool_lock
802enable_maintainer_mode
803enable_contrib
804enable_phs
805enable_cns
806enable_mmdb
807enable_minimol
808enable_cif
809enable_ccp4
810enable_cctbx
811enable_fortran
812'
813      ac_precious_vars='build_alias
814host_alias
815target_alias
816CC
817CFLAGS
818LDFLAGS
819LIBS
820CPPFLAGS
821CXX
822CXXFLAGS
823CCC
824CPP
825CXXCPP
826F77
827FFLAGS'
828
829
830# Initialize some variables set by options.
831ac_init_help=
832ac_init_version=false
833ac_unrecognized_opts=
834ac_unrecognized_sep=
835# The variables have the same names as the options, with
836# dashes changed to underlines.
837cache_file=/dev/null
838exec_prefix=NONE
839no_create=
840no_recursion=
841prefix=NONE
842program_prefix=NONE
843program_suffix=NONE
844program_transform_name=s,x,x,
845silent=
846site=
847srcdir=
848verbose=
849x_includes=NONE
850x_libraries=NONE
851
852# Installation directory options.
853# These are left unexpanded so users can "make install exec_prefix=/foo"
854# and all the variables that are supposed to be based on exec_prefix
855# by default will actually change.
856# Use braces instead of parens because sh, perl, etc. also accept them.
857# (The list follows the same order as the GNU Coding Standards.)
858bindir='${exec_prefix}/bin'
859sbindir='${exec_prefix}/sbin'
860libexecdir='${exec_prefix}/libexec'
861datarootdir='${prefix}/share'
862datadir='${datarootdir}'
863sysconfdir='${prefix}/etc'
864sharedstatedir='${prefix}/com'
865localstatedir='${prefix}/var'
866includedir='${prefix}/include'
867oldincludedir='/usr/include'
868docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869infodir='${datarootdir}/info'
870htmldir='${docdir}'
871dvidir='${docdir}'
872pdfdir='${docdir}'
873psdir='${docdir}'
874libdir='${exec_prefix}/lib'
875localedir='${datarootdir}/locale'
876mandir='${datarootdir}/man'
877
878ac_prev=
879ac_dashdash=
880for ac_option
881do
882  # If the previous option needs an argument, assign it.
883  if test -n "$ac_prev"; then
884    eval $ac_prev=\$ac_option
885    ac_prev=
886    continue
887  fi
888
889  case $ac_option in
890  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891  *=)   ac_optarg= ;;
892  *)    ac_optarg=yes ;;
893  esac
894
895  # Accept the important Cygnus configure options, so we can diagnose typos.
896
897  case $ac_dashdash$ac_option in
898  --)
899    ac_dashdash=yes ;;
900
901  -bindir | --bindir | --bindi | --bind | --bin | --bi)
902    ac_prev=bindir ;;
903  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904    bindir=$ac_optarg ;;
905
906  -build | --build | --buil | --bui | --bu)
907    ac_prev=build_alias ;;
908  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909    build_alias=$ac_optarg ;;
910
911  -cache-file | --cache-file | --cache-fil | --cache-fi \
912  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913    ac_prev=cache_file ;;
914  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916    cache_file=$ac_optarg ;;
917
918  --config-cache | -C)
919    cache_file=config.cache ;;
920
921  -datadir | --datadir | --datadi | --datad)
922    ac_prev=datadir ;;
923  -datadir=* | --datadir=* | --datadi=* | --datad=*)
924    datadir=$ac_optarg ;;
925
926  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927  | --dataroo | --dataro | --datar)
928    ac_prev=datarootdir ;;
929  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931    datarootdir=$ac_optarg ;;
932
933  -disable-* | --disable-*)
934    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935    # Reject names that are not valid shell variable names.
936    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937      as_fn_error $? "invalid feature name: $ac_useropt"
938    ac_useropt_orig=$ac_useropt
939    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940    case $ac_user_opts in
941      *"
942"enable_$ac_useropt"
943"*) ;;
944      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945	 ac_unrecognized_sep=', ';;
946    esac
947    eval enable_$ac_useropt=no ;;
948
949  -docdir | --docdir | --docdi | --doc | --do)
950    ac_prev=docdir ;;
951  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952    docdir=$ac_optarg ;;
953
954  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955    ac_prev=dvidir ;;
956  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957    dvidir=$ac_optarg ;;
958
959  -enable-* | --enable-*)
960    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
961    # Reject names that are not valid shell variable names.
962    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963      as_fn_error $? "invalid feature name: $ac_useropt"
964    ac_useropt_orig=$ac_useropt
965    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966    case $ac_user_opts in
967      *"
968"enable_$ac_useropt"
969"*) ;;
970      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971	 ac_unrecognized_sep=', ';;
972    esac
973    eval enable_$ac_useropt=\$ac_optarg ;;
974
975  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977  | --exec | --exe | --ex)
978    ac_prev=exec_prefix ;;
979  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981  | --exec=* | --exe=* | --ex=*)
982    exec_prefix=$ac_optarg ;;
983
984  -gas | --gas | --ga | --g)
985    # Obsolete; use --with-gas.
986    with_gas=yes ;;
987
988  -help | --help | --hel | --he | -h)
989    ac_init_help=long ;;
990  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991    ac_init_help=recursive ;;
992  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993    ac_init_help=short ;;
994
995  -host | --host | --hos | --ho)
996    ac_prev=host_alias ;;
997  -host=* | --host=* | --hos=* | --ho=*)
998    host_alias=$ac_optarg ;;
999
1000  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001    ac_prev=htmldir ;;
1002  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003  | --ht=*)
1004    htmldir=$ac_optarg ;;
1005
1006  -includedir | --includedir | --includedi | --included | --include \
1007  | --includ | --inclu | --incl | --inc)
1008    ac_prev=includedir ;;
1009  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010  | --includ=* | --inclu=* | --incl=* | --inc=*)
1011    includedir=$ac_optarg ;;
1012
1013  -infodir | --infodir | --infodi | --infod | --info | --inf)
1014    ac_prev=infodir ;;
1015  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1016    infodir=$ac_optarg ;;
1017
1018  -libdir | --libdir | --libdi | --libd)
1019    ac_prev=libdir ;;
1020  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1021    libdir=$ac_optarg ;;
1022
1023  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024  | --libexe | --libex | --libe)
1025    ac_prev=libexecdir ;;
1026  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027  | --libexe=* | --libex=* | --libe=*)
1028    libexecdir=$ac_optarg ;;
1029
1030  -localedir | --localedir | --localedi | --localed | --locale)
1031    ac_prev=localedir ;;
1032  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033    localedir=$ac_optarg ;;
1034
1035  -localstatedir | --localstatedir | --localstatedi | --localstated \
1036  | --localstate | --localstat | --localsta | --localst | --locals)
1037    ac_prev=localstatedir ;;
1038  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1039  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1040    localstatedir=$ac_optarg ;;
1041
1042  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043    ac_prev=mandir ;;
1044  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1045    mandir=$ac_optarg ;;
1046
1047  -nfp | --nfp | --nf)
1048    # Obsolete; use --without-fp.
1049    with_fp=no ;;
1050
1051  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1052  | --no-cr | --no-c | -n)
1053    no_create=yes ;;
1054
1055  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057    no_recursion=yes ;;
1058
1059  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061  | --oldin | --oldi | --old | --ol | --o)
1062    ac_prev=oldincludedir ;;
1063  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1066    oldincludedir=$ac_optarg ;;
1067
1068  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069    ac_prev=prefix ;;
1070  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1071    prefix=$ac_optarg ;;
1072
1073  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074  | --program-pre | --program-pr | --program-p)
1075    ac_prev=program_prefix ;;
1076  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1078    program_prefix=$ac_optarg ;;
1079
1080  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081  | --program-suf | --program-su | --program-s)
1082    ac_prev=program_suffix ;;
1083  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1085    program_suffix=$ac_optarg ;;
1086
1087  -program-transform-name | --program-transform-name \
1088  | --program-transform-nam | --program-transform-na \
1089  | --program-transform-n | --program-transform- \
1090  | --program-transform | --program-transfor \
1091  | --program-transfo | --program-transf \
1092  | --program-trans | --program-tran \
1093  | --progr-tra | --program-tr | --program-t)
1094    ac_prev=program_transform_name ;;
1095  -program-transform-name=* | --program-transform-name=* \
1096  | --program-transform-nam=* | --program-transform-na=* \
1097  | --program-transform-n=* | --program-transform-=* \
1098  | --program-transform=* | --program-transfor=* \
1099  | --program-transfo=* | --program-transf=* \
1100  | --program-trans=* | --program-tran=* \
1101  | --progr-tra=* | --program-tr=* | --program-t=*)
1102    program_transform_name=$ac_optarg ;;
1103
1104  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105    ac_prev=pdfdir ;;
1106  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107    pdfdir=$ac_optarg ;;
1108
1109  -psdir | --psdir | --psdi | --psd | --ps)
1110    ac_prev=psdir ;;
1111  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112    psdir=$ac_optarg ;;
1113
1114  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115  | -silent | --silent | --silen | --sile | --sil)
1116    silent=yes ;;
1117
1118  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119    ac_prev=sbindir ;;
1120  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121  | --sbi=* | --sb=*)
1122    sbindir=$ac_optarg ;;
1123
1124  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126  | --sharedst | --shareds | --shared | --share | --shar \
1127  | --sha | --sh)
1128    ac_prev=sharedstatedir ;;
1129  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132  | --sha=* | --sh=*)
1133    sharedstatedir=$ac_optarg ;;
1134
1135  -site | --site | --sit)
1136    ac_prev=site ;;
1137  -site=* | --site=* | --sit=*)
1138    site=$ac_optarg ;;
1139
1140  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141    ac_prev=srcdir ;;
1142  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1143    srcdir=$ac_optarg ;;
1144
1145  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146  | --syscon | --sysco | --sysc | --sys | --sy)
1147    ac_prev=sysconfdir ;;
1148  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1150    sysconfdir=$ac_optarg ;;
1151
1152  -target | --target | --targe | --targ | --tar | --ta | --t)
1153    ac_prev=target_alias ;;
1154  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1155    target_alias=$ac_optarg ;;
1156
1157  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158    verbose=yes ;;
1159
1160  -version | --version | --versio | --versi | --vers | -V)
1161    ac_init_version=: ;;
1162
1163  -with-* | --with-*)
1164    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1165    # Reject names that are not valid shell variable names.
1166    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167      as_fn_error $? "invalid package name: $ac_useropt"
1168    ac_useropt_orig=$ac_useropt
1169    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170    case $ac_user_opts in
1171      *"
1172"with_$ac_useropt"
1173"*) ;;
1174      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175	 ac_unrecognized_sep=', ';;
1176    esac
1177    eval with_$ac_useropt=\$ac_optarg ;;
1178
1179  -without-* | --without-*)
1180    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181    # Reject names that are not valid shell variable names.
1182    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183      as_fn_error $? "invalid package name: $ac_useropt"
1184    ac_useropt_orig=$ac_useropt
1185    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186    case $ac_user_opts in
1187      *"
1188"with_$ac_useropt"
1189"*) ;;
1190      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191	 ac_unrecognized_sep=', ';;
1192    esac
1193    eval with_$ac_useropt=no ;;
1194
1195  --x)
1196    # Obsolete; use --with-x.
1197    with_x=yes ;;
1198
1199  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200  | --x-incl | --x-inc | --x-in | --x-i)
1201    ac_prev=x_includes ;;
1202  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1204    x_includes=$ac_optarg ;;
1205
1206  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208    ac_prev=x_libraries ;;
1209  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1211    x_libraries=$ac_optarg ;;
1212
1213  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1214Try \`$0 --help' for more information"
1215    ;;
1216
1217  *=*)
1218    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219    # Reject names that are not valid shell variable names.
1220    case $ac_envvar in #(
1221      '' | [0-9]* | *[!_$as_cr_alnum]* )
1222      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1223    esac
1224    eval $ac_envvar=\$ac_optarg
1225    export $ac_envvar ;;
1226
1227  *)
1228    # FIXME: should be removed in autoconf 3.0.
1229    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1230    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1232    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1233    ;;
1234
1235  esac
1236done
1237
1238if test -n "$ac_prev"; then
1239  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1240  as_fn_error $? "missing argument to $ac_option"
1241fi
1242
1243if test -n "$ac_unrecognized_opts"; then
1244  case $enable_option_checking in
1245    no) ;;
1246    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1247    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248  esac
1249fi
1250
1251# Check all directory arguments for consistency.
1252for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253		datadir sysconfdir sharedstatedir localstatedir includedir \
1254		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255		libdir localedir mandir
1256do
1257  eval ac_val=\$$ac_var
1258  # Remove trailing slashes.
1259  case $ac_val in
1260    */ )
1261      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262      eval $ac_var=\$ac_val;;
1263  esac
1264  # Be sure to have absolute directory names.
1265  case $ac_val in
1266    [\\/$]* | ?:[\\/]* )  continue;;
1267    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268  esac
1269  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1270done
1271
1272# There might be people who depend on the old broken behavior: `$host'
1273# used to hold the argument of --host etc.
1274# FIXME: To remove some day.
1275build=$build_alias
1276host=$host_alias
1277target=$target_alias
1278
1279# FIXME: To remove some day.
1280if test "x$host_alias" != x; then
1281  if test "x$build_alias" = x; then
1282    cross_compiling=maybe
1283  elif test "x$build_alias" != "x$host_alias"; then
1284    cross_compiling=yes
1285  fi
1286fi
1287
1288ac_tool_prefix=
1289test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290
1291test "$silent" = yes && exec 6>/dev/null
1292
1293
1294ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295ac_ls_di=`ls -di .` &&
1296ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297  as_fn_error $? "working directory cannot be determined"
1298test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299  as_fn_error $? "pwd does not report name of working directory"
1300
1301
1302# Find the source files, if location was not specified.
1303if test -z "$srcdir"; then
1304  ac_srcdir_defaulted=yes
1305  # Try the directory containing this script, then the parent directory.
1306  ac_confdir=`$as_dirname -- "$as_myself" ||
1307$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308	 X"$as_myself" : 'X\(//\)[^/]' \| \
1309	 X"$as_myself" : 'X\(//\)$' \| \
1310	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311$as_echo X"$as_myself" |
1312    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313	    s//\1/
1314	    q
1315	  }
1316	  /^X\(\/\/\)[^/].*/{
1317	    s//\1/
1318	    q
1319	  }
1320	  /^X\(\/\/\)$/{
1321	    s//\1/
1322	    q
1323	  }
1324	  /^X\(\/\).*/{
1325	    s//\1/
1326	    q
1327	  }
1328	  s/.*/./; q'`
1329  srcdir=$ac_confdir
1330  if test ! -r "$srcdir/$ac_unique_file"; then
1331    srcdir=..
1332  fi
1333else
1334  ac_srcdir_defaulted=no
1335fi
1336if test ! -r "$srcdir/$ac_unique_file"; then
1337  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1338  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1339fi
1340ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1341ac_abs_confdir=`(
1342	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1343	pwd)`
1344# When building in place, set srcdir=.
1345if test "$ac_abs_confdir" = "$ac_pwd"; then
1346  srcdir=.
1347fi
1348# Remove unnecessary trailing slashes from srcdir.
1349# Double slashes in file names in object file debugging info
1350# mess up M-x gdb in Emacs.
1351case $srcdir in
1352*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353esac
1354for ac_var in $ac_precious_vars; do
1355  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356  eval ac_env_${ac_var}_value=\$${ac_var}
1357  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359done
1360
1361#
1362# Report the --help message.
1363#
1364if test "$ac_init_help" = "long"; then
1365  # Omit some internal or obsolete options to make the list less imposing.
1366  # This message is too long to be a string in the A/UX 3.1 sh.
1367  cat <<_ACEOF
1368\`configure' configures clipper 2.1 to adapt to many kinds of systems.
1369
1370Usage: $0 [OPTION]... [VAR=VALUE]...
1371
1372To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373VAR=VALUE.  See below for descriptions of some of the useful variables.
1374
1375Defaults for the options are specified in brackets.
1376
1377Configuration:
1378  -h, --help              display this help and exit
1379      --help=short        display options specific to this package
1380      --help=recursive    display the short help of all the included packages
1381  -V, --version           display version information and exit
1382  -q, --quiet, --silent   do not print \`checking ...' messages
1383      --cache-file=FILE   cache test results in FILE [disabled]
1384  -C, --config-cache      alias for \`--cache-file=config.cache'
1385  -n, --no-create         do not create output files
1386      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1387
1388Installation directories:
1389  --prefix=PREFIX         install architecture-independent files in PREFIX
1390                          [$ac_default_prefix]
1391  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1392                          [PREFIX]
1393
1394By default, \`make install' will install all the files in
1395\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1396an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397for instance \`--prefix=\$HOME'.
1398
1399For better control, use the options below.
1400
1401Fine tuning of the installation directories:
1402  --bindir=DIR            user executables [EPREFIX/bin]
1403  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1404  --libexecdir=DIR        program executables [EPREFIX/libexec]
1405  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1406  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1407  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1408  --libdir=DIR            object code libraries [EPREFIX/lib]
1409  --includedir=DIR        C header files [PREFIX/include]
1410  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1411  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1412  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1413  --infodir=DIR           info documentation [DATAROOTDIR/info]
1414  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1415  --mandir=DIR            man documentation [DATAROOTDIR/man]
1416  --docdir=DIR            documentation root [DATAROOTDIR/doc/clipper]
1417  --htmldir=DIR           html documentation [DOCDIR]
1418  --dvidir=DIR            dvi documentation [DOCDIR]
1419  --pdfdir=DIR            pdf documentation [DOCDIR]
1420  --psdir=DIR             ps documentation [DOCDIR]
1421_ACEOF
1422
1423  cat <<\_ACEOF
1424
1425Program names:
1426  --program-prefix=PREFIX            prepend PREFIX to installed program names
1427  --program-suffix=SUFFIX            append SUFFIX to installed program names
1428  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1429
1430System types:
1431  --build=BUILD     configure for building on BUILD [guessed]
1432  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1433_ACEOF
1434fi
1435
1436if test -n "$ac_init_help"; then
1437  case $ac_init_help in
1438     short | recursive ) echo "Configuration of clipper 2.1:";;
1439   esac
1440  cat <<\_ACEOF
1441
1442Optional Features:
1443  --disable-option-checking  ignore unrecognized --enable/--with options
1444  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1445  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1446  --enable-silent-rules   less verbose build output (undo: "make V=1")
1447  --disable-silent-rules  verbose build output (undo: "make V=0")
1448  --enable-dependency-tracking
1449                          do not reject slow dependency extractors
1450  --disable-dependency-tracking
1451                          speeds up one-time build
1452  --enable-shared[=PKGS]  build shared libraries [default=no]
1453  --enable-static[=PKGS]  build static libraries [default=yes]
1454  --enable-fast-install[=PKGS]
1455                          optimize for fast installation [default=yes]
1456  --disable-libtool-lock  avoid locking (might break parallel builds)
1457  --enable-maintainer-mode
1458                          enable make rules and dependencies not useful (and
1459                          sometimes confusing) to the casual installer
1460  --disable-contrib       disable contrib library
1461  --disable-phs           disable PHASEs file interface library
1462  --disable-cns           enable cns-hkl-interface library
1463  --enable-mmdb           enable mmdb-interface library (requires mmdb
1464                          library)
1465  --enable-minimol        enable minimol library (requires mmdb library)
1466  --enable-cif            enable cif-interface library (requires mmdb library)
1467  --enable-ccp4           enable ccp4-interface library (requires ccp4c
1468                          library)
1469  --enable-cctbx          enable cctbx-interface library (requires cctbx
1470                          package)
1471  --enable-fortran        enable fortran interface routines
1472
1473Optional Packages:
1474  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1475  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1476  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1477                          both]
1478  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1479  --with-sysroot=DIR Search for dependent libraries within DIR
1480                        (or the compiler's sysroot if not specified).
1481
1482Some influential environment variables:
1483  CC          C compiler command
1484  CFLAGS      C compiler flags
1485  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1486              nonstandard directory <lib dir>
1487  LIBS        libraries to pass to the linker, e.g. -l<library>
1488  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1489              you have headers in a nonstandard directory <include dir>
1490  CXX         C++ compiler command
1491  CXXFLAGS    C++ compiler flags
1492  CPP         C preprocessor
1493  CXXCPP      C++ preprocessor
1494  F77         Fortran 77 compiler command
1495  FFLAGS      Fortran 77 compiler flags
1496
1497Use these variables to override the choices made by `configure' or to help
1498it to find libraries and programs with nonstandard names/locations.
1499
1500Report bugs to the package provider.
1501_ACEOF
1502ac_status=$?
1503fi
1504
1505if test "$ac_init_help" = "recursive"; then
1506  # If there are subdirs, report their specific --help.
1507  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508    test -d "$ac_dir" ||
1509      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510      continue
1511    ac_builddir=.
1512
1513case "$ac_dir" in
1514.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515*)
1516  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1517  # A ".." for each directory in $ac_dir_suffix.
1518  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1519  case $ac_top_builddir_sub in
1520  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522  esac ;;
1523esac
1524ac_abs_top_builddir=$ac_pwd
1525ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526# for backward compatibility:
1527ac_top_builddir=$ac_top_build_prefix
1528
1529case $srcdir in
1530  .)  # We are building in place.
1531    ac_srcdir=.
1532    ac_top_srcdir=$ac_top_builddir_sub
1533    ac_abs_top_srcdir=$ac_pwd ;;
1534  [\\/]* | ?:[\\/]* )  # Absolute name.
1535    ac_srcdir=$srcdir$ac_dir_suffix;
1536    ac_top_srcdir=$srcdir
1537    ac_abs_top_srcdir=$srcdir ;;
1538  *) # Relative name.
1539    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540    ac_top_srcdir=$ac_top_build_prefix$srcdir
1541    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542esac
1543ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544
1545    cd "$ac_dir" || { ac_status=$?; continue; }
1546    # Check for guested configure.
1547    if test -f "$ac_srcdir/configure.gnu"; then
1548      echo &&
1549      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550    elif test -f "$ac_srcdir/configure"; then
1551      echo &&
1552      $SHELL "$ac_srcdir/configure" --help=recursive
1553    else
1554      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555    fi || ac_status=$?
1556    cd "$ac_pwd" || { ac_status=$?; break; }
1557  done
1558fi
1559
1560test -n "$ac_init_help" && exit $ac_status
1561if $ac_init_version; then
1562  cat <<\_ACEOF
1563clipper configure 2.1
1564generated by GNU Autoconf 2.69
1565
1566Copyright (C) 2012 Free Software Foundation, Inc.
1567This configure script is free software; the Free Software Foundation
1568gives unlimited permission to copy, distribute and modify it.
1569_ACEOF
1570  exit
1571fi
1572
1573## ------------------------ ##
1574## Autoconf initialization. ##
1575## ------------------------ ##
1576
1577# ac_fn_c_try_compile LINENO
1578# --------------------------
1579# Try to compile conftest.$ac_ext, and return whether this succeeded.
1580ac_fn_c_try_compile ()
1581{
1582  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583  rm -f conftest.$ac_objext
1584  if { { ac_try="$ac_compile"
1585case "(($ac_try" in
1586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587  *) ac_try_echo=$ac_try;;
1588esac
1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590$as_echo "$ac_try_echo"; } >&5
1591  (eval "$ac_compile") 2>conftest.err
1592  ac_status=$?
1593  if test -s conftest.err; then
1594    grep -v '^ *+' conftest.err >conftest.er1
1595    cat conftest.er1 >&5
1596    mv -f conftest.er1 conftest.err
1597  fi
1598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599  test $ac_status = 0; } && {
1600	 test -z "$ac_c_werror_flag" ||
1601	 test ! -s conftest.err
1602       } && test -s conftest.$ac_objext; then :
1603  ac_retval=0
1604else
1605  $as_echo "$as_me: failed program was:" >&5
1606sed 's/^/| /' conftest.$ac_ext >&5
1607
1608	ac_retval=1
1609fi
1610  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611  as_fn_set_status $ac_retval
1612
1613} # ac_fn_c_try_compile
1614
1615# ac_fn_cxx_try_compile LINENO
1616# ----------------------------
1617# Try to compile conftest.$ac_ext, and return whether this succeeded.
1618ac_fn_cxx_try_compile ()
1619{
1620  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621  rm -f conftest.$ac_objext
1622  if { { ac_try="$ac_compile"
1623case "(($ac_try" in
1624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625  *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628$as_echo "$ac_try_echo"; } >&5
1629  (eval "$ac_compile") 2>conftest.err
1630  ac_status=$?
1631  if test -s conftest.err; then
1632    grep -v '^ *+' conftest.err >conftest.er1
1633    cat conftest.er1 >&5
1634    mv -f conftest.er1 conftest.err
1635  fi
1636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637  test $ac_status = 0; } && {
1638	 test -z "$ac_cxx_werror_flag" ||
1639	 test ! -s conftest.err
1640       } && test -s conftest.$ac_objext; then :
1641  ac_retval=0
1642else
1643  $as_echo "$as_me: failed program was:" >&5
1644sed 's/^/| /' conftest.$ac_ext >&5
1645
1646	ac_retval=1
1647fi
1648  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649  as_fn_set_status $ac_retval
1650
1651} # ac_fn_cxx_try_compile
1652
1653# ac_fn_c_try_link LINENO
1654# -----------------------
1655# Try to link conftest.$ac_ext, and return whether this succeeded.
1656ac_fn_c_try_link ()
1657{
1658  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659  rm -f conftest.$ac_objext conftest$ac_exeext
1660  if { { ac_try="$ac_link"
1661case "(($ac_try" in
1662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663  *) ac_try_echo=$ac_try;;
1664esac
1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666$as_echo "$ac_try_echo"; } >&5
1667  (eval "$ac_link") 2>conftest.err
1668  ac_status=$?
1669  if test -s conftest.err; then
1670    grep -v '^ *+' conftest.err >conftest.er1
1671    cat conftest.er1 >&5
1672    mv -f conftest.er1 conftest.err
1673  fi
1674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675  test $ac_status = 0; } && {
1676	 test -z "$ac_c_werror_flag" ||
1677	 test ! -s conftest.err
1678       } && test -s conftest$ac_exeext && {
1679	 test "$cross_compiling" = yes ||
1680	 test -x conftest$ac_exeext
1681       }; then :
1682  ac_retval=0
1683else
1684  $as_echo "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687	ac_retval=1
1688fi
1689  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1690  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1691  # interfere with the next link command; also delete a directory that is
1692  # left behind by Apple's compiler.  We do this before executing the actions.
1693  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695  as_fn_set_status $ac_retval
1696
1697} # ac_fn_c_try_link
1698
1699# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700# -------------------------------------------------------
1701# Tests whether HEADER exists and can be compiled using the include files in
1702# INCLUDES, setting the cache variable VAR accordingly.
1703ac_fn_c_check_header_compile ()
1704{
1705  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707$as_echo_n "checking for $2... " >&6; }
1708if eval \${$3+:} false; then :
1709  $as_echo_n "(cached) " >&6
1710else
1711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712/* end confdefs.h.  */
1713$4
1714#include <$2>
1715_ACEOF
1716if ac_fn_c_try_compile "$LINENO"; then :
1717  eval "$3=yes"
1718else
1719  eval "$3=no"
1720fi
1721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1722fi
1723eval ac_res=\$$3
1724	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725$as_echo "$ac_res" >&6; }
1726  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727
1728} # ac_fn_c_check_header_compile
1729
1730# ac_fn_c_try_cpp LINENO
1731# ----------------------
1732# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1733ac_fn_c_try_cpp ()
1734{
1735  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736  if { { ac_try="$ac_cpp conftest.$ac_ext"
1737case "(($ac_try" in
1738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739  *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1744  ac_status=$?
1745  if test -s conftest.err; then
1746    grep -v '^ *+' conftest.err >conftest.er1
1747    cat conftest.er1 >&5
1748    mv -f conftest.er1 conftest.err
1749  fi
1750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751  test $ac_status = 0; } > conftest.i && {
1752	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1753	 test ! -s conftest.err
1754       }; then :
1755  ac_retval=0
1756else
1757  $as_echo "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760    ac_retval=1
1761fi
1762  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763  as_fn_set_status $ac_retval
1764
1765} # ac_fn_c_try_cpp
1766
1767# ac_fn_c_try_run LINENO
1768# ----------------------
1769# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1770# that executables *can* be run.
1771ac_fn_c_try_run ()
1772{
1773  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774  if { { ac_try="$ac_link"
1775case "(($ac_try" in
1776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777  *) ac_try_echo=$ac_try;;
1778esac
1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780$as_echo "$ac_try_echo"; } >&5
1781  (eval "$ac_link") 2>&5
1782  ac_status=$?
1783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1785  { { case "(($ac_try" in
1786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787  *) ac_try_echo=$ac_try;;
1788esac
1789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790$as_echo "$ac_try_echo"; } >&5
1791  (eval "$ac_try") 2>&5
1792  ac_status=$?
1793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794  test $ac_status = 0; }; }; then :
1795  ac_retval=0
1796else
1797  $as_echo "$as_me: program exited with status $ac_status" >&5
1798       $as_echo "$as_me: failed program was:" >&5
1799sed 's/^/| /' conftest.$ac_ext >&5
1800
1801       ac_retval=$ac_status
1802fi
1803  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805  as_fn_set_status $ac_retval
1806
1807} # ac_fn_c_try_run
1808
1809# ac_fn_c_check_func LINENO FUNC VAR
1810# ----------------------------------
1811# Tests whether FUNC exists, setting the cache variable VAR accordingly
1812ac_fn_c_check_func ()
1813{
1814  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816$as_echo_n "checking for $2... " >&6; }
1817if eval \${$3+:} false; then :
1818  $as_echo_n "(cached) " >&6
1819else
1820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821/* end confdefs.h.  */
1822/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1823   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1824#define $2 innocuous_$2
1825
1826/* System header to define __stub macros and hopefully few prototypes,
1827    which can conflict with char $2 (); below.
1828    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1829    <limits.h> exists even on freestanding compilers.  */
1830
1831#ifdef __STDC__
1832# include <limits.h>
1833#else
1834# include <assert.h>
1835#endif
1836
1837#undef $2
1838
1839/* Override any GCC internal prototype to avoid an error.
1840   Use char because int might match the return type of a GCC
1841   builtin and then its argument prototype would still apply.  */
1842#ifdef __cplusplus
1843extern "C"
1844#endif
1845char $2 ();
1846/* The GNU C library defines this for functions which it implements
1847    to always fail with ENOSYS.  Some functions are actually named
1848    something starting with __ and the normal name is an alias.  */
1849#if defined __stub_$2 || defined __stub___$2
1850choke me
1851#endif
1852
1853int
1854main ()
1855{
1856return $2 ();
1857  ;
1858  return 0;
1859}
1860_ACEOF
1861if ac_fn_c_try_link "$LINENO"; then :
1862  eval "$3=yes"
1863else
1864  eval "$3=no"
1865fi
1866rm -f core conftest.err conftest.$ac_objext \
1867    conftest$ac_exeext conftest.$ac_ext
1868fi
1869eval ac_res=\$$3
1870	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871$as_echo "$ac_res" >&6; }
1872  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874} # ac_fn_c_check_func
1875
1876# ac_fn_cxx_try_cpp LINENO
1877# ------------------------
1878# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1879ac_fn_cxx_try_cpp ()
1880{
1881  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882  if { { ac_try="$ac_cpp conftest.$ac_ext"
1883case "(($ac_try" in
1884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885  *) ac_try_echo=$ac_try;;
1886esac
1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888$as_echo "$ac_try_echo"; } >&5
1889  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1890  ac_status=$?
1891  if test -s conftest.err; then
1892    grep -v '^ *+' conftest.err >conftest.er1
1893    cat conftest.er1 >&5
1894    mv -f conftest.er1 conftest.err
1895  fi
1896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897  test $ac_status = 0; } > conftest.i && {
1898	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1899	 test ! -s conftest.err
1900       }; then :
1901  ac_retval=0
1902else
1903  $as_echo "$as_me: failed program was:" >&5
1904sed 's/^/| /' conftest.$ac_ext >&5
1905
1906    ac_retval=1
1907fi
1908  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909  as_fn_set_status $ac_retval
1910
1911} # ac_fn_cxx_try_cpp
1912
1913# ac_fn_cxx_try_link LINENO
1914# -------------------------
1915# Try to link conftest.$ac_ext, and return whether this succeeded.
1916ac_fn_cxx_try_link ()
1917{
1918  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919  rm -f conftest.$ac_objext conftest$ac_exeext
1920  if { { ac_try="$ac_link"
1921case "(($ac_try" in
1922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923  *) ac_try_echo=$ac_try;;
1924esac
1925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926$as_echo "$ac_try_echo"; } >&5
1927  (eval "$ac_link") 2>conftest.err
1928  ac_status=$?
1929  if test -s conftest.err; then
1930    grep -v '^ *+' conftest.err >conftest.er1
1931    cat conftest.er1 >&5
1932    mv -f conftest.er1 conftest.err
1933  fi
1934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935  test $ac_status = 0; } && {
1936	 test -z "$ac_cxx_werror_flag" ||
1937	 test ! -s conftest.err
1938       } && test -s conftest$ac_exeext && {
1939	 test "$cross_compiling" = yes ||
1940	 test -x conftest$ac_exeext
1941       }; then :
1942  ac_retval=0
1943else
1944  $as_echo "$as_me: failed program was:" >&5
1945sed 's/^/| /' conftest.$ac_ext >&5
1946
1947	ac_retval=1
1948fi
1949  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1950  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1951  # interfere with the next link command; also delete a directory that is
1952  # left behind by Apple's compiler.  We do this before executing the actions.
1953  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955  as_fn_set_status $ac_retval
1956
1957} # ac_fn_cxx_try_link
1958
1959# ac_fn_f77_try_compile LINENO
1960# ----------------------------
1961# Try to compile conftest.$ac_ext, and return whether this succeeded.
1962ac_fn_f77_try_compile ()
1963{
1964  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965  rm -f conftest.$ac_objext
1966  if { { ac_try="$ac_compile"
1967case "(($ac_try" in
1968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1969  *) ac_try_echo=$ac_try;;
1970esac
1971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972$as_echo "$ac_try_echo"; } >&5
1973  (eval "$ac_compile") 2>conftest.err
1974  ac_status=$?
1975  if test -s conftest.err; then
1976    grep -v '^ *+' conftest.err >conftest.er1
1977    cat conftest.er1 >&5
1978    mv -f conftest.er1 conftest.err
1979  fi
1980  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1981  test $ac_status = 0; } && {
1982	 test -z "$ac_f77_werror_flag" ||
1983	 test ! -s conftest.err
1984       } && test -s conftest.$ac_objext; then :
1985  ac_retval=0
1986else
1987  $as_echo "$as_me: failed program was:" >&5
1988sed 's/^/| /' conftest.$ac_ext >&5
1989
1990	ac_retval=1
1991fi
1992  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993  as_fn_set_status $ac_retval
1994
1995} # ac_fn_f77_try_compile
1996
1997# ac_fn_f77_try_link LINENO
1998# -------------------------
1999# Try to link conftest.$ac_ext, and return whether this succeeded.
2000ac_fn_f77_try_link ()
2001{
2002  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003  rm -f conftest.$ac_objext conftest$ac_exeext
2004  if { { ac_try="$ac_link"
2005case "(($ac_try" in
2006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2007  *) ac_try_echo=$ac_try;;
2008esac
2009eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010$as_echo "$ac_try_echo"; } >&5
2011  (eval "$ac_link") 2>conftest.err
2012  ac_status=$?
2013  if test -s conftest.err; then
2014    grep -v '^ *+' conftest.err >conftest.er1
2015    cat conftest.er1 >&5
2016    mv -f conftest.er1 conftest.err
2017  fi
2018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019  test $ac_status = 0; } && {
2020	 test -z "$ac_f77_werror_flag" ||
2021	 test ! -s conftest.err
2022       } && test -s conftest$ac_exeext && {
2023	 test "$cross_compiling" = yes ||
2024	 test -x conftest$ac_exeext
2025       }; then :
2026  ac_retval=0
2027else
2028  $as_echo "$as_me: failed program was:" >&5
2029sed 's/^/| /' conftest.$ac_ext >&5
2030
2031	ac_retval=1
2032fi
2033  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2034  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2035  # interfere with the next link command; also delete a directory that is
2036  # left behind by Apple's compiler.  We do this before executing the actions.
2037  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2038  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039  as_fn_set_status $ac_retval
2040
2041} # ac_fn_f77_try_link
2042
2043# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2044# -------------------------------------------------------
2045# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2046# the include files in INCLUDES and setting the cache variable VAR
2047# accordingly.
2048ac_fn_c_check_header_mongrel ()
2049{
2050  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051  if eval \${$3+:} false; then :
2052  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053$as_echo_n "checking for $2... " >&6; }
2054if eval \${$3+:} false; then :
2055  $as_echo_n "(cached) " >&6
2056fi
2057eval ac_res=\$$3
2058	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059$as_echo "$ac_res" >&6; }
2060else
2061  # Is the header compilable?
2062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2063$as_echo_n "checking $2 usability... " >&6; }
2064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h.  */
2066$4
2067#include <$2>
2068_ACEOF
2069if ac_fn_c_try_compile "$LINENO"; then :
2070  ac_header_compiler=yes
2071else
2072  ac_header_compiler=no
2073fi
2074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2076$as_echo "$ac_header_compiler" >&6; }
2077
2078# Is the header present?
2079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2080$as_echo_n "checking $2 presence... " >&6; }
2081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h.  */
2083#include <$2>
2084_ACEOF
2085if ac_fn_c_try_cpp "$LINENO"; then :
2086  ac_header_preproc=yes
2087else
2088  ac_header_preproc=no
2089fi
2090rm -f conftest.err conftest.i conftest.$ac_ext
2091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2092$as_echo "$ac_header_preproc" >&6; }
2093
2094# So?  What about this header?
2095case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2096  yes:no: )
2097    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2098$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2099    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2100$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2101    ;;
2102  no:yes:* )
2103    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2104$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2105    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2106$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2107    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2108$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2109    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2110$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2111    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2112$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2113    ;;
2114esac
2115  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116$as_echo_n "checking for $2... " >&6; }
2117if eval \${$3+:} false; then :
2118  $as_echo_n "(cached) " >&6
2119else
2120  eval "$3=\$ac_header_compiler"
2121fi
2122eval ac_res=\$$3
2123	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124$as_echo "$ac_res" >&6; }
2125fi
2126  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127
2128} # ac_fn_c_check_header_mongrel
2129
2130# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2131# ---------------------------------------------------------
2132# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2133# the include files in INCLUDES and setting the cache variable VAR
2134# accordingly.
2135ac_fn_cxx_check_header_mongrel ()
2136{
2137  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138  if eval \${$3+:} false; then :
2139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140$as_echo_n "checking for $2... " >&6; }
2141if eval \${$3+:} false; then :
2142  $as_echo_n "(cached) " >&6
2143fi
2144eval ac_res=\$$3
2145	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146$as_echo "$ac_res" >&6; }
2147else
2148  # Is the header compilable?
2149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2150$as_echo_n "checking $2 usability... " >&6; }
2151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152/* end confdefs.h.  */
2153$4
2154#include <$2>
2155_ACEOF
2156if ac_fn_cxx_try_compile "$LINENO"; then :
2157  ac_header_compiler=yes
2158else
2159  ac_header_compiler=no
2160fi
2161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2163$as_echo "$ac_header_compiler" >&6; }
2164
2165# Is the header present?
2166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2167$as_echo_n "checking $2 presence... " >&6; }
2168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169/* end confdefs.h.  */
2170#include <$2>
2171_ACEOF
2172if ac_fn_cxx_try_cpp "$LINENO"; then :
2173  ac_header_preproc=yes
2174else
2175  ac_header_preproc=no
2176fi
2177rm -f conftest.err conftest.i conftest.$ac_ext
2178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2179$as_echo "$ac_header_preproc" >&6; }
2180
2181# So?  What about this header?
2182case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2183  yes:no: )
2184    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2185$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2186    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2187$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2188    ;;
2189  no:yes:* )
2190    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2191$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2192    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2193$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2194    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2195$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2196    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2197$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2198    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2199$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2200    ;;
2201esac
2202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203$as_echo_n "checking for $2... " >&6; }
2204if eval \${$3+:} false; then :
2205  $as_echo_n "(cached) " >&6
2206else
2207  eval "$3=\$ac_header_compiler"
2208fi
2209eval ac_res=\$$3
2210	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2211$as_echo "$ac_res" >&6; }
2212fi
2213  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214
2215} # ac_fn_cxx_check_header_mongrel
2216cat >config.log <<_ACEOF
2217This file contains any messages produced by compilers while
2218running configure, to aid debugging if configure makes a mistake.
2219
2220It was created by clipper $as_me 2.1, which was
2221generated by GNU Autoconf 2.69.  Invocation command line was
2222
2223  $ $0 $@
2224
2225_ACEOF
2226exec 5>>config.log
2227{
2228cat <<_ASUNAME
2229## --------- ##
2230## Platform. ##
2231## --------- ##
2232
2233hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2234uname -m = `(uname -m) 2>/dev/null || echo unknown`
2235uname -r = `(uname -r) 2>/dev/null || echo unknown`
2236uname -s = `(uname -s) 2>/dev/null || echo unknown`
2237uname -v = `(uname -v) 2>/dev/null || echo unknown`
2238
2239/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2240/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2241
2242/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2243/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2244/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2245/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2246/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2247/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2248/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2249
2250_ASUNAME
2251
2252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253for as_dir in $PATH
2254do
2255  IFS=$as_save_IFS
2256  test -z "$as_dir" && as_dir=.
2257    $as_echo "PATH: $as_dir"
2258  done
2259IFS=$as_save_IFS
2260
2261} >&5
2262
2263cat >&5 <<_ACEOF
2264
2265
2266## ----------- ##
2267## Core tests. ##
2268## ----------- ##
2269
2270_ACEOF
2271
2272
2273# Keep a trace of the command line.
2274# Strip out --no-create and --no-recursion so they do not pile up.
2275# Strip out --silent because we don't want to record it for future runs.
2276# Also quote any args containing shell meta-characters.
2277# Make two passes to allow for proper duplicate-argument suppression.
2278ac_configure_args=
2279ac_configure_args0=
2280ac_configure_args1=
2281ac_must_keep_next=false
2282for ac_pass in 1 2
2283do
2284  for ac_arg
2285  do
2286    case $ac_arg in
2287    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2288    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2289    | -silent | --silent | --silen | --sile | --sil)
2290      continue ;;
2291    *\'*)
2292      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2293    esac
2294    case $ac_pass in
2295    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2296    2)
2297      as_fn_append ac_configure_args1 " '$ac_arg'"
2298      if test $ac_must_keep_next = true; then
2299	ac_must_keep_next=false # Got value, back to normal.
2300      else
2301	case $ac_arg in
2302	  *=* | --config-cache | -C | -disable-* | --disable-* \
2303	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2304	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2305	  | -with-* | --with-* | -without-* | --without-* | --x)
2306	    case "$ac_configure_args0 " in
2307	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2308	    esac
2309	    ;;
2310	  -* ) ac_must_keep_next=true ;;
2311	esac
2312      fi
2313      as_fn_append ac_configure_args " '$ac_arg'"
2314      ;;
2315    esac
2316  done
2317done
2318{ ac_configure_args0=; unset ac_configure_args0;}
2319{ ac_configure_args1=; unset ac_configure_args1;}
2320
2321# When interrupted or exit'd, cleanup temporary files, and complete
2322# config.log.  We remove comments because anyway the quotes in there
2323# would cause problems or look ugly.
2324# WARNING: Use '\'' to represent an apostrophe within the trap.
2325# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2326trap 'exit_status=$?
2327  # Save into config.log some information that might help in debugging.
2328  {
2329    echo
2330
2331    $as_echo "## ---------------- ##
2332## Cache variables. ##
2333## ---------------- ##"
2334    echo
2335    # The following way of writing the cache mishandles newlines in values,
2336(
2337  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2338    eval ac_val=\$$ac_var
2339    case $ac_val in #(
2340    *${as_nl}*)
2341      case $ac_var in #(
2342      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2343$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2344      esac
2345      case $ac_var in #(
2346      _ | IFS | as_nl) ;; #(
2347      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2348      *) { eval $ac_var=; unset $ac_var;} ;;
2349      esac ;;
2350    esac
2351  done
2352  (set) 2>&1 |
2353    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2354    *${as_nl}ac_space=\ *)
2355      sed -n \
2356	"s/'\''/'\''\\\\'\'''\''/g;
2357	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2358      ;; #(
2359    *)
2360      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2361      ;;
2362    esac |
2363    sort
2364)
2365    echo
2366
2367    $as_echo "## ----------------- ##
2368## Output variables. ##
2369## ----------------- ##"
2370    echo
2371    for ac_var in $ac_subst_vars
2372    do
2373      eval ac_val=\$$ac_var
2374      case $ac_val in
2375      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2376      esac
2377      $as_echo "$ac_var='\''$ac_val'\''"
2378    done | sort
2379    echo
2380
2381    if test -n "$ac_subst_files"; then
2382      $as_echo "## ------------------- ##
2383## File substitutions. ##
2384## ------------------- ##"
2385      echo
2386      for ac_var in $ac_subst_files
2387      do
2388	eval ac_val=\$$ac_var
2389	case $ac_val in
2390	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2391	esac
2392	$as_echo "$ac_var='\''$ac_val'\''"
2393      done | sort
2394      echo
2395    fi
2396
2397    if test -s confdefs.h; then
2398      $as_echo "## ----------- ##
2399## confdefs.h. ##
2400## ----------- ##"
2401      echo
2402      cat confdefs.h
2403      echo
2404    fi
2405    test "$ac_signal" != 0 &&
2406      $as_echo "$as_me: caught signal $ac_signal"
2407    $as_echo "$as_me: exit $exit_status"
2408  } >&5
2409  rm -f core *.core core.conftest.* &&
2410    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2411    exit $exit_status
2412' 0
2413for ac_signal in 1 2 13 15; do
2414  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2415done
2416ac_signal=0
2417
2418# confdefs.h avoids OS command line length limits that DEFS can exceed.
2419rm -f -r conftest* confdefs.h
2420
2421$as_echo "/* confdefs.h */" > confdefs.h
2422
2423# Predefined preprocessor variables.
2424
2425cat >>confdefs.h <<_ACEOF
2426#define PACKAGE_NAME "$PACKAGE_NAME"
2427_ACEOF
2428
2429cat >>confdefs.h <<_ACEOF
2430#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2431_ACEOF
2432
2433cat >>confdefs.h <<_ACEOF
2434#define PACKAGE_VERSION "$PACKAGE_VERSION"
2435_ACEOF
2436
2437cat >>confdefs.h <<_ACEOF
2438#define PACKAGE_STRING "$PACKAGE_STRING"
2439_ACEOF
2440
2441cat >>confdefs.h <<_ACEOF
2442#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2443_ACEOF
2444
2445cat >>confdefs.h <<_ACEOF
2446#define PACKAGE_URL "$PACKAGE_URL"
2447_ACEOF
2448
2449
2450# Let the site file select an alternate cache file if it wants to.
2451# Prefer an explicitly selected file to automatically selected ones.
2452ac_site_file1=NONE
2453ac_site_file2=NONE
2454if test -n "$CONFIG_SITE"; then
2455  # We do not want a PATH search for config.site.
2456  case $CONFIG_SITE in #((
2457    -*)  ac_site_file1=./$CONFIG_SITE;;
2458    */*) ac_site_file1=$CONFIG_SITE;;
2459    *)   ac_site_file1=./$CONFIG_SITE;;
2460  esac
2461elif test "x$prefix" != xNONE; then
2462  ac_site_file1=$prefix/share/config.site
2463  ac_site_file2=$prefix/etc/config.site
2464else
2465  ac_site_file1=$ac_default_prefix/share/config.site
2466  ac_site_file2=$ac_default_prefix/etc/config.site
2467fi
2468for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2469do
2470  test "x$ac_site_file" = xNONE && continue
2471  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2472    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2473$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2474    sed 's/^/| /' "$ac_site_file" >&5
2475    . "$ac_site_file" \
2476      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2478as_fn_error $? "failed to load site script $ac_site_file
2479See \`config.log' for more details" "$LINENO" 5; }
2480  fi
2481done
2482
2483if test -r "$cache_file"; then
2484  # Some versions of bash will fail to source /dev/null (special files
2485  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2486  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2487    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2488$as_echo "$as_me: loading cache $cache_file" >&6;}
2489    case $cache_file in
2490      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2491      *)                      . "./$cache_file";;
2492    esac
2493  fi
2494else
2495  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2496$as_echo "$as_me: creating cache $cache_file" >&6;}
2497  >$cache_file
2498fi
2499
2500# Check that the precious variables saved in the cache have kept the same
2501# value.
2502ac_cache_corrupted=false
2503for ac_var in $ac_precious_vars; do
2504  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2505  eval ac_new_set=\$ac_env_${ac_var}_set
2506  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2507  eval ac_new_val=\$ac_env_${ac_var}_value
2508  case $ac_old_set,$ac_new_set in
2509    set,)
2510      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2511$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2512      ac_cache_corrupted=: ;;
2513    ,set)
2514      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2515$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2516      ac_cache_corrupted=: ;;
2517    ,);;
2518    *)
2519      if test "x$ac_old_val" != "x$ac_new_val"; then
2520	# differences in whitespace do not lead to failure.
2521	ac_old_val_w=`echo x $ac_old_val`
2522	ac_new_val_w=`echo x $ac_new_val`
2523	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2524	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2525$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2526	  ac_cache_corrupted=:
2527	else
2528	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2529$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2530	  eval $ac_var=\$ac_old_val
2531	fi
2532	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2533$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2534	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2535$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2536      fi;;
2537  esac
2538  # Pass precious variables to config.status.
2539  if test "$ac_new_set" = set; then
2540    case $ac_new_val in
2541    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2542    *) ac_arg=$ac_var=$ac_new_val ;;
2543    esac
2544    case " $ac_configure_args " in
2545      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2546      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2547    esac
2548  fi
2549done
2550if $ac_cache_corrupted; then
2551  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2553  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2554$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2555  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2556fi
2557## -------------------- ##
2558## Main body of script. ##
2559## -------------------- ##
2560
2561ac_ext=c
2562ac_cpp='$CPP $CPPFLAGS'
2563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566
2567
2568
2569ac_aux_dir=
2570for ac_dir in build-aux "$srcdir"/build-aux; do
2571  if test -f "$ac_dir/install-sh"; then
2572    ac_aux_dir=$ac_dir
2573    ac_install_sh="$ac_aux_dir/install-sh -c"
2574    break
2575  elif test -f "$ac_dir/install.sh"; then
2576    ac_aux_dir=$ac_dir
2577    ac_install_sh="$ac_aux_dir/install.sh -c"
2578    break
2579  elif test -f "$ac_dir/shtool"; then
2580    ac_aux_dir=$ac_dir
2581    ac_install_sh="$ac_aux_dir/shtool install -c"
2582    break
2583  fi
2584done
2585if test -z "$ac_aux_dir"; then
2586  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2587fi
2588
2589# These three variables are undocumented and unsupported,
2590# and are intended to be withdrawn in a future Autoconf release.
2591# They can cause serious problems if a builder's source tree is in a directory
2592# whose full name contains unusual characters.
2593ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2594ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2595ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2596
2597
2598
2599
2600ac_config_headers="$ac_config_headers config.h"
2601
2602am__api_version='1.13'
2603
2604# Find a good install program.  We prefer a C program (faster),
2605# so one script is as good as another.  But avoid the broken or
2606# incompatible versions:
2607# SysV /etc/install, /usr/sbin/install
2608# SunOS /usr/etc/install
2609# IRIX /sbin/install
2610# AIX /bin/install
2611# AmigaOS /C/install, which installs bootblocks on floppy discs
2612# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2613# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2614# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2615# OS/2's system install, which has a completely different semantic
2616# ./install, which can be erroneously created by make from ./install.sh.
2617# Reject install programs that cannot install multiple files.
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2619$as_echo_n "checking for a BSD-compatible install... " >&6; }
2620if test -z "$INSTALL"; then
2621if ${ac_cv_path_install+:} false; then :
2622  $as_echo_n "(cached) " >&6
2623else
2624  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625for as_dir in $PATH
2626do
2627  IFS=$as_save_IFS
2628  test -z "$as_dir" && as_dir=.
2629    # Account for people who put trailing slashes in PATH elements.
2630case $as_dir/ in #((
2631  ./ | .// | /[cC]/* | \
2632  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2633  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2634  /usr/ucb/* ) ;;
2635  *)
2636    # OSF1 and SCO ODT 3.0 have their own names for install.
2637    # Don't use installbsd from OSF since it installs stuff as root
2638    # by default.
2639    for ac_prog in ginstall scoinst install; do
2640      for ac_exec_ext in '' $ac_executable_extensions; do
2641	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2642	  if test $ac_prog = install &&
2643	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2644	    # AIX install.  It has an incompatible calling convention.
2645	    :
2646	  elif test $ac_prog = install &&
2647	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2648	    # program-specific install script used by HP pwplus--don't use.
2649	    :
2650	  else
2651	    rm -rf conftest.one conftest.two conftest.dir
2652	    echo one > conftest.one
2653	    echo two > conftest.two
2654	    mkdir conftest.dir
2655	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2656	      test -s conftest.one && test -s conftest.two &&
2657	      test -s conftest.dir/conftest.one &&
2658	      test -s conftest.dir/conftest.two
2659	    then
2660	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2661	      break 3
2662	    fi
2663	  fi
2664	fi
2665      done
2666    done
2667    ;;
2668esac
2669
2670  done
2671IFS=$as_save_IFS
2672
2673rm -rf conftest.one conftest.two conftest.dir
2674
2675fi
2676  if test "${ac_cv_path_install+set}" = set; then
2677    INSTALL=$ac_cv_path_install
2678  else
2679    # As a last resort, use the slow shell script.  Don't cache a
2680    # value for INSTALL within a source directory, because that will
2681    # break other packages using the cache if that directory is
2682    # removed, or if the value is a relative name.
2683    INSTALL=$ac_install_sh
2684  fi
2685fi
2686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2687$as_echo "$INSTALL" >&6; }
2688
2689# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2690# It thinks the first close brace ends the variable substitution.
2691test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2692
2693test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2694
2695test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2696
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2698$as_echo_n "checking whether build environment is sane... " >&6; }
2699# Reject unsafe characters in $srcdir or the absolute working directory
2700# name.  Accept space and tab only in the latter.
2701am_lf='
2702'
2703case `pwd` in
2704  *[\\\"\#\$\&\'\`$am_lf]*)
2705    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2706esac
2707case $srcdir in
2708  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2709    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2710esac
2711
2712# Do 'set' in a subshell so we don't clobber the current shell's
2713# arguments.  Must try -L first in case configure is actually a
2714# symlink; some systems play weird games with the mod time of symlinks
2715# (eg FreeBSD returns the mod time of the symlink's containing
2716# directory).
2717if (
2718   am_has_slept=no
2719   for am_try in 1 2; do
2720     echo "timestamp, slept: $am_has_slept" > conftest.file
2721     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2722     if test "$*" = "X"; then
2723	# -L didn't work.
2724	set X `ls -t "$srcdir/configure" conftest.file`
2725     fi
2726     if test "$*" != "X $srcdir/configure conftest.file" \
2727	&& test "$*" != "X conftest.file $srcdir/configure"; then
2728
2729	# If neither matched, then we have a broken ls.  This can happen
2730	# if, for instance, CONFIG_SHELL is bash and it inherits a
2731	# broken ls alias from the environment.  This has actually
2732	# happened.  Such a system could not be considered "sane".
2733	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2734  alias in your environment" "$LINENO" 5
2735     fi
2736     if test "$2" = conftest.file || test $am_try -eq 2; then
2737       break
2738     fi
2739     # Just in case.
2740     sleep 1
2741     am_has_slept=yes
2742   done
2743   test "$2" = conftest.file
2744   )
2745then
2746   # Ok.
2747   :
2748else
2749   as_fn_error $? "newly created file is older than distributed files!
2750Check your system clock" "$LINENO" 5
2751fi
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2753$as_echo "yes" >&6; }
2754# If we didn't sleep, we still need to ensure time stamps of config.status and
2755# generated files are strictly newer.
2756am_sleep_pid=
2757if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2758  ( sleep 1 ) &
2759  am_sleep_pid=$!
2760fi
2761
2762rm -f conftest.file
2763
2764test "$program_prefix" != NONE &&
2765  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2766# Use a double $ so make ignores it.
2767test "$program_suffix" != NONE &&
2768  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2769# Double any \ or $.
2770# By default was `s,x,x', remove it if useless.
2771ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2772program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2773
2774# expand $ac_aux_dir to an absolute path
2775am_aux_dir=`cd $ac_aux_dir && pwd`
2776
2777if test x"${MISSING+set}" != xset; then
2778  case $am_aux_dir in
2779  *\ * | *\	*)
2780    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2781  *)
2782    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2783  esac
2784fi
2785# Use eval to expand $SHELL
2786if eval "$MISSING --is-lightweight"; then
2787  am_missing_run="$MISSING "
2788else
2789  am_missing_run=
2790  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2791$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2792fi
2793
2794if test x"${install_sh}" != xset; then
2795  case $am_aux_dir in
2796  *\ * | *\	*)
2797    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2798  *)
2799    install_sh="\${SHELL} $am_aux_dir/install-sh"
2800  esac
2801fi
2802
2803# Installed binaries are usually stripped using 'strip' when the user
2804# run "make install-strip".  However 'strip' might not be the right
2805# tool to use in cross-compilation environments, therefore Automake
2806# will honor the 'STRIP' environment variable to overrule this program.
2807if test "$cross_compiling" != no; then
2808  if test -n "$ac_tool_prefix"; then
2809  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2810set dummy ${ac_tool_prefix}strip; ac_word=$2
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812$as_echo_n "checking for $ac_word... " >&6; }
2813if ${ac_cv_prog_STRIP+:} false; then :
2814  $as_echo_n "(cached) " >&6
2815else
2816  if test -n "$STRIP"; then
2817  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2818else
2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH
2821do
2822  IFS=$as_save_IFS
2823  test -z "$as_dir" && as_dir=.
2824    for ac_exec_ext in '' $ac_executable_extensions; do
2825  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828    break 2
2829  fi
2830done
2831  done
2832IFS=$as_save_IFS
2833
2834fi
2835fi
2836STRIP=$ac_cv_prog_STRIP
2837if test -n "$STRIP"; then
2838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2839$as_echo "$STRIP" >&6; }
2840else
2841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842$as_echo "no" >&6; }
2843fi
2844
2845
2846fi
2847if test -z "$ac_cv_prog_STRIP"; then
2848  ac_ct_STRIP=$STRIP
2849  # Extract the first word of "strip", so it can be a program name with args.
2850set dummy strip; ac_word=$2
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852$as_echo_n "checking for $ac_word... " >&6; }
2853if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2854  $as_echo_n "(cached) " >&6
2855else
2856  if test -n "$ac_ct_STRIP"; then
2857  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2858else
2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH
2861do
2862  IFS=$as_save_IFS
2863  test -z "$as_dir" && as_dir=.
2864    for ac_exec_ext in '' $ac_executable_extensions; do
2865  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866    ac_cv_prog_ac_ct_STRIP="strip"
2867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868    break 2
2869  fi
2870done
2871  done
2872IFS=$as_save_IFS
2873
2874fi
2875fi
2876ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2877if test -n "$ac_ct_STRIP"; then
2878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2879$as_echo "$ac_ct_STRIP" >&6; }
2880else
2881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882$as_echo "no" >&6; }
2883fi
2884
2885  if test "x$ac_ct_STRIP" = x; then
2886    STRIP=":"
2887  else
2888    case $cross_compiling:$ac_tool_warned in
2889yes:)
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2892ac_tool_warned=yes ;;
2893esac
2894    STRIP=$ac_ct_STRIP
2895  fi
2896else
2897  STRIP="$ac_cv_prog_STRIP"
2898fi
2899
2900fi
2901INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2902
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2904$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2905if test -z "$MKDIR_P"; then
2906  if ${ac_cv_path_mkdir+:} false; then :
2907  $as_echo_n "(cached) " >&6
2908else
2909  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2911do
2912  IFS=$as_save_IFS
2913  test -z "$as_dir" && as_dir=.
2914    for ac_prog in mkdir gmkdir; do
2915	 for ac_exec_ext in '' $ac_executable_extensions; do
2916	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2917	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2918	     'mkdir (GNU coreutils) '* | \
2919	     'mkdir (coreutils) '* | \
2920	     'mkdir (fileutils) '4.1*)
2921	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2922	       break 3;;
2923	   esac
2924	 done
2925       done
2926  done
2927IFS=$as_save_IFS
2928
2929fi
2930
2931  test -d ./--version && rmdir ./--version
2932  if test "${ac_cv_path_mkdir+set}" = set; then
2933    MKDIR_P="$ac_cv_path_mkdir -p"
2934  else
2935    # As a last resort, use the slow shell script.  Don't cache a
2936    # value for MKDIR_P within a source directory, because that will
2937    # break other packages using the cache if that directory is
2938    # removed, or if the value is a relative name.
2939    MKDIR_P="$ac_install_sh -d"
2940  fi
2941fi
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2943$as_echo "$MKDIR_P" >&6; }
2944
2945for ac_prog in gawk mawk nawk awk
2946do
2947  # Extract the first word of "$ac_prog", so it can be a program name with args.
2948set dummy $ac_prog; ac_word=$2
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950$as_echo_n "checking for $ac_word... " >&6; }
2951if ${ac_cv_prog_AWK+:} false; then :
2952  $as_echo_n "(cached) " >&6
2953else
2954  if test -n "$AWK"; then
2955  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2956else
2957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958for as_dir in $PATH
2959do
2960  IFS=$as_save_IFS
2961  test -z "$as_dir" && as_dir=.
2962    for ac_exec_ext in '' $ac_executable_extensions; do
2963  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2964    ac_cv_prog_AWK="$ac_prog"
2965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966    break 2
2967  fi
2968done
2969  done
2970IFS=$as_save_IFS
2971
2972fi
2973fi
2974AWK=$ac_cv_prog_AWK
2975if test -n "$AWK"; then
2976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2977$as_echo "$AWK" >&6; }
2978else
2979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980$as_echo "no" >&6; }
2981fi
2982
2983
2984  test -n "$AWK" && break
2985done
2986
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2988$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2989set x ${MAKE-make}
2990ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2991if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2992  $as_echo_n "(cached) " >&6
2993else
2994  cat >conftest.make <<\_ACEOF
2995SHELL = /bin/sh
2996all:
2997	@echo '@@@%%%=$(MAKE)=@@@%%%'
2998_ACEOF
2999# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3000case `${MAKE-make} -f conftest.make 2>/dev/null` in
3001  *@@@%%%=?*=@@@%%%*)
3002    eval ac_cv_prog_make_${ac_make}_set=yes;;
3003  *)
3004    eval ac_cv_prog_make_${ac_make}_set=no;;
3005esac
3006rm -f conftest.make
3007fi
3008if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3010$as_echo "yes" >&6; }
3011  SET_MAKE=
3012else
3013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014$as_echo "no" >&6; }
3015  SET_MAKE="MAKE=${MAKE-make}"
3016fi
3017
3018rm -rf .tst 2>/dev/null
3019mkdir .tst 2>/dev/null
3020if test -d .tst; then
3021  am__leading_dot=.
3022else
3023  am__leading_dot=_
3024fi
3025rmdir .tst 2>/dev/null
3026
3027# Check whether --enable-silent-rules was given.
3028if test "${enable_silent_rules+set}" = set; then :
3029  enableval=$enable_silent_rules;
3030fi
3031
3032case $enable_silent_rules in # (((
3033  yes) AM_DEFAULT_VERBOSITY=0;;
3034   no) AM_DEFAULT_VERBOSITY=1;;
3035    *) AM_DEFAULT_VERBOSITY=1;;
3036esac
3037am_make=${MAKE-make}
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3039$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3040if ${am_cv_make_support_nested_variables+:} false; then :
3041  $as_echo_n "(cached) " >&6
3042else
3043  if $as_echo 'TRUE=$(BAR$(V))
3044BAR0=false
3045BAR1=true
3046V=1
3047am__doit:
3048	@$(TRUE)
3049.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3050  am_cv_make_support_nested_variables=yes
3051else
3052  am_cv_make_support_nested_variables=no
3053fi
3054fi
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3056$as_echo "$am_cv_make_support_nested_variables" >&6; }
3057if test $am_cv_make_support_nested_variables = yes; then
3058    AM_V='$(V)'
3059  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3060else
3061  AM_V=$AM_DEFAULT_VERBOSITY
3062  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3063fi
3064AM_BACKSLASH='\'
3065
3066if test "`cd $srcdir && pwd`" != "`pwd`"; then
3067  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3068  # is not polluted with repeated "-I."
3069  am__isrc=' -I$(srcdir)'
3070  # test to see if srcdir already configured
3071  if test -f $srcdir/config.status; then
3072    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3073  fi
3074fi
3075
3076# test whether we have cygpath
3077if test -z "$CYGPATH_W"; then
3078  if (cygpath --version) >/dev/null 2>/dev/null; then
3079    CYGPATH_W='cygpath -w'
3080  else
3081    CYGPATH_W=echo
3082  fi
3083fi
3084
3085
3086# Define the identity of the package.
3087 PACKAGE='clipper'
3088 VERSION='2.1'
3089
3090
3091cat >>confdefs.h <<_ACEOF
3092#define PACKAGE "$PACKAGE"
3093_ACEOF
3094
3095
3096cat >>confdefs.h <<_ACEOF
3097#define VERSION "$VERSION"
3098_ACEOF
3099
3100# Some tools Automake needs.
3101
3102ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3103
3104
3105AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3106
3107
3108AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3109
3110
3111AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3112
3113
3114MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3115
3116# For better backward compatibility.  To be removed once Automake 1.9.x
3117# dies out for good.  For more background, see:
3118# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3119# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3120mkdir_p='$(MKDIR_P)'
3121
3122# We need awk for the "check" target.  The system "awk" is bad on
3123# some platforms.
3124# Always define AMTAR for backward compatibility.  Yes, it's still used
3125# in the wild :-(  We should find a proper way to deprecate it ...
3126AMTAR='$${TAR-tar}'
3127
3128
3129# We'll loop over all known methods to create a tar archive until one works.
3130_am_tools='gnutar  pax cpio none'
3131
3132am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3133
3134
3135
3136
3137
3138
3139
3140ac_ext=c
3141ac_cpp='$CPP $CPPFLAGS'
3142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3144ac_compiler_gnu=$ac_cv_c_compiler_gnu
3145if test -n "$ac_tool_prefix"; then
3146  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3147set dummy ${ac_tool_prefix}gcc; ac_word=$2
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149$as_echo_n "checking for $ac_word... " >&6; }
3150if ${ac_cv_prog_CC+:} false; then :
3151  $as_echo_n "(cached) " >&6
3152else
3153  if test -n "$CC"; then
3154  ac_cv_prog_CC="$CC" # Let the user override the test.
3155else
3156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157for as_dir in $PATH
3158do
3159  IFS=$as_save_IFS
3160  test -z "$as_dir" && as_dir=.
3161    for ac_exec_ext in '' $ac_executable_extensions; do
3162  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3164    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165    break 2
3166  fi
3167done
3168  done
3169IFS=$as_save_IFS
3170
3171fi
3172fi
3173CC=$ac_cv_prog_CC
3174if test -n "$CC"; then
3175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3176$as_echo "$CC" >&6; }
3177else
3178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179$as_echo "no" >&6; }
3180fi
3181
3182
3183fi
3184if test -z "$ac_cv_prog_CC"; then
3185  ac_ct_CC=$CC
3186  # Extract the first word of "gcc", so it can be a program name with args.
3187set dummy gcc; ac_word=$2
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189$as_echo_n "checking for $ac_word... " >&6; }
3190if ${ac_cv_prog_ac_ct_CC+:} false; then :
3191  $as_echo_n "(cached) " >&6
3192else
3193  if test -n "$ac_ct_CC"; then
3194  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3195else
3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in $PATH
3198do
3199  IFS=$as_save_IFS
3200  test -z "$as_dir" && as_dir=.
3201    for ac_exec_ext in '' $ac_executable_extensions; do
3202  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203    ac_cv_prog_ac_ct_CC="gcc"
3204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205    break 2
3206  fi
3207done
3208  done
3209IFS=$as_save_IFS
3210
3211fi
3212fi
3213ac_ct_CC=$ac_cv_prog_ac_ct_CC
3214if test -n "$ac_ct_CC"; then
3215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3216$as_echo "$ac_ct_CC" >&6; }
3217else
3218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219$as_echo "no" >&6; }
3220fi
3221
3222  if test "x$ac_ct_CC" = x; then
3223    CC=""
3224  else
3225    case $cross_compiling:$ac_tool_warned in
3226yes:)
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3229ac_tool_warned=yes ;;
3230esac
3231    CC=$ac_ct_CC
3232  fi
3233else
3234  CC="$ac_cv_prog_CC"
3235fi
3236
3237if test -z "$CC"; then
3238          if test -n "$ac_tool_prefix"; then
3239    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3240set dummy ${ac_tool_prefix}cc; ac_word=$2
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242$as_echo_n "checking for $ac_word... " >&6; }
3243if ${ac_cv_prog_CC+:} false; then :
3244  $as_echo_n "(cached) " >&6
3245else
3246  if test -n "$CC"; then
3247  ac_cv_prog_CC="$CC" # Let the user override the test.
3248else
3249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250for as_dir in $PATH
3251do
3252  IFS=$as_save_IFS
3253  test -z "$as_dir" && as_dir=.
3254    for ac_exec_ext in '' $ac_executable_extensions; do
3255  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3256    ac_cv_prog_CC="${ac_tool_prefix}cc"
3257    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258    break 2
3259  fi
3260done
3261  done
3262IFS=$as_save_IFS
3263
3264fi
3265fi
3266CC=$ac_cv_prog_CC
3267if test -n "$CC"; then
3268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3269$as_echo "$CC" >&6; }
3270else
3271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272$as_echo "no" >&6; }
3273fi
3274
3275
3276  fi
3277fi
3278if test -z "$CC"; then
3279  # Extract the first word of "cc", so it can be a program name with args.
3280set dummy cc; ac_word=$2
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3282$as_echo_n "checking for $ac_word... " >&6; }
3283if ${ac_cv_prog_CC+:} false; then :
3284  $as_echo_n "(cached) " >&6
3285else
3286  if test -n "$CC"; then
3287  ac_cv_prog_CC="$CC" # Let the user override the test.
3288else
3289  ac_prog_rejected=no
3290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291for as_dir in $PATH
3292do
3293  IFS=$as_save_IFS
3294  test -z "$as_dir" && as_dir=.
3295    for ac_exec_ext in '' $ac_executable_extensions; do
3296  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3297    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3298       ac_prog_rejected=yes
3299       continue
3300     fi
3301    ac_cv_prog_CC="cc"
3302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303    break 2
3304  fi
3305done
3306  done
3307IFS=$as_save_IFS
3308
3309if test $ac_prog_rejected = yes; then
3310  # We found a bogon in the path, so make sure we never use it.
3311  set dummy $ac_cv_prog_CC
3312  shift
3313  if test $# != 0; then
3314    # We chose a different compiler from the bogus one.
3315    # However, it has the same basename, so the bogon will be chosen
3316    # first if we set CC to just the basename; use the full file name.
3317    shift
3318    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3319  fi
3320fi
3321fi
3322fi
3323CC=$ac_cv_prog_CC
3324if test -n "$CC"; then
3325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3326$as_echo "$CC" >&6; }
3327else
3328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329$as_echo "no" >&6; }
3330fi
3331
3332
3333fi
3334if test -z "$CC"; then
3335  if test -n "$ac_tool_prefix"; then
3336  for ac_prog in cl.exe
3337  do
3338    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3339set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341$as_echo_n "checking for $ac_word... " >&6; }
3342if ${ac_cv_prog_CC+:} false; then :
3343  $as_echo_n "(cached) " >&6
3344else
3345  if test -n "$CC"; then
3346  ac_cv_prog_CC="$CC" # Let the user override the test.
3347else
3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349for as_dir in $PATH
3350do
3351  IFS=$as_save_IFS
3352  test -z "$as_dir" && as_dir=.
3353    for ac_exec_ext in '' $ac_executable_extensions; do
3354  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357    break 2
3358  fi
3359done
3360  done
3361IFS=$as_save_IFS
3362
3363fi
3364fi
3365CC=$ac_cv_prog_CC
3366if test -n "$CC"; then
3367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3368$as_echo "$CC" >&6; }
3369else
3370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371$as_echo "no" >&6; }
3372fi
3373
3374
3375    test -n "$CC" && break
3376  done
3377fi
3378if test -z "$CC"; then
3379  ac_ct_CC=$CC
3380  for ac_prog in cl.exe
3381do
3382  # Extract the first word of "$ac_prog", so it can be a program name with args.
3383set dummy $ac_prog; ac_word=$2
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385$as_echo_n "checking for $ac_word... " >&6; }
3386if ${ac_cv_prog_ac_ct_CC+:} false; then :
3387  $as_echo_n "(cached) " >&6
3388else
3389  if test -n "$ac_ct_CC"; then
3390  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3391else
3392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393for as_dir in $PATH
3394do
3395  IFS=$as_save_IFS
3396  test -z "$as_dir" && as_dir=.
3397    for ac_exec_ext in '' $ac_executable_extensions; do
3398  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3399    ac_cv_prog_ac_ct_CC="$ac_prog"
3400    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401    break 2
3402  fi
3403done
3404  done
3405IFS=$as_save_IFS
3406
3407fi
3408fi
3409ac_ct_CC=$ac_cv_prog_ac_ct_CC
3410if test -n "$ac_ct_CC"; then
3411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3412$as_echo "$ac_ct_CC" >&6; }
3413else
3414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415$as_echo "no" >&6; }
3416fi
3417
3418
3419  test -n "$ac_ct_CC" && break
3420done
3421
3422  if test "x$ac_ct_CC" = x; then
3423    CC=""
3424  else
3425    case $cross_compiling:$ac_tool_warned in
3426yes:)
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3429ac_tool_warned=yes ;;
3430esac
3431    CC=$ac_ct_CC
3432  fi
3433fi
3434
3435fi
3436
3437
3438test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440as_fn_error $? "no acceptable C compiler found in \$PATH
3441See \`config.log' for more details" "$LINENO" 5; }
3442
3443# Provide some information about the compiler.
3444$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3445set X $ac_compile
3446ac_compiler=$2
3447for ac_option in --version -v -V -qversion; do
3448  { { ac_try="$ac_compiler $ac_option >&5"
3449case "(($ac_try" in
3450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451  *) ac_try_echo=$ac_try;;
3452esac
3453eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454$as_echo "$ac_try_echo"; } >&5
3455  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3456  ac_status=$?
3457  if test -s conftest.err; then
3458    sed '10a\
3459... rest of stderr output deleted ...
3460         10q' conftest.err >conftest.er1
3461    cat conftest.er1 >&5
3462  fi
3463  rm -f conftest.er1 conftest.err
3464  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465  test $ac_status = 0; }
3466done
3467
3468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469/* end confdefs.h.  */
3470
3471int
3472main ()
3473{
3474
3475  ;
3476  return 0;
3477}
3478_ACEOF
3479ac_clean_files_save=$ac_clean_files
3480ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3481# Try to create an executable without -o first, disregard a.out.
3482# It will help us diagnose broken compilers, and finding out an intuition
3483# of exeext.
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3485$as_echo_n "checking whether the C compiler works... " >&6; }
3486ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3487
3488# The possible output files:
3489ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3490
3491ac_rmfiles=
3492for ac_file in $ac_files
3493do
3494  case $ac_file in
3495    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3496    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3497  esac
3498done
3499rm -f $ac_rmfiles
3500
3501if { { ac_try="$ac_link_default"
3502case "(($ac_try" in
3503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504  *) ac_try_echo=$ac_try;;
3505esac
3506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507$as_echo "$ac_try_echo"; } >&5
3508  (eval "$ac_link_default") 2>&5
3509  ac_status=$?
3510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511  test $ac_status = 0; }; then :
3512  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3513# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3514# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3515# so that the user can short-circuit this test for compilers unknown to
3516# Autoconf.
3517for ac_file in $ac_files ''
3518do
3519  test -f "$ac_file" || continue
3520  case $ac_file in
3521    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3522	;;
3523    [ab].out )
3524	# We found the default executable, but exeext='' is most
3525	# certainly right.
3526	break;;
3527    *.* )
3528	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3529	then :; else
3530	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3531	fi
3532	# We set ac_cv_exeext here because the later test for it is not
3533	# safe: cross compilers may not add the suffix if given an `-o'
3534	# argument, so we may need to know it at that point already.
3535	# Even if this section looks crufty: it has the advantage of
3536	# actually working.
3537	break;;
3538    * )
3539	break;;
3540  esac
3541done
3542test "$ac_cv_exeext" = no && ac_cv_exeext=
3543
3544else
3545  ac_file=''
3546fi
3547if test -z "$ac_file"; then :
3548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549$as_echo "no" >&6; }
3550$as_echo "$as_me: failed program was:" >&5
3551sed 's/^/| /' conftest.$ac_ext >&5
3552
3553{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555as_fn_error 77 "C compiler cannot create executables
3556See \`config.log' for more details" "$LINENO" 5; }
3557else
3558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3559$as_echo "yes" >&6; }
3560fi
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3562$as_echo_n "checking for C compiler default output file name... " >&6; }
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3564$as_echo "$ac_file" >&6; }
3565ac_exeext=$ac_cv_exeext
3566
3567rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3568ac_clean_files=$ac_clean_files_save
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3570$as_echo_n "checking for suffix of executables... " >&6; }
3571if { { ac_try="$ac_link"
3572case "(($ac_try" in
3573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574  *) ac_try_echo=$ac_try;;
3575esac
3576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577$as_echo "$ac_try_echo"; } >&5
3578  (eval "$ac_link") 2>&5
3579  ac_status=$?
3580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581  test $ac_status = 0; }; then :
3582  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3583# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3584# work properly (i.e., refer to `conftest.exe'), while it won't with
3585# `rm'.
3586for ac_file in conftest.exe conftest conftest.*; do
3587  test -f "$ac_file" || continue
3588  case $ac_file in
3589    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3590    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3591	  break;;
3592    * ) break;;
3593  esac
3594done
3595else
3596  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3599See \`config.log' for more details" "$LINENO" 5; }
3600fi
3601rm -f conftest conftest$ac_cv_exeext
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3603$as_echo "$ac_cv_exeext" >&6; }
3604
3605rm -f conftest.$ac_ext
3606EXEEXT=$ac_cv_exeext
3607ac_exeext=$EXEEXT
3608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609/* end confdefs.h.  */
3610#include <stdio.h>
3611int
3612main ()
3613{
3614FILE *f = fopen ("conftest.out", "w");
3615 return ferror (f) || fclose (f) != 0;
3616
3617  ;
3618  return 0;
3619}
3620_ACEOF
3621ac_clean_files="$ac_clean_files conftest.out"
3622# Check that the compiler produces executables we can run.  If not, either
3623# the compiler is broken, or we cross compile.
3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3625$as_echo_n "checking whether we are cross compiling... " >&6; }
3626if test "$cross_compiling" != yes; then
3627  { { ac_try="$ac_link"
3628case "(($ac_try" in
3629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630  *) ac_try_echo=$ac_try;;
3631esac
3632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3633$as_echo "$ac_try_echo"; } >&5
3634  (eval "$ac_link") 2>&5
3635  ac_status=$?
3636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3637  test $ac_status = 0; }
3638  if { ac_try='./conftest$ac_cv_exeext'
3639  { { case "(($ac_try" in
3640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641  *) ac_try_echo=$ac_try;;
3642esac
3643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644$as_echo "$ac_try_echo"; } >&5
3645  (eval "$ac_try") 2>&5
3646  ac_status=$?
3647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648  test $ac_status = 0; }; }; then
3649    cross_compiling=no
3650  else
3651    if test "$cross_compiling" = maybe; then
3652	cross_compiling=yes
3653    else
3654	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656as_fn_error $? "cannot run C compiled programs.
3657If you meant to cross compile, use \`--host'.
3658See \`config.log' for more details" "$LINENO" 5; }
3659    fi
3660  fi
3661fi
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3663$as_echo "$cross_compiling" >&6; }
3664
3665rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3666ac_clean_files=$ac_clean_files_save
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3668$as_echo_n "checking for suffix of object files... " >&6; }
3669if ${ac_cv_objext+:} false; then :
3670  $as_echo_n "(cached) " >&6
3671else
3672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673/* end confdefs.h.  */
3674
3675int
3676main ()
3677{
3678
3679  ;
3680  return 0;
3681}
3682_ACEOF
3683rm -f conftest.o conftest.obj
3684if { { ac_try="$ac_compile"
3685case "(($ac_try" in
3686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687  *) ac_try_echo=$ac_try;;
3688esac
3689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690$as_echo "$ac_try_echo"; } >&5
3691  (eval "$ac_compile") 2>&5
3692  ac_status=$?
3693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694  test $ac_status = 0; }; then :
3695  for ac_file in conftest.o conftest.obj conftest.*; do
3696  test -f "$ac_file" || continue;
3697  case $ac_file in
3698    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3699    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3700       break;;
3701  esac
3702done
3703else
3704  $as_echo "$as_me: failed program was:" >&5
3705sed 's/^/| /' conftest.$ac_ext >&5
3706
3707{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709as_fn_error $? "cannot compute suffix of object files: cannot compile
3710See \`config.log' for more details" "$LINENO" 5; }
3711fi
3712rm -f conftest.$ac_cv_objext conftest.$ac_ext
3713fi
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3715$as_echo "$ac_cv_objext" >&6; }
3716OBJEXT=$ac_cv_objext
3717ac_objext=$OBJEXT
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3719$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3720if ${ac_cv_c_compiler_gnu+:} false; then :
3721  $as_echo_n "(cached) " >&6
3722else
3723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724/* end confdefs.h.  */
3725
3726int
3727main ()
3728{
3729#ifndef __GNUC__
3730       choke me
3731#endif
3732
3733  ;
3734  return 0;
3735}
3736_ACEOF
3737if ac_fn_c_try_compile "$LINENO"; then :
3738  ac_compiler_gnu=yes
3739else
3740  ac_compiler_gnu=no
3741fi
3742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743ac_cv_c_compiler_gnu=$ac_compiler_gnu
3744
3745fi
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3747$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3748if test $ac_compiler_gnu = yes; then
3749  GCC=yes
3750else
3751  GCC=
3752fi
3753ac_test_CFLAGS=${CFLAGS+set}
3754ac_save_CFLAGS=$CFLAGS
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3756$as_echo_n "checking whether $CC accepts -g... " >&6; }
3757if ${ac_cv_prog_cc_g+:} false; then :
3758  $as_echo_n "(cached) " >&6
3759else
3760  ac_save_c_werror_flag=$ac_c_werror_flag
3761   ac_c_werror_flag=yes
3762   ac_cv_prog_cc_g=no
3763   CFLAGS="-g"
3764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765/* end confdefs.h.  */
3766
3767int
3768main ()
3769{
3770
3771  ;
3772  return 0;
3773}
3774_ACEOF
3775if ac_fn_c_try_compile "$LINENO"; then :
3776  ac_cv_prog_cc_g=yes
3777else
3778  CFLAGS=""
3779      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780/* end confdefs.h.  */
3781
3782int
3783main ()
3784{
3785
3786  ;
3787  return 0;
3788}
3789_ACEOF
3790if ac_fn_c_try_compile "$LINENO"; then :
3791
3792else
3793  ac_c_werror_flag=$ac_save_c_werror_flag
3794	 CFLAGS="-g"
3795	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796/* end confdefs.h.  */
3797
3798int
3799main ()
3800{
3801
3802  ;
3803  return 0;
3804}
3805_ACEOF
3806if ac_fn_c_try_compile "$LINENO"; then :
3807  ac_cv_prog_cc_g=yes
3808fi
3809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810fi
3811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812fi
3813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814   ac_c_werror_flag=$ac_save_c_werror_flag
3815fi
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3817$as_echo "$ac_cv_prog_cc_g" >&6; }
3818if test "$ac_test_CFLAGS" = set; then
3819  CFLAGS=$ac_save_CFLAGS
3820elif test $ac_cv_prog_cc_g = yes; then
3821  if test "$GCC" = yes; then
3822    CFLAGS="-g -O2"
3823  else
3824    CFLAGS="-g"
3825  fi
3826else
3827  if test "$GCC" = yes; then
3828    CFLAGS="-O2"
3829  else
3830    CFLAGS=
3831  fi
3832fi
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3834$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3835if ${ac_cv_prog_cc_c89+:} false; then :
3836  $as_echo_n "(cached) " >&6
3837else
3838  ac_cv_prog_cc_c89=no
3839ac_save_CC=$CC
3840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841/* end confdefs.h.  */
3842#include <stdarg.h>
3843#include <stdio.h>
3844struct stat;
3845/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3846struct buf { int x; };
3847FILE * (*rcsopen) (struct buf *, struct stat *, int);
3848static char *e (p, i)
3849     char **p;
3850     int i;
3851{
3852  return p[i];
3853}
3854static char *f (char * (*g) (char **, int), char **p, ...)
3855{
3856  char *s;
3857  va_list v;
3858  va_start (v,p);
3859  s = g (p, va_arg (v,int));
3860  va_end (v);
3861  return s;
3862}
3863
3864/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3865   function prototypes and stuff, but not '\xHH' hex character constants.
3866   These don't provoke an error unfortunately, instead are silently treated
3867   as 'x'.  The following induces an error, until -std is added to get
3868   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3869   array size at least.  It's necessary to write '\x00'==0 to get something
3870   that's true only with -std.  */
3871int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3872
3873/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3874   inside strings and character constants.  */
3875#define FOO(x) 'x'
3876int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3877
3878int test (int i, double x);
3879struct s1 {int (*f) (int a);};
3880struct s2 {int (*f) (double a);};
3881int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3882int argc;
3883char **argv;
3884int
3885main ()
3886{
3887return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3888  ;
3889  return 0;
3890}
3891_ACEOF
3892for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3893	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3894do
3895  CC="$ac_save_CC $ac_arg"
3896  if ac_fn_c_try_compile "$LINENO"; then :
3897  ac_cv_prog_cc_c89=$ac_arg
3898fi
3899rm -f core conftest.err conftest.$ac_objext
3900  test "x$ac_cv_prog_cc_c89" != "xno" && break
3901done
3902rm -f conftest.$ac_ext
3903CC=$ac_save_CC
3904
3905fi
3906# AC_CACHE_VAL
3907case "x$ac_cv_prog_cc_c89" in
3908  x)
3909    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3910$as_echo "none needed" >&6; } ;;
3911  xno)
3912    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3913$as_echo "unsupported" >&6; } ;;
3914  *)
3915    CC="$CC $ac_cv_prog_cc_c89"
3916    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3917$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3918esac
3919if test "x$ac_cv_prog_cc_c89" != xno; then :
3920
3921fi
3922
3923ac_ext=c
3924ac_cpp='$CPP $CPPFLAGS'
3925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928DEPDIR="${am__leading_dot}deps"
3929
3930ac_config_commands="$ac_config_commands depfiles"
3931
3932
3933am_make=${MAKE-make}
3934cat > confinc << 'END'
3935am__doit:
3936	@echo this is the am__doit target
3937.PHONY: am__doit
3938END
3939# If we don't find an include directive, just comment out the code.
3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3941$as_echo_n "checking for style of include used by $am_make... " >&6; }
3942am__include="#"
3943am__quote=
3944_am_result=none
3945# First try GNU make style include.
3946echo "include confinc" > confmf
3947# Ignore all kinds of additional output from 'make'.
3948case `$am_make -s -f confmf 2> /dev/null` in #(
3949*the\ am__doit\ target*)
3950  am__include=include
3951  am__quote=
3952  _am_result=GNU
3953  ;;
3954esac
3955# Now try BSD make style include.
3956if test "$am__include" = "#"; then
3957   echo '.include "confinc"' > confmf
3958   case `$am_make -s -f confmf 2> /dev/null` in #(
3959   *the\ am__doit\ target*)
3960     am__include=.include
3961     am__quote="\""
3962     _am_result=BSD
3963     ;;
3964   esac
3965fi
3966
3967
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3969$as_echo "$_am_result" >&6; }
3970rm -f confinc confmf
3971
3972# Check whether --enable-dependency-tracking was given.
3973if test "${enable_dependency_tracking+set}" = set; then :
3974  enableval=$enable_dependency_tracking;
3975fi
3976
3977if test "x$enable_dependency_tracking" != xno; then
3978  am_depcomp="$ac_aux_dir/depcomp"
3979  AMDEPBACKSLASH='\'
3980  am__nodep='_no'
3981fi
3982 if test "x$enable_dependency_tracking" != xno; then
3983  AMDEP_TRUE=
3984  AMDEP_FALSE='#'
3985else
3986  AMDEP_TRUE='#'
3987  AMDEP_FALSE=
3988fi
3989
3990
3991
3992depcc="$CC"   am_compiler_list=
3993
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3995$as_echo_n "checking dependency style of $depcc... " >&6; }
3996if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3997  $as_echo_n "(cached) " >&6
3998else
3999  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4000  # We make a subdir and do the tests there.  Otherwise we can end up
4001  # making bogus files that we don't know about and never remove.  For
4002  # instance it was reported that on HP-UX the gcc test will end up
4003  # making a dummy file named 'D' -- because '-MD' means "put the output
4004  # in D".
4005  rm -rf conftest.dir
4006  mkdir conftest.dir
4007  # Copy depcomp to subdir because otherwise we won't find it if we're
4008  # using a relative directory.
4009  cp "$am_depcomp" conftest.dir
4010  cd conftest.dir
4011  # We will build objects and dependencies in a subdirectory because
4012  # it helps to detect inapplicable dependency modes.  For instance
4013  # both Tru64's cc and ICC support -MD to output dependencies as a
4014  # side effect of compilation, but ICC will put the dependencies in
4015  # the current directory while Tru64 will put them in the object
4016  # directory.
4017  mkdir sub
4018
4019  am_cv_CC_dependencies_compiler_type=none
4020  if test "$am_compiler_list" = ""; then
4021     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4022  fi
4023  am__universal=false
4024  case " $depcc " in #(
4025     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4026     esac
4027
4028  for depmode in $am_compiler_list; do
4029    # Setup a source with many dependencies, because some compilers
4030    # like to wrap large dependency lists on column 80 (with \), and
4031    # we should not choose a depcomp mode which is confused by this.
4032    #
4033    # We need to recreate these files for each test, as the compiler may
4034    # overwrite some of them when testing with obscure command lines.
4035    # This happens at least with the AIX C compiler.
4036    : > sub/conftest.c
4037    for i in 1 2 3 4 5 6; do
4038      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4039      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4040      # Solaris 10 /bin/sh.
4041      echo '/* dummy */' > sub/conftst$i.h
4042    done
4043    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4044
4045    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4046    # mode.  It turns out that the SunPro C++ compiler does not properly
4047    # handle '-M -o', and we need to detect this.  Also, some Intel
4048    # versions had trouble with output in subdirs.
4049    am__obj=sub/conftest.${OBJEXT-o}
4050    am__minus_obj="-o $am__obj"
4051    case $depmode in
4052    gcc)
4053      # This depmode causes a compiler race in universal mode.
4054      test "$am__universal" = false || continue
4055      ;;
4056    nosideeffect)
4057      # After this tag, mechanisms are not by side-effect, so they'll
4058      # only be used when explicitly requested.
4059      if test "x$enable_dependency_tracking" = xyes; then
4060	continue
4061      else
4062	break
4063      fi
4064      ;;
4065    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4066      # This compiler won't grok '-c -o', but also, the minuso test has
4067      # not run yet.  These depmodes are late enough in the game, and
4068      # so weak that their functioning should not be impacted.
4069      am__obj=conftest.${OBJEXT-o}
4070      am__minus_obj=
4071      ;;
4072    none) break ;;
4073    esac
4074    if depmode=$depmode \
4075       source=sub/conftest.c object=$am__obj \
4076       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4077       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4078         >/dev/null 2>conftest.err &&
4079       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4080       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4081       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4082       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4083      # icc doesn't choke on unknown options, it will just issue warnings
4084      # or remarks (even with -Werror).  So we grep stderr for any message
4085      # that says an option was ignored or not supported.
4086      # When given -MP, icc 7.0 and 7.1 complain thusly:
4087      #   icc: Command line warning: ignoring option '-M'; no argument required
4088      # The diagnosis changed in icc 8.0:
4089      #   icc: Command line remark: option '-MP' not supported
4090      if (grep 'ignoring option' conftest.err ||
4091          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4092        am_cv_CC_dependencies_compiler_type=$depmode
4093        break
4094      fi
4095    fi
4096  done
4097
4098  cd ..
4099  rm -rf conftest.dir
4100else
4101  am_cv_CC_dependencies_compiler_type=none
4102fi
4103
4104fi
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4106$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4107CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4108
4109 if
4110  test "x$enable_dependency_tracking" != xno \
4111  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4112  am__fastdepCC_TRUE=
4113  am__fastdepCC_FALSE='#'
4114else
4115  am__fastdepCC_TRUE='#'
4116  am__fastdepCC_FALSE=
4117fi
4118
4119
4120ac_ext=cpp
4121ac_cpp='$CXXCPP $CPPFLAGS'
4122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4125if test -z "$CXX"; then
4126  if test -n "$CCC"; then
4127    CXX=$CCC
4128  else
4129    if test -n "$ac_tool_prefix"; then
4130  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4131  do
4132    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4133set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4135$as_echo_n "checking for $ac_word... " >&6; }
4136if ${ac_cv_prog_CXX+:} false; then :
4137  $as_echo_n "(cached) " >&6
4138else
4139  if test -n "$CXX"; then
4140  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4141else
4142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143for as_dir in $PATH
4144do
4145  IFS=$as_save_IFS
4146  test -z "$as_dir" && as_dir=.
4147    for ac_exec_ext in '' $ac_executable_extensions; do
4148  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4149    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4151    break 2
4152  fi
4153done
4154  done
4155IFS=$as_save_IFS
4156
4157fi
4158fi
4159CXX=$ac_cv_prog_CXX
4160if test -n "$CXX"; then
4161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4162$as_echo "$CXX" >&6; }
4163else
4164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4165$as_echo "no" >&6; }
4166fi
4167
4168
4169    test -n "$CXX" && break
4170  done
4171fi
4172if test -z "$CXX"; then
4173  ac_ct_CXX=$CXX
4174  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4175do
4176  # Extract the first word of "$ac_prog", so it can be a program name with args.
4177set dummy $ac_prog; ac_word=$2
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4179$as_echo_n "checking for $ac_word... " >&6; }
4180if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4181  $as_echo_n "(cached) " >&6
4182else
4183  if test -n "$ac_ct_CXX"; then
4184  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4185else
4186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187for as_dir in $PATH
4188do
4189  IFS=$as_save_IFS
4190  test -z "$as_dir" && as_dir=.
4191    for ac_exec_ext in '' $ac_executable_extensions; do
4192  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193    ac_cv_prog_ac_ct_CXX="$ac_prog"
4194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4195    break 2
4196  fi
4197done
4198  done
4199IFS=$as_save_IFS
4200
4201fi
4202fi
4203ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4204if test -n "$ac_ct_CXX"; then
4205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4206$as_echo "$ac_ct_CXX" >&6; }
4207else
4208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209$as_echo "no" >&6; }
4210fi
4211
4212
4213  test -n "$ac_ct_CXX" && break
4214done
4215
4216  if test "x$ac_ct_CXX" = x; then
4217    CXX="g++"
4218  else
4219    case $cross_compiling:$ac_tool_warned in
4220yes:)
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4223ac_tool_warned=yes ;;
4224esac
4225    CXX=$ac_ct_CXX
4226  fi
4227fi
4228
4229  fi
4230fi
4231# Provide some information about the compiler.
4232$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4233set X $ac_compile
4234ac_compiler=$2
4235for ac_option in --version -v -V -qversion; do
4236  { { ac_try="$ac_compiler $ac_option >&5"
4237case "(($ac_try" in
4238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239  *) ac_try_echo=$ac_try;;
4240esac
4241eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4242$as_echo "$ac_try_echo"; } >&5
4243  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4244  ac_status=$?
4245  if test -s conftest.err; then
4246    sed '10a\
4247... rest of stderr output deleted ...
4248         10q' conftest.err >conftest.er1
4249    cat conftest.er1 >&5
4250  fi
4251  rm -f conftest.er1 conftest.err
4252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4253  test $ac_status = 0; }
4254done
4255
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4257$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4258if ${ac_cv_cxx_compiler_gnu+:} false; then :
4259  $as_echo_n "(cached) " >&6
4260else
4261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262/* end confdefs.h.  */
4263
4264int
4265main ()
4266{
4267#ifndef __GNUC__
4268       choke me
4269#endif
4270
4271  ;
4272  return 0;
4273}
4274_ACEOF
4275if ac_fn_cxx_try_compile "$LINENO"; then :
4276  ac_compiler_gnu=yes
4277else
4278  ac_compiler_gnu=no
4279fi
4280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4282
4283fi
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4285$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4286if test $ac_compiler_gnu = yes; then
4287  GXX=yes
4288else
4289  GXX=
4290fi
4291ac_test_CXXFLAGS=${CXXFLAGS+set}
4292ac_save_CXXFLAGS=$CXXFLAGS
4293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4294$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4295if ${ac_cv_prog_cxx_g+:} false; then :
4296  $as_echo_n "(cached) " >&6
4297else
4298  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4299   ac_cxx_werror_flag=yes
4300   ac_cv_prog_cxx_g=no
4301   CXXFLAGS="-g"
4302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303/* end confdefs.h.  */
4304
4305int
4306main ()
4307{
4308
4309  ;
4310  return 0;
4311}
4312_ACEOF
4313if ac_fn_cxx_try_compile "$LINENO"; then :
4314  ac_cv_prog_cxx_g=yes
4315else
4316  CXXFLAGS=""
4317      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318/* end confdefs.h.  */
4319
4320int
4321main ()
4322{
4323
4324  ;
4325  return 0;
4326}
4327_ACEOF
4328if ac_fn_cxx_try_compile "$LINENO"; then :
4329
4330else
4331  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4332	 CXXFLAGS="-g"
4333	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334/* end confdefs.h.  */
4335
4336int
4337main ()
4338{
4339
4340  ;
4341  return 0;
4342}
4343_ACEOF
4344if ac_fn_cxx_try_compile "$LINENO"; then :
4345  ac_cv_prog_cxx_g=yes
4346fi
4347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348fi
4349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350fi
4351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4353fi
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4355$as_echo "$ac_cv_prog_cxx_g" >&6; }
4356if test "$ac_test_CXXFLAGS" = set; then
4357  CXXFLAGS=$ac_save_CXXFLAGS
4358elif test $ac_cv_prog_cxx_g = yes; then
4359  if test "$GXX" = yes; then
4360    CXXFLAGS="-g -O2"
4361  else
4362    CXXFLAGS="-g"
4363  fi
4364else
4365  if test "$GXX" = yes; then
4366    CXXFLAGS="-O2"
4367  else
4368    CXXFLAGS=
4369  fi
4370fi
4371ac_ext=c
4372ac_cpp='$CPP $CPPFLAGS'
4373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375ac_compiler_gnu=$ac_cv_c_compiler_gnu
4376
4377depcc="$CXX"  am_compiler_list=
4378
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4380$as_echo_n "checking dependency style of $depcc... " >&6; }
4381if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4382  $as_echo_n "(cached) " >&6
4383else
4384  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4385  # We make a subdir and do the tests there.  Otherwise we can end up
4386  # making bogus files that we don't know about and never remove.  For
4387  # instance it was reported that on HP-UX the gcc test will end up
4388  # making a dummy file named 'D' -- because '-MD' means "put the output
4389  # in D".
4390  rm -rf conftest.dir
4391  mkdir conftest.dir
4392  # Copy depcomp to subdir because otherwise we won't find it if we're
4393  # using a relative directory.
4394  cp "$am_depcomp" conftest.dir
4395  cd conftest.dir
4396  # We will build objects and dependencies in a subdirectory because
4397  # it helps to detect inapplicable dependency modes.  For instance
4398  # both Tru64's cc and ICC support -MD to output dependencies as a
4399  # side effect of compilation, but ICC will put the dependencies in
4400  # the current directory while Tru64 will put them in the object
4401  # directory.
4402  mkdir sub
4403
4404  am_cv_CXX_dependencies_compiler_type=none
4405  if test "$am_compiler_list" = ""; then
4406     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4407  fi
4408  am__universal=false
4409  case " $depcc " in #(
4410     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4411     esac
4412
4413  for depmode in $am_compiler_list; do
4414    # Setup a source with many dependencies, because some compilers
4415    # like to wrap large dependency lists on column 80 (with \), and
4416    # we should not choose a depcomp mode which is confused by this.
4417    #
4418    # We need to recreate these files for each test, as the compiler may
4419    # overwrite some of them when testing with obscure command lines.
4420    # This happens at least with the AIX C compiler.
4421    : > sub/conftest.c
4422    for i in 1 2 3 4 5 6; do
4423      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4424      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4425      # Solaris 10 /bin/sh.
4426      echo '/* dummy */' > sub/conftst$i.h
4427    done
4428    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4429
4430    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4431    # mode.  It turns out that the SunPro C++ compiler does not properly
4432    # handle '-M -o', and we need to detect this.  Also, some Intel
4433    # versions had trouble with output in subdirs.
4434    am__obj=sub/conftest.${OBJEXT-o}
4435    am__minus_obj="-o $am__obj"
4436    case $depmode in
4437    gcc)
4438      # This depmode causes a compiler race in universal mode.
4439      test "$am__universal" = false || continue
4440      ;;
4441    nosideeffect)
4442      # After this tag, mechanisms are not by side-effect, so they'll
4443      # only be used when explicitly requested.
4444      if test "x$enable_dependency_tracking" = xyes; then
4445	continue
4446      else
4447	break
4448      fi
4449      ;;
4450    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4451      # This compiler won't grok '-c -o', but also, the minuso test has
4452      # not run yet.  These depmodes are late enough in the game, and
4453      # so weak that their functioning should not be impacted.
4454      am__obj=conftest.${OBJEXT-o}
4455      am__minus_obj=
4456      ;;
4457    none) break ;;
4458    esac
4459    if depmode=$depmode \
4460       source=sub/conftest.c object=$am__obj \
4461       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4462       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4463         >/dev/null 2>conftest.err &&
4464       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4465       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4466       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4467       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4468      # icc doesn't choke on unknown options, it will just issue warnings
4469      # or remarks (even with -Werror).  So we grep stderr for any message
4470      # that says an option was ignored or not supported.
4471      # When given -MP, icc 7.0 and 7.1 complain thusly:
4472      #   icc: Command line warning: ignoring option '-M'; no argument required
4473      # The diagnosis changed in icc 8.0:
4474      #   icc: Command line remark: option '-MP' not supported
4475      if (grep 'ignoring option' conftest.err ||
4476          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4477        am_cv_CXX_dependencies_compiler_type=$depmode
4478        break
4479      fi
4480    fi
4481  done
4482
4483  cd ..
4484  rm -rf conftest.dir
4485else
4486  am_cv_CXX_dependencies_compiler_type=none
4487fi
4488
4489fi
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4491$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4492CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4493
4494 if
4495  test "x$enable_dependency_tracking" != xno \
4496  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4497  am__fastdepCXX_TRUE=
4498  am__fastdepCXX_FALSE='#'
4499else
4500  am__fastdepCXX_TRUE='#'
4501  am__fastdepCXX_FALSE=
4502fi
4503
4504
4505
4506if test -n "$ac_tool_prefix"; then
4507  for ac_prog in ar lib "link -lib"
4508  do
4509    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4510set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512$as_echo_n "checking for $ac_word... " >&6; }
4513if ${ac_cv_prog_AR+:} false; then :
4514  $as_echo_n "(cached) " >&6
4515else
4516  if test -n "$AR"; then
4517  ac_cv_prog_AR="$AR" # Let the user override the test.
4518else
4519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520for as_dir in $PATH
4521do
4522  IFS=$as_save_IFS
4523  test -z "$as_dir" && as_dir=.
4524    for ac_exec_ext in '' $ac_executable_extensions; do
4525  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528    break 2
4529  fi
4530done
4531  done
4532IFS=$as_save_IFS
4533
4534fi
4535fi
4536AR=$ac_cv_prog_AR
4537if test -n "$AR"; then
4538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4539$as_echo "$AR" >&6; }
4540else
4541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542$as_echo "no" >&6; }
4543fi
4544
4545
4546    test -n "$AR" && break
4547  done
4548fi
4549if test -z "$AR"; then
4550  ac_ct_AR=$AR
4551  for ac_prog in ar lib "link -lib"
4552do
4553  # Extract the first word of "$ac_prog", so it can be a program name with args.
4554set dummy $ac_prog; ac_word=$2
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556$as_echo_n "checking for $ac_word... " >&6; }
4557if ${ac_cv_prog_ac_ct_AR+:} false; then :
4558  $as_echo_n "(cached) " >&6
4559else
4560  if test -n "$ac_ct_AR"; then
4561  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4562else
4563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566  IFS=$as_save_IFS
4567  test -z "$as_dir" && as_dir=.
4568    for ac_exec_ext in '' $ac_executable_extensions; do
4569  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570    ac_cv_prog_ac_ct_AR="$ac_prog"
4571    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572    break 2
4573  fi
4574done
4575  done
4576IFS=$as_save_IFS
4577
4578fi
4579fi
4580ac_ct_AR=$ac_cv_prog_ac_ct_AR
4581if test -n "$ac_ct_AR"; then
4582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4583$as_echo "$ac_ct_AR" >&6; }
4584else
4585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586$as_echo "no" >&6; }
4587fi
4588
4589
4590  test -n "$ac_ct_AR" && break
4591done
4592
4593  if test "x$ac_ct_AR" = x; then
4594    AR="false"
4595  else
4596    case $cross_compiling:$ac_tool_warned in
4597yes:)
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4600ac_tool_warned=yes ;;
4601esac
4602    AR=$ac_ct_AR
4603  fi
4604fi
4605
4606: ${AR=ar}
4607
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4609$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4610if ${am_cv_ar_interface+:} false; then :
4611  $as_echo_n "(cached) " >&6
4612else
4613  am_cv_ar_interface=ar
4614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615/* end confdefs.h.  */
4616int some_variable = 0;
4617_ACEOF
4618if ac_fn_c_try_compile "$LINENO"; then :
4619  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4620      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4621  (eval $am_ar_try) 2>&5
4622  ac_status=$?
4623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4624  test $ac_status = 0; }
4625      if test "$ac_status" -eq 0; then
4626        am_cv_ar_interface=ar
4627      else
4628        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4629        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4630  (eval $am_ar_try) 2>&5
4631  ac_status=$?
4632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4633  test $ac_status = 0; }
4634        if test "$ac_status" -eq 0; then
4635          am_cv_ar_interface=lib
4636        else
4637          am_cv_ar_interface=unknown
4638        fi
4639      fi
4640      rm -f conftest.lib libconftest.a
4641
4642fi
4643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4644
4645fi
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4647$as_echo "$am_cv_ar_interface" >&6; }
4648
4649case $am_cv_ar_interface in
4650ar)
4651  ;;
4652lib)
4653  # Microsoft lib, so override with the ar-lib wrapper script.
4654  # FIXME: It is wrong to rewrite AR.
4655  # But if we don't then we get into trouble of one sort or another.
4656  # A longer-term fix would be to have automake use am__AR in this case,
4657  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4658  # similar.
4659  AR="$am_aux_dir/ar-lib $AR"
4660  ;;
4661unknown)
4662  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4663  ;;
4664esac
4665
4666
4667
4668case `pwd` in
4669  *\ * | *\	*)
4670    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4671$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4672esac
4673
4674
4675
4676macro_version='2.4.2'
4677macro_revision='1.3337'
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691ltmain="$ac_aux_dir/ltmain.sh"
4692
4693# Make sure we can run config.sub.
4694$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4695  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4696
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4698$as_echo_n "checking build system type... " >&6; }
4699if ${ac_cv_build+:} false; then :
4700  $as_echo_n "(cached) " >&6
4701else
4702  ac_build_alias=$build_alias
4703test "x$ac_build_alias" = x &&
4704  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4705test "x$ac_build_alias" = x &&
4706  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4707ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4708  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4709
4710fi
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4712$as_echo "$ac_cv_build" >&6; }
4713case $ac_cv_build in
4714*-*-*) ;;
4715*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4716esac
4717build=$ac_cv_build
4718ac_save_IFS=$IFS; IFS='-'
4719set x $ac_cv_build
4720shift
4721build_cpu=$1
4722build_vendor=$2
4723shift; shift
4724# Remember, the first character of IFS is used to create $*,
4725# except with old shells:
4726build_os=$*
4727IFS=$ac_save_IFS
4728case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4729
4730
4731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4732$as_echo_n "checking host system type... " >&6; }
4733if ${ac_cv_host+:} false; then :
4734  $as_echo_n "(cached) " >&6
4735else
4736  if test "x$host_alias" = x; then
4737  ac_cv_host=$ac_cv_build
4738else
4739  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4740    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4741fi
4742
4743fi
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4745$as_echo "$ac_cv_host" >&6; }
4746case $ac_cv_host in
4747*-*-*) ;;
4748*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4749esac
4750host=$ac_cv_host
4751ac_save_IFS=$IFS; IFS='-'
4752set x $ac_cv_host
4753shift
4754host_cpu=$1
4755host_vendor=$2
4756shift; shift
4757# Remember, the first character of IFS is used to create $*,
4758# except with old shells:
4759host_os=$*
4760IFS=$ac_save_IFS
4761case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4762
4763
4764# Backslashify metacharacters that are still active within
4765# double-quoted strings.
4766sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4767
4768# Same as above, but do not quote variable references.
4769double_quote_subst='s/\(["`\\]\)/\\\1/g'
4770
4771# Sed substitution to delay expansion of an escaped shell variable in a
4772# double_quote_subst'ed string.
4773delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4774
4775# Sed substitution to delay expansion of an escaped single quote.
4776delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4777
4778# Sed substitution to avoid accidental globbing in evaled expressions
4779no_glob_subst='s/\*/\\\*/g'
4780
4781ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4782ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4783ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4784
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4786$as_echo_n "checking how to print strings... " >&6; }
4787# Test print first, because it will be a builtin if present.
4788if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4789   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4790  ECHO='print -r --'
4791elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4792  ECHO='printf %s\n'
4793else
4794  # Use this function as a fallback that always works.
4795  func_fallback_echo ()
4796  {
4797    eval 'cat <<_LTECHO_EOF
4798$1
4799_LTECHO_EOF'
4800  }
4801  ECHO='func_fallback_echo'
4802fi
4803
4804# func_echo_all arg...
4805# Invoke $ECHO with all args, space-separated.
4806func_echo_all ()
4807{
4808    $ECHO ""
4809}
4810
4811case "$ECHO" in
4812  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4813$as_echo "printf" >&6; } ;;
4814  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4815$as_echo "print -r" >&6; } ;;
4816  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4817$as_echo "cat" >&6; } ;;
4818esac
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4834$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4835if ${ac_cv_path_SED+:} false; then :
4836  $as_echo_n "(cached) " >&6
4837else
4838            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4839     for ac_i in 1 2 3 4 5 6 7; do
4840       ac_script="$ac_script$as_nl$ac_script"
4841     done
4842     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4843     { ac_script=; unset ac_script;}
4844     if test -z "$SED"; then
4845  ac_path_SED_found=false
4846  # Loop through the user's path and test for each of PROGNAME-LIST
4847  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848for as_dir in $PATH
4849do
4850  IFS=$as_save_IFS
4851  test -z "$as_dir" && as_dir=.
4852    for ac_prog in sed gsed; do
4853    for ac_exec_ext in '' $ac_executable_extensions; do
4854      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4855      as_fn_executable_p "$ac_path_SED" || continue
4856# Check for GNU ac_path_SED and select it if it is found.
4857  # Check for GNU $ac_path_SED
4858case `"$ac_path_SED" --version 2>&1` in
4859*GNU*)
4860  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4861*)
4862  ac_count=0
4863  $as_echo_n 0123456789 >"conftest.in"
4864  while :
4865  do
4866    cat "conftest.in" "conftest.in" >"conftest.tmp"
4867    mv "conftest.tmp" "conftest.in"
4868    cp "conftest.in" "conftest.nl"
4869    $as_echo '' >> "conftest.nl"
4870    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4871    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4872    as_fn_arith $ac_count + 1 && ac_count=$as_val
4873    if test $ac_count -gt ${ac_path_SED_max-0}; then
4874      # Best one so far, save it but keep looking for a better one
4875      ac_cv_path_SED="$ac_path_SED"
4876      ac_path_SED_max=$ac_count
4877    fi
4878    # 10*(2^10) chars as input seems more than enough
4879    test $ac_count -gt 10 && break
4880  done
4881  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4882esac
4883
4884      $ac_path_SED_found && break 3
4885    done
4886  done
4887  done
4888IFS=$as_save_IFS
4889  if test -z "$ac_cv_path_SED"; then
4890    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4891  fi
4892else
4893  ac_cv_path_SED=$SED
4894fi
4895
4896fi
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4898$as_echo "$ac_cv_path_SED" >&6; }
4899 SED="$ac_cv_path_SED"
4900  rm -f conftest.sed
4901
4902test -z "$SED" && SED=sed
4903Xsed="$SED -e 1s/^X//"
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4916$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4917if ${ac_cv_path_GREP+:} false; then :
4918  $as_echo_n "(cached) " >&6
4919else
4920  if test -z "$GREP"; then
4921  ac_path_GREP_found=false
4922  # Loop through the user's path and test for each of PROGNAME-LIST
4923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4925do
4926  IFS=$as_save_IFS
4927  test -z "$as_dir" && as_dir=.
4928    for ac_prog in grep ggrep; do
4929    for ac_exec_ext in '' $ac_executable_extensions; do
4930      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4931      as_fn_executable_p "$ac_path_GREP" || continue
4932# Check for GNU ac_path_GREP and select it if it is found.
4933  # Check for GNU $ac_path_GREP
4934case `"$ac_path_GREP" --version 2>&1` in
4935*GNU*)
4936  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4937*)
4938  ac_count=0
4939  $as_echo_n 0123456789 >"conftest.in"
4940  while :
4941  do
4942    cat "conftest.in" "conftest.in" >"conftest.tmp"
4943    mv "conftest.tmp" "conftest.in"
4944    cp "conftest.in" "conftest.nl"
4945    $as_echo 'GREP' >> "conftest.nl"
4946    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4947    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4948    as_fn_arith $ac_count + 1 && ac_count=$as_val
4949    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4950      # Best one so far, save it but keep looking for a better one
4951      ac_cv_path_GREP="$ac_path_GREP"
4952      ac_path_GREP_max=$ac_count
4953    fi
4954    # 10*(2^10) chars as input seems more than enough
4955    test $ac_count -gt 10 && break
4956  done
4957  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4958esac
4959
4960      $ac_path_GREP_found && break 3
4961    done
4962  done
4963  done
4964IFS=$as_save_IFS
4965  if test -z "$ac_cv_path_GREP"; then
4966    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4967  fi
4968else
4969  ac_cv_path_GREP=$GREP
4970fi
4971
4972fi
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4974$as_echo "$ac_cv_path_GREP" >&6; }
4975 GREP="$ac_cv_path_GREP"
4976
4977
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4979$as_echo_n "checking for egrep... " >&6; }
4980if ${ac_cv_path_EGREP+:} false; then :
4981  $as_echo_n "(cached) " >&6
4982else
4983  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4984   then ac_cv_path_EGREP="$GREP -E"
4985   else
4986     if test -z "$EGREP"; then
4987  ac_path_EGREP_found=false
4988  # Loop through the user's path and test for each of PROGNAME-LIST
4989  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4991do
4992  IFS=$as_save_IFS
4993  test -z "$as_dir" && as_dir=.
4994    for ac_prog in egrep; do
4995    for ac_exec_ext in '' $ac_executable_extensions; do
4996      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4997      as_fn_executable_p "$ac_path_EGREP" || continue
4998# Check for GNU ac_path_EGREP and select it if it is found.
4999  # Check for GNU $ac_path_EGREP
5000case `"$ac_path_EGREP" --version 2>&1` in
5001*GNU*)
5002  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5003*)
5004  ac_count=0
5005  $as_echo_n 0123456789 >"conftest.in"
5006  while :
5007  do
5008    cat "conftest.in" "conftest.in" >"conftest.tmp"
5009    mv "conftest.tmp" "conftest.in"
5010    cp "conftest.in" "conftest.nl"
5011    $as_echo 'EGREP' >> "conftest.nl"
5012    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5013    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5014    as_fn_arith $ac_count + 1 && ac_count=$as_val
5015    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5016      # Best one so far, save it but keep looking for a better one
5017      ac_cv_path_EGREP="$ac_path_EGREP"
5018      ac_path_EGREP_max=$ac_count
5019    fi
5020    # 10*(2^10) chars as input seems more than enough
5021    test $ac_count -gt 10 && break
5022  done
5023  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5024esac
5025
5026      $ac_path_EGREP_found && break 3
5027    done
5028  done
5029  done
5030IFS=$as_save_IFS
5031  if test -z "$ac_cv_path_EGREP"; then
5032    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5033  fi
5034else
5035  ac_cv_path_EGREP=$EGREP
5036fi
5037
5038   fi
5039fi
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5041$as_echo "$ac_cv_path_EGREP" >&6; }
5042 EGREP="$ac_cv_path_EGREP"
5043
5044
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5046$as_echo_n "checking for fgrep... " >&6; }
5047if ${ac_cv_path_FGREP+:} false; then :
5048  $as_echo_n "(cached) " >&6
5049else
5050  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5051   then ac_cv_path_FGREP="$GREP -F"
5052   else
5053     if test -z "$FGREP"; then
5054  ac_path_FGREP_found=false
5055  # Loop through the user's path and test for each of PROGNAME-LIST
5056  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5058do
5059  IFS=$as_save_IFS
5060  test -z "$as_dir" && as_dir=.
5061    for ac_prog in fgrep; do
5062    for ac_exec_ext in '' $ac_executable_extensions; do
5063      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5064      as_fn_executable_p "$ac_path_FGREP" || continue
5065# Check for GNU ac_path_FGREP and select it if it is found.
5066  # Check for GNU $ac_path_FGREP
5067case `"$ac_path_FGREP" --version 2>&1` in
5068*GNU*)
5069  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5070*)
5071  ac_count=0
5072  $as_echo_n 0123456789 >"conftest.in"
5073  while :
5074  do
5075    cat "conftest.in" "conftest.in" >"conftest.tmp"
5076    mv "conftest.tmp" "conftest.in"
5077    cp "conftest.in" "conftest.nl"
5078    $as_echo 'FGREP' >> "conftest.nl"
5079    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5080    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5081    as_fn_arith $ac_count + 1 && ac_count=$as_val
5082    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5083      # Best one so far, save it but keep looking for a better one
5084      ac_cv_path_FGREP="$ac_path_FGREP"
5085      ac_path_FGREP_max=$ac_count
5086    fi
5087    # 10*(2^10) chars as input seems more than enough
5088    test $ac_count -gt 10 && break
5089  done
5090  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5091esac
5092
5093      $ac_path_FGREP_found && break 3
5094    done
5095  done
5096  done
5097IFS=$as_save_IFS
5098  if test -z "$ac_cv_path_FGREP"; then
5099    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5100  fi
5101else
5102  ac_cv_path_FGREP=$FGREP
5103fi
5104
5105   fi
5106fi
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5108$as_echo "$ac_cv_path_FGREP" >&6; }
5109 FGREP="$ac_cv_path_FGREP"
5110
5111
5112test -z "$GREP" && GREP=grep
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132# Check whether --with-gnu-ld was given.
5133if test "${with_gnu_ld+set}" = set; then :
5134  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5135else
5136  with_gnu_ld=no
5137fi
5138
5139ac_prog=ld
5140if test "$GCC" = yes; then
5141  # Check if gcc -print-prog-name=ld gives a path.
5142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5143$as_echo_n "checking for ld used by $CC... " >&6; }
5144  case $host in
5145  *-*-mingw*)
5146    # gcc leaves a trailing carriage return which upsets mingw
5147    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5148  *)
5149    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5150  esac
5151  case $ac_prog in
5152    # Accept absolute paths.
5153    [\\/]* | ?:[\\/]*)
5154      re_direlt='/[^/][^/]*/\.\./'
5155      # Canonicalize the pathname of ld
5156      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5157      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5158	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5159      done
5160      test -z "$LD" && LD="$ac_prog"
5161      ;;
5162  "")
5163    # If it fails, then pretend we aren't using GCC.
5164    ac_prog=ld
5165    ;;
5166  *)
5167    # If it is relative, then search for the first ld in PATH.
5168    with_gnu_ld=unknown
5169    ;;
5170  esac
5171elif test "$with_gnu_ld" = yes; then
5172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5173$as_echo_n "checking for GNU ld... " >&6; }
5174else
5175  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5176$as_echo_n "checking for non-GNU ld... " >&6; }
5177fi
5178if ${lt_cv_path_LD+:} false; then :
5179  $as_echo_n "(cached) " >&6
5180else
5181  if test -z "$LD"; then
5182  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5183  for ac_dir in $PATH; do
5184    IFS="$lt_save_ifs"
5185    test -z "$ac_dir" && ac_dir=.
5186    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5187      lt_cv_path_LD="$ac_dir/$ac_prog"
5188      # Check to see if the program is GNU ld.  I'd rather use --version,
5189      # but apparently some variants of GNU ld only accept -v.
5190      # Break only if it was the GNU/non-GNU ld that we prefer.
5191      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5192      *GNU* | *'with BFD'*)
5193	test "$with_gnu_ld" != no && break
5194	;;
5195      *)
5196	test "$with_gnu_ld" != yes && break
5197	;;
5198      esac
5199    fi
5200  done
5201  IFS="$lt_save_ifs"
5202else
5203  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5204fi
5205fi
5206
5207LD="$lt_cv_path_LD"
5208if test -n "$LD"; then
5209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5210$as_echo "$LD" >&6; }
5211else
5212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213$as_echo "no" >&6; }
5214fi
5215test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5217$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5218if ${lt_cv_prog_gnu_ld+:} false; then :
5219  $as_echo_n "(cached) " >&6
5220else
5221  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5222case `$LD -v 2>&1 </dev/null` in
5223*GNU* | *'with BFD'*)
5224  lt_cv_prog_gnu_ld=yes
5225  ;;
5226*)
5227  lt_cv_prog_gnu_ld=no
5228  ;;
5229esac
5230fi
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5232$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5233with_gnu_ld=$lt_cv_prog_gnu_ld
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5244$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5245if ${lt_cv_path_NM+:} false; then :
5246  $as_echo_n "(cached) " >&6
5247else
5248  if test -n "$NM"; then
5249  # Let the user override the test.
5250  lt_cv_path_NM="$NM"
5251else
5252  lt_nm_to_check="${ac_tool_prefix}nm"
5253  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5254    lt_nm_to_check="$lt_nm_to_check nm"
5255  fi
5256  for lt_tmp_nm in $lt_nm_to_check; do
5257    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5258    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5259      IFS="$lt_save_ifs"
5260      test -z "$ac_dir" && ac_dir=.
5261      tmp_nm="$ac_dir/$lt_tmp_nm"
5262      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5263	# Check to see if the nm accepts a BSD-compat flag.
5264	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5265	#   nm: unknown option "B" ignored
5266	# Tru64's nm complains that /dev/null is an invalid object file
5267	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5268	*/dev/null* | *'Invalid file or object type'*)
5269	  lt_cv_path_NM="$tmp_nm -B"
5270	  break
5271	  ;;
5272	*)
5273	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5274	  */dev/null*)
5275	    lt_cv_path_NM="$tmp_nm -p"
5276	    break
5277	    ;;
5278	  *)
5279	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5280	    continue # so that we can try to find one that supports BSD flags
5281	    ;;
5282	  esac
5283	  ;;
5284	esac
5285      fi
5286    done
5287    IFS="$lt_save_ifs"
5288  done
5289  : ${lt_cv_path_NM=no}
5290fi
5291fi
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5293$as_echo "$lt_cv_path_NM" >&6; }
5294if test "$lt_cv_path_NM" != "no"; then
5295  NM="$lt_cv_path_NM"
5296else
5297  # Didn't find any BSD compatible name lister, look for dumpbin.
5298  if test -n "$DUMPBIN"; then :
5299    # Let the user override the test.
5300  else
5301    if test -n "$ac_tool_prefix"; then
5302  for ac_prog in dumpbin "link -dump"
5303  do
5304    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5305set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5307$as_echo_n "checking for $ac_word... " >&6; }
5308if ${ac_cv_prog_DUMPBIN+:} false; then :
5309  $as_echo_n "(cached) " >&6
5310else
5311  if test -n "$DUMPBIN"; then
5312  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5313else
5314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315for as_dir in $PATH
5316do
5317  IFS=$as_save_IFS
5318  test -z "$as_dir" && as_dir=.
5319    for ac_exec_ext in '' $ac_executable_extensions; do
5320  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5323    break 2
5324  fi
5325done
5326  done
5327IFS=$as_save_IFS
5328
5329fi
5330fi
5331DUMPBIN=$ac_cv_prog_DUMPBIN
5332if test -n "$DUMPBIN"; then
5333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5334$as_echo "$DUMPBIN" >&6; }
5335else
5336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337$as_echo "no" >&6; }
5338fi
5339
5340
5341    test -n "$DUMPBIN" && break
5342  done
5343fi
5344if test -z "$DUMPBIN"; then
5345  ac_ct_DUMPBIN=$DUMPBIN
5346  for ac_prog in dumpbin "link -dump"
5347do
5348  # Extract the first word of "$ac_prog", so it can be a program name with args.
5349set dummy $ac_prog; ac_word=$2
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351$as_echo_n "checking for $ac_word... " >&6; }
5352if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5353  $as_echo_n "(cached) " >&6
5354else
5355  if test -n "$ac_ct_DUMPBIN"; then
5356  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5357else
5358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359for as_dir in $PATH
5360do
5361  IFS=$as_save_IFS
5362  test -z "$as_dir" && as_dir=.
5363    for ac_exec_ext in '' $ac_executable_extensions; do
5364  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367    break 2
5368  fi
5369done
5370  done
5371IFS=$as_save_IFS
5372
5373fi
5374fi
5375ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5376if test -n "$ac_ct_DUMPBIN"; then
5377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5378$as_echo "$ac_ct_DUMPBIN" >&6; }
5379else
5380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381$as_echo "no" >&6; }
5382fi
5383
5384
5385  test -n "$ac_ct_DUMPBIN" && break
5386done
5387
5388  if test "x$ac_ct_DUMPBIN" = x; then
5389    DUMPBIN=":"
5390  else
5391    case $cross_compiling:$ac_tool_warned in
5392yes:)
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5395ac_tool_warned=yes ;;
5396esac
5397    DUMPBIN=$ac_ct_DUMPBIN
5398  fi
5399fi
5400
5401    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5402    *COFF*)
5403      DUMPBIN="$DUMPBIN -symbols"
5404      ;;
5405    *)
5406      DUMPBIN=:
5407      ;;
5408    esac
5409  fi
5410
5411  if test "$DUMPBIN" != ":"; then
5412    NM="$DUMPBIN"
5413  fi
5414fi
5415test -z "$NM" && NM=nm
5416
5417
5418
5419
5420
5421
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5423$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5424if ${lt_cv_nm_interface+:} false; then :
5425  $as_echo_n "(cached) " >&6
5426else
5427  lt_cv_nm_interface="BSD nm"
5428  echo "int some_variable = 0;" > conftest.$ac_ext
5429  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5430  (eval "$ac_compile" 2>conftest.err)
5431  cat conftest.err >&5
5432  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5433  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5434  cat conftest.err >&5
5435  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5436  cat conftest.out >&5
5437  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5438    lt_cv_nm_interface="MS dumpbin"
5439  fi
5440  rm -f conftest*
5441fi
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5443$as_echo "$lt_cv_nm_interface" >&6; }
5444
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5446$as_echo_n "checking whether ln -s works... " >&6; }
5447LN_S=$as_ln_s
5448if test "$LN_S" = "ln -s"; then
5449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5450$as_echo "yes" >&6; }
5451else
5452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5453$as_echo "no, using $LN_S" >&6; }
5454fi
5455
5456# find the maximum length of command line arguments
5457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5458$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5459if ${lt_cv_sys_max_cmd_len+:} false; then :
5460  $as_echo_n "(cached) " >&6
5461else
5462    i=0
5463  teststring="ABCD"
5464
5465  case $build_os in
5466  msdosdjgpp*)
5467    # On DJGPP, this test can blow up pretty badly due to problems in libc
5468    # (any single argument exceeding 2000 bytes causes a buffer overrun
5469    # during glob expansion).  Even if it were fixed, the result of this
5470    # check would be larger than it should be.
5471    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5472    ;;
5473
5474  gnu*)
5475    # Under GNU Hurd, this test is not required because there is
5476    # no limit to the length of command line arguments.
5477    # Libtool will interpret -1 as no limit whatsoever
5478    lt_cv_sys_max_cmd_len=-1;
5479    ;;
5480
5481  cygwin* | mingw* | cegcc*)
5482    # On Win9x/ME, this test blows up -- it succeeds, but takes
5483    # about 5 minutes as the teststring grows exponentially.
5484    # Worse, since 9x/ME are not pre-emptively multitasking,
5485    # you end up with a "frozen" computer, even though with patience
5486    # the test eventually succeeds (with a max line length of 256k).
5487    # Instead, let's just punt: use the minimum linelength reported by
5488    # all of the supported platforms: 8192 (on NT/2K/XP).
5489    lt_cv_sys_max_cmd_len=8192;
5490    ;;
5491
5492  mint*)
5493    # On MiNT this can take a long time and run out of memory.
5494    lt_cv_sys_max_cmd_len=8192;
5495    ;;
5496
5497  amigaos*)
5498    # On AmigaOS with pdksh, this test takes hours, literally.
5499    # So we just punt and use a minimum line length of 8192.
5500    lt_cv_sys_max_cmd_len=8192;
5501    ;;
5502
5503  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5504    # This has been around since 386BSD, at least.  Likely further.
5505    if test -x /sbin/sysctl; then
5506      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5507    elif test -x /usr/sbin/sysctl; then
5508      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5509    else
5510      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5511    fi
5512    # And add a safety zone
5513    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5514    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5515    ;;
5516
5517  interix*)
5518    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5519    lt_cv_sys_max_cmd_len=196608
5520    ;;
5521
5522  os2*)
5523    # The test takes a long time on OS/2.
5524    lt_cv_sys_max_cmd_len=8192
5525    ;;
5526
5527  osf*)
5528    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5529    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5530    # nice to cause kernel panics so lets avoid the loop below.
5531    # First set a reasonable default.
5532    lt_cv_sys_max_cmd_len=16384
5533    #
5534    if test -x /sbin/sysconfig; then
5535      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5536        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5537      esac
5538    fi
5539    ;;
5540  sco3.2v5*)
5541    lt_cv_sys_max_cmd_len=102400
5542    ;;
5543  sysv5* | sco5v6* | sysv4.2uw2*)
5544    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5545    if test -n "$kargmax"; then
5546      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5547    else
5548      lt_cv_sys_max_cmd_len=32768
5549    fi
5550    ;;
5551  *)
5552    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5553    if test -n "$lt_cv_sys_max_cmd_len"; then
5554      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5555      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5556    else
5557      # Make teststring a little bigger before we do anything with it.
5558      # a 1K string should be a reasonable start.
5559      for i in 1 2 3 4 5 6 7 8 ; do
5560        teststring=$teststring$teststring
5561      done
5562      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5563      # If test is not a shell built-in, we'll probably end up computing a
5564      # maximum length that is only half of the actual maximum length, but
5565      # we can't tell.
5566      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5567	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5568	      test $i != 17 # 1/2 MB should be enough
5569      do
5570        i=`expr $i + 1`
5571        teststring=$teststring$teststring
5572      done
5573      # Only check the string length outside the loop.
5574      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5575      teststring=
5576      # Add a significant safety factor because C++ compilers can tack on
5577      # massive amounts of additional arguments before passing them to the
5578      # linker.  It appears as though 1/2 is a usable value.
5579      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5580    fi
5581    ;;
5582  esac
5583
5584fi
5585
5586if test -n $lt_cv_sys_max_cmd_len ; then
5587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5588$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5589else
5590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5591$as_echo "none" >&6; }
5592fi
5593max_cmd_len=$lt_cv_sys_max_cmd_len
5594
5595
5596
5597
5598
5599
5600: ${CP="cp -f"}
5601: ${MV="mv -f"}
5602: ${RM="rm -f"}
5603
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5605$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5606# Try some XSI features
5607xsi_shell=no
5608( _lt_dummy="a/b/c"
5609  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5610      = c,a/b,b/c, \
5611    && eval 'test $(( 1 + 1 )) -eq 2 \
5612    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5613  && xsi_shell=yes
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5615$as_echo "$xsi_shell" >&6; }
5616
5617
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5619$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5620lt_shell_append=no
5621( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5622    >/dev/null 2>&1 \
5623  && lt_shell_append=yes
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5625$as_echo "$lt_shell_append" >&6; }
5626
5627
5628if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5629  lt_unset=unset
5630else
5631  lt_unset=false
5632fi
5633
5634
5635
5636
5637
5638# test EBCDIC or ASCII
5639case `echo X|tr X '\101'` in
5640 A) # ASCII based system
5641    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5642  lt_SP2NL='tr \040 \012'
5643  lt_NL2SP='tr \015\012 \040\040'
5644  ;;
5645 *) # EBCDIC based system
5646  lt_SP2NL='tr \100 \n'
5647  lt_NL2SP='tr \r\n \100\100'
5648  ;;
5649esac
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5660$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5661if ${lt_cv_to_host_file_cmd+:} false; then :
5662  $as_echo_n "(cached) " >&6
5663else
5664  case $host in
5665  *-*-mingw* )
5666    case $build in
5667      *-*-mingw* ) # actually msys
5668        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5669        ;;
5670      *-*-cygwin* )
5671        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5672        ;;
5673      * ) # otherwise, assume *nix
5674        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5675        ;;
5676    esac
5677    ;;
5678  *-*-cygwin* )
5679    case $build in
5680      *-*-mingw* ) # actually msys
5681        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5682        ;;
5683      *-*-cygwin* )
5684        lt_cv_to_host_file_cmd=func_convert_file_noop
5685        ;;
5686      * ) # otherwise, assume *nix
5687        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5688        ;;
5689    esac
5690    ;;
5691  * ) # unhandled hosts (and "normal" native builds)
5692    lt_cv_to_host_file_cmd=func_convert_file_noop
5693    ;;
5694esac
5695
5696fi
5697
5698to_host_file_cmd=$lt_cv_to_host_file_cmd
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5700$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5701
5702
5703
5704
5705
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5707$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5708if ${lt_cv_to_tool_file_cmd+:} false; then :
5709  $as_echo_n "(cached) " >&6
5710else
5711  #assume ordinary cross tools, or native build.
5712lt_cv_to_tool_file_cmd=func_convert_file_noop
5713case $host in
5714  *-*-mingw* )
5715    case $build in
5716      *-*-mingw* ) # actually msys
5717        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5718        ;;
5719    esac
5720    ;;
5721esac
5722
5723fi
5724
5725to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5727$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5728
5729
5730
5731
5732
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5734$as_echo_n "checking for $LD option to reload object files... " >&6; }
5735if ${lt_cv_ld_reload_flag+:} false; then :
5736  $as_echo_n "(cached) " >&6
5737else
5738  lt_cv_ld_reload_flag='-r'
5739fi
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5741$as_echo "$lt_cv_ld_reload_flag" >&6; }
5742reload_flag=$lt_cv_ld_reload_flag
5743case $reload_flag in
5744"" | " "*) ;;
5745*) reload_flag=" $reload_flag" ;;
5746esac
5747reload_cmds='$LD$reload_flag -o $output$reload_objs'
5748case $host_os in
5749  cygwin* | mingw* | pw32* | cegcc*)
5750    if test "$GCC" != yes; then
5751      reload_cmds=false
5752    fi
5753    ;;
5754  darwin*)
5755    if test "$GCC" = yes; then
5756      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5757    else
5758      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5759    fi
5760    ;;
5761esac
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771if test -n "$ac_tool_prefix"; then
5772  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5773set dummy ${ac_tool_prefix}objdump; ac_word=$2
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5775$as_echo_n "checking for $ac_word... " >&6; }
5776if ${ac_cv_prog_OBJDUMP+:} false; then :
5777  $as_echo_n "(cached) " >&6
5778else
5779  if test -n "$OBJDUMP"; then
5780  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5781else
5782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783for as_dir in $PATH
5784do
5785  IFS=$as_save_IFS
5786  test -z "$as_dir" && as_dir=.
5787    for ac_exec_ext in '' $ac_executable_extensions; do
5788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5789    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5791    break 2
5792  fi
5793done
5794  done
5795IFS=$as_save_IFS
5796
5797fi
5798fi
5799OBJDUMP=$ac_cv_prog_OBJDUMP
5800if test -n "$OBJDUMP"; then
5801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5802$as_echo "$OBJDUMP" >&6; }
5803else
5804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805$as_echo "no" >&6; }
5806fi
5807
5808
5809fi
5810if test -z "$ac_cv_prog_OBJDUMP"; then
5811  ac_ct_OBJDUMP=$OBJDUMP
5812  # Extract the first word of "objdump", so it can be a program name with args.
5813set dummy objdump; ac_word=$2
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815$as_echo_n "checking for $ac_word... " >&6; }
5816if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5817  $as_echo_n "(cached) " >&6
5818else
5819  if test -n "$ac_ct_OBJDUMP"; then
5820  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5821else
5822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823for as_dir in $PATH
5824do
5825  IFS=$as_save_IFS
5826  test -z "$as_dir" && as_dir=.
5827    for ac_exec_ext in '' $ac_executable_extensions; do
5828  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5829    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5830    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831    break 2
5832  fi
5833done
5834  done
5835IFS=$as_save_IFS
5836
5837fi
5838fi
5839ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5840if test -n "$ac_ct_OBJDUMP"; then
5841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5842$as_echo "$ac_ct_OBJDUMP" >&6; }
5843else
5844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845$as_echo "no" >&6; }
5846fi
5847
5848  if test "x$ac_ct_OBJDUMP" = x; then
5849    OBJDUMP="false"
5850  else
5851    case $cross_compiling:$ac_tool_warned in
5852yes:)
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5855ac_tool_warned=yes ;;
5856esac
5857    OBJDUMP=$ac_ct_OBJDUMP
5858  fi
5859else
5860  OBJDUMP="$ac_cv_prog_OBJDUMP"
5861fi
5862
5863test -z "$OBJDUMP" && OBJDUMP=objdump
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5874$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5875if ${lt_cv_deplibs_check_method+:} false; then :
5876  $as_echo_n "(cached) " >&6
5877else
5878  lt_cv_file_magic_cmd='$MAGIC_CMD'
5879lt_cv_file_magic_test_file=
5880lt_cv_deplibs_check_method='unknown'
5881# Need to set the preceding variable on all platforms that support
5882# interlibrary dependencies.
5883# 'none' -- dependencies not supported.
5884# `unknown' -- same as none, but documents that we really don't know.
5885# 'pass_all' -- all dependencies passed with no checks.
5886# 'test_compile' -- check by making test program.
5887# 'file_magic [[regex]]' -- check by looking for files in library path
5888# which responds to the $file_magic_cmd with a given extended regex.
5889# If you have `file' or equivalent on your system and you're not sure
5890# whether `pass_all' will *always* work, you probably want this one.
5891
5892case $host_os in
5893aix[4-9]*)
5894  lt_cv_deplibs_check_method=pass_all
5895  ;;
5896
5897beos*)
5898  lt_cv_deplibs_check_method=pass_all
5899  ;;
5900
5901bsdi[45]*)
5902  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5903  lt_cv_file_magic_cmd='/usr/bin/file -L'
5904  lt_cv_file_magic_test_file=/shlib/libc.so
5905  ;;
5906
5907cygwin*)
5908  # func_win32_libid is a shell function defined in ltmain.sh
5909  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5910  lt_cv_file_magic_cmd='func_win32_libid'
5911  ;;
5912
5913mingw* | pw32*)
5914  # Base MSYS/MinGW do not provide the 'file' command needed by
5915  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5916  # unless we find 'file', for example because we are cross-compiling.
5917  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5918  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5919    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5920    lt_cv_file_magic_cmd='func_win32_libid'
5921  else
5922    # Keep this pattern in sync with the one in func_win32_libid.
5923    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5924    lt_cv_file_magic_cmd='$OBJDUMP -f'
5925  fi
5926  ;;
5927
5928cegcc*)
5929  # use the weaker test based on 'objdump'. See mingw*.
5930  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5931  lt_cv_file_magic_cmd='$OBJDUMP -f'
5932  ;;
5933
5934darwin* | rhapsody*)
5935  lt_cv_deplibs_check_method=pass_all
5936  ;;
5937
5938freebsd* | dragonfly*)
5939  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5940    case $host_cpu in
5941    i*86 )
5942      # Not sure whether the presence of OpenBSD here was a mistake.
5943      # Let's accept both of them until this is cleared up.
5944      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5945      lt_cv_file_magic_cmd=/usr/bin/file
5946      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5947      ;;
5948    esac
5949  else
5950    lt_cv_deplibs_check_method=pass_all
5951  fi
5952  ;;
5953
5954gnu*)
5955  lt_cv_deplibs_check_method=pass_all
5956  ;;
5957
5958haiku*)
5959  lt_cv_deplibs_check_method=pass_all
5960  ;;
5961
5962hpux10.20* | hpux11*)
5963  lt_cv_file_magic_cmd=/usr/bin/file
5964  case $host_cpu in
5965  ia64*)
5966    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5967    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5968    ;;
5969  hppa*64*)
5970    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5971    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5972    ;;
5973  *)
5974    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5975    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5976    ;;
5977  esac
5978  ;;
5979
5980interix[3-9]*)
5981  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5982  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5983  ;;
5984
5985irix5* | irix6* | nonstopux*)
5986  case $LD in
5987  *-32|*"-32 ") libmagic=32-bit;;
5988  *-n32|*"-n32 ") libmagic=N32;;
5989  *-64|*"-64 ") libmagic=64-bit;;
5990  *) libmagic=never-match;;
5991  esac
5992  lt_cv_deplibs_check_method=pass_all
5993  ;;
5994
5995# This must be glibc/ELF.
5996linux* | k*bsd*-gnu | kopensolaris*-gnu)
5997  lt_cv_deplibs_check_method=pass_all
5998  ;;
5999
6000netbsd*)
6001  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6002    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6003  else
6004    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6005  fi
6006  ;;
6007
6008newos6*)
6009  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6010  lt_cv_file_magic_cmd=/usr/bin/file
6011  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6012  ;;
6013
6014*nto* | *qnx*)
6015  lt_cv_deplibs_check_method=pass_all
6016  ;;
6017
6018openbsd*)
6019  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6020    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6021  else
6022    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6023  fi
6024  ;;
6025
6026osf3* | osf4* | osf5*)
6027  lt_cv_deplibs_check_method=pass_all
6028  ;;
6029
6030rdos*)
6031  lt_cv_deplibs_check_method=pass_all
6032  ;;
6033
6034solaris*)
6035  lt_cv_deplibs_check_method=pass_all
6036  ;;
6037
6038sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6039  lt_cv_deplibs_check_method=pass_all
6040  ;;
6041
6042sysv4 | sysv4.3*)
6043  case $host_vendor in
6044  motorola)
6045    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]'
6046    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6047    ;;
6048  ncr)
6049    lt_cv_deplibs_check_method=pass_all
6050    ;;
6051  sequent)
6052    lt_cv_file_magic_cmd='/bin/file'
6053    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6054    ;;
6055  sni)
6056    lt_cv_file_magic_cmd='/bin/file'
6057    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6058    lt_cv_file_magic_test_file=/lib/libc.so
6059    ;;
6060  siemens)
6061    lt_cv_deplibs_check_method=pass_all
6062    ;;
6063  pc)
6064    lt_cv_deplibs_check_method=pass_all
6065    ;;
6066  esac
6067  ;;
6068
6069tpf*)
6070  lt_cv_deplibs_check_method=pass_all
6071  ;;
6072esac
6073
6074fi
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6076$as_echo "$lt_cv_deplibs_check_method" >&6; }
6077
6078file_magic_glob=
6079want_nocaseglob=no
6080if test "$build" = "$host"; then
6081  case $host_os in
6082  mingw* | pw32*)
6083    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6084      want_nocaseglob=yes
6085    else
6086      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6087    fi
6088    ;;
6089  esac
6090fi
6091
6092file_magic_cmd=$lt_cv_file_magic_cmd
6093deplibs_check_method=$lt_cv_deplibs_check_method
6094test -z "$deplibs_check_method" && deplibs_check_method=unknown
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117if test -n "$ac_tool_prefix"; then
6118  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6119set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121$as_echo_n "checking for $ac_word... " >&6; }
6122if ${ac_cv_prog_DLLTOOL+:} false; then :
6123  $as_echo_n "(cached) " >&6
6124else
6125  if test -n "$DLLTOOL"; then
6126  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6127else
6128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129for as_dir in $PATH
6130do
6131  IFS=$as_save_IFS
6132  test -z "$as_dir" && as_dir=.
6133    for ac_exec_ext in '' $ac_executable_extensions; do
6134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6135    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137    break 2
6138  fi
6139done
6140  done
6141IFS=$as_save_IFS
6142
6143fi
6144fi
6145DLLTOOL=$ac_cv_prog_DLLTOOL
6146if test -n "$DLLTOOL"; then
6147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6148$as_echo "$DLLTOOL" >&6; }
6149else
6150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151$as_echo "no" >&6; }
6152fi
6153
6154
6155fi
6156if test -z "$ac_cv_prog_DLLTOOL"; then
6157  ac_ct_DLLTOOL=$DLLTOOL
6158  # Extract the first word of "dlltool", so it can be a program name with args.
6159set dummy dlltool; ac_word=$2
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161$as_echo_n "checking for $ac_word... " >&6; }
6162if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6163  $as_echo_n "(cached) " >&6
6164else
6165  if test -n "$ac_ct_DLLTOOL"; then
6166  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6167else
6168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169for as_dir in $PATH
6170do
6171  IFS=$as_save_IFS
6172  test -z "$as_dir" && as_dir=.
6173    for ac_exec_ext in '' $ac_executable_extensions; do
6174  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6175    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6177    break 2
6178  fi
6179done
6180  done
6181IFS=$as_save_IFS
6182
6183fi
6184fi
6185ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6186if test -n "$ac_ct_DLLTOOL"; then
6187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6188$as_echo "$ac_ct_DLLTOOL" >&6; }
6189else
6190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191$as_echo "no" >&6; }
6192fi
6193
6194  if test "x$ac_ct_DLLTOOL" = x; then
6195    DLLTOOL="false"
6196  else
6197    case $cross_compiling:$ac_tool_warned in
6198yes:)
6199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6201ac_tool_warned=yes ;;
6202esac
6203    DLLTOOL=$ac_ct_DLLTOOL
6204  fi
6205else
6206  DLLTOOL="$ac_cv_prog_DLLTOOL"
6207fi
6208
6209test -z "$DLLTOOL" && DLLTOOL=dlltool
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6221$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6222if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6223  $as_echo_n "(cached) " >&6
6224else
6225  lt_cv_sharedlib_from_linklib_cmd='unknown'
6226
6227case $host_os in
6228cygwin* | mingw* | pw32* | cegcc*)
6229  # two different shell functions defined in ltmain.sh
6230  # decide which to use based on capabilities of $DLLTOOL
6231  case `$DLLTOOL --help 2>&1` in
6232  *--identify-strict*)
6233    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6234    ;;
6235  *)
6236    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6237    ;;
6238  esac
6239  ;;
6240*)
6241  # fallback: assume linklib IS sharedlib
6242  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6243  ;;
6244esac
6245
6246fi
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6248$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6249sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6250test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6251
6252
6253
6254
6255
6256
6257
6258if test -n "$ac_tool_prefix"; then
6259  for ac_prog in ar
6260  do
6261    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6262set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264$as_echo_n "checking for $ac_word... " >&6; }
6265if ${ac_cv_prog_AR+:} false; then :
6266  $as_echo_n "(cached) " >&6
6267else
6268  if test -n "$AR"; then
6269  ac_cv_prog_AR="$AR" # Let the user override the test.
6270else
6271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272for as_dir in $PATH
6273do
6274  IFS=$as_save_IFS
6275  test -z "$as_dir" && as_dir=.
6276    for ac_exec_ext in '' $ac_executable_extensions; do
6277  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6278    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6280    break 2
6281  fi
6282done
6283  done
6284IFS=$as_save_IFS
6285
6286fi
6287fi
6288AR=$ac_cv_prog_AR
6289if test -n "$AR"; then
6290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6291$as_echo "$AR" >&6; }
6292else
6293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294$as_echo "no" >&6; }
6295fi
6296
6297
6298    test -n "$AR" && break
6299  done
6300fi
6301if test -z "$AR"; then
6302  ac_ct_AR=$AR
6303  for ac_prog in ar
6304do
6305  # Extract the first word of "$ac_prog", so it can be a program name with args.
6306set dummy $ac_prog; ac_word=$2
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308$as_echo_n "checking for $ac_word... " >&6; }
6309if ${ac_cv_prog_ac_ct_AR+:} false; then :
6310  $as_echo_n "(cached) " >&6
6311else
6312  if test -n "$ac_ct_AR"; then
6313  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6314else
6315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316for as_dir in $PATH
6317do
6318  IFS=$as_save_IFS
6319  test -z "$as_dir" && as_dir=.
6320    for ac_exec_ext in '' $ac_executable_extensions; do
6321  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322    ac_cv_prog_ac_ct_AR="$ac_prog"
6323    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324    break 2
6325  fi
6326done
6327  done
6328IFS=$as_save_IFS
6329
6330fi
6331fi
6332ac_ct_AR=$ac_cv_prog_ac_ct_AR
6333if test -n "$ac_ct_AR"; then
6334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6335$as_echo "$ac_ct_AR" >&6; }
6336else
6337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338$as_echo "no" >&6; }
6339fi
6340
6341
6342  test -n "$ac_ct_AR" && break
6343done
6344
6345  if test "x$ac_ct_AR" = x; then
6346    AR="false"
6347  else
6348    case $cross_compiling:$ac_tool_warned in
6349yes:)
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6352ac_tool_warned=yes ;;
6353esac
6354    AR=$ac_ct_AR
6355  fi
6356fi
6357
6358: ${AR=ar}
6359: ${AR_FLAGS=cru}
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6372$as_echo_n "checking for archiver @FILE support... " >&6; }
6373if ${lt_cv_ar_at_file+:} false; then :
6374  $as_echo_n "(cached) " >&6
6375else
6376  lt_cv_ar_at_file=no
6377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378/* end confdefs.h.  */
6379
6380int
6381main ()
6382{
6383
6384  ;
6385  return 0;
6386}
6387_ACEOF
6388if ac_fn_c_try_compile "$LINENO"; then :
6389  echo conftest.$ac_objext > conftest.lst
6390      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6391      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6392  (eval $lt_ar_try) 2>&5
6393  ac_status=$?
6394  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6395  test $ac_status = 0; }
6396      if test "$ac_status" -eq 0; then
6397	# Ensure the archiver fails upon bogus file names.
6398	rm -f conftest.$ac_objext libconftest.a
6399	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6400  (eval $lt_ar_try) 2>&5
6401  ac_status=$?
6402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6403  test $ac_status = 0; }
6404	if test "$ac_status" -ne 0; then
6405          lt_cv_ar_at_file=@
6406        fi
6407      fi
6408      rm -f conftest.* libconftest.a
6409
6410fi
6411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412
6413fi
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6415$as_echo "$lt_cv_ar_at_file" >&6; }
6416
6417if test "x$lt_cv_ar_at_file" = xno; then
6418  archiver_list_spec=
6419else
6420  archiver_list_spec=$lt_cv_ar_at_file
6421fi
6422
6423
6424
6425
6426
6427
6428
6429if test -n "$ac_tool_prefix"; then
6430  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6431set dummy ${ac_tool_prefix}strip; ac_word=$2
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433$as_echo_n "checking for $ac_word... " >&6; }
6434if ${ac_cv_prog_STRIP+:} false; then :
6435  $as_echo_n "(cached) " >&6
6436else
6437  if test -n "$STRIP"; then
6438  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6439else
6440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441for as_dir in $PATH
6442do
6443  IFS=$as_save_IFS
6444  test -z "$as_dir" && as_dir=.
6445    for ac_exec_ext in '' $ac_executable_extensions; do
6446  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6448    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449    break 2
6450  fi
6451done
6452  done
6453IFS=$as_save_IFS
6454
6455fi
6456fi
6457STRIP=$ac_cv_prog_STRIP
6458if test -n "$STRIP"; then
6459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6460$as_echo "$STRIP" >&6; }
6461else
6462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463$as_echo "no" >&6; }
6464fi
6465
6466
6467fi
6468if test -z "$ac_cv_prog_STRIP"; then
6469  ac_ct_STRIP=$STRIP
6470  # Extract the first word of "strip", so it can be a program name with args.
6471set dummy strip; ac_word=$2
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473$as_echo_n "checking for $ac_word... " >&6; }
6474if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6475  $as_echo_n "(cached) " >&6
6476else
6477  if test -n "$ac_ct_STRIP"; then
6478  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6479else
6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483  IFS=$as_save_IFS
6484  test -z "$as_dir" && as_dir=.
6485    for ac_exec_ext in '' $ac_executable_extensions; do
6486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6487    ac_cv_prog_ac_ct_STRIP="strip"
6488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489    break 2
6490  fi
6491done
6492  done
6493IFS=$as_save_IFS
6494
6495fi
6496fi
6497ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6498if test -n "$ac_ct_STRIP"; then
6499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6500$as_echo "$ac_ct_STRIP" >&6; }
6501else
6502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503$as_echo "no" >&6; }
6504fi
6505
6506  if test "x$ac_ct_STRIP" = x; then
6507    STRIP=":"
6508  else
6509    case $cross_compiling:$ac_tool_warned in
6510yes:)
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6513ac_tool_warned=yes ;;
6514esac
6515    STRIP=$ac_ct_STRIP
6516  fi
6517else
6518  STRIP="$ac_cv_prog_STRIP"
6519fi
6520
6521test -z "$STRIP" && STRIP=:
6522
6523
6524
6525
6526
6527
6528if test -n "$ac_tool_prefix"; then
6529  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6530set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532$as_echo_n "checking for $ac_word... " >&6; }
6533if ${ac_cv_prog_RANLIB+:} false; then :
6534  $as_echo_n "(cached) " >&6
6535else
6536  if test -n "$RANLIB"; then
6537  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6538else
6539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540for as_dir in $PATH
6541do
6542  IFS=$as_save_IFS
6543  test -z "$as_dir" && as_dir=.
6544    for ac_exec_ext in '' $ac_executable_extensions; do
6545  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6546    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6547    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6548    break 2
6549  fi
6550done
6551  done
6552IFS=$as_save_IFS
6553
6554fi
6555fi
6556RANLIB=$ac_cv_prog_RANLIB
6557if test -n "$RANLIB"; then
6558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6559$as_echo "$RANLIB" >&6; }
6560else
6561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562$as_echo "no" >&6; }
6563fi
6564
6565
6566fi
6567if test -z "$ac_cv_prog_RANLIB"; then
6568  ac_ct_RANLIB=$RANLIB
6569  # Extract the first word of "ranlib", so it can be a program name with args.
6570set dummy ranlib; ac_word=$2
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572$as_echo_n "checking for $ac_word... " >&6; }
6573if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6574  $as_echo_n "(cached) " >&6
6575else
6576  if test -n "$ac_ct_RANLIB"; then
6577  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6578else
6579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580for as_dir in $PATH
6581do
6582  IFS=$as_save_IFS
6583  test -z "$as_dir" && as_dir=.
6584    for ac_exec_ext in '' $ac_executable_extensions; do
6585  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6586    ac_cv_prog_ac_ct_RANLIB="ranlib"
6587    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588    break 2
6589  fi
6590done
6591  done
6592IFS=$as_save_IFS
6593
6594fi
6595fi
6596ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6597if test -n "$ac_ct_RANLIB"; then
6598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6599$as_echo "$ac_ct_RANLIB" >&6; }
6600else
6601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602$as_echo "no" >&6; }
6603fi
6604
6605  if test "x$ac_ct_RANLIB" = x; then
6606    RANLIB=":"
6607  else
6608    case $cross_compiling:$ac_tool_warned in
6609yes:)
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6612ac_tool_warned=yes ;;
6613esac
6614    RANLIB=$ac_ct_RANLIB
6615  fi
6616else
6617  RANLIB="$ac_cv_prog_RANLIB"
6618fi
6619
6620test -z "$RANLIB" && RANLIB=:
6621
6622
6623
6624
6625
6626
6627# Determine commands to create old-style static archives.
6628old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6629old_postinstall_cmds='chmod 644 $oldlib'
6630old_postuninstall_cmds=
6631
6632if test -n "$RANLIB"; then
6633  case $host_os in
6634  openbsd*)
6635    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6636    ;;
6637  *)
6638    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6639    ;;
6640  esac
6641  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6642fi
6643
6644case $host_os in
6645  darwin*)
6646    lock_old_archive_extraction=yes ;;
6647  *)
6648    lock_old_archive_extraction=no ;;
6649esac
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689# If no C compiler was specified, use CC.
6690LTCC=${LTCC-"$CC"}
6691
6692# If no C compiler flags were specified, use CFLAGS.
6693LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6694
6695# Allow CC to be a program name with arguments.
6696compiler=$CC
6697
6698
6699# Check for command to grab the raw symbol name followed by C symbol from nm.
6700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6701$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6702if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6703  $as_echo_n "(cached) " >&6
6704else
6705
6706# These are sane defaults that work on at least a few old systems.
6707# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6708
6709# Character class describing NM global symbol codes.
6710symcode='[BCDEGRST]'
6711
6712# Regexp to match symbols that can be accessed directly from C.
6713sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6714
6715# Define system-specific variables.
6716case $host_os in
6717aix*)
6718  symcode='[BCDT]'
6719  ;;
6720cygwin* | mingw* | pw32* | cegcc*)
6721  symcode='[ABCDGISTW]'
6722  ;;
6723hpux*)
6724  if test "$host_cpu" = ia64; then
6725    symcode='[ABCDEGRST]'
6726  fi
6727  ;;
6728irix* | nonstopux*)
6729  symcode='[BCDEGRST]'
6730  ;;
6731osf*)
6732  symcode='[BCDEGQRST]'
6733  ;;
6734solaris*)
6735  symcode='[BDRT]'
6736  ;;
6737sco3.2v5*)
6738  symcode='[DT]'
6739  ;;
6740sysv4.2uw2*)
6741  symcode='[DT]'
6742  ;;
6743sysv5* | sco5v6* | unixware* | OpenUNIX*)
6744  symcode='[ABDT]'
6745  ;;
6746sysv4)
6747  symcode='[DFNSTU]'
6748  ;;
6749esac
6750
6751# If we're using GNU nm, then use its standard symbol codes.
6752case `$NM -V 2>&1` in
6753*GNU* | *'with BFD'*)
6754  symcode='[ABCDGIRSTW]' ;;
6755esac
6756
6757# Transform an extracted symbol line into a proper C declaration.
6758# Some systems (esp. on ia64) link data and code symbols differently,
6759# so use this general approach.
6760lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6761
6762# Transform an extracted symbol line into symbol name and symbol address
6763lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6764lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6765
6766# Handle CRLF in mingw tool chain
6767opt_cr=
6768case $build_os in
6769mingw*)
6770  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6771  ;;
6772esac
6773
6774# Try without a prefix underscore, then with it.
6775for ac_symprfx in "" "_"; do
6776
6777  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6778  symxfrm="\\1 $ac_symprfx\\2 \\2"
6779
6780  # Write the raw and C identifiers.
6781  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6782    # Fake it for dumpbin and say T for any non-static function
6783    # and D for any global variable.
6784    # Also find C++ and __fastcall symbols from MSVC++,
6785    # which start with @ or ?.
6786    lt_cv_sys_global_symbol_pipe="$AWK '"\
6787"     {last_section=section; section=\$ 3};"\
6788"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6789"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6790"     \$ 0!~/External *\|/{next};"\
6791"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6792"     {if(hide[section]) next};"\
6793"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6794"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6795"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6796"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6797"     ' prfx=^$ac_symprfx"
6798  else
6799    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6800  fi
6801  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6802
6803  # Check to see that the pipe works correctly.
6804  pipe_works=no
6805
6806  rm -f conftest*
6807  cat > conftest.$ac_ext <<_LT_EOF
6808#ifdef __cplusplus
6809extern "C" {
6810#endif
6811char nm_test_var;
6812void nm_test_func(void);
6813void nm_test_func(void){}
6814#ifdef __cplusplus
6815}
6816#endif
6817int main(){nm_test_var='a';nm_test_func();return(0);}
6818_LT_EOF
6819
6820  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6821  (eval $ac_compile) 2>&5
6822  ac_status=$?
6823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6824  test $ac_status = 0; }; then
6825    # Now try to grab the symbols.
6826    nlist=conftest.nm
6827    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6828  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6829  ac_status=$?
6830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6831  test $ac_status = 0; } && test -s "$nlist"; then
6832      # Try sorting and uniquifying the output.
6833      if sort "$nlist" | uniq > "$nlist"T; then
6834	mv -f "$nlist"T "$nlist"
6835      else
6836	rm -f "$nlist"T
6837      fi
6838
6839      # Make sure that we snagged all the symbols we need.
6840      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6841	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6842	  cat <<_LT_EOF > conftest.$ac_ext
6843/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6844#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6845/* DATA imports from DLLs on WIN32 con't be const, because runtime
6846   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6847# define LT_DLSYM_CONST
6848#elif defined(__osf__)
6849/* This system does not cope well with relocations in const data.  */
6850# define LT_DLSYM_CONST
6851#else
6852# define LT_DLSYM_CONST const
6853#endif
6854
6855#ifdef __cplusplus
6856extern "C" {
6857#endif
6858
6859_LT_EOF
6860	  # Now generate the symbol file.
6861	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6862
6863	  cat <<_LT_EOF >> conftest.$ac_ext
6864
6865/* The mapping between symbol names and symbols.  */
6866LT_DLSYM_CONST struct {
6867  const char *name;
6868  void       *address;
6869}
6870lt__PROGRAM__LTX_preloaded_symbols[] =
6871{
6872  { "@PROGRAM@", (void *) 0 },
6873_LT_EOF
6874	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6875	  cat <<\_LT_EOF >> conftest.$ac_ext
6876  {0, (void *) 0}
6877};
6878
6879/* This works around a problem in FreeBSD linker */
6880#ifdef FREEBSD_WORKAROUND
6881static const void *lt_preloaded_setup() {
6882  return lt__PROGRAM__LTX_preloaded_symbols;
6883}
6884#endif
6885
6886#ifdef __cplusplus
6887}
6888#endif
6889_LT_EOF
6890	  # Now try linking the two files.
6891	  mv conftest.$ac_objext conftstm.$ac_objext
6892	  lt_globsym_save_LIBS=$LIBS
6893	  lt_globsym_save_CFLAGS=$CFLAGS
6894	  LIBS="conftstm.$ac_objext"
6895	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6896	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6897  (eval $ac_link) 2>&5
6898  ac_status=$?
6899  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6900  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6901	    pipe_works=yes
6902	  fi
6903	  LIBS=$lt_globsym_save_LIBS
6904	  CFLAGS=$lt_globsym_save_CFLAGS
6905	else
6906	  echo "cannot find nm_test_func in $nlist" >&5
6907	fi
6908      else
6909	echo "cannot find nm_test_var in $nlist" >&5
6910      fi
6911    else
6912      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6913    fi
6914  else
6915    echo "$progname: failed program was:" >&5
6916    cat conftest.$ac_ext >&5
6917  fi
6918  rm -rf conftest* conftst*
6919
6920  # Do not use the global_symbol_pipe unless it works.
6921  if test "$pipe_works" = yes; then
6922    break
6923  else
6924    lt_cv_sys_global_symbol_pipe=
6925  fi
6926done
6927
6928fi
6929
6930if test -z "$lt_cv_sys_global_symbol_pipe"; then
6931  lt_cv_sys_global_symbol_to_cdecl=
6932fi
6933if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6935$as_echo "failed" >&6; }
6936else
6937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6938$as_echo "ok" >&6; }
6939fi
6940
6941# Response file support.
6942if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6943  nm_file_list_spec='@'
6944elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6945  nm_file_list_spec='@'
6946fi
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6975$as_echo_n "checking for sysroot... " >&6; }
6976
6977# Check whether --with-sysroot was given.
6978if test "${with_sysroot+set}" = set; then :
6979  withval=$with_sysroot;
6980else
6981  with_sysroot=no
6982fi
6983
6984
6985lt_sysroot=
6986case ${with_sysroot} in #(
6987 yes)
6988   if test "$GCC" = yes; then
6989     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6990   fi
6991   ;; #(
6992 /*)
6993   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6994   ;; #(
6995 no|'')
6996   ;; #(
6997 *)
6998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6999$as_echo "${with_sysroot}" >&6; }
7000   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7001   ;;
7002esac
7003
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7005$as_echo "${lt_sysroot:-no}" >&6; }
7006
7007
7008
7009
7010
7011# Check whether --enable-libtool-lock was given.
7012if test "${enable_libtool_lock+set}" = set; then :
7013  enableval=$enable_libtool_lock;
7014fi
7015
7016test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7017
7018# Some flags need to be propagated to the compiler or linker for good
7019# libtool support.
7020case $host in
7021ia64-*-hpux*)
7022  # Find out which ABI we are using.
7023  echo 'int i;' > conftest.$ac_ext
7024  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7025  (eval $ac_compile) 2>&5
7026  ac_status=$?
7027  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7028  test $ac_status = 0; }; then
7029    case `/usr/bin/file conftest.$ac_objext` in
7030      *ELF-32*)
7031	HPUX_IA64_MODE="32"
7032	;;
7033      *ELF-64*)
7034	HPUX_IA64_MODE="64"
7035	;;
7036    esac
7037  fi
7038  rm -rf conftest*
7039  ;;
7040*-*-irix6*)
7041  # Find out which ABI we are using.
7042  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7043  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7044  (eval $ac_compile) 2>&5
7045  ac_status=$?
7046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7047  test $ac_status = 0; }; then
7048    if test "$lt_cv_prog_gnu_ld" = yes; then
7049      case `/usr/bin/file conftest.$ac_objext` in
7050	*32-bit*)
7051	  LD="${LD-ld} -melf32bsmip"
7052	  ;;
7053	*N32*)
7054	  LD="${LD-ld} -melf32bmipn32"
7055	  ;;
7056	*64-bit*)
7057	  LD="${LD-ld} -melf64bmip"
7058	;;
7059      esac
7060    else
7061      case `/usr/bin/file conftest.$ac_objext` in
7062	*32-bit*)
7063	  LD="${LD-ld} -32"
7064	  ;;
7065	*N32*)
7066	  LD="${LD-ld} -n32"
7067	  ;;
7068	*64-bit*)
7069	  LD="${LD-ld} -64"
7070	  ;;
7071      esac
7072    fi
7073  fi
7074  rm -rf conftest*
7075  ;;
7076
7077x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7078s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7079  # Find out which ABI we are using.
7080  echo 'int i;' > conftest.$ac_ext
7081  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7082  (eval $ac_compile) 2>&5
7083  ac_status=$?
7084  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7085  test $ac_status = 0; }; then
7086    case `/usr/bin/file conftest.o` in
7087      *32-bit*)
7088	case $host in
7089	  x86_64-*kfreebsd*-gnu)
7090	    LD="${LD-ld} -m elf_i386_fbsd"
7091	    ;;
7092	  x86_64-*linux*)
7093	    LD="${LD-ld} -m elf_i386"
7094	    ;;
7095	  ppc64-*linux*|powerpc64-*linux*)
7096	    LD="${LD-ld} -m elf32ppclinux"
7097	    ;;
7098	  s390x-*linux*)
7099	    LD="${LD-ld} -m elf_s390"
7100	    ;;
7101	  sparc64-*linux*)
7102	    LD="${LD-ld} -m elf32_sparc"
7103	    ;;
7104	esac
7105	;;
7106      *64-bit*)
7107	case $host in
7108	  x86_64-*kfreebsd*-gnu)
7109	    LD="${LD-ld} -m elf_x86_64_fbsd"
7110	    ;;
7111	  x86_64-*linux*)
7112	    LD="${LD-ld} -m elf_x86_64"
7113	    ;;
7114	  ppc*-*linux*|powerpc*-*linux*)
7115	    LD="${LD-ld} -m elf64ppc"
7116	    ;;
7117	  s390*-*linux*|s390*-*tpf*)
7118	    LD="${LD-ld} -m elf64_s390"
7119	    ;;
7120	  sparc*-*linux*)
7121	    LD="${LD-ld} -m elf64_sparc"
7122	    ;;
7123	esac
7124	;;
7125    esac
7126  fi
7127  rm -rf conftest*
7128  ;;
7129
7130*-*-sco3.2v5*)
7131  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7132  SAVE_CFLAGS="$CFLAGS"
7133  CFLAGS="$CFLAGS -belf"
7134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7135$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7136if ${lt_cv_cc_needs_belf+:} false; then :
7137  $as_echo_n "(cached) " >&6
7138else
7139  ac_ext=c
7140ac_cpp='$CPP $CPPFLAGS'
7141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7143ac_compiler_gnu=$ac_cv_c_compiler_gnu
7144
7145     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146/* end confdefs.h.  */
7147
7148int
7149main ()
7150{
7151
7152  ;
7153  return 0;
7154}
7155_ACEOF
7156if ac_fn_c_try_link "$LINENO"; then :
7157  lt_cv_cc_needs_belf=yes
7158else
7159  lt_cv_cc_needs_belf=no
7160fi
7161rm -f core conftest.err conftest.$ac_objext \
7162    conftest$ac_exeext conftest.$ac_ext
7163     ac_ext=c
7164ac_cpp='$CPP $CPPFLAGS'
7165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7167ac_compiler_gnu=$ac_cv_c_compiler_gnu
7168
7169fi
7170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7171$as_echo "$lt_cv_cc_needs_belf" >&6; }
7172  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7173    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7174    CFLAGS="$SAVE_CFLAGS"
7175  fi
7176  ;;
7177*-*solaris*)
7178  # Find out which ABI we are using.
7179  echo 'int i;' > conftest.$ac_ext
7180  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7181  (eval $ac_compile) 2>&5
7182  ac_status=$?
7183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7184  test $ac_status = 0; }; then
7185    case `/usr/bin/file conftest.o` in
7186    *64-bit*)
7187      case $lt_cv_prog_gnu_ld in
7188      yes*)
7189        case $host in
7190        i?86-*-solaris*)
7191          LD="${LD-ld} -m elf_x86_64"
7192          ;;
7193        sparc*-*-solaris*)
7194          LD="${LD-ld} -m elf64_sparc"
7195          ;;
7196        esac
7197        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7198        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7199          LD="${LD-ld}_sol2"
7200        fi
7201        ;;
7202      *)
7203	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7204	  LD="${LD-ld} -64"
7205	fi
7206	;;
7207      esac
7208      ;;
7209    esac
7210  fi
7211  rm -rf conftest*
7212  ;;
7213esac
7214
7215need_locks="$enable_libtool_lock"
7216
7217if test -n "$ac_tool_prefix"; then
7218  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7219set dummy ${ac_tool_prefix}mt; ac_word=$2
7220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221$as_echo_n "checking for $ac_word... " >&6; }
7222if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7223  $as_echo_n "(cached) " >&6
7224else
7225  if test -n "$MANIFEST_TOOL"; then
7226  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7227else
7228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229for as_dir in $PATH
7230do
7231  IFS=$as_save_IFS
7232  test -z "$as_dir" && as_dir=.
7233    for ac_exec_ext in '' $ac_executable_extensions; do
7234  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7235    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237    break 2
7238  fi
7239done
7240  done
7241IFS=$as_save_IFS
7242
7243fi
7244fi
7245MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7246if test -n "$MANIFEST_TOOL"; then
7247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7248$as_echo "$MANIFEST_TOOL" >&6; }
7249else
7250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251$as_echo "no" >&6; }
7252fi
7253
7254
7255fi
7256if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7257  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7258  # Extract the first word of "mt", so it can be a program name with args.
7259set dummy mt; ac_word=$2
7260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261$as_echo_n "checking for $ac_word... " >&6; }
7262if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7263  $as_echo_n "(cached) " >&6
7264else
7265  if test -n "$ac_ct_MANIFEST_TOOL"; then
7266  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7267else
7268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269for as_dir in $PATH
7270do
7271  IFS=$as_save_IFS
7272  test -z "$as_dir" && as_dir=.
7273    for ac_exec_ext in '' $ac_executable_extensions; do
7274  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7275    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277    break 2
7278  fi
7279done
7280  done
7281IFS=$as_save_IFS
7282
7283fi
7284fi
7285ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7286if test -n "$ac_ct_MANIFEST_TOOL"; then
7287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7288$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7289else
7290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291$as_echo "no" >&6; }
7292fi
7293
7294  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7295    MANIFEST_TOOL=":"
7296  else
7297    case $cross_compiling:$ac_tool_warned in
7298yes:)
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7301ac_tool_warned=yes ;;
7302esac
7303    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7304  fi
7305else
7306  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7307fi
7308
7309test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7311$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7312if ${lt_cv_path_mainfest_tool+:} false; then :
7313  $as_echo_n "(cached) " >&6
7314else
7315  lt_cv_path_mainfest_tool=no
7316  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7317  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7318  cat conftest.err >&5
7319  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7320    lt_cv_path_mainfest_tool=yes
7321  fi
7322  rm -f conftest*
7323fi
7324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7325$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7326if test "x$lt_cv_path_mainfest_tool" != xyes; then
7327  MANIFEST_TOOL=:
7328fi
7329
7330
7331
7332
7333
7334
7335  case $host_os in
7336    rhapsody* | darwin*)
7337    if test -n "$ac_tool_prefix"; then
7338  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7339set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341$as_echo_n "checking for $ac_word... " >&6; }
7342if ${ac_cv_prog_DSYMUTIL+:} false; then :
7343  $as_echo_n "(cached) " >&6
7344else
7345  if test -n "$DSYMUTIL"; then
7346  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7347else
7348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349for as_dir in $PATH
7350do
7351  IFS=$as_save_IFS
7352  test -z "$as_dir" && as_dir=.
7353    for ac_exec_ext in '' $ac_executable_extensions; do
7354  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7355    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357    break 2
7358  fi
7359done
7360  done
7361IFS=$as_save_IFS
7362
7363fi
7364fi
7365DSYMUTIL=$ac_cv_prog_DSYMUTIL
7366if test -n "$DSYMUTIL"; then
7367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7368$as_echo "$DSYMUTIL" >&6; }
7369else
7370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371$as_echo "no" >&6; }
7372fi
7373
7374
7375fi
7376if test -z "$ac_cv_prog_DSYMUTIL"; then
7377  ac_ct_DSYMUTIL=$DSYMUTIL
7378  # Extract the first word of "dsymutil", so it can be a program name with args.
7379set dummy dsymutil; ac_word=$2
7380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7381$as_echo_n "checking for $ac_word... " >&6; }
7382if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7383  $as_echo_n "(cached) " >&6
7384else
7385  if test -n "$ac_ct_DSYMUTIL"; then
7386  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7387else
7388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389for as_dir in $PATH
7390do
7391  IFS=$as_save_IFS
7392  test -z "$as_dir" && as_dir=.
7393    for ac_exec_ext in '' $ac_executable_extensions; do
7394  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7395    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7397    break 2
7398  fi
7399done
7400  done
7401IFS=$as_save_IFS
7402
7403fi
7404fi
7405ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7406if test -n "$ac_ct_DSYMUTIL"; then
7407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7408$as_echo "$ac_ct_DSYMUTIL" >&6; }
7409else
7410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411$as_echo "no" >&6; }
7412fi
7413
7414  if test "x$ac_ct_DSYMUTIL" = x; then
7415    DSYMUTIL=":"
7416  else
7417    case $cross_compiling:$ac_tool_warned in
7418yes:)
7419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7421ac_tool_warned=yes ;;
7422esac
7423    DSYMUTIL=$ac_ct_DSYMUTIL
7424  fi
7425else
7426  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7427fi
7428
7429    if test -n "$ac_tool_prefix"; then
7430  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7431set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433$as_echo_n "checking for $ac_word... " >&6; }
7434if ${ac_cv_prog_NMEDIT+:} false; then :
7435  $as_echo_n "(cached) " >&6
7436else
7437  if test -n "$NMEDIT"; then
7438  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7439else
7440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441for as_dir in $PATH
7442do
7443  IFS=$as_save_IFS
7444  test -z "$as_dir" && as_dir=.
7445    for ac_exec_ext in '' $ac_executable_extensions; do
7446  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7447    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7448    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449    break 2
7450  fi
7451done
7452  done
7453IFS=$as_save_IFS
7454
7455fi
7456fi
7457NMEDIT=$ac_cv_prog_NMEDIT
7458if test -n "$NMEDIT"; then
7459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7460$as_echo "$NMEDIT" >&6; }
7461else
7462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463$as_echo "no" >&6; }
7464fi
7465
7466
7467fi
7468if test -z "$ac_cv_prog_NMEDIT"; then
7469  ac_ct_NMEDIT=$NMEDIT
7470  # Extract the first word of "nmedit", so it can be a program name with args.
7471set dummy nmedit; ac_word=$2
7472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473$as_echo_n "checking for $ac_word... " >&6; }
7474if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7475  $as_echo_n "(cached) " >&6
7476else
7477  if test -n "$ac_ct_NMEDIT"; then
7478  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7479else
7480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481for as_dir in $PATH
7482do
7483  IFS=$as_save_IFS
7484  test -z "$as_dir" && as_dir=.
7485    for ac_exec_ext in '' $ac_executable_extensions; do
7486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489    break 2
7490  fi
7491done
7492  done
7493IFS=$as_save_IFS
7494
7495fi
7496fi
7497ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7498if test -n "$ac_ct_NMEDIT"; then
7499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7500$as_echo "$ac_ct_NMEDIT" >&6; }
7501else
7502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503$as_echo "no" >&6; }
7504fi
7505
7506  if test "x$ac_ct_NMEDIT" = x; then
7507    NMEDIT=":"
7508  else
7509    case $cross_compiling:$ac_tool_warned in
7510yes:)
7511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7513ac_tool_warned=yes ;;
7514esac
7515    NMEDIT=$ac_ct_NMEDIT
7516  fi
7517else
7518  NMEDIT="$ac_cv_prog_NMEDIT"
7519fi
7520
7521    if test -n "$ac_tool_prefix"; then
7522  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7523set dummy ${ac_tool_prefix}lipo; ac_word=$2
7524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7525$as_echo_n "checking for $ac_word... " >&6; }
7526if ${ac_cv_prog_LIPO+:} false; then :
7527  $as_echo_n "(cached) " >&6
7528else
7529  if test -n "$LIPO"; then
7530  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7531else
7532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533for as_dir in $PATH
7534do
7535  IFS=$as_save_IFS
7536  test -z "$as_dir" && as_dir=.
7537    for ac_exec_ext in '' $ac_executable_extensions; do
7538  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541    break 2
7542  fi
7543done
7544  done
7545IFS=$as_save_IFS
7546
7547fi
7548fi
7549LIPO=$ac_cv_prog_LIPO
7550if test -n "$LIPO"; then
7551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7552$as_echo "$LIPO" >&6; }
7553else
7554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555$as_echo "no" >&6; }
7556fi
7557
7558
7559fi
7560if test -z "$ac_cv_prog_LIPO"; then
7561  ac_ct_LIPO=$LIPO
7562  # Extract the first word of "lipo", so it can be a program name with args.
7563set dummy lipo; ac_word=$2
7564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565$as_echo_n "checking for $ac_word... " >&6; }
7566if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7567  $as_echo_n "(cached) " >&6
7568else
7569  if test -n "$ac_ct_LIPO"; then
7570  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7571else
7572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573for as_dir in $PATH
7574do
7575  IFS=$as_save_IFS
7576  test -z "$as_dir" && as_dir=.
7577    for ac_exec_ext in '' $ac_executable_extensions; do
7578  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7579    ac_cv_prog_ac_ct_LIPO="lipo"
7580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581    break 2
7582  fi
7583done
7584  done
7585IFS=$as_save_IFS
7586
7587fi
7588fi
7589ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7590if test -n "$ac_ct_LIPO"; then
7591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7592$as_echo "$ac_ct_LIPO" >&6; }
7593else
7594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595$as_echo "no" >&6; }
7596fi
7597
7598  if test "x$ac_ct_LIPO" = x; then
7599    LIPO=":"
7600  else
7601    case $cross_compiling:$ac_tool_warned in
7602yes:)
7603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7605ac_tool_warned=yes ;;
7606esac
7607    LIPO=$ac_ct_LIPO
7608  fi
7609else
7610  LIPO="$ac_cv_prog_LIPO"
7611fi
7612
7613    if test -n "$ac_tool_prefix"; then
7614  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7615set dummy ${ac_tool_prefix}otool; ac_word=$2
7616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617$as_echo_n "checking for $ac_word... " >&6; }
7618if ${ac_cv_prog_OTOOL+:} false; then :
7619  $as_echo_n "(cached) " >&6
7620else
7621  if test -n "$OTOOL"; then
7622  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7623else
7624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625for as_dir in $PATH
7626do
7627  IFS=$as_save_IFS
7628  test -z "$as_dir" && as_dir=.
7629    for ac_exec_ext in '' $ac_executable_extensions; do
7630  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7631    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7632    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7633    break 2
7634  fi
7635done
7636  done
7637IFS=$as_save_IFS
7638
7639fi
7640fi
7641OTOOL=$ac_cv_prog_OTOOL
7642if test -n "$OTOOL"; then
7643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7644$as_echo "$OTOOL" >&6; }
7645else
7646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647$as_echo "no" >&6; }
7648fi
7649
7650
7651fi
7652if test -z "$ac_cv_prog_OTOOL"; then
7653  ac_ct_OTOOL=$OTOOL
7654  # Extract the first word of "otool", so it can be a program name with args.
7655set dummy otool; ac_word=$2
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657$as_echo_n "checking for $ac_word... " >&6; }
7658if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7659  $as_echo_n "(cached) " >&6
7660else
7661  if test -n "$ac_ct_OTOOL"; then
7662  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7663else
7664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665for as_dir in $PATH
7666do
7667  IFS=$as_save_IFS
7668  test -z "$as_dir" && as_dir=.
7669    for ac_exec_ext in '' $ac_executable_extensions; do
7670  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7671    ac_cv_prog_ac_ct_OTOOL="otool"
7672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673    break 2
7674  fi
7675done
7676  done
7677IFS=$as_save_IFS
7678
7679fi
7680fi
7681ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7682if test -n "$ac_ct_OTOOL"; then
7683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7684$as_echo "$ac_ct_OTOOL" >&6; }
7685else
7686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687$as_echo "no" >&6; }
7688fi
7689
7690  if test "x$ac_ct_OTOOL" = x; then
7691    OTOOL=":"
7692  else
7693    case $cross_compiling:$ac_tool_warned in
7694yes:)
7695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7697ac_tool_warned=yes ;;
7698esac
7699    OTOOL=$ac_ct_OTOOL
7700  fi
7701else
7702  OTOOL="$ac_cv_prog_OTOOL"
7703fi
7704
7705    if test -n "$ac_tool_prefix"; then
7706  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7707set dummy ${ac_tool_prefix}otool64; ac_word=$2
7708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7709$as_echo_n "checking for $ac_word... " >&6; }
7710if ${ac_cv_prog_OTOOL64+:} false; then :
7711  $as_echo_n "(cached) " >&6
7712else
7713  if test -n "$OTOOL64"; then
7714  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7715else
7716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717for as_dir in $PATH
7718do
7719  IFS=$as_save_IFS
7720  test -z "$as_dir" && as_dir=.
7721    for ac_exec_ext in '' $ac_executable_extensions; do
7722  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7723    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725    break 2
7726  fi
7727done
7728  done
7729IFS=$as_save_IFS
7730
7731fi
7732fi
7733OTOOL64=$ac_cv_prog_OTOOL64
7734if test -n "$OTOOL64"; then
7735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7736$as_echo "$OTOOL64" >&6; }
7737else
7738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739$as_echo "no" >&6; }
7740fi
7741
7742
7743fi
7744if test -z "$ac_cv_prog_OTOOL64"; then
7745  ac_ct_OTOOL64=$OTOOL64
7746  # Extract the first word of "otool64", so it can be a program name with args.
7747set dummy otool64; ac_word=$2
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7749$as_echo_n "checking for $ac_word... " >&6; }
7750if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7751  $as_echo_n "(cached) " >&6
7752else
7753  if test -n "$ac_ct_OTOOL64"; then
7754  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7755else
7756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757for as_dir in $PATH
7758do
7759  IFS=$as_save_IFS
7760  test -z "$as_dir" && as_dir=.
7761    for ac_exec_ext in '' $ac_executable_extensions; do
7762  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7763    ac_cv_prog_ac_ct_OTOOL64="otool64"
7764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7765    break 2
7766  fi
7767done
7768  done
7769IFS=$as_save_IFS
7770
7771fi
7772fi
7773ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7774if test -n "$ac_ct_OTOOL64"; then
7775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7776$as_echo "$ac_ct_OTOOL64" >&6; }
7777else
7778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779$as_echo "no" >&6; }
7780fi
7781
7782  if test "x$ac_ct_OTOOL64" = x; then
7783    OTOOL64=":"
7784  else
7785    case $cross_compiling:$ac_tool_warned in
7786yes:)
7787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7789ac_tool_warned=yes ;;
7790esac
7791    OTOOL64=$ac_ct_OTOOL64
7792  fi
7793else
7794  OTOOL64="$ac_cv_prog_OTOOL64"
7795fi
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7824$as_echo_n "checking for -single_module linker flag... " >&6; }
7825if ${lt_cv_apple_cc_single_mod+:} false; then :
7826  $as_echo_n "(cached) " >&6
7827else
7828  lt_cv_apple_cc_single_mod=no
7829      if test -z "${LT_MULTI_MODULE}"; then
7830	# By default we will add the -single_module flag. You can override
7831	# by either setting the environment variable LT_MULTI_MODULE
7832	# non-empty at configure time, or by adding -multi_module to the
7833	# link flags.
7834	rm -rf libconftest.dylib*
7835	echo "int foo(void){return 1;}" > conftest.c
7836	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7837-dynamiclib -Wl,-single_module conftest.c" >&5
7838	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7839	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7840        _lt_result=$?
7841	# If there is a non-empty error log, and "single_module"
7842	# appears in it, assume the flag caused a linker warning
7843        if test -s conftest.err && $GREP single_module conftest.err; then
7844	  cat conftest.err >&5
7845	# Otherwise, if the output was created with a 0 exit code from
7846	# the compiler, it worked.
7847	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7848	  lt_cv_apple_cc_single_mod=yes
7849	else
7850	  cat conftest.err >&5
7851	fi
7852	rm -rf libconftest.dylib*
7853	rm -f conftest.*
7854      fi
7855fi
7856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7857$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7858
7859    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7860$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7861if ${lt_cv_ld_exported_symbols_list+:} false; then :
7862  $as_echo_n "(cached) " >&6
7863else
7864  lt_cv_ld_exported_symbols_list=no
7865      save_LDFLAGS=$LDFLAGS
7866      echo "_main" > conftest.sym
7867      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7868      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869/* end confdefs.h.  */
7870
7871int
7872main ()
7873{
7874
7875  ;
7876  return 0;
7877}
7878_ACEOF
7879if ac_fn_c_try_link "$LINENO"; then :
7880  lt_cv_ld_exported_symbols_list=yes
7881else
7882  lt_cv_ld_exported_symbols_list=no
7883fi
7884rm -f core conftest.err conftest.$ac_objext \
7885    conftest$ac_exeext conftest.$ac_ext
7886	LDFLAGS="$save_LDFLAGS"
7887
7888fi
7889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7890$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7891
7892    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7893$as_echo_n "checking for -force_load linker flag... " >&6; }
7894if ${lt_cv_ld_force_load+:} false; then :
7895  $as_echo_n "(cached) " >&6
7896else
7897  lt_cv_ld_force_load=no
7898      cat > conftest.c << _LT_EOF
7899int forced_loaded() { return 2;}
7900_LT_EOF
7901      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7902      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7903      echo "$AR cru libconftest.a conftest.o" >&5
7904      $AR cru libconftest.a conftest.o 2>&5
7905      echo "$RANLIB libconftest.a" >&5
7906      $RANLIB libconftest.a 2>&5
7907      cat > conftest.c << _LT_EOF
7908int main() { return 0;}
7909_LT_EOF
7910      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7911      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7912      _lt_result=$?
7913      if test -s conftest.err && $GREP force_load conftest.err; then
7914	cat conftest.err >&5
7915      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7916	lt_cv_ld_force_load=yes
7917      else
7918	cat conftest.err >&5
7919      fi
7920        rm -f conftest.err libconftest.a conftest conftest.c
7921        rm -rf conftest.dSYM
7922
7923fi
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7925$as_echo "$lt_cv_ld_force_load" >&6; }
7926    case $host_os in
7927    rhapsody* | darwin1.[012])
7928      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7929    darwin1.*)
7930      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7931    darwin*) # darwin 5.x on
7932      # if running on 10.5 or later, the deployment target defaults
7933      # to the OS version, if on x86, and 10.4, the deployment
7934      # target defaults to 10.4. Don't you love it?
7935      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7936	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7937	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7938	10.[012]*)
7939	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7940	10.*)
7941	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7942      esac
7943    ;;
7944  esac
7945    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7946      _lt_dar_single_mod='$single_module'
7947    fi
7948    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7949      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7950    else
7951      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7952    fi
7953    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7954      _lt_dsymutil='~$DSYMUTIL $lib || :'
7955    else
7956      _lt_dsymutil=
7957    fi
7958    ;;
7959  esac
7960
7961ac_ext=c
7962ac_cpp='$CPP $CPPFLAGS'
7963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7965ac_compiler_gnu=$ac_cv_c_compiler_gnu
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7967$as_echo_n "checking how to run the C preprocessor... " >&6; }
7968# On Suns, sometimes $CPP names a directory.
7969if test -n "$CPP" && test -d "$CPP"; then
7970  CPP=
7971fi
7972if test -z "$CPP"; then
7973  if ${ac_cv_prog_CPP+:} false; then :
7974  $as_echo_n "(cached) " >&6
7975else
7976      # Double quotes because CPP needs to be expanded
7977    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7978    do
7979      ac_preproc_ok=false
7980for ac_c_preproc_warn_flag in '' yes
7981do
7982  # Use a header file that comes with gcc, so configuring glibc
7983  # with a fresh cross-compiler works.
7984  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7985  # <limits.h> exists even on freestanding compilers.
7986  # On the NeXT, cc -E runs the code through the compiler's parser,
7987  # not just through cpp. "Syntax error" is here to catch this case.
7988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989/* end confdefs.h.  */
7990#ifdef __STDC__
7991# include <limits.h>
7992#else
7993# include <assert.h>
7994#endif
7995		     Syntax error
7996_ACEOF
7997if ac_fn_c_try_cpp "$LINENO"; then :
7998
7999else
8000  # Broken: fails on valid input.
8001continue
8002fi
8003rm -f conftest.err conftest.i conftest.$ac_ext
8004
8005  # OK, works on sane cases.  Now check whether nonexistent headers
8006  # can be detected and how.
8007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008/* end confdefs.h.  */
8009#include <ac_nonexistent.h>
8010_ACEOF
8011if ac_fn_c_try_cpp "$LINENO"; then :
8012  # Broken: success on invalid input.
8013continue
8014else
8015  # Passes both tests.
8016ac_preproc_ok=:
8017break
8018fi
8019rm -f conftest.err conftest.i conftest.$ac_ext
8020
8021done
8022# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8023rm -f conftest.i conftest.err conftest.$ac_ext
8024if $ac_preproc_ok; then :
8025  break
8026fi
8027
8028    done
8029    ac_cv_prog_CPP=$CPP
8030
8031fi
8032  CPP=$ac_cv_prog_CPP
8033else
8034  ac_cv_prog_CPP=$CPP
8035fi
8036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8037$as_echo "$CPP" >&6; }
8038ac_preproc_ok=false
8039for ac_c_preproc_warn_flag in '' yes
8040do
8041  # Use a header file that comes with gcc, so configuring glibc
8042  # with a fresh cross-compiler works.
8043  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8044  # <limits.h> exists even on freestanding compilers.
8045  # On the NeXT, cc -E runs the code through the compiler's parser,
8046  # not just through cpp. "Syntax error" is here to catch this case.
8047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048/* end confdefs.h.  */
8049#ifdef __STDC__
8050# include <limits.h>
8051#else
8052# include <assert.h>
8053#endif
8054		     Syntax error
8055_ACEOF
8056if ac_fn_c_try_cpp "$LINENO"; then :
8057
8058else
8059  # Broken: fails on valid input.
8060continue
8061fi
8062rm -f conftest.err conftest.i conftest.$ac_ext
8063
8064  # OK, works on sane cases.  Now check whether nonexistent headers
8065  # can be detected and how.
8066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067/* end confdefs.h.  */
8068#include <ac_nonexistent.h>
8069_ACEOF
8070if ac_fn_c_try_cpp "$LINENO"; then :
8071  # Broken: success on invalid input.
8072continue
8073else
8074  # Passes both tests.
8075ac_preproc_ok=:
8076break
8077fi
8078rm -f conftest.err conftest.i conftest.$ac_ext
8079
8080done
8081# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8082rm -f conftest.i conftest.err conftest.$ac_ext
8083if $ac_preproc_ok; then :
8084
8085else
8086  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8088as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8089See \`config.log' for more details" "$LINENO" 5; }
8090fi
8091
8092ac_ext=c
8093ac_cpp='$CPP $CPPFLAGS'
8094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8096ac_compiler_gnu=$ac_cv_c_compiler_gnu
8097
8098
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8100$as_echo_n "checking for ANSI C header files... " >&6; }
8101if ${ac_cv_header_stdc+:} false; then :
8102  $as_echo_n "(cached) " >&6
8103else
8104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105/* end confdefs.h.  */
8106#include <stdlib.h>
8107#include <stdarg.h>
8108#include <string.h>
8109#include <float.h>
8110
8111int
8112main ()
8113{
8114
8115  ;
8116  return 0;
8117}
8118_ACEOF
8119if ac_fn_c_try_compile "$LINENO"; then :
8120  ac_cv_header_stdc=yes
8121else
8122  ac_cv_header_stdc=no
8123fi
8124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8125
8126if test $ac_cv_header_stdc = yes; then
8127  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129/* end confdefs.h.  */
8130#include <string.h>
8131
8132_ACEOF
8133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8134  $EGREP "memchr" >/dev/null 2>&1; then :
8135
8136else
8137  ac_cv_header_stdc=no
8138fi
8139rm -f conftest*
8140
8141fi
8142
8143if test $ac_cv_header_stdc = yes; then
8144  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146/* end confdefs.h.  */
8147#include <stdlib.h>
8148
8149_ACEOF
8150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8151  $EGREP "free" >/dev/null 2>&1; then :
8152
8153else
8154  ac_cv_header_stdc=no
8155fi
8156rm -f conftest*
8157
8158fi
8159
8160if test $ac_cv_header_stdc = yes; then
8161  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8162  if test "$cross_compiling" = yes; then :
8163  :
8164else
8165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166/* end confdefs.h.  */
8167#include <ctype.h>
8168#include <stdlib.h>
8169#if ((' ' & 0x0FF) == 0x020)
8170# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8171# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8172#else
8173# define ISLOWER(c) \
8174		   (('a' <= (c) && (c) <= 'i') \
8175		     || ('j' <= (c) && (c) <= 'r') \
8176		     || ('s' <= (c) && (c) <= 'z'))
8177# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8178#endif
8179
8180#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8181int
8182main ()
8183{
8184  int i;
8185  for (i = 0; i < 256; i++)
8186    if (XOR (islower (i), ISLOWER (i))
8187	|| toupper (i) != TOUPPER (i))
8188      return 2;
8189  return 0;
8190}
8191_ACEOF
8192if ac_fn_c_try_run "$LINENO"; then :
8193
8194else
8195  ac_cv_header_stdc=no
8196fi
8197rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8198  conftest.$ac_objext conftest.beam conftest.$ac_ext
8199fi
8200
8201fi
8202fi
8203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8204$as_echo "$ac_cv_header_stdc" >&6; }
8205if test $ac_cv_header_stdc = yes; then
8206
8207$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8208
8209fi
8210
8211# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8212for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8213		  inttypes.h stdint.h unistd.h
8214do :
8215  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8216ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8217"
8218if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8219  cat >>confdefs.h <<_ACEOF
8220#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8221_ACEOF
8222
8223fi
8224
8225done
8226
8227
8228for ac_header in dlfcn.h
8229do :
8230  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8231"
8232if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8233  cat >>confdefs.h <<_ACEOF
8234#define HAVE_DLFCN_H 1
8235_ACEOF
8236
8237fi
8238
8239done
8240
8241
8242
8243
8244func_stripname_cnf ()
8245{
8246  case ${2} in
8247  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8248  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8249  esac
8250} # func_stripname_cnf
8251
8252
8253
8254
8255
8256# Set options
8257# Check whether --enable-shared was given.
8258if test "${enable_shared+set}" = set; then :
8259  enableval=$enable_shared; p=${PACKAGE-default}
8260    case $enableval in
8261    yes) enable_shared=yes ;;
8262    no) enable_shared=no ;;
8263    *)
8264      enable_shared=no
8265      # Look at the argument we got.  We use all the common list separators.
8266      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8267      for pkg in $enableval; do
8268	IFS="$lt_save_ifs"
8269	if test "X$pkg" = "X$p"; then
8270	  enable_shared=yes
8271	fi
8272      done
8273      IFS="$lt_save_ifs"
8274      ;;
8275    esac
8276else
8277  enable_shared=no
8278fi
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289        enable_dlopen=no
8290
8291
8292  enable_win32_dll=no
8293
8294
8295
8296  # Check whether --enable-static was given.
8297if test "${enable_static+set}" = set; then :
8298  enableval=$enable_static; p=${PACKAGE-default}
8299    case $enableval in
8300    yes) enable_static=yes ;;
8301    no) enable_static=no ;;
8302    *)
8303     enable_static=no
8304      # Look at the argument we got.  We use all the common list separators.
8305      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8306      for pkg in $enableval; do
8307	IFS="$lt_save_ifs"
8308	if test "X$pkg" = "X$p"; then
8309	  enable_static=yes
8310	fi
8311      done
8312      IFS="$lt_save_ifs"
8313      ;;
8314    esac
8315else
8316  enable_static=yes
8317fi
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328# Check whether --with-pic was given.
8329if test "${with_pic+set}" = set; then :
8330  withval=$with_pic; lt_p=${PACKAGE-default}
8331    case $withval in
8332    yes|no) pic_mode=$withval ;;
8333    *)
8334      pic_mode=default
8335      # Look at the argument we got.  We use all the common list separators.
8336      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8337      for lt_pkg in $withval; do
8338	IFS="$lt_save_ifs"
8339	if test "X$lt_pkg" = "X$lt_p"; then
8340	  pic_mode=yes
8341	fi
8342      done
8343      IFS="$lt_save_ifs"
8344      ;;
8345    esac
8346else
8347  pic_mode=default
8348fi
8349
8350
8351test -z "$pic_mode" && pic_mode=default
8352
8353
8354
8355
8356
8357
8358
8359  # Check whether --enable-fast-install was given.
8360if test "${enable_fast_install+set}" = set; then :
8361  enableval=$enable_fast_install; p=${PACKAGE-default}
8362    case $enableval in
8363    yes) enable_fast_install=yes ;;
8364    no) enable_fast_install=no ;;
8365    *)
8366      enable_fast_install=no
8367      # Look at the argument we got.  We use all the common list separators.
8368      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8369      for pkg in $enableval; do
8370	IFS="$lt_save_ifs"
8371	if test "X$pkg" = "X$p"; then
8372	  enable_fast_install=yes
8373	fi
8374      done
8375      IFS="$lt_save_ifs"
8376      ;;
8377    esac
8378else
8379  enable_fast_install=yes
8380fi
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392# This can be used to rebuild libtool when needed
8393LIBTOOL_DEPS="$ltmain"
8394
8395# Always use our own libtool.
8396LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427test -z "$LN_S" && LN_S="ln -s"
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442if test -n "${ZSH_VERSION+set}" ; then
8443   setopt NO_GLOB_SUBST
8444fi
8445
8446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8447$as_echo_n "checking for objdir... " >&6; }
8448if ${lt_cv_objdir+:} false; then :
8449  $as_echo_n "(cached) " >&6
8450else
8451  rm -f .libs 2>/dev/null
8452mkdir .libs 2>/dev/null
8453if test -d .libs; then
8454  lt_cv_objdir=.libs
8455else
8456  # MS-DOS does not allow filenames that begin with a dot.
8457  lt_cv_objdir=_libs
8458fi
8459rmdir .libs 2>/dev/null
8460fi
8461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8462$as_echo "$lt_cv_objdir" >&6; }
8463objdir=$lt_cv_objdir
8464
8465
8466
8467
8468
8469cat >>confdefs.h <<_ACEOF
8470#define LT_OBJDIR "$lt_cv_objdir/"
8471_ACEOF
8472
8473
8474
8475
8476case $host_os in
8477aix3*)
8478  # AIX sometimes has problems with the GCC collect2 program.  For some
8479  # reason, if we set the COLLECT_NAMES environment variable, the problems
8480  # vanish in a puff of smoke.
8481  if test "X${COLLECT_NAMES+set}" != Xset; then
8482    COLLECT_NAMES=
8483    export COLLECT_NAMES
8484  fi
8485  ;;
8486esac
8487
8488# Global variables:
8489ofile=libtool
8490can_build_shared=yes
8491
8492# All known linkers require a `.a' archive for static linking (except MSVC,
8493# which needs '.lib').
8494libext=a
8495
8496with_gnu_ld="$lt_cv_prog_gnu_ld"
8497
8498old_CC="$CC"
8499old_CFLAGS="$CFLAGS"
8500
8501# Set sane defaults for various variables
8502test -z "$CC" && CC=cc
8503test -z "$LTCC" && LTCC=$CC
8504test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8505test -z "$LD" && LD=ld
8506test -z "$ac_objext" && ac_objext=o
8507
8508for cc_temp in $compiler""; do
8509  case $cc_temp in
8510    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8511    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8512    \-*) ;;
8513    *) break;;
8514  esac
8515done
8516cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8517
8518
8519# Only perform the check for file, if the check method requires it
8520test -z "$MAGIC_CMD" && MAGIC_CMD=file
8521case $deplibs_check_method in
8522file_magic*)
8523  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8524    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8525$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8526if ${lt_cv_path_MAGIC_CMD+:} false; then :
8527  $as_echo_n "(cached) " >&6
8528else
8529  case $MAGIC_CMD in
8530[\\/*] |  ?:[\\/]*)
8531  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8532  ;;
8533*)
8534  lt_save_MAGIC_CMD="$MAGIC_CMD"
8535  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8536  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8537  for ac_dir in $ac_dummy; do
8538    IFS="$lt_save_ifs"
8539    test -z "$ac_dir" && ac_dir=.
8540    if test -f $ac_dir/${ac_tool_prefix}file; then
8541      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8542      if test -n "$file_magic_test_file"; then
8543	case $deplibs_check_method in
8544	"file_magic "*)
8545	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8546	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8547	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8548	    $EGREP "$file_magic_regex" > /dev/null; then
8549	    :
8550	  else
8551	    cat <<_LT_EOF 1>&2
8552
8553*** Warning: the command libtool uses to detect shared libraries,
8554*** $file_magic_cmd, produces output that libtool cannot recognize.
8555*** The result is that libtool may fail to recognize shared libraries
8556*** as such.  This will affect the creation of libtool libraries that
8557*** depend on shared libraries, but programs linked with such libtool
8558*** libraries will work regardless of this problem.  Nevertheless, you
8559*** may want to report the problem to your system manager and/or to
8560*** bug-libtool@gnu.org
8561
8562_LT_EOF
8563	  fi ;;
8564	esac
8565      fi
8566      break
8567    fi
8568  done
8569  IFS="$lt_save_ifs"
8570  MAGIC_CMD="$lt_save_MAGIC_CMD"
8571  ;;
8572esac
8573fi
8574
8575MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8576if test -n "$MAGIC_CMD"; then
8577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8578$as_echo "$MAGIC_CMD" >&6; }
8579else
8580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581$as_echo "no" >&6; }
8582fi
8583
8584
8585
8586
8587
8588if test -z "$lt_cv_path_MAGIC_CMD"; then
8589  if test -n "$ac_tool_prefix"; then
8590    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8591$as_echo_n "checking for file... " >&6; }
8592if ${lt_cv_path_MAGIC_CMD+:} false; then :
8593  $as_echo_n "(cached) " >&6
8594else
8595  case $MAGIC_CMD in
8596[\\/*] |  ?:[\\/]*)
8597  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8598  ;;
8599*)
8600  lt_save_MAGIC_CMD="$MAGIC_CMD"
8601  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8602  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8603  for ac_dir in $ac_dummy; do
8604    IFS="$lt_save_ifs"
8605    test -z "$ac_dir" && ac_dir=.
8606    if test -f $ac_dir/file; then
8607      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8608      if test -n "$file_magic_test_file"; then
8609	case $deplibs_check_method in
8610	"file_magic "*)
8611	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8612	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8613	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8614	    $EGREP "$file_magic_regex" > /dev/null; then
8615	    :
8616	  else
8617	    cat <<_LT_EOF 1>&2
8618
8619*** Warning: the command libtool uses to detect shared libraries,
8620*** $file_magic_cmd, produces output that libtool cannot recognize.
8621*** The result is that libtool may fail to recognize shared libraries
8622*** as such.  This will affect the creation of libtool libraries that
8623*** depend on shared libraries, but programs linked with such libtool
8624*** libraries will work regardless of this problem.  Nevertheless, you
8625*** may want to report the problem to your system manager and/or to
8626*** bug-libtool@gnu.org
8627
8628_LT_EOF
8629	  fi ;;
8630	esac
8631      fi
8632      break
8633    fi
8634  done
8635  IFS="$lt_save_ifs"
8636  MAGIC_CMD="$lt_save_MAGIC_CMD"
8637  ;;
8638esac
8639fi
8640
8641MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8642if test -n "$MAGIC_CMD"; then
8643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8644$as_echo "$MAGIC_CMD" >&6; }
8645else
8646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647$as_echo "no" >&6; }
8648fi
8649
8650
8651  else
8652    MAGIC_CMD=:
8653  fi
8654fi
8655
8656  fi
8657  ;;
8658esac
8659
8660# Use C for the default configuration in the libtool script
8661
8662lt_save_CC="$CC"
8663ac_ext=c
8664ac_cpp='$CPP $CPPFLAGS'
8665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8667ac_compiler_gnu=$ac_cv_c_compiler_gnu
8668
8669
8670# Source file extension for C test sources.
8671ac_ext=c
8672
8673# Object file extension for compiled C test sources.
8674objext=o
8675objext=$objext
8676
8677# Code to be used in simple compile tests
8678lt_simple_compile_test_code="int some_variable = 0;"
8679
8680# Code to be used in simple link tests
8681lt_simple_link_test_code='int main(){return(0);}'
8682
8683
8684
8685
8686
8687
8688
8689# If no C compiler was specified, use CC.
8690LTCC=${LTCC-"$CC"}
8691
8692# If no C compiler flags were specified, use CFLAGS.
8693LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8694
8695# Allow CC to be a program name with arguments.
8696compiler=$CC
8697
8698# Save the default compiler, since it gets overwritten when the other
8699# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8700compiler_DEFAULT=$CC
8701
8702# save warnings/boilerplate of simple test code
8703ac_outfile=conftest.$ac_objext
8704echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8705eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8706_lt_compiler_boilerplate=`cat conftest.err`
8707$RM conftest*
8708
8709ac_outfile=conftest.$ac_objext
8710echo "$lt_simple_link_test_code" >conftest.$ac_ext
8711eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8712_lt_linker_boilerplate=`cat conftest.err`
8713$RM -r conftest*
8714
8715
8716## CAVEAT EMPTOR:
8717## There is no encapsulation within the following macros, do not change
8718## the running order or otherwise move them around unless you know exactly
8719## what you are doing...
8720if test -n "$compiler"; then
8721
8722lt_prog_compiler_no_builtin_flag=
8723
8724if test "$GCC" = yes; then
8725  case $cc_basename in
8726  nvcc*)
8727    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8728  *)
8729    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8730  esac
8731
8732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8733$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8734if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8735  $as_echo_n "(cached) " >&6
8736else
8737  lt_cv_prog_compiler_rtti_exceptions=no
8738   ac_outfile=conftest.$ac_objext
8739   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8740   lt_compiler_flag="-fno-rtti -fno-exceptions"
8741   # Insert the option either (1) after the last *FLAGS variable, or
8742   # (2) before a word containing "conftest.", or (3) at the end.
8743   # Note that $ac_compile itself does not contain backslashes and begins
8744   # with a dollar sign (not a hyphen), so the echo should work correctly.
8745   # The option is referenced via a variable to avoid confusing sed.
8746   lt_compile=`echo "$ac_compile" | $SED \
8747   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8748   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8749   -e 's:$: $lt_compiler_flag:'`
8750   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8751   (eval "$lt_compile" 2>conftest.err)
8752   ac_status=$?
8753   cat conftest.err >&5
8754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755   if (exit $ac_status) && test -s "$ac_outfile"; then
8756     # The compiler can only warn and ignore the option if not recognized
8757     # So say no if there are warnings other than the usual output.
8758     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8759     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8760     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8761       lt_cv_prog_compiler_rtti_exceptions=yes
8762     fi
8763   fi
8764   $RM conftest*
8765
8766fi
8767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8768$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8769
8770if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8771    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8772else
8773    :
8774fi
8775
8776fi
8777
8778
8779
8780
8781
8782
8783  lt_prog_compiler_wl=
8784lt_prog_compiler_pic=
8785lt_prog_compiler_static=
8786
8787
8788  if test "$GCC" = yes; then
8789    lt_prog_compiler_wl='-Wl,'
8790    lt_prog_compiler_static='-static'
8791
8792    case $host_os in
8793      aix*)
8794      # All AIX code is PIC.
8795      if test "$host_cpu" = ia64; then
8796	# AIX 5 now supports IA64 processor
8797	lt_prog_compiler_static='-Bstatic'
8798      fi
8799      ;;
8800
8801    amigaos*)
8802      case $host_cpu in
8803      powerpc)
8804            # see comment about AmigaOS4 .so support
8805            lt_prog_compiler_pic='-fPIC'
8806        ;;
8807      m68k)
8808            # FIXME: we need at least 68020 code to build shared libraries, but
8809            # adding the `-m68020' flag to GCC prevents building anything better,
8810            # like `-m68040'.
8811            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8812        ;;
8813      esac
8814      ;;
8815
8816    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8817      # PIC is the default for these OSes.
8818      ;;
8819
8820    mingw* | cygwin* | pw32* | os2* | cegcc*)
8821      # This hack is so that the source file can tell whether it is being
8822      # built for inclusion in a dll (and should export symbols for example).
8823      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8824      # (--disable-auto-import) libraries
8825      lt_prog_compiler_pic='-DDLL_EXPORT'
8826      ;;
8827
8828    darwin* | rhapsody*)
8829      # PIC is the default on this platform
8830      # Common symbols not allowed in MH_DYLIB files
8831      lt_prog_compiler_pic='-fno-common'
8832      ;;
8833
8834    haiku*)
8835      # PIC is the default for Haiku.
8836      # The "-static" flag exists, but is broken.
8837      lt_prog_compiler_static=
8838      ;;
8839
8840    hpux*)
8841      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8842      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8843      # sets the default TLS model and affects inlining.
8844      case $host_cpu in
8845      hppa*64*)
8846	# +Z the default
8847	;;
8848      *)
8849	lt_prog_compiler_pic='-fPIC'
8850	;;
8851      esac
8852      ;;
8853
8854    interix[3-9]*)
8855      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8856      # Instead, we relocate shared libraries at runtime.
8857      ;;
8858
8859    msdosdjgpp*)
8860      # Just because we use GCC doesn't mean we suddenly get shared libraries
8861      # on systems that don't support them.
8862      lt_prog_compiler_can_build_shared=no
8863      enable_shared=no
8864      ;;
8865
8866    *nto* | *qnx*)
8867      # QNX uses GNU C++, but need to define -shared option too, otherwise
8868      # it will coredump.
8869      lt_prog_compiler_pic='-fPIC -shared'
8870      ;;
8871
8872    sysv4*MP*)
8873      if test -d /usr/nec; then
8874	lt_prog_compiler_pic=-Kconform_pic
8875      fi
8876      ;;
8877
8878    *)
8879      lt_prog_compiler_pic='-fPIC'
8880      ;;
8881    esac
8882
8883    case $cc_basename in
8884    nvcc*) # Cuda Compiler Driver 2.2
8885      lt_prog_compiler_wl='-Xlinker '
8886      if test -n "$lt_prog_compiler_pic"; then
8887        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8888      fi
8889      ;;
8890    esac
8891  else
8892    # PORTME Check for flag to pass linker flags through the system compiler.
8893    case $host_os in
8894    aix*)
8895      lt_prog_compiler_wl='-Wl,'
8896      if test "$host_cpu" = ia64; then
8897	# AIX 5 now supports IA64 processor
8898	lt_prog_compiler_static='-Bstatic'
8899      else
8900	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8901      fi
8902      ;;
8903
8904    mingw* | cygwin* | pw32* | os2* | cegcc*)
8905      # This hack is so that the source file can tell whether it is being
8906      # built for inclusion in a dll (and should export symbols for example).
8907      lt_prog_compiler_pic='-DDLL_EXPORT'
8908      ;;
8909
8910    hpux9* | hpux10* | hpux11*)
8911      lt_prog_compiler_wl='-Wl,'
8912      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8913      # not for PA HP-UX.
8914      case $host_cpu in
8915      hppa*64*|ia64*)
8916	# +Z the default
8917	;;
8918      *)
8919	lt_prog_compiler_pic='+Z'
8920	;;
8921      esac
8922      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8923      lt_prog_compiler_static='${wl}-a ${wl}archive'
8924      ;;
8925
8926    irix5* | irix6* | nonstopux*)
8927      lt_prog_compiler_wl='-Wl,'
8928      # PIC (with -KPIC) is the default.
8929      lt_prog_compiler_static='-non_shared'
8930      ;;
8931
8932    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8933      case $cc_basename in
8934      # old Intel for x86_64 which still supported -KPIC.
8935      ecc*)
8936	lt_prog_compiler_wl='-Wl,'
8937	lt_prog_compiler_pic='-KPIC'
8938	lt_prog_compiler_static='-static'
8939        ;;
8940      # icc used to be incompatible with GCC.
8941      # ICC 10 doesn't accept -KPIC any more.
8942      icc* | ifort*)
8943	lt_prog_compiler_wl='-Wl,'
8944	lt_prog_compiler_pic='-fPIC'
8945	lt_prog_compiler_static='-static'
8946        ;;
8947      # Lahey Fortran 8.1.
8948      lf95*)
8949	lt_prog_compiler_wl='-Wl,'
8950	lt_prog_compiler_pic='--shared'
8951	lt_prog_compiler_static='--static'
8952	;;
8953      nagfor*)
8954	# NAG Fortran compiler
8955	lt_prog_compiler_wl='-Wl,-Wl,,'
8956	lt_prog_compiler_pic='-PIC'
8957	lt_prog_compiler_static='-Bstatic'
8958	;;
8959      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8960        # Portland Group compilers (*not* the Pentium gcc compiler,
8961	# which looks to be a dead project)
8962	lt_prog_compiler_wl='-Wl,'
8963	lt_prog_compiler_pic='-fpic'
8964	lt_prog_compiler_static='-Bstatic'
8965        ;;
8966      ccc*)
8967        lt_prog_compiler_wl='-Wl,'
8968        # All Alpha code is PIC.
8969        lt_prog_compiler_static='-non_shared'
8970        ;;
8971      xl* | bgxl* | bgf* | mpixl*)
8972	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8973	lt_prog_compiler_wl='-Wl,'
8974	lt_prog_compiler_pic='-qpic'
8975	lt_prog_compiler_static='-qstaticlink'
8976	;;
8977      *)
8978	case `$CC -V 2>&1 | sed 5q` in
8979	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8980	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8981	  lt_prog_compiler_pic='-KPIC'
8982	  lt_prog_compiler_static='-Bstatic'
8983	  lt_prog_compiler_wl=''
8984	  ;;
8985	*Sun\ F* | *Sun*Fortran*)
8986	  lt_prog_compiler_pic='-KPIC'
8987	  lt_prog_compiler_static='-Bstatic'
8988	  lt_prog_compiler_wl='-Qoption ld '
8989	  ;;
8990	*Sun\ C*)
8991	  # Sun C 5.9
8992	  lt_prog_compiler_pic='-KPIC'
8993	  lt_prog_compiler_static='-Bstatic'
8994	  lt_prog_compiler_wl='-Wl,'
8995	  ;;
8996        *Intel*\ [CF]*Compiler*)
8997	  lt_prog_compiler_wl='-Wl,'
8998	  lt_prog_compiler_pic='-fPIC'
8999	  lt_prog_compiler_static='-static'
9000	  ;;
9001	*Portland\ Group*)
9002	  lt_prog_compiler_wl='-Wl,'
9003	  lt_prog_compiler_pic='-fpic'
9004	  lt_prog_compiler_static='-Bstatic'
9005	  ;;
9006	esac
9007	;;
9008      esac
9009      ;;
9010
9011    newsos6)
9012      lt_prog_compiler_pic='-KPIC'
9013      lt_prog_compiler_static='-Bstatic'
9014      ;;
9015
9016    *nto* | *qnx*)
9017      # QNX uses GNU C++, but need to define -shared option too, otherwise
9018      # it will coredump.
9019      lt_prog_compiler_pic='-fPIC -shared'
9020      ;;
9021
9022    osf3* | osf4* | osf5*)
9023      lt_prog_compiler_wl='-Wl,'
9024      # All OSF/1 code is PIC.
9025      lt_prog_compiler_static='-non_shared'
9026      ;;
9027
9028    rdos*)
9029      lt_prog_compiler_static='-non_shared'
9030      ;;
9031
9032    solaris*)
9033      lt_prog_compiler_pic='-KPIC'
9034      lt_prog_compiler_static='-Bstatic'
9035      case $cc_basename in
9036      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9037	lt_prog_compiler_wl='-Qoption ld ';;
9038      *)
9039	lt_prog_compiler_wl='-Wl,';;
9040      esac
9041      ;;
9042
9043    sunos4*)
9044      lt_prog_compiler_wl='-Qoption ld '
9045      lt_prog_compiler_pic='-PIC'
9046      lt_prog_compiler_static='-Bstatic'
9047      ;;
9048
9049    sysv4 | sysv4.2uw2* | sysv4.3*)
9050      lt_prog_compiler_wl='-Wl,'
9051      lt_prog_compiler_pic='-KPIC'
9052      lt_prog_compiler_static='-Bstatic'
9053      ;;
9054
9055    sysv4*MP*)
9056      if test -d /usr/nec ;then
9057	lt_prog_compiler_pic='-Kconform_pic'
9058	lt_prog_compiler_static='-Bstatic'
9059      fi
9060      ;;
9061
9062    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9063      lt_prog_compiler_wl='-Wl,'
9064      lt_prog_compiler_pic='-KPIC'
9065      lt_prog_compiler_static='-Bstatic'
9066      ;;
9067
9068    unicos*)
9069      lt_prog_compiler_wl='-Wl,'
9070      lt_prog_compiler_can_build_shared=no
9071      ;;
9072
9073    uts4*)
9074      lt_prog_compiler_pic='-pic'
9075      lt_prog_compiler_static='-Bstatic'
9076      ;;
9077
9078    *)
9079      lt_prog_compiler_can_build_shared=no
9080      ;;
9081    esac
9082  fi
9083
9084case $host_os in
9085  # For platforms which do not support PIC, -DPIC is meaningless:
9086  *djgpp*)
9087    lt_prog_compiler_pic=
9088    ;;
9089  *)
9090    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9091    ;;
9092esac
9093
9094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9095$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9096if ${lt_cv_prog_compiler_pic+:} false; then :
9097  $as_echo_n "(cached) " >&6
9098else
9099  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9100fi
9101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9102$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9103lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9104
9105#
9106# Check to make sure the PIC flag actually works.
9107#
9108if test -n "$lt_prog_compiler_pic"; then
9109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9110$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9111if ${lt_cv_prog_compiler_pic_works+:} false; then :
9112  $as_echo_n "(cached) " >&6
9113else
9114  lt_cv_prog_compiler_pic_works=no
9115   ac_outfile=conftest.$ac_objext
9116   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9117   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9118   # Insert the option either (1) after the last *FLAGS variable, or
9119   # (2) before a word containing "conftest.", or (3) at the end.
9120   # Note that $ac_compile itself does not contain backslashes and begins
9121   # with a dollar sign (not a hyphen), so the echo should work correctly.
9122   # The option is referenced via a variable to avoid confusing sed.
9123   lt_compile=`echo "$ac_compile" | $SED \
9124   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9125   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9126   -e 's:$: $lt_compiler_flag:'`
9127   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9128   (eval "$lt_compile" 2>conftest.err)
9129   ac_status=$?
9130   cat conftest.err >&5
9131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132   if (exit $ac_status) && test -s "$ac_outfile"; then
9133     # The compiler can only warn and ignore the option if not recognized
9134     # So say no if there are warnings other than the usual output.
9135     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9136     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9137     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9138       lt_cv_prog_compiler_pic_works=yes
9139     fi
9140   fi
9141   $RM conftest*
9142
9143fi
9144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9145$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9146
9147if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9148    case $lt_prog_compiler_pic in
9149     "" | " "*) ;;
9150     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9151     esac
9152else
9153    lt_prog_compiler_pic=
9154     lt_prog_compiler_can_build_shared=no
9155fi
9156
9157fi
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169#
9170# Check to make sure the static flag actually works.
9171#
9172wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9174$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9175if ${lt_cv_prog_compiler_static_works+:} false; then :
9176  $as_echo_n "(cached) " >&6
9177else
9178  lt_cv_prog_compiler_static_works=no
9179   save_LDFLAGS="$LDFLAGS"
9180   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9181   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9182   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9183     # The linker can only warn and ignore the option if not recognized
9184     # So say no if there are warnings
9185     if test -s conftest.err; then
9186       # Append any errors to the config.log.
9187       cat conftest.err 1>&5
9188       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9189       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9190       if diff conftest.exp conftest.er2 >/dev/null; then
9191         lt_cv_prog_compiler_static_works=yes
9192       fi
9193     else
9194       lt_cv_prog_compiler_static_works=yes
9195     fi
9196   fi
9197   $RM -r conftest*
9198   LDFLAGS="$save_LDFLAGS"
9199
9200fi
9201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9202$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9203
9204if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9205    :
9206else
9207    lt_prog_compiler_static=
9208fi
9209
9210
9211
9212
9213
9214
9215
9216  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9217$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9218if ${lt_cv_prog_compiler_c_o+:} false; then :
9219  $as_echo_n "(cached) " >&6
9220else
9221  lt_cv_prog_compiler_c_o=no
9222   $RM -r conftest 2>/dev/null
9223   mkdir conftest
9224   cd conftest
9225   mkdir out
9226   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9227
9228   lt_compiler_flag="-o out/conftest2.$ac_objext"
9229   # Insert the option either (1) after the last *FLAGS variable, or
9230   # (2) before a word containing "conftest.", or (3) at the end.
9231   # Note that $ac_compile itself does not contain backslashes and begins
9232   # with a dollar sign (not a hyphen), so the echo should work correctly.
9233   lt_compile=`echo "$ac_compile" | $SED \
9234   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9235   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9236   -e 's:$: $lt_compiler_flag:'`
9237   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9238   (eval "$lt_compile" 2>out/conftest.err)
9239   ac_status=$?
9240   cat out/conftest.err >&5
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9243   then
9244     # The compiler can only warn and ignore the option if not recognized
9245     # So say no if there are warnings
9246     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9247     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9248     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9249       lt_cv_prog_compiler_c_o=yes
9250     fi
9251   fi
9252   chmod u+w . 2>&5
9253   $RM conftest*
9254   # SGI C++ compiler will create directory out/ii_files/ for
9255   # template instantiation
9256   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9257   $RM out/* && rmdir out
9258   cd ..
9259   $RM -r conftest
9260   $RM conftest*
9261
9262fi
9263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9264$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9265
9266
9267
9268
9269
9270
9271  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9272$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9273if ${lt_cv_prog_compiler_c_o+:} false; then :
9274  $as_echo_n "(cached) " >&6
9275else
9276  lt_cv_prog_compiler_c_o=no
9277   $RM -r conftest 2>/dev/null
9278   mkdir conftest
9279   cd conftest
9280   mkdir out
9281   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9282
9283   lt_compiler_flag="-o out/conftest2.$ac_objext"
9284   # Insert the option either (1) after the last *FLAGS variable, or
9285   # (2) before a word containing "conftest.", or (3) at the end.
9286   # Note that $ac_compile itself does not contain backslashes and begins
9287   # with a dollar sign (not a hyphen), so the echo should work correctly.
9288   lt_compile=`echo "$ac_compile" | $SED \
9289   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9290   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9291   -e 's:$: $lt_compiler_flag:'`
9292   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9293   (eval "$lt_compile" 2>out/conftest.err)
9294   ac_status=$?
9295   cat out/conftest.err >&5
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9298   then
9299     # The compiler can only warn and ignore the option if not recognized
9300     # So say no if there are warnings
9301     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9302     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9303     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9304       lt_cv_prog_compiler_c_o=yes
9305     fi
9306   fi
9307   chmod u+w . 2>&5
9308   $RM conftest*
9309   # SGI C++ compiler will create directory out/ii_files/ for
9310   # template instantiation
9311   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9312   $RM out/* && rmdir out
9313   cd ..
9314   $RM -r conftest
9315   $RM conftest*
9316
9317fi
9318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9319$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9320
9321
9322
9323
9324hard_links="nottested"
9325if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9326  # do not overwrite the value of need_locks provided by the user
9327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9328$as_echo_n "checking if we can lock with hard links... " >&6; }
9329  hard_links=yes
9330  $RM conftest*
9331  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9332  touch conftest.a
9333  ln conftest.a conftest.b 2>&5 || hard_links=no
9334  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9336$as_echo "$hard_links" >&6; }
9337  if test "$hard_links" = no; then
9338    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9339$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9340    need_locks=warn
9341  fi
9342else
9343  need_locks=no
9344fi
9345
9346
9347
9348
9349
9350
9351  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9352$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9353
9354  runpath_var=
9355  allow_undefined_flag=
9356  always_export_symbols=no
9357  archive_cmds=
9358  archive_expsym_cmds=
9359  compiler_needs_object=no
9360  enable_shared_with_static_runtimes=no
9361  export_dynamic_flag_spec=
9362  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9363  hardcode_automatic=no
9364  hardcode_direct=no
9365  hardcode_direct_absolute=no
9366  hardcode_libdir_flag_spec=
9367  hardcode_libdir_separator=
9368  hardcode_minus_L=no
9369  hardcode_shlibpath_var=unsupported
9370  inherit_rpath=no
9371  link_all_deplibs=unknown
9372  module_cmds=
9373  module_expsym_cmds=
9374  old_archive_from_new_cmds=
9375  old_archive_from_expsyms_cmds=
9376  thread_safe_flag_spec=
9377  whole_archive_flag_spec=
9378  # include_expsyms should be a list of space-separated symbols to be *always*
9379  # included in the symbol list
9380  include_expsyms=
9381  # exclude_expsyms can be an extended regexp of symbols to exclude
9382  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9383  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9384  # as well as any symbol that contains `d'.
9385  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9386  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9387  # platforms (ab)use it in PIC code, but their linkers get confused if
9388  # the symbol is explicitly referenced.  Since portable code cannot
9389  # rely on this symbol name, it's probably fine to never include it in
9390  # preloaded symbol tables.
9391  # Exclude shared library initialization/finalization symbols.
9392  extract_expsyms_cmds=
9393
9394  case $host_os in
9395  cygwin* | mingw* | pw32* | cegcc*)
9396    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9397    # When not using gcc, we currently assume that we are using
9398    # Microsoft Visual C++.
9399    if test "$GCC" != yes; then
9400      with_gnu_ld=no
9401    fi
9402    ;;
9403  interix*)
9404    # we just hope/assume this is gcc and not c89 (= MSVC++)
9405    with_gnu_ld=yes
9406    ;;
9407  openbsd*)
9408    with_gnu_ld=no
9409    ;;
9410  esac
9411
9412  ld_shlibs=yes
9413
9414  # On some targets, GNU ld is compatible enough with the native linker
9415  # that we're better off using the native interface for both.
9416  lt_use_gnu_ld_interface=no
9417  if test "$with_gnu_ld" = yes; then
9418    case $host_os in
9419      aix*)
9420	# The AIX port of GNU ld has always aspired to compatibility
9421	# with the native linker.  However, as the warning in the GNU ld
9422	# block says, versions before 2.19.5* couldn't really create working
9423	# shared libraries, regardless of the interface used.
9424	case `$LD -v 2>&1` in
9425	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9426	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9427	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9428	  *)
9429	    lt_use_gnu_ld_interface=yes
9430	    ;;
9431	esac
9432	;;
9433      *)
9434	lt_use_gnu_ld_interface=yes
9435	;;
9436    esac
9437  fi
9438
9439  if test "$lt_use_gnu_ld_interface" = yes; then
9440    # If archive_cmds runs LD, not CC, wlarc should be empty
9441    wlarc='${wl}'
9442
9443    # Set some defaults for GNU ld with shared library support. These
9444    # are reset later if shared libraries are not supported. Putting them
9445    # here allows them to be overridden if necessary.
9446    runpath_var=LD_RUN_PATH
9447    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9448    export_dynamic_flag_spec='${wl}--export-dynamic'
9449    # ancient GNU ld didn't support --whole-archive et. al.
9450    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9451      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9452    else
9453      whole_archive_flag_spec=
9454    fi
9455    supports_anon_versioning=no
9456    case `$LD -v 2>&1` in
9457      *GNU\ gold*) supports_anon_versioning=yes ;;
9458      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9459      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9460      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9461      *\ 2.11.*) ;; # other 2.11 versions
9462      *) supports_anon_versioning=yes ;;
9463    esac
9464
9465    # See if GNU ld supports shared libraries.
9466    case $host_os in
9467    aix[3-9]*)
9468      # On AIX/PPC, the GNU linker is very broken
9469      if test "$host_cpu" != ia64; then
9470	ld_shlibs=no
9471	cat <<_LT_EOF 1>&2
9472
9473*** Warning: the GNU linker, at least up to release 2.19, is reported
9474*** to be unable to reliably create shared libraries on AIX.
9475*** Therefore, libtool is disabling shared libraries support.  If you
9476*** really care for shared libraries, you may want to install binutils
9477*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9478*** You will then need to restart the configuration process.
9479
9480_LT_EOF
9481      fi
9482      ;;
9483
9484    amigaos*)
9485      case $host_cpu in
9486      powerpc)
9487            # see comment about AmigaOS4 .so support
9488            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9489            archive_expsym_cmds=''
9490        ;;
9491      m68k)
9492            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)'
9493            hardcode_libdir_flag_spec='-L$libdir'
9494            hardcode_minus_L=yes
9495        ;;
9496      esac
9497      ;;
9498
9499    beos*)
9500      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9501	allow_undefined_flag=unsupported
9502	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9503	# support --undefined.  This deserves some investigation.  FIXME
9504	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9505      else
9506	ld_shlibs=no
9507      fi
9508      ;;
9509
9510    cygwin* | mingw* | pw32* | cegcc*)
9511      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9512      # as there is no search path for DLLs.
9513      hardcode_libdir_flag_spec='-L$libdir'
9514      export_dynamic_flag_spec='${wl}--export-all-symbols'
9515      allow_undefined_flag=unsupported
9516      always_export_symbols=no
9517      enable_shared_with_static_runtimes=yes
9518      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9519      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9520
9521      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9522        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9523	# If the export-symbols file already is a .def file (1st line
9524	# is EXPORTS), use it as is; otherwise, prepend...
9525	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9526	  cp $export_symbols $output_objdir/$soname.def;
9527	else
9528	  echo EXPORTS > $output_objdir/$soname.def;
9529	  cat $export_symbols >> $output_objdir/$soname.def;
9530	fi~
9531	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9532      else
9533	ld_shlibs=no
9534      fi
9535      ;;
9536
9537    haiku*)
9538      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9539      link_all_deplibs=yes
9540      ;;
9541
9542    interix[3-9]*)
9543      hardcode_direct=no
9544      hardcode_shlibpath_var=no
9545      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9546      export_dynamic_flag_spec='${wl}-E'
9547      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9548      # Instead, shared libraries are loaded at an image base (0x10000000 by
9549      # default) and relocated if they conflict, which is a slow very memory
9550      # consuming and fragmenting process.  To avoid this, we pick a random,
9551      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9552      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9553      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9554      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'
9555      ;;
9556
9557    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9558      tmp_diet=no
9559      if test "$host_os" = linux-dietlibc; then
9560	case $cc_basename in
9561	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9562	esac
9563      fi
9564      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9565	 && test "$tmp_diet" = no
9566      then
9567	tmp_addflag=' $pic_flag'
9568	tmp_sharedflag='-shared'
9569	case $cc_basename,$host_cpu in
9570        pgcc*)				# Portland Group C compiler
9571	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9572	  tmp_addflag=' $pic_flag'
9573	  ;;
9574	pgf77* | pgf90* | pgf95* | pgfortran*)
9575					# Portland Group f77 and f90 compilers
9576	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9577	  tmp_addflag=' $pic_flag -Mnomain' ;;
9578	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9579	  tmp_addflag=' -i_dynamic' ;;
9580	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9581	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9582	ifc* | ifort*)			# Intel Fortran compiler
9583	  tmp_addflag=' -nofor_main' ;;
9584	lf95*)				# Lahey Fortran 8.1
9585	  whole_archive_flag_spec=
9586	  tmp_sharedflag='--shared' ;;
9587	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9588	  tmp_sharedflag='-qmkshrobj'
9589	  tmp_addflag= ;;
9590	nvcc*)	# Cuda Compiler Driver 2.2
9591	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9592	  compiler_needs_object=yes
9593	  ;;
9594	esac
9595	case `$CC -V 2>&1 | sed 5q` in
9596	*Sun\ C*)			# Sun C 5.9
9597	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9598	  compiler_needs_object=yes
9599	  tmp_sharedflag='-G' ;;
9600	*Sun\ F*)			# Sun Fortran 8.3
9601	  tmp_sharedflag='-G' ;;
9602	esac
9603	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9604
9605        if test "x$supports_anon_versioning" = xyes; then
9606          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9607	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9608	    echo "local: *; };" >> $output_objdir/$libname.ver~
9609	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9610        fi
9611
9612	case $cc_basename in
9613	xlf* | bgf* | bgxlf* | mpixlf*)
9614	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9615	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9616	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9617	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9618	  if test "x$supports_anon_versioning" = xyes; then
9619	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9620	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9621	      echo "local: *; };" >> $output_objdir/$libname.ver~
9622	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9623	  fi
9624	  ;;
9625	esac
9626      else
9627        ld_shlibs=no
9628      fi
9629      ;;
9630
9631    netbsd*)
9632      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9633	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9634	wlarc=
9635      else
9636	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9637	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9638      fi
9639      ;;
9640
9641    solaris*)
9642      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9643	ld_shlibs=no
9644	cat <<_LT_EOF 1>&2
9645
9646*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9647*** create shared libraries on Solaris systems.  Therefore, libtool
9648*** is disabling shared libraries support.  We urge you to upgrade GNU
9649*** binutils to release 2.9.1 or newer.  Another option is to modify
9650*** your PATH or compiler configuration so that the native linker is
9651*** used, and then restart.
9652
9653_LT_EOF
9654      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9655	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9656	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9657      else
9658	ld_shlibs=no
9659      fi
9660      ;;
9661
9662    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9663      case `$LD -v 2>&1` in
9664        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9665	ld_shlibs=no
9666	cat <<_LT_EOF 1>&2
9667
9668*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9669*** reliably create shared libraries on SCO systems.  Therefore, libtool
9670*** is disabling shared libraries support.  We urge you to upgrade GNU
9671*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9672*** your PATH or compiler configuration so that the native linker is
9673*** used, and then restart.
9674
9675_LT_EOF
9676	;;
9677	*)
9678	  # For security reasons, it is highly recommended that you always
9679	  # use absolute paths for naming shared libraries, and exclude the
9680	  # DT_RUNPATH tag from executables and libraries.  But doing so
9681	  # requires that you compile everything twice, which is a pain.
9682	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9683	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9684	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9685	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9686	  else
9687	    ld_shlibs=no
9688	  fi
9689	;;
9690      esac
9691      ;;
9692
9693    sunos4*)
9694      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9695      wlarc=
9696      hardcode_direct=yes
9697      hardcode_shlibpath_var=no
9698      ;;
9699
9700    *)
9701      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9702	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9703	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9704      else
9705	ld_shlibs=no
9706      fi
9707      ;;
9708    esac
9709
9710    if test "$ld_shlibs" = no; then
9711      runpath_var=
9712      hardcode_libdir_flag_spec=
9713      export_dynamic_flag_spec=
9714      whole_archive_flag_spec=
9715    fi
9716  else
9717    # PORTME fill in a description of your system's linker (not GNU ld)
9718    case $host_os in
9719    aix3*)
9720      allow_undefined_flag=unsupported
9721      always_export_symbols=yes
9722      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'
9723      # Note: this linker hardcodes the directories in LIBPATH if there
9724      # are no directories specified by -L.
9725      hardcode_minus_L=yes
9726      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9727	# Neither direct hardcoding nor static linking is supported with a
9728	# broken collect2.
9729	hardcode_direct=unsupported
9730      fi
9731      ;;
9732
9733    aix[4-9]*)
9734      if test "$host_cpu" = ia64; then
9735	# On IA64, the linker does run time linking by default, so we don't
9736	# have to do anything special.
9737	aix_use_runtimelinking=no
9738	exp_sym_flag='-Bexport'
9739	no_entry_flag=""
9740      else
9741	# If we're using GNU nm, then we don't want the "-C" option.
9742	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9743	# Also, AIX nm treats weak defined symbols like other global
9744	# defined symbols, whereas GNU nm marks them as "W".
9745	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9746	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9747	else
9748	  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'
9749	fi
9750	aix_use_runtimelinking=no
9751
9752	# Test if we are trying to use run time linking or normal
9753	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9754	# need to do runtime linking.
9755	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9756	  for ld_flag in $LDFLAGS; do
9757	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9758	    aix_use_runtimelinking=yes
9759	    break
9760	  fi
9761	  done
9762	  ;;
9763	esac
9764
9765	exp_sym_flag='-bexport'
9766	no_entry_flag='-bnoentry'
9767      fi
9768
9769      # When large executables or shared objects are built, AIX ld can
9770      # have problems creating the table of contents.  If linking a library
9771      # or program results in "error TOC overflow" add -mminimal-toc to
9772      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9773      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9774
9775      archive_cmds=''
9776      hardcode_direct=yes
9777      hardcode_direct_absolute=yes
9778      hardcode_libdir_separator=':'
9779      link_all_deplibs=yes
9780      file_list_spec='${wl}-f,'
9781
9782      if test "$GCC" = yes; then
9783	case $host_os in aix4.[012]|aix4.[012].*)
9784	# We only want to do this on AIX 4.2 and lower, the check
9785	# below for broken collect2 doesn't work under 4.3+
9786	  collect2name=`${CC} -print-prog-name=collect2`
9787	  if test -f "$collect2name" &&
9788	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9789	  then
9790	  # We have reworked collect2
9791	  :
9792	  else
9793	  # We have old collect2
9794	  hardcode_direct=unsupported
9795	  # It fails to find uninstalled libraries when the uninstalled
9796	  # path is not listed in the libpath.  Setting hardcode_minus_L
9797	  # to unsupported forces relinking
9798	  hardcode_minus_L=yes
9799	  hardcode_libdir_flag_spec='-L$libdir'
9800	  hardcode_libdir_separator=
9801	  fi
9802	  ;;
9803	esac
9804	shared_flag='-shared'
9805	if test "$aix_use_runtimelinking" = yes; then
9806	  shared_flag="$shared_flag "'${wl}-G'
9807	fi
9808      else
9809	# not using gcc
9810	if test "$host_cpu" = ia64; then
9811	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9812	# chokes on -Wl,-G. The following line is correct:
9813	  shared_flag='-G'
9814	else
9815	  if test "$aix_use_runtimelinking" = yes; then
9816	    shared_flag='${wl}-G'
9817	  else
9818	    shared_flag='${wl}-bM:SRE'
9819	  fi
9820	fi
9821      fi
9822
9823      export_dynamic_flag_spec='${wl}-bexpall'
9824      # It seems that -bexpall does not export symbols beginning with
9825      # underscore (_), so it is better to generate a list of symbols to export.
9826      always_export_symbols=yes
9827      if test "$aix_use_runtimelinking" = yes; then
9828	# Warning - without using the other runtime loading flags (-brtl),
9829	# -berok will link without error, but may produce a broken library.
9830	allow_undefined_flag='-berok'
9831        # Determine the default libpath from the value encoded in an
9832        # empty executable.
9833        if test "${lt_cv_aix_libpath+set}" = set; then
9834  aix_libpath=$lt_cv_aix_libpath
9835else
9836  if ${lt_cv_aix_libpath_+:} false; then :
9837  $as_echo_n "(cached) " >&6
9838else
9839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840/* end confdefs.h.  */
9841
9842int
9843main ()
9844{
9845
9846  ;
9847  return 0;
9848}
9849_ACEOF
9850if ac_fn_c_try_link "$LINENO"; then :
9851
9852  lt_aix_libpath_sed='
9853      /Import File Strings/,/^$/ {
9854	  /^0/ {
9855	      s/^0  *\([^ ]*\) *$/\1/
9856	      p
9857	  }
9858      }'
9859  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9860  # Check for a 64-bit object if we didn't find anything.
9861  if test -z "$lt_cv_aix_libpath_"; then
9862    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9863  fi
9864fi
9865rm -f core conftest.err conftest.$ac_objext \
9866    conftest$ac_exeext conftest.$ac_ext
9867  if test -z "$lt_cv_aix_libpath_"; then
9868    lt_cv_aix_libpath_="/usr/lib:/lib"
9869  fi
9870
9871fi
9872
9873  aix_libpath=$lt_cv_aix_libpath_
9874fi
9875
9876        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9877        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9878      else
9879	if test "$host_cpu" = ia64; then
9880	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9881	  allow_undefined_flag="-z nodefs"
9882	  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"
9883	else
9884	 # Determine the default libpath from the value encoded in an
9885	 # empty executable.
9886	 if test "${lt_cv_aix_libpath+set}" = set; then
9887  aix_libpath=$lt_cv_aix_libpath
9888else
9889  if ${lt_cv_aix_libpath_+:} false; then :
9890  $as_echo_n "(cached) " >&6
9891else
9892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893/* end confdefs.h.  */
9894
9895int
9896main ()
9897{
9898
9899  ;
9900  return 0;
9901}
9902_ACEOF
9903if ac_fn_c_try_link "$LINENO"; then :
9904
9905  lt_aix_libpath_sed='
9906      /Import File Strings/,/^$/ {
9907	  /^0/ {
9908	      s/^0  *\([^ ]*\) *$/\1/
9909	      p
9910	  }
9911      }'
9912  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9913  # Check for a 64-bit object if we didn't find anything.
9914  if test -z "$lt_cv_aix_libpath_"; then
9915    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9916  fi
9917fi
9918rm -f core conftest.err conftest.$ac_objext \
9919    conftest$ac_exeext conftest.$ac_ext
9920  if test -z "$lt_cv_aix_libpath_"; then
9921    lt_cv_aix_libpath_="/usr/lib:/lib"
9922  fi
9923
9924fi
9925
9926  aix_libpath=$lt_cv_aix_libpath_
9927fi
9928
9929	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9930	  # Warning - without using the other run time loading flags,
9931	  # -berok will link without error, but may produce a broken library.
9932	  no_undefined_flag=' ${wl}-bernotok'
9933	  allow_undefined_flag=' ${wl}-berok'
9934	  if test "$with_gnu_ld" = yes; then
9935	    # We only use this code for GNU lds that support --whole-archive.
9936	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9937	  else
9938	    # Exported symbols can be pulled into shared objects from archives
9939	    whole_archive_flag_spec='$convenience'
9940	  fi
9941	  archive_cmds_need_lc=yes
9942	  # This is similar to how AIX traditionally builds its shared libraries.
9943	  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'
9944	fi
9945      fi
9946      ;;
9947
9948    amigaos*)
9949      case $host_cpu in
9950      powerpc)
9951            # see comment about AmigaOS4 .so support
9952            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9953            archive_expsym_cmds=''
9954        ;;
9955      m68k)
9956            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)'
9957            hardcode_libdir_flag_spec='-L$libdir'
9958            hardcode_minus_L=yes
9959        ;;
9960      esac
9961      ;;
9962
9963    bsdi[45]*)
9964      export_dynamic_flag_spec=-rdynamic
9965      ;;
9966
9967    cygwin* | mingw* | pw32* | cegcc*)
9968      # When not using gcc, we currently assume that we are using
9969      # Microsoft Visual C++.
9970      # hardcode_libdir_flag_spec is actually meaningless, as there is
9971      # no search path for DLLs.
9972      case $cc_basename in
9973      cl*)
9974	# Native MSVC
9975	hardcode_libdir_flag_spec=' '
9976	allow_undefined_flag=unsupported
9977	always_export_symbols=yes
9978	file_list_spec='@'
9979	# Tell ltmain to make .lib files, not .a files.
9980	libext=lib
9981	# Tell ltmain to make .dll files, not .so files.
9982	shrext_cmds=".dll"
9983	# FIXME: Setting linknames here is a bad hack.
9984	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9985	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9986	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9987	  else
9988	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9989	  fi~
9990	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9991	  linknames='
9992	# The linker will not automatically build a static lib if we build a DLL.
9993	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9994	enable_shared_with_static_runtimes=yes
9995	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9996	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9997	# Don't use ranlib
9998	old_postinstall_cmds='chmod 644 $oldlib'
9999	postlink_cmds='lt_outputfile="@OUTPUT@"~
10000	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10001	  case $lt_outputfile in
10002	    *.exe|*.EXE) ;;
10003	    *)
10004	      lt_outputfile="$lt_outputfile.exe"
10005	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10006	      ;;
10007	  esac~
10008	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10009	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10010	    $RM "$lt_outputfile.manifest";
10011	  fi'
10012	;;
10013      *)
10014	# Assume MSVC wrapper
10015	hardcode_libdir_flag_spec=' '
10016	allow_undefined_flag=unsupported
10017	# Tell ltmain to make .lib files, not .a files.
10018	libext=lib
10019	# Tell ltmain to make .dll files, not .so files.
10020	shrext_cmds=".dll"
10021	# FIXME: Setting linknames here is a bad hack.
10022	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10023	# The linker will automatically build a .lib file if we build a DLL.
10024	old_archive_from_new_cmds='true'
10025	# FIXME: Should let the user specify the lib program.
10026	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10027	enable_shared_with_static_runtimes=yes
10028	;;
10029      esac
10030      ;;
10031
10032    darwin* | rhapsody*)
10033
10034
10035  archive_cmds_need_lc=no
10036  hardcode_direct=no
10037  hardcode_automatic=yes
10038  hardcode_shlibpath_var=unsupported
10039  if test "$lt_cv_ld_force_load" = "yes"; then
10040    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10041
10042  else
10043    whole_archive_flag_spec=''
10044  fi
10045  link_all_deplibs=yes
10046  allow_undefined_flag="$_lt_dar_allow_undefined"
10047  case $cc_basename in
10048     ifort*) _lt_dar_can_shared=yes ;;
10049     *) _lt_dar_can_shared=$GCC ;;
10050  esac
10051  if test "$_lt_dar_can_shared" = "yes"; then
10052    output_verbose_link_cmd=func_echo_all
10053    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10054    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10055    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}"
10056    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}"
10057
10058  else
10059  ld_shlibs=no
10060  fi
10061
10062      ;;
10063
10064    dgux*)
10065      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066      hardcode_libdir_flag_spec='-L$libdir'
10067      hardcode_shlibpath_var=no
10068      ;;
10069
10070    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10071    # support.  Future versions do this automatically, but an explicit c++rt0.o
10072    # does not break anything, and helps significantly (at the cost of a little
10073    # extra space).
10074    freebsd2.2*)
10075      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10076      hardcode_libdir_flag_spec='-R$libdir'
10077      hardcode_direct=yes
10078      hardcode_shlibpath_var=no
10079      ;;
10080
10081    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10082    freebsd2.*)
10083      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10084      hardcode_direct=yes
10085      hardcode_minus_L=yes
10086      hardcode_shlibpath_var=no
10087      ;;
10088
10089    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10090    freebsd* | dragonfly*)
10091      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10092      hardcode_libdir_flag_spec='-R$libdir'
10093      hardcode_direct=yes
10094      hardcode_shlibpath_var=no
10095      ;;
10096
10097    hpux9*)
10098      if test "$GCC" = yes; then
10099	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10100      else
10101	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'
10102      fi
10103      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10104      hardcode_libdir_separator=:
10105      hardcode_direct=yes
10106
10107      # hardcode_minus_L: Not really in the search PATH,
10108      # but as the default location of the library.
10109      hardcode_minus_L=yes
10110      export_dynamic_flag_spec='${wl}-E'
10111      ;;
10112
10113    hpux10*)
10114      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10115	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10116      else
10117	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10118      fi
10119      if test "$with_gnu_ld" = no; then
10120	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10121	hardcode_libdir_separator=:
10122	hardcode_direct=yes
10123	hardcode_direct_absolute=yes
10124	export_dynamic_flag_spec='${wl}-E'
10125	# hardcode_minus_L: Not really in the search PATH,
10126	# but as the default location of the library.
10127	hardcode_minus_L=yes
10128      fi
10129      ;;
10130
10131    hpux11*)
10132      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10133	case $host_cpu in
10134	hppa*64*)
10135	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10136	  ;;
10137	ia64*)
10138	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10139	  ;;
10140	*)
10141	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10142	  ;;
10143	esac
10144      else
10145	case $host_cpu in
10146	hppa*64*)
10147	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10148	  ;;
10149	ia64*)
10150	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10151	  ;;
10152	*)
10153
10154	  # Older versions of the 11.00 compiler do not understand -b yet
10155	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10156	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10157$as_echo_n "checking if $CC understands -b... " >&6; }
10158if ${lt_cv_prog_compiler__b+:} false; then :
10159  $as_echo_n "(cached) " >&6
10160else
10161  lt_cv_prog_compiler__b=no
10162   save_LDFLAGS="$LDFLAGS"
10163   LDFLAGS="$LDFLAGS -b"
10164   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10165   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10166     # The linker can only warn and ignore the option if not recognized
10167     # So say no if there are warnings
10168     if test -s conftest.err; then
10169       # Append any errors to the config.log.
10170       cat conftest.err 1>&5
10171       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10172       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10173       if diff conftest.exp conftest.er2 >/dev/null; then
10174         lt_cv_prog_compiler__b=yes
10175       fi
10176     else
10177       lt_cv_prog_compiler__b=yes
10178     fi
10179   fi
10180   $RM -r conftest*
10181   LDFLAGS="$save_LDFLAGS"
10182
10183fi
10184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10185$as_echo "$lt_cv_prog_compiler__b" >&6; }
10186
10187if test x"$lt_cv_prog_compiler__b" = xyes; then
10188    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10189else
10190    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10191fi
10192
10193	  ;;
10194	esac
10195      fi
10196      if test "$with_gnu_ld" = no; then
10197	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10198	hardcode_libdir_separator=:
10199
10200	case $host_cpu in
10201	hppa*64*|ia64*)
10202	  hardcode_direct=no
10203	  hardcode_shlibpath_var=no
10204	  ;;
10205	*)
10206	  hardcode_direct=yes
10207	  hardcode_direct_absolute=yes
10208	  export_dynamic_flag_spec='${wl}-E'
10209
10210	  # hardcode_minus_L: Not really in the search PATH,
10211	  # but as the default location of the library.
10212	  hardcode_minus_L=yes
10213	  ;;
10214	esac
10215      fi
10216      ;;
10217
10218    irix5* | irix6* | nonstopux*)
10219      if test "$GCC" = yes; then
10220	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10221	# Try to use the -exported_symbol ld option, if it does not
10222	# work, assume that -exports_file does not work either and
10223	# implicitly export all symbols.
10224	# This should be the same for all languages, so no per-tag cache variable.
10225	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10226$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10227if ${lt_cv_irix_exported_symbol+:} false; then :
10228  $as_echo_n "(cached) " >&6
10229else
10230  save_LDFLAGS="$LDFLAGS"
10231	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10232	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233/* end confdefs.h.  */
10234int foo (void) { return 0; }
10235_ACEOF
10236if ac_fn_c_try_link "$LINENO"; then :
10237  lt_cv_irix_exported_symbol=yes
10238else
10239  lt_cv_irix_exported_symbol=no
10240fi
10241rm -f core conftest.err conftest.$ac_objext \
10242    conftest$ac_exeext conftest.$ac_ext
10243           LDFLAGS="$save_LDFLAGS"
10244fi
10245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10246$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10247	if test "$lt_cv_irix_exported_symbol" = yes; then
10248          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10249	fi
10250      else
10251	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10252	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10253      fi
10254      archive_cmds_need_lc='no'
10255      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10256      hardcode_libdir_separator=:
10257      inherit_rpath=yes
10258      link_all_deplibs=yes
10259      ;;
10260
10261    netbsd*)
10262      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10263	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10264      else
10265	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10266      fi
10267      hardcode_libdir_flag_spec='-R$libdir'
10268      hardcode_direct=yes
10269      hardcode_shlibpath_var=no
10270      ;;
10271
10272    newsos6)
10273      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10274      hardcode_direct=yes
10275      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10276      hardcode_libdir_separator=:
10277      hardcode_shlibpath_var=no
10278      ;;
10279
10280    *nto* | *qnx*)
10281      ;;
10282
10283    openbsd*)
10284      if test -f /usr/libexec/ld.so; then
10285	hardcode_direct=yes
10286	hardcode_shlibpath_var=no
10287	hardcode_direct_absolute=yes
10288	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10289	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10290	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10291	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10292	  export_dynamic_flag_spec='${wl}-E'
10293	else
10294	  case $host_os in
10295	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10296	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10297	     hardcode_libdir_flag_spec='-R$libdir'
10298	     ;;
10299	   *)
10300	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10301	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10302	     ;;
10303	  esac
10304	fi
10305      else
10306	ld_shlibs=no
10307      fi
10308      ;;
10309
10310    os2*)
10311      hardcode_libdir_flag_spec='-L$libdir'
10312      hardcode_minus_L=yes
10313      allow_undefined_flag=unsupported
10314      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'
10315      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10316      ;;
10317
10318    osf3*)
10319      if test "$GCC" = yes; then
10320	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10321	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10322      else
10323	allow_undefined_flag=' -expect_unresolved \*'
10324	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10325      fi
10326      archive_cmds_need_lc='no'
10327      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10328      hardcode_libdir_separator=:
10329      ;;
10330
10331    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10332      if test "$GCC" = yes; then
10333	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10334	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10335	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10336      else
10337	allow_undefined_flag=' -expect_unresolved \*'
10338	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10339	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10340	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10341
10342	# Both c and cxx compiler support -rpath directly
10343	hardcode_libdir_flag_spec='-rpath $libdir'
10344      fi
10345      archive_cmds_need_lc='no'
10346      hardcode_libdir_separator=:
10347      ;;
10348
10349    solaris*)
10350      no_undefined_flag=' -z defs'
10351      if test "$GCC" = yes; then
10352	wlarc='${wl}'
10353	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10354	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10355	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10356      else
10357	case `$CC -V 2>&1` in
10358	*"Compilers 5.0"*)
10359	  wlarc=''
10360	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10361	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10362	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10363	  ;;
10364	*)
10365	  wlarc='${wl}'
10366	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10367	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10368	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10369	  ;;
10370	esac
10371      fi
10372      hardcode_libdir_flag_spec='-R$libdir'
10373      hardcode_shlibpath_var=no
10374      case $host_os in
10375      solaris2.[0-5] | solaris2.[0-5].*) ;;
10376      *)
10377	# The compiler driver will combine and reorder linker options,
10378	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10379	# but is careful enough not to reorder.
10380	# Supported since Solaris 2.6 (maybe 2.5.1?)
10381	if test "$GCC" = yes; then
10382	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10383	else
10384	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10385	fi
10386	;;
10387      esac
10388      link_all_deplibs=yes
10389      ;;
10390
10391    sunos4*)
10392      if test "x$host_vendor" = xsequent; then
10393	# Use $CC to link under sequent, because it throws in some extra .o
10394	# files that make .init and .fini sections work.
10395	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10396      else
10397	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10398      fi
10399      hardcode_libdir_flag_spec='-L$libdir'
10400      hardcode_direct=yes
10401      hardcode_minus_L=yes
10402      hardcode_shlibpath_var=no
10403      ;;
10404
10405    sysv4)
10406      case $host_vendor in
10407	sni)
10408	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10409	  hardcode_direct=yes # is this really true???
10410	;;
10411	siemens)
10412	  ## LD is ld it makes a PLAMLIB
10413	  ## CC just makes a GrossModule.
10414	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10415	  reload_cmds='$CC -r -o $output$reload_objs'
10416	  hardcode_direct=no
10417        ;;
10418	motorola)
10419	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10420	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10421	;;
10422      esac
10423      runpath_var='LD_RUN_PATH'
10424      hardcode_shlibpath_var=no
10425      ;;
10426
10427    sysv4.3*)
10428      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10429      hardcode_shlibpath_var=no
10430      export_dynamic_flag_spec='-Bexport'
10431      ;;
10432
10433    sysv4*MP*)
10434      if test -d /usr/nec; then
10435	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10436	hardcode_shlibpath_var=no
10437	runpath_var=LD_RUN_PATH
10438	hardcode_runpath_var=yes
10439	ld_shlibs=yes
10440      fi
10441      ;;
10442
10443    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10444      no_undefined_flag='${wl}-z,text'
10445      archive_cmds_need_lc=no
10446      hardcode_shlibpath_var=no
10447      runpath_var='LD_RUN_PATH'
10448
10449      if test "$GCC" = yes; then
10450	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10451	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10452      else
10453	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10454	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10455      fi
10456      ;;
10457
10458    sysv5* | sco3.2v5* | sco5v6*)
10459      # Note: We can NOT use -z defs as we might desire, because we do not
10460      # link with -lc, and that would cause any symbols used from libc to
10461      # always be unresolved, which means just about no library would
10462      # ever link correctly.  If we're not using GNU ld we use -z text
10463      # though, which does catch some bad symbols but isn't as heavy-handed
10464      # as -z defs.
10465      no_undefined_flag='${wl}-z,text'
10466      allow_undefined_flag='${wl}-z,nodefs'
10467      archive_cmds_need_lc=no
10468      hardcode_shlibpath_var=no
10469      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10470      hardcode_libdir_separator=':'
10471      link_all_deplibs=yes
10472      export_dynamic_flag_spec='${wl}-Bexport'
10473      runpath_var='LD_RUN_PATH'
10474
10475      if test "$GCC" = yes; then
10476	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10477	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10478      else
10479	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10480	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10481      fi
10482      ;;
10483
10484    uts4*)
10485      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10486      hardcode_libdir_flag_spec='-L$libdir'
10487      hardcode_shlibpath_var=no
10488      ;;
10489
10490    *)
10491      ld_shlibs=no
10492      ;;
10493    esac
10494
10495    if test x$host_vendor = xsni; then
10496      case $host in
10497      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10498	export_dynamic_flag_spec='${wl}-Blargedynsym'
10499	;;
10500      esac
10501    fi
10502  fi
10503
10504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10505$as_echo "$ld_shlibs" >&6; }
10506test "$ld_shlibs" = no && can_build_shared=no
10507
10508with_gnu_ld=$with_gnu_ld
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524#
10525# Do we need to explicitly link libc?
10526#
10527case "x$archive_cmds_need_lc" in
10528x|xyes)
10529  # Assume -lc should be added
10530  archive_cmds_need_lc=yes
10531
10532  if test "$enable_shared" = yes && test "$GCC" = yes; then
10533    case $archive_cmds in
10534    *'~'*)
10535      # FIXME: we may have to deal with multi-command sequences.
10536      ;;
10537    '$CC '*)
10538      # Test whether the compiler implicitly links with -lc since on some
10539      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10540      # to ld, don't add -lc before -lgcc.
10541      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10542$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10543if ${lt_cv_archive_cmds_need_lc+:} false; then :
10544  $as_echo_n "(cached) " >&6
10545else
10546  $RM conftest*
10547	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10548
10549	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10550  (eval $ac_compile) 2>&5
10551  ac_status=$?
10552  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10553  test $ac_status = 0; } 2>conftest.err; then
10554	  soname=conftest
10555	  lib=conftest
10556	  libobjs=conftest.$ac_objext
10557	  deplibs=
10558	  wl=$lt_prog_compiler_wl
10559	  pic_flag=$lt_prog_compiler_pic
10560	  compiler_flags=-v
10561	  linker_flags=-v
10562	  verstring=
10563	  output_objdir=.
10564	  libname=conftest
10565	  lt_save_allow_undefined_flag=$allow_undefined_flag
10566	  allow_undefined_flag=
10567	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10568  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10569  ac_status=$?
10570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10571  test $ac_status = 0; }
10572	  then
10573	    lt_cv_archive_cmds_need_lc=no
10574	  else
10575	    lt_cv_archive_cmds_need_lc=yes
10576	  fi
10577	  allow_undefined_flag=$lt_save_allow_undefined_flag
10578	else
10579	  cat conftest.err 1>&5
10580	fi
10581	$RM conftest*
10582
10583fi
10584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10585$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10586      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10587      ;;
10588    esac
10589  fi
10590  ;;
10591esac
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10745$as_echo_n "checking dynamic linker characteristics... " >&6; }
10746
10747if test "$GCC" = yes; then
10748  case $host_os in
10749    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10750    *) lt_awk_arg="/^libraries:/" ;;
10751  esac
10752  case $host_os in
10753    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10754    *) lt_sed_strip_eq="s,=/,/,g" ;;
10755  esac
10756  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10757  case $lt_search_path_spec in
10758  *\;*)
10759    # if the path contains ";" then we assume it to be the separator
10760    # otherwise default to the standard path separator (i.e. ":") - it is
10761    # assumed that no part of a normal pathname contains ";" but that should
10762    # okay in the real world where ";" in dirpaths is itself problematic.
10763    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10764    ;;
10765  *)
10766    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10767    ;;
10768  esac
10769  # Ok, now we have the path, separated by spaces, we can step through it
10770  # and add multilib dir if necessary.
10771  lt_tmp_lt_search_path_spec=
10772  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10773  for lt_sys_path in $lt_search_path_spec; do
10774    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10775      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10776    else
10777      test -d "$lt_sys_path" && \
10778	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10779    fi
10780  done
10781  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10782BEGIN {RS=" "; FS="/|\n";} {
10783  lt_foo="";
10784  lt_count=0;
10785  for (lt_i = NF; lt_i > 0; lt_i--) {
10786    if ($lt_i != "" && $lt_i != ".") {
10787      if ($lt_i == "..") {
10788        lt_count++;
10789      } else {
10790        if (lt_count == 0) {
10791          lt_foo="/" $lt_i lt_foo;
10792        } else {
10793          lt_count--;
10794        }
10795      }
10796    }
10797  }
10798  if (lt_foo != "") { lt_freq[lt_foo]++; }
10799  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10800}'`
10801  # AWK program above erroneously prepends '/' to C:/dos/paths
10802  # for these hosts.
10803  case $host_os in
10804    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10805      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10806  esac
10807  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10808else
10809  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10810fi
10811library_names_spec=
10812libname_spec='lib$name'
10813soname_spec=
10814shrext_cmds=".so"
10815postinstall_cmds=
10816postuninstall_cmds=
10817finish_cmds=
10818finish_eval=
10819shlibpath_var=
10820shlibpath_overrides_runpath=unknown
10821version_type=none
10822dynamic_linker="$host_os ld.so"
10823sys_lib_dlsearch_path_spec="/lib /usr/lib"
10824need_lib_prefix=unknown
10825hardcode_into_libs=no
10826
10827# when you set need_version to no, make sure it does not cause -set_version
10828# flags to be left without arguments
10829need_version=unknown
10830
10831case $host_os in
10832aix3*)
10833  version_type=linux # correct to gnu/linux during the next big refactor
10834  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10835  shlibpath_var=LIBPATH
10836
10837  # AIX 3 has no versioning support, so we append a major version to the name.
10838  soname_spec='${libname}${release}${shared_ext}$major'
10839  ;;
10840
10841aix[4-9]*)
10842  version_type=linux # correct to gnu/linux during the next big refactor
10843  need_lib_prefix=no
10844  need_version=no
10845  hardcode_into_libs=yes
10846  if test "$host_cpu" = ia64; then
10847    # AIX 5 supports IA64
10848    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10849    shlibpath_var=LD_LIBRARY_PATH
10850  else
10851    # With GCC up to 2.95.x, collect2 would create an import file
10852    # for dependence libraries.  The import file would start with
10853    # the line `#! .'.  This would cause the generated library to
10854    # depend on `.', always an invalid library.  This was fixed in
10855    # development snapshots of GCC prior to 3.0.
10856    case $host_os in
10857      aix4 | aix4.[01] | aix4.[01].*)
10858      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10859	   echo ' yes '
10860	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10861	:
10862      else
10863	can_build_shared=no
10864      fi
10865      ;;
10866    esac
10867    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10868    # soname into executable. Probably we can add versioning support to
10869    # collect2, so additional links can be useful in future.
10870    if test "$aix_use_runtimelinking" = yes; then
10871      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10872      # instead of lib<name>.a to let people know that these are not
10873      # typical AIX shared libraries.
10874      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10875    else
10876      # We preserve .a as extension for shared libraries through AIX4.2
10877      # and later when we are not doing run time linking.
10878      library_names_spec='${libname}${release}.a $libname.a'
10879      soname_spec='${libname}${release}${shared_ext}$major'
10880    fi
10881    shlibpath_var=LIBPATH
10882  fi
10883  ;;
10884
10885amigaos*)
10886  case $host_cpu in
10887  powerpc)
10888    # Since July 2007 AmigaOS4 officially supports .so libraries.
10889    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10890    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10891    ;;
10892  m68k)
10893    library_names_spec='$libname.ixlibrary $libname.a'
10894    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10895    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10896    ;;
10897  esac
10898  ;;
10899
10900beos*)
10901  library_names_spec='${libname}${shared_ext}'
10902  dynamic_linker="$host_os ld.so"
10903  shlibpath_var=LIBRARY_PATH
10904  ;;
10905
10906bsdi[45]*)
10907  version_type=linux # correct to gnu/linux during the next big refactor
10908  need_version=no
10909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10910  soname_spec='${libname}${release}${shared_ext}$major'
10911  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10912  shlibpath_var=LD_LIBRARY_PATH
10913  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10914  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10915  # the default ld.so.conf also contains /usr/contrib/lib and
10916  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10917  # libtool to hard-code these into programs
10918  ;;
10919
10920cygwin* | mingw* | pw32* | cegcc*)
10921  version_type=windows
10922  shrext_cmds=".dll"
10923  need_version=no
10924  need_lib_prefix=no
10925
10926  case $GCC,$cc_basename in
10927  yes,*)
10928    # gcc
10929    library_names_spec='$libname.dll.a'
10930    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10931    postinstall_cmds='base_file=`basename \${file}`~
10932      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10933      dldir=$destdir/`dirname \$dlpath`~
10934      test -d \$dldir || mkdir -p \$dldir~
10935      $install_prog $dir/$dlname \$dldir/$dlname~
10936      chmod a+x \$dldir/$dlname~
10937      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10938        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10939      fi'
10940    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10941      dlpath=$dir/\$dldll~
10942       $RM \$dlpath'
10943    shlibpath_overrides_runpath=yes
10944
10945    case $host_os in
10946    cygwin*)
10947      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10948      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10949
10950      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10951      ;;
10952    mingw* | cegcc*)
10953      # MinGW DLLs use traditional 'lib' prefix
10954      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10955      ;;
10956    pw32*)
10957      # pw32 DLLs use 'pw' prefix rather than 'lib'
10958      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10959      ;;
10960    esac
10961    dynamic_linker='Win32 ld.exe'
10962    ;;
10963
10964  *,cl*)
10965    # Native MSVC
10966    libname_spec='$name'
10967    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10968    library_names_spec='${libname}.dll.lib'
10969
10970    case $build_os in
10971    mingw*)
10972      sys_lib_search_path_spec=
10973      lt_save_ifs=$IFS
10974      IFS=';'
10975      for lt_path in $LIB
10976      do
10977        IFS=$lt_save_ifs
10978        # Let DOS variable expansion print the short 8.3 style file name.
10979        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10980        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10981      done
10982      IFS=$lt_save_ifs
10983      # Convert to MSYS style.
10984      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10985      ;;
10986    cygwin*)
10987      # Convert to unix form, then to dos form, then back to unix form
10988      # but this time dos style (no spaces!) so that the unix form looks
10989      # like /cygdrive/c/PROGRA~1:/cygdr...
10990      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10991      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10992      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10993      ;;
10994    *)
10995      sys_lib_search_path_spec="$LIB"
10996      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10997        # It is most probably a Windows format PATH.
10998        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10999      else
11000        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11001      fi
11002      # FIXME: find the short name or the path components, as spaces are
11003      # common. (e.g. "Program Files" -> "PROGRA~1")
11004      ;;
11005    esac
11006
11007    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11008    postinstall_cmds='base_file=`basename \${file}`~
11009      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11010      dldir=$destdir/`dirname \$dlpath`~
11011      test -d \$dldir || mkdir -p \$dldir~
11012      $install_prog $dir/$dlname \$dldir/$dlname'
11013    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11014      dlpath=$dir/\$dldll~
11015       $RM \$dlpath'
11016    shlibpath_overrides_runpath=yes
11017    dynamic_linker='Win32 link.exe'
11018    ;;
11019
11020  *)
11021    # Assume MSVC wrapper
11022    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11023    dynamic_linker='Win32 ld.exe'
11024    ;;
11025  esac
11026  # FIXME: first we should search . and the directory the executable is in
11027  shlibpath_var=PATH
11028  ;;
11029
11030darwin* | rhapsody*)
11031  dynamic_linker="$host_os dyld"
11032  version_type=darwin
11033  need_lib_prefix=no
11034  need_version=no
11035  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11036  soname_spec='${libname}${release}${major}$shared_ext'
11037  shlibpath_overrides_runpath=yes
11038  shlibpath_var=DYLD_LIBRARY_PATH
11039  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11040
11041  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11042  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11043  ;;
11044
11045dgux*)
11046  version_type=linux # correct to gnu/linux during the next big refactor
11047  need_lib_prefix=no
11048  need_version=no
11049  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11050  soname_spec='${libname}${release}${shared_ext}$major'
11051  shlibpath_var=LD_LIBRARY_PATH
11052  ;;
11053
11054freebsd* | dragonfly*)
11055  # DragonFly does not have aout.  When/if they implement a new
11056  # versioning mechanism, adjust this.
11057  if test -x /usr/bin/objformat; then
11058    objformat=`/usr/bin/objformat`
11059  else
11060    case $host_os in
11061    freebsd[23].*) objformat=aout ;;
11062    *) objformat=elf ;;
11063    esac
11064  fi
11065  version_type=freebsd-$objformat
11066  case $version_type in
11067    freebsd-elf*)
11068      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11069      need_version=no
11070      need_lib_prefix=no
11071      ;;
11072    freebsd-*)
11073      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11074      need_version=yes
11075      ;;
11076  esac
11077  shlibpath_var=LD_LIBRARY_PATH
11078  case $host_os in
11079  freebsd2.*)
11080    shlibpath_overrides_runpath=yes
11081    ;;
11082  freebsd3.[01]* | freebsdelf3.[01]*)
11083    shlibpath_overrides_runpath=yes
11084    hardcode_into_libs=yes
11085    ;;
11086  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11087  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11088    shlibpath_overrides_runpath=no
11089    hardcode_into_libs=yes
11090    ;;
11091  *) # from 4.6 on, and DragonFly
11092    shlibpath_overrides_runpath=yes
11093    hardcode_into_libs=yes
11094    ;;
11095  esac
11096  ;;
11097
11098gnu*)
11099  version_type=linux # correct to gnu/linux during the next big refactor
11100  need_lib_prefix=no
11101  need_version=no
11102  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11103  soname_spec='${libname}${release}${shared_ext}$major'
11104  shlibpath_var=LD_LIBRARY_PATH
11105  shlibpath_overrides_runpath=no
11106  hardcode_into_libs=yes
11107  ;;
11108
11109haiku*)
11110  version_type=linux # correct to gnu/linux during the next big refactor
11111  need_lib_prefix=no
11112  need_version=no
11113  dynamic_linker="$host_os runtime_loader"
11114  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11115  soname_spec='${libname}${release}${shared_ext}$major'
11116  shlibpath_var=LIBRARY_PATH
11117  shlibpath_overrides_runpath=yes
11118  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11119  hardcode_into_libs=yes
11120  ;;
11121
11122hpux9* | hpux10* | hpux11*)
11123  # Give a soname corresponding to the major version so that dld.sl refuses to
11124  # link against other versions.
11125  version_type=sunos
11126  need_lib_prefix=no
11127  need_version=no
11128  case $host_cpu in
11129  ia64*)
11130    shrext_cmds='.so'
11131    hardcode_into_libs=yes
11132    dynamic_linker="$host_os dld.so"
11133    shlibpath_var=LD_LIBRARY_PATH
11134    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11135    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11136    soname_spec='${libname}${release}${shared_ext}$major'
11137    if test "X$HPUX_IA64_MODE" = X32; then
11138      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11139    else
11140      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11141    fi
11142    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11143    ;;
11144  hppa*64*)
11145    shrext_cmds='.sl'
11146    hardcode_into_libs=yes
11147    dynamic_linker="$host_os dld.sl"
11148    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11149    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11150    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11151    soname_spec='${libname}${release}${shared_ext}$major'
11152    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11153    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11154    ;;
11155  *)
11156    shrext_cmds='.sl'
11157    dynamic_linker="$host_os dld.sl"
11158    shlibpath_var=SHLIB_PATH
11159    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11160    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161    soname_spec='${libname}${release}${shared_ext}$major'
11162    ;;
11163  esac
11164  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11165  postinstall_cmds='chmod 555 $lib'
11166  # or fails outright, so override atomically:
11167  install_override_mode=555
11168  ;;
11169
11170interix[3-9]*)
11171  version_type=linux # correct to gnu/linux during the next big refactor
11172  need_lib_prefix=no
11173  need_version=no
11174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11175  soname_spec='${libname}${release}${shared_ext}$major'
11176  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11177  shlibpath_var=LD_LIBRARY_PATH
11178  shlibpath_overrides_runpath=no
11179  hardcode_into_libs=yes
11180  ;;
11181
11182irix5* | irix6* | nonstopux*)
11183  case $host_os in
11184    nonstopux*) version_type=nonstopux ;;
11185    *)
11186	if test "$lt_cv_prog_gnu_ld" = yes; then
11187		version_type=linux # correct to gnu/linux during the next big refactor
11188	else
11189		version_type=irix
11190	fi ;;
11191  esac
11192  need_lib_prefix=no
11193  need_version=no
11194  soname_spec='${libname}${release}${shared_ext}$major'
11195  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11196  case $host_os in
11197  irix5* | nonstopux*)
11198    libsuff= shlibsuff=
11199    ;;
11200  *)
11201    case $LD in # libtool.m4 will add one of these switches to LD
11202    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11203      libsuff= shlibsuff= libmagic=32-bit;;
11204    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11205      libsuff=32 shlibsuff=N32 libmagic=N32;;
11206    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11207      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11208    *) libsuff= shlibsuff= libmagic=never-match;;
11209    esac
11210    ;;
11211  esac
11212  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11213  shlibpath_overrides_runpath=no
11214  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11215  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11216  hardcode_into_libs=yes
11217  ;;
11218
11219# No shared lib support for Linux oldld, aout, or coff.
11220linux*oldld* | linux*aout* | linux*coff*)
11221  dynamic_linker=no
11222  ;;
11223
11224# This must be glibc/ELF.
11225linux* | k*bsd*-gnu | kopensolaris*-gnu)
11226  version_type=linux # correct to gnu/linux during the next big refactor
11227  need_lib_prefix=no
11228  need_version=no
11229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11230  soname_spec='${libname}${release}${shared_ext}$major'
11231  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11232  shlibpath_var=LD_LIBRARY_PATH
11233  shlibpath_overrides_runpath=no
11234
11235  # Some binutils ld are patched to set DT_RUNPATH
11236  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11237  $as_echo_n "(cached) " >&6
11238else
11239  lt_cv_shlibpath_overrides_runpath=no
11240    save_LDFLAGS=$LDFLAGS
11241    save_libdir=$libdir
11242    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11243	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11244    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245/* end confdefs.h.  */
11246
11247int
11248main ()
11249{
11250
11251  ;
11252  return 0;
11253}
11254_ACEOF
11255if ac_fn_c_try_link "$LINENO"; then :
11256  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11257  lt_cv_shlibpath_overrides_runpath=yes
11258fi
11259fi
11260rm -f core conftest.err conftest.$ac_objext \
11261    conftest$ac_exeext conftest.$ac_ext
11262    LDFLAGS=$save_LDFLAGS
11263    libdir=$save_libdir
11264
11265fi
11266
11267  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11268
11269  # This implies no fast_install, which is unacceptable.
11270  # Some rework will be needed to allow for fast_install
11271  # before this can be enabled.
11272  hardcode_into_libs=yes
11273
11274  # Append ld.so.conf contents to the search path
11275  if test -f /etc/ld.so.conf; then
11276    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11277    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11278  fi
11279
11280  # We used to test for /lib/ld.so.1 and disable shared libraries on
11281  # powerpc, because MkLinux only supported shared libraries with the
11282  # GNU dynamic linker.  Since this was broken with cross compilers,
11283  # most powerpc-linux boxes support dynamic linking these days and
11284  # people can always --disable-shared, the test was removed, and we
11285  # assume the GNU/Linux dynamic linker is in use.
11286  dynamic_linker='GNU/Linux ld.so'
11287  ;;
11288
11289netbsd*)
11290  version_type=sunos
11291  need_lib_prefix=no
11292  need_version=no
11293  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11294    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11295    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11296    dynamic_linker='NetBSD (a.out) ld.so'
11297  else
11298    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11299    soname_spec='${libname}${release}${shared_ext}$major'
11300    dynamic_linker='NetBSD ld.elf_so'
11301  fi
11302  shlibpath_var=LD_LIBRARY_PATH
11303  shlibpath_overrides_runpath=yes
11304  hardcode_into_libs=yes
11305  ;;
11306
11307newsos6)
11308  version_type=linux # correct to gnu/linux during the next big refactor
11309  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11310  shlibpath_var=LD_LIBRARY_PATH
11311  shlibpath_overrides_runpath=yes
11312  ;;
11313
11314*nto* | *qnx*)
11315  version_type=qnx
11316  need_lib_prefix=no
11317  need_version=no
11318  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11319  soname_spec='${libname}${release}${shared_ext}$major'
11320  shlibpath_var=LD_LIBRARY_PATH
11321  shlibpath_overrides_runpath=no
11322  hardcode_into_libs=yes
11323  dynamic_linker='ldqnx.so'
11324  ;;
11325
11326openbsd*)
11327  version_type=sunos
11328  sys_lib_dlsearch_path_spec="/usr/lib"
11329  need_lib_prefix=no
11330  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11331  case $host_os in
11332    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11333    *)				need_version=no  ;;
11334  esac
11335  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11336  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11337  shlibpath_var=LD_LIBRARY_PATH
11338  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11339    case $host_os in
11340      openbsd2.[89] | openbsd2.[89].*)
11341	shlibpath_overrides_runpath=no
11342	;;
11343      *)
11344	shlibpath_overrides_runpath=yes
11345	;;
11346      esac
11347  else
11348    shlibpath_overrides_runpath=yes
11349  fi
11350  ;;
11351
11352os2*)
11353  libname_spec='$name'
11354  shrext_cmds=".dll"
11355  need_lib_prefix=no
11356  library_names_spec='$libname${shared_ext} $libname.a'
11357  dynamic_linker='OS/2 ld.exe'
11358  shlibpath_var=LIBPATH
11359  ;;
11360
11361osf3* | osf4* | osf5*)
11362  version_type=osf
11363  need_lib_prefix=no
11364  need_version=no
11365  soname_spec='${libname}${release}${shared_ext}$major'
11366  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11367  shlibpath_var=LD_LIBRARY_PATH
11368  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11369  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11370  ;;
11371
11372rdos*)
11373  dynamic_linker=no
11374  ;;
11375
11376solaris*)
11377  version_type=linux # correct to gnu/linux during the next big refactor
11378  need_lib_prefix=no
11379  need_version=no
11380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11381  soname_spec='${libname}${release}${shared_ext}$major'
11382  shlibpath_var=LD_LIBRARY_PATH
11383  shlibpath_overrides_runpath=yes
11384  hardcode_into_libs=yes
11385  # ldd complains unless libraries are executable
11386  postinstall_cmds='chmod +x $lib'
11387  ;;
11388
11389sunos4*)
11390  version_type=sunos
11391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11392  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11393  shlibpath_var=LD_LIBRARY_PATH
11394  shlibpath_overrides_runpath=yes
11395  if test "$with_gnu_ld" = yes; then
11396    need_lib_prefix=no
11397  fi
11398  need_version=yes
11399  ;;
11400
11401sysv4 | sysv4.3*)
11402  version_type=linux # correct to gnu/linux during the next big refactor
11403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11404  soname_spec='${libname}${release}${shared_ext}$major'
11405  shlibpath_var=LD_LIBRARY_PATH
11406  case $host_vendor in
11407    sni)
11408      shlibpath_overrides_runpath=no
11409      need_lib_prefix=no
11410      runpath_var=LD_RUN_PATH
11411      ;;
11412    siemens)
11413      need_lib_prefix=no
11414      ;;
11415    motorola)
11416      need_lib_prefix=no
11417      need_version=no
11418      shlibpath_overrides_runpath=no
11419      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11420      ;;
11421  esac
11422  ;;
11423
11424sysv4*MP*)
11425  if test -d /usr/nec ;then
11426    version_type=linux # correct to gnu/linux during the next big refactor
11427    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11428    soname_spec='$libname${shared_ext}.$major'
11429    shlibpath_var=LD_LIBRARY_PATH
11430  fi
11431  ;;
11432
11433sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11434  version_type=freebsd-elf
11435  need_lib_prefix=no
11436  need_version=no
11437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11438  soname_spec='${libname}${release}${shared_ext}$major'
11439  shlibpath_var=LD_LIBRARY_PATH
11440  shlibpath_overrides_runpath=yes
11441  hardcode_into_libs=yes
11442  if test "$with_gnu_ld" = yes; then
11443    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11444  else
11445    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11446    case $host_os in
11447      sco3.2v5*)
11448        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11449	;;
11450    esac
11451  fi
11452  sys_lib_dlsearch_path_spec='/usr/lib'
11453  ;;
11454
11455tpf*)
11456  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11457  version_type=linux # correct to gnu/linux during the next big refactor
11458  need_lib_prefix=no
11459  need_version=no
11460  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461  shlibpath_var=LD_LIBRARY_PATH
11462  shlibpath_overrides_runpath=no
11463  hardcode_into_libs=yes
11464  ;;
11465
11466uts4*)
11467  version_type=linux # correct to gnu/linux during the next big refactor
11468  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11469  soname_spec='${libname}${release}${shared_ext}$major'
11470  shlibpath_var=LD_LIBRARY_PATH
11471  ;;
11472
11473*)
11474  dynamic_linker=no
11475  ;;
11476esac
11477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11478$as_echo "$dynamic_linker" >&6; }
11479test "$dynamic_linker" = no && can_build_shared=no
11480
11481variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11482if test "$GCC" = yes; then
11483  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11484fi
11485
11486if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11487  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11488fi
11489if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11490  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11491fi
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11585$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11586hardcode_action=
11587if test -n "$hardcode_libdir_flag_spec" ||
11588   test -n "$runpath_var" ||
11589   test "X$hardcode_automatic" = "Xyes" ; then
11590
11591  # We can hardcode non-existent directories.
11592  if test "$hardcode_direct" != no &&
11593     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11594     # have to relink, otherwise we might link with an installed library
11595     # when we should be linking with a yet-to-be-installed one
11596     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11597     test "$hardcode_minus_L" != no; then
11598    # Linking always hardcodes the temporary library directory.
11599    hardcode_action=relink
11600  else
11601    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11602    hardcode_action=immediate
11603  fi
11604else
11605  # We cannot hardcode anything, or else we can only hardcode existing
11606  # directories.
11607  hardcode_action=unsupported
11608fi
11609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11610$as_echo "$hardcode_action" >&6; }
11611
11612if test "$hardcode_action" = relink ||
11613   test "$inherit_rpath" = yes; then
11614  # Fast installation is not supported
11615  enable_fast_install=no
11616elif test "$shlibpath_overrides_runpath" = yes ||
11617     test "$enable_shared" = no; then
11618  # Fast installation is not necessary
11619  enable_fast_install=needless
11620fi
11621
11622
11623
11624
11625
11626
11627  if test "x$enable_dlopen" != xyes; then
11628  enable_dlopen=unknown
11629  enable_dlopen_self=unknown
11630  enable_dlopen_self_static=unknown
11631else
11632  lt_cv_dlopen=no
11633  lt_cv_dlopen_libs=
11634
11635  case $host_os in
11636  beos*)
11637    lt_cv_dlopen="load_add_on"
11638    lt_cv_dlopen_libs=
11639    lt_cv_dlopen_self=yes
11640    ;;
11641
11642  mingw* | pw32* | cegcc*)
11643    lt_cv_dlopen="LoadLibrary"
11644    lt_cv_dlopen_libs=
11645    ;;
11646
11647  cygwin*)
11648    lt_cv_dlopen="dlopen"
11649    lt_cv_dlopen_libs=
11650    ;;
11651
11652  darwin*)
11653  # if libdl is installed we need to link against it
11654    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11655$as_echo_n "checking for dlopen in -ldl... " >&6; }
11656if ${ac_cv_lib_dl_dlopen+:} false; then :
11657  $as_echo_n "(cached) " >&6
11658else
11659  ac_check_lib_save_LIBS=$LIBS
11660LIBS="-ldl  $LIBS"
11661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662/* end confdefs.h.  */
11663
11664/* Override any GCC internal prototype to avoid an error.
11665   Use char because int might match the return type of a GCC
11666   builtin and then its argument prototype would still apply.  */
11667#ifdef __cplusplus
11668extern "C"
11669#endif
11670char dlopen ();
11671int
11672main ()
11673{
11674return dlopen ();
11675  ;
11676  return 0;
11677}
11678_ACEOF
11679if ac_fn_c_try_link "$LINENO"; then :
11680  ac_cv_lib_dl_dlopen=yes
11681else
11682  ac_cv_lib_dl_dlopen=no
11683fi
11684rm -f core conftest.err conftest.$ac_objext \
11685    conftest$ac_exeext conftest.$ac_ext
11686LIBS=$ac_check_lib_save_LIBS
11687fi
11688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11689$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11690if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11691  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11692else
11693
11694    lt_cv_dlopen="dyld"
11695    lt_cv_dlopen_libs=
11696    lt_cv_dlopen_self=yes
11697
11698fi
11699
11700    ;;
11701
11702  *)
11703    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11704if test "x$ac_cv_func_shl_load" = xyes; then :
11705  lt_cv_dlopen="shl_load"
11706else
11707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11708$as_echo_n "checking for shl_load in -ldld... " >&6; }
11709if ${ac_cv_lib_dld_shl_load+:} false; then :
11710  $as_echo_n "(cached) " >&6
11711else
11712  ac_check_lib_save_LIBS=$LIBS
11713LIBS="-ldld  $LIBS"
11714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715/* end confdefs.h.  */
11716
11717/* Override any GCC internal prototype to avoid an error.
11718   Use char because int might match the return type of a GCC
11719   builtin and then its argument prototype would still apply.  */
11720#ifdef __cplusplus
11721extern "C"
11722#endif
11723char shl_load ();
11724int
11725main ()
11726{
11727return shl_load ();
11728  ;
11729  return 0;
11730}
11731_ACEOF
11732if ac_fn_c_try_link "$LINENO"; then :
11733  ac_cv_lib_dld_shl_load=yes
11734else
11735  ac_cv_lib_dld_shl_load=no
11736fi
11737rm -f core conftest.err conftest.$ac_objext \
11738    conftest$ac_exeext conftest.$ac_ext
11739LIBS=$ac_check_lib_save_LIBS
11740fi
11741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11742$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11743if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11744  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11745else
11746  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11747if test "x$ac_cv_func_dlopen" = xyes; then :
11748  lt_cv_dlopen="dlopen"
11749else
11750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11751$as_echo_n "checking for dlopen in -ldl... " >&6; }
11752if ${ac_cv_lib_dl_dlopen+:} false; then :
11753  $as_echo_n "(cached) " >&6
11754else
11755  ac_check_lib_save_LIBS=$LIBS
11756LIBS="-ldl  $LIBS"
11757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11758/* end confdefs.h.  */
11759
11760/* Override any GCC internal prototype to avoid an error.
11761   Use char because int might match the return type of a GCC
11762   builtin and then its argument prototype would still apply.  */
11763#ifdef __cplusplus
11764extern "C"
11765#endif
11766char dlopen ();
11767int
11768main ()
11769{
11770return dlopen ();
11771  ;
11772  return 0;
11773}
11774_ACEOF
11775if ac_fn_c_try_link "$LINENO"; then :
11776  ac_cv_lib_dl_dlopen=yes
11777else
11778  ac_cv_lib_dl_dlopen=no
11779fi
11780rm -f core conftest.err conftest.$ac_objext \
11781    conftest$ac_exeext conftest.$ac_ext
11782LIBS=$ac_check_lib_save_LIBS
11783fi
11784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11785$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11786if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11787  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11788else
11789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11790$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11791if ${ac_cv_lib_svld_dlopen+:} false; then :
11792  $as_echo_n "(cached) " >&6
11793else
11794  ac_check_lib_save_LIBS=$LIBS
11795LIBS="-lsvld  $LIBS"
11796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11797/* end confdefs.h.  */
11798
11799/* Override any GCC internal prototype to avoid an error.
11800   Use char because int might match the return type of a GCC
11801   builtin and then its argument prototype would still apply.  */
11802#ifdef __cplusplus
11803extern "C"
11804#endif
11805char dlopen ();
11806int
11807main ()
11808{
11809return dlopen ();
11810  ;
11811  return 0;
11812}
11813_ACEOF
11814if ac_fn_c_try_link "$LINENO"; then :
11815  ac_cv_lib_svld_dlopen=yes
11816else
11817  ac_cv_lib_svld_dlopen=no
11818fi
11819rm -f core conftest.err conftest.$ac_objext \
11820    conftest$ac_exeext conftest.$ac_ext
11821LIBS=$ac_check_lib_save_LIBS
11822fi
11823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11824$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11825if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11826  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11827else
11828  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11829$as_echo_n "checking for dld_link in -ldld... " >&6; }
11830if ${ac_cv_lib_dld_dld_link+:} false; then :
11831  $as_echo_n "(cached) " >&6
11832else
11833  ac_check_lib_save_LIBS=$LIBS
11834LIBS="-ldld  $LIBS"
11835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836/* end confdefs.h.  */
11837
11838/* Override any GCC internal prototype to avoid an error.
11839   Use char because int might match the return type of a GCC
11840   builtin and then its argument prototype would still apply.  */
11841#ifdef __cplusplus
11842extern "C"
11843#endif
11844char dld_link ();
11845int
11846main ()
11847{
11848return dld_link ();
11849  ;
11850  return 0;
11851}
11852_ACEOF
11853if ac_fn_c_try_link "$LINENO"; then :
11854  ac_cv_lib_dld_dld_link=yes
11855else
11856  ac_cv_lib_dld_dld_link=no
11857fi
11858rm -f core conftest.err conftest.$ac_objext \
11859    conftest$ac_exeext conftest.$ac_ext
11860LIBS=$ac_check_lib_save_LIBS
11861fi
11862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11863$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11864if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11865  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11866fi
11867
11868
11869fi
11870
11871
11872fi
11873
11874
11875fi
11876
11877
11878fi
11879
11880
11881fi
11882
11883    ;;
11884  esac
11885
11886  if test "x$lt_cv_dlopen" != xno; then
11887    enable_dlopen=yes
11888  else
11889    enable_dlopen=no
11890  fi
11891
11892  case $lt_cv_dlopen in
11893  dlopen)
11894    save_CPPFLAGS="$CPPFLAGS"
11895    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11896
11897    save_LDFLAGS="$LDFLAGS"
11898    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11899
11900    save_LIBS="$LIBS"
11901    LIBS="$lt_cv_dlopen_libs $LIBS"
11902
11903    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11904$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11905if ${lt_cv_dlopen_self+:} false; then :
11906  $as_echo_n "(cached) " >&6
11907else
11908  	  if test "$cross_compiling" = yes; then :
11909  lt_cv_dlopen_self=cross
11910else
11911  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11912  lt_status=$lt_dlunknown
11913  cat > conftest.$ac_ext <<_LT_EOF
11914#line $LINENO "configure"
11915#include "confdefs.h"
11916
11917#if HAVE_DLFCN_H
11918#include <dlfcn.h>
11919#endif
11920
11921#include <stdio.h>
11922
11923#ifdef RTLD_GLOBAL
11924#  define LT_DLGLOBAL		RTLD_GLOBAL
11925#else
11926#  ifdef DL_GLOBAL
11927#    define LT_DLGLOBAL		DL_GLOBAL
11928#  else
11929#    define LT_DLGLOBAL		0
11930#  endif
11931#endif
11932
11933/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11934   find out it does not work in some platform. */
11935#ifndef LT_DLLAZY_OR_NOW
11936#  ifdef RTLD_LAZY
11937#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11938#  else
11939#    ifdef DL_LAZY
11940#      define LT_DLLAZY_OR_NOW		DL_LAZY
11941#    else
11942#      ifdef RTLD_NOW
11943#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11944#      else
11945#        ifdef DL_NOW
11946#          define LT_DLLAZY_OR_NOW	DL_NOW
11947#        else
11948#          define LT_DLLAZY_OR_NOW	0
11949#        endif
11950#      endif
11951#    endif
11952#  endif
11953#endif
11954
11955/* When -fvisbility=hidden is used, assume the code has been annotated
11956   correspondingly for the symbols needed.  */
11957#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11958int fnord () __attribute__((visibility("default")));
11959#endif
11960
11961int fnord () { return 42; }
11962int main ()
11963{
11964  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11965  int status = $lt_dlunknown;
11966
11967  if (self)
11968    {
11969      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11970      else
11971        {
11972	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11973          else puts (dlerror ());
11974	}
11975      /* dlclose (self); */
11976    }
11977  else
11978    puts (dlerror ());
11979
11980  return status;
11981}
11982_LT_EOF
11983  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11984  (eval $ac_link) 2>&5
11985  ac_status=$?
11986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11987  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11988    (./conftest; exit; ) >&5 2>/dev/null
11989    lt_status=$?
11990    case x$lt_status in
11991      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11992      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11993      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11994    esac
11995  else :
11996    # compilation failed
11997    lt_cv_dlopen_self=no
11998  fi
11999fi
12000rm -fr conftest*
12001
12002
12003fi
12004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12005$as_echo "$lt_cv_dlopen_self" >&6; }
12006
12007    if test "x$lt_cv_dlopen_self" = xyes; then
12008      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12009      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12010$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12011if ${lt_cv_dlopen_self_static+:} false; then :
12012  $as_echo_n "(cached) " >&6
12013else
12014  	  if test "$cross_compiling" = yes; then :
12015  lt_cv_dlopen_self_static=cross
12016else
12017  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12018  lt_status=$lt_dlunknown
12019  cat > conftest.$ac_ext <<_LT_EOF
12020#line $LINENO "configure"
12021#include "confdefs.h"
12022
12023#if HAVE_DLFCN_H
12024#include <dlfcn.h>
12025#endif
12026
12027#include <stdio.h>
12028
12029#ifdef RTLD_GLOBAL
12030#  define LT_DLGLOBAL		RTLD_GLOBAL
12031#else
12032#  ifdef DL_GLOBAL
12033#    define LT_DLGLOBAL		DL_GLOBAL
12034#  else
12035#    define LT_DLGLOBAL		0
12036#  endif
12037#endif
12038
12039/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12040   find out it does not work in some platform. */
12041#ifndef LT_DLLAZY_OR_NOW
12042#  ifdef RTLD_LAZY
12043#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12044#  else
12045#    ifdef DL_LAZY
12046#      define LT_DLLAZY_OR_NOW		DL_LAZY
12047#    else
12048#      ifdef RTLD_NOW
12049#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12050#      else
12051#        ifdef DL_NOW
12052#          define LT_DLLAZY_OR_NOW	DL_NOW
12053#        else
12054#          define LT_DLLAZY_OR_NOW	0
12055#        endif
12056#      endif
12057#    endif
12058#  endif
12059#endif
12060
12061/* When -fvisbility=hidden is used, assume the code has been annotated
12062   correspondingly for the symbols needed.  */
12063#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12064int fnord () __attribute__((visibility("default")));
12065#endif
12066
12067int fnord () { return 42; }
12068int main ()
12069{
12070  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12071  int status = $lt_dlunknown;
12072
12073  if (self)
12074    {
12075      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12076      else
12077        {
12078	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12079          else puts (dlerror ());
12080	}
12081      /* dlclose (self); */
12082    }
12083  else
12084    puts (dlerror ());
12085
12086  return status;
12087}
12088_LT_EOF
12089  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12090  (eval $ac_link) 2>&5
12091  ac_status=$?
12092  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12093  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12094    (./conftest; exit; ) >&5 2>/dev/null
12095    lt_status=$?
12096    case x$lt_status in
12097      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12098      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12099      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12100    esac
12101  else :
12102    # compilation failed
12103    lt_cv_dlopen_self_static=no
12104  fi
12105fi
12106rm -fr conftest*
12107
12108
12109fi
12110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12111$as_echo "$lt_cv_dlopen_self_static" >&6; }
12112    fi
12113
12114    CPPFLAGS="$save_CPPFLAGS"
12115    LDFLAGS="$save_LDFLAGS"
12116    LIBS="$save_LIBS"
12117    ;;
12118  esac
12119
12120  case $lt_cv_dlopen_self in
12121  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12122  *) enable_dlopen_self=unknown ;;
12123  esac
12124
12125  case $lt_cv_dlopen_self_static in
12126  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12127  *) enable_dlopen_self_static=unknown ;;
12128  esac
12129fi
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147striplib=
12148old_striplib=
12149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12150$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12151if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12152  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12153  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12155$as_echo "yes" >&6; }
12156else
12157# FIXME - insert some real tests, host_os isn't really good enough
12158  case $host_os in
12159  darwin*)
12160    if test -n "$STRIP" ; then
12161      striplib="$STRIP -x"
12162      old_striplib="$STRIP -S"
12163      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12164$as_echo "yes" >&6; }
12165    else
12166      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167$as_echo "no" >&6; }
12168    fi
12169    ;;
12170  *)
12171    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172$as_echo "no" >&6; }
12173    ;;
12174  esac
12175fi
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188  # Report which library types will actually be built
12189  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12190$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12192$as_echo "$can_build_shared" >&6; }
12193
12194  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12195$as_echo_n "checking whether to build shared libraries... " >&6; }
12196  test "$can_build_shared" = "no" && enable_shared=no
12197
12198  # On AIX, shared libraries and static libraries use the same namespace, and
12199  # are all built from PIC.
12200  case $host_os in
12201  aix3*)
12202    test "$enable_shared" = yes && enable_static=no
12203    if test -n "$RANLIB"; then
12204      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12205      postinstall_cmds='$RANLIB $lib'
12206    fi
12207    ;;
12208
12209  aix[4-9]*)
12210    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12211      test "$enable_shared" = yes && enable_static=no
12212    fi
12213    ;;
12214  esac
12215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12216$as_echo "$enable_shared" >&6; }
12217
12218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12219$as_echo_n "checking whether to build static libraries... " >&6; }
12220  # Make sure either enable_shared or enable_static is yes.
12221  test "$enable_shared" = yes || enable_static=yes
12222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12223$as_echo "$enable_static" >&6; }
12224
12225
12226
12227
12228fi
12229ac_ext=c
12230ac_cpp='$CPP $CPPFLAGS'
12231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12233ac_compiler_gnu=$ac_cv_c_compiler_gnu
12234
12235CC="$lt_save_CC"
12236
12237      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12238    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12239    (test "X$CXX" != "Xg++"))) ; then
12240  ac_ext=cpp
12241ac_cpp='$CXXCPP $CPPFLAGS'
12242ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12243ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12244ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12246$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12247if test -z "$CXXCPP"; then
12248  if ${ac_cv_prog_CXXCPP+:} false; then :
12249  $as_echo_n "(cached) " >&6
12250else
12251      # Double quotes because CXXCPP needs to be expanded
12252    for CXXCPP in "$CXX -E" "/lib/cpp"
12253    do
12254      ac_preproc_ok=false
12255for ac_cxx_preproc_warn_flag in '' yes
12256do
12257  # Use a header file that comes with gcc, so configuring glibc
12258  # with a fresh cross-compiler works.
12259  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12260  # <limits.h> exists even on freestanding compilers.
12261  # On the NeXT, cc -E runs the code through the compiler's parser,
12262  # not just through cpp. "Syntax error" is here to catch this case.
12263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264/* end confdefs.h.  */
12265#ifdef __STDC__
12266# include <limits.h>
12267#else
12268# include <assert.h>
12269#endif
12270		     Syntax error
12271_ACEOF
12272if ac_fn_cxx_try_cpp "$LINENO"; then :
12273
12274else
12275  # Broken: fails on valid input.
12276continue
12277fi
12278rm -f conftest.err conftest.i conftest.$ac_ext
12279
12280  # OK, works on sane cases.  Now check whether nonexistent headers
12281  # can be detected and how.
12282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283/* end confdefs.h.  */
12284#include <ac_nonexistent.h>
12285_ACEOF
12286if ac_fn_cxx_try_cpp "$LINENO"; then :
12287  # Broken: success on invalid input.
12288continue
12289else
12290  # Passes both tests.
12291ac_preproc_ok=:
12292break
12293fi
12294rm -f conftest.err conftest.i conftest.$ac_ext
12295
12296done
12297# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12298rm -f conftest.i conftest.err conftest.$ac_ext
12299if $ac_preproc_ok; then :
12300  break
12301fi
12302
12303    done
12304    ac_cv_prog_CXXCPP=$CXXCPP
12305
12306fi
12307  CXXCPP=$ac_cv_prog_CXXCPP
12308else
12309  ac_cv_prog_CXXCPP=$CXXCPP
12310fi
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12312$as_echo "$CXXCPP" >&6; }
12313ac_preproc_ok=false
12314for ac_cxx_preproc_warn_flag in '' yes
12315do
12316  # Use a header file that comes with gcc, so configuring glibc
12317  # with a fresh cross-compiler works.
12318  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12319  # <limits.h> exists even on freestanding compilers.
12320  # On the NeXT, cc -E runs the code through the compiler's parser,
12321  # not just through cpp. "Syntax error" is here to catch this case.
12322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323/* end confdefs.h.  */
12324#ifdef __STDC__
12325# include <limits.h>
12326#else
12327# include <assert.h>
12328#endif
12329		     Syntax error
12330_ACEOF
12331if ac_fn_cxx_try_cpp "$LINENO"; then :
12332
12333else
12334  # Broken: fails on valid input.
12335continue
12336fi
12337rm -f conftest.err conftest.i conftest.$ac_ext
12338
12339  # OK, works on sane cases.  Now check whether nonexistent headers
12340  # can be detected and how.
12341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342/* end confdefs.h.  */
12343#include <ac_nonexistent.h>
12344_ACEOF
12345if ac_fn_cxx_try_cpp "$LINENO"; then :
12346  # Broken: success on invalid input.
12347continue
12348else
12349  # Passes both tests.
12350ac_preproc_ok=:
12351break
12352fi
12353rm -f conftest.err conftest.i conftest.$ac_ext
12354
12355done
12356# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12357rm -f conftest.i conftest.err conftest.$ac_ext
12358if $ac_preproc_ok; then :
12359
12360else
12361  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12363as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12364See \`config.log' for more details" "$LINENO" 5; }
12365fi
12366
12367ac_ext=c
12368ac_cpp='$CPP $CPPFLAGS'
12369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12371ac_compiler_gnu=$ac_cv_c_compiler_gnu
12372
12373else
12374  _lt_caught_CXX_error=yes
12375fi
12376
12377ac_ext=cpp
12378ac_cpp='$CXXCPP $CPPFLAGS'
12379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12382
12383archive_cmds_need_lc_CXX=no
12384allow_undefined_flag_CXX=
12385always_export_symbols_CXX=no
12386archive_expsym_cmds_CXX=
12387compiler_needs_object_CXX=no
12388export_dynamic_flag_spec_CXX=
12389hardcode_direct_CXX=no
12390hardcode_direct_absolute_CXX=no
12391hardcode_libdir_flag_spec_CXX=
12392hardcode_libdir_separator_CXX=
12393hardcode_minus_L_CXX=no
12394hardcode_shlibpath_var_CXX=unsupported
12395hardcode_automatic_CXX=no
12396inherit_rpath_CXX=no
12397module_cmds_CXX=
12398module_expsym_cmds_CXX=
12399link_all_deplibs_CXX=unknown
12400old_archive_cmds_CXX=$old_archive_cmds
12401reload_flag_CXX=$reload_flag
12402reload_cmds_CXX=$reload_cmds
12403no_undefined_flag_CXX=
12404whole_archive_flag_spec_CXX=
12405enable_shared_with_static_runtimes_CXX=no
12406
12407# Source file extension for C++ test sources.
12408ac_ext=cpp
12409
12410# Object file extension for compiled C++ test sources.
12411objext=o
12412objext_CXX=$objext
12413
12414# No sense in running all these tests if we already determined that
12415# the CXX compiler isn't working.  Some variables (like enable_shared)
12416# are currently assumed to apply to all compilers on this platform,
12417# and will be corrupted by setting them based on a non-working compiler.
12418if test "$_lt_caught_CXX_error" != yes; then
12419  # Code to be used in simple compile tests
12420  lt_simple_compile_test_code="int some_variable = 0;"
12421
12422  # Code to be used in simple link tests
12423  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12424
12425  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12426
12427
12428
12429
12430
12431
12432# If no C compiler was specified, use CC.
12433LTCC=${LTCC-"$CC"}
12434
12435# If no C compiler flags were specified, use CFLAGS.
12436LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12437
12438# Allow CC to be a program name with arguments.
12439compiler=$CC
12440
12441
12442  # save warnings/boilerplate of simple test code
12443  ac_outfile=conftest.$ac_objext
12444echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12445eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12446_lt_compiler_boilerplate=`cat conftest.err`
12447$RM conftest*
12448
12449  ac_outfile=conftest.$ac_objext
12450echo "$lt_simple_link_test_code" >conftest.$ac_ext
12451eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12452_lt_linker_boilerplate=`cat conftest.err`
12453$RM -r conftest*
12454
12455
12456  # Allow CC to be a program name with arguments.
12457  lt_save_CC=$CC
12458  lt_save_CFLAGS=$CFLAGS
12459  lt_save_LD=$LD
12460  lt_save_GCC=$GCC
12461  GCC=$GXX
12462  lt_save_with_gnu_ld=$with_gnu_ld
12463  lt_save_path_LD=$lt_cv_path_LD
12464  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12465    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12466  else
12467    $as_unset lt_cv_prog_gnu_ld
12468  fi
12469  if test -n "${lt_cv_path_LDCXX+set}"; then
12470    lt_cv_path_LD=$lt_cv_path_LDCXX
12471  else
12472    $as_unset lt_cv_path_LD
12473  fi
12474  test -z "${LDCXX+set}" || LD=$LDCXX
12475  CC=${CXX-"c++"}
12476  CFLAGS=$CXXFLAGS
12477  compiler=$CC
12478  compiler_CXX=$CC
12479  for cc_temp in $compiler""; do
12480  case $cc_temp in
12481    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12482    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12483    \-*) ;;
12484    *) break;;
12485  esac
12486done
12487cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12488
12489
12490  if test -n "$compiler"; then
12491    # We don't want -fno-exception when compiling C++ code, so set the
12492    # no_builtin_flag separately
12493    if test "$GXX" = yes; then
12494      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12495    else
12496      lt_prog_compiler_no_builtin_flag_CXX=
12497    fi
12498
12499    if test "$GXX" = yes; then
12500      # Set up default GNU C++ configuration
12501
12502
12503
12504# Check whether --with-gnu-ld was given.
12505if test "${with_gnu_ld+set}" = set; then :
12506  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12507else
12508  with_gnu_ld=no
12509fi
12510
12511ac_prog=ld
12512if test "$GCC" = yes; then
12513  # Check if gcc -print-prog-name=ld gives a path.
12514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12515$as_echo_n "checking for ld used by $CC... " >&6; }
12516  case $host in
12517  *-*-mingw*)
12518    # gcc leaves a trailing carriage return which upsets mingw
12519    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12520  *)
12521    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12522  esac
12523  case $ac_prog in
12524    # Accept absolute paths.
12525    [\\/]* | ?:[\\/]*)
12526      re_direlt='/[^/][^/]*/\.\./'
12527      # Canonicalize the pathname of ld
12528      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12529      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12530	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12531      done
12532      test -z "$LD" && LD="$ac_prog"
12533      ;;
12534  "")
12535    # If it fails, then pretend we aren't using GCC.
12536    ac_prog=ld
12537    ;;
12538  *)
12539    # If it is relative, then search for the first ld in PATH.
12540    with_gnu_ld=unknown
12541    ;;
12542  esac
12543elif test "$with_gnu_ld" = yes; then
12544  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12545$as_echo_n "checking for GNU ld... " >&6; }
12546else
12547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12548$as_echo_n "checking for non-GNU ld... " >&6; }
12549fi
12550if ${lt_cv_path_LD+:} false; then :
12551  $as_echo_n "(cached) " >&6
12552else
12553  if test -z "$LD"; then
12554  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12555  for ac_dir in $PATH; do
12556    IFS="$lt_save_ifs"
12557    test -z "$ac_dir" && ac_dir=.
12558    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12559      lt_cv_path_LD="$ac_dir/$ac_prog"
12560      # Check to see if the program is GNU ld.  I'd rather use --version,
12561      # but apparently some variants of GNU ld only accept -v.
12562      # Break only if it was the GNU/non-GNU ld that we prefer.
12563      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12564      *GNU* | *'with BFD'*)
12565	test "$with_gnu_ld" != no && break
12566	;;
12567      *)
12568	test "$with_gnu_ld" != yes && break
12569	;;
12570      esac
12571    fi
12572  done
12573  IFS="$lt_save_ifs"
12574else
12575  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12576fi
12577fi
12578
12579LD="$lt_cv_path_LD"
12580if test -n "$LD"; then
12581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12582$as_echo "$LD" >&6; }
12583else
12584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585$as_echo "no" >&6; }
12586fi
12587test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12589$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12590if ${lt_cv_prog_gnu_ld+:} false; then :
12591  $as_echo_n "(cached) " >&6
12592else
12593  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12594case `$LD -v 2>&1 </dev/null` in
12595*GNU* | *'with BFD'*)
12596  lt_cv_prog_gnu_ld=yes
12597  ;;
12598*)
12599  lt_cv_prog_gnu_ld=no
12600  ;;
12601esac
12602fi
12603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12604$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12605with_gnu_ld=$lt_cv_prog_gnu_ld
12606
12607
12608
12609
12610
12611
12612
12613      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12614      # archiving commands below assume that GNU ld is being used.
12615      if test "$with_gnu_ld" = yes; then
12616        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12617        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12618
12619        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12620        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12621
12622        # If archive_cmds runs LD, not CC, wlarc should be empty
12623        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12624        #     investigate it a little bit more. (MM)
12625        wlarc='${wl}'
12626
12627        # ancient GNU ld didn't support --whole-archive et. al.
12628        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12629	  $GREP 'no-whole-archive' > /dev/null; then
12630          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12631        else
12632          whole_archive_flag_spec_CXX=
12633        fi
12634      else
12635        with_gnu_ld=no
12636        wlarc=
12637
12638        # A generic and very simple default shared library creation
12639        # command for GNU C++ for the case where it uses the native
12640        # linker, instead of GNU ld.  If possible, this setting should
12641        # overridden to take advantage of the native linker features on
12642        # the platform it is being used on.
12643        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12644      fi
12645
12646      # Commands to make compiler produce verbose output that lists
12647      # what "hidden" libraries, object files and flags are used when
12648      # linking a shared library.
12649      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12650
12651    else
12652      GXX=no
12653      with_gnu_ld=no
12654      wlarc=
12655    fi
12656
12657    # PORTME: fill in a description of your system's C++ link characteristics
12658    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12659$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12660    ld_shlibs_CXX=yes
12661    case $host_os in
12662      aix3*)
12663        # FIXME: insert proper C++ library support
12664        ld_shlibs_CXX=no
12665        ;;
12666      aix[4-9]*)
12667        if test "$host_cpu" = ia64; then
12668          # On IA64, the linker does run time linking by default, so we don't
12669          # have to do anything special.
12670          aix_use_runtimelinking=no
12671          exp_sym_flag='-Bexport'
12672          no_entry_flag=""
12673        else
12674          aix_use_runtimelinking=no
12675
12676          # Test if we are trying to use run time linking or normal
12677          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12678          # need to do runtime linking.
12679          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12680	    for ld_flag in $LDFLAGS; do
12681	      case $ld_flag in
12682	      *-brtl*)
12683	        aix_use_runtimelinking=yes
12684	        break
12685	        ;;
12686	      esac
12687	    done
12688	    ;;
12689          esac
12690
12691          exp_sym_flag='-bexport'
12692          no_entry_flag='-bnoentry'
12693        fi
12694
12695        # When large executables or shared objects are built, AIX ld can
12696        # have problems creating the table of contents.  If linking a library
12697        # or program results in "error TOC overflow" add -mminimal-toc to
12698        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12699        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12700
12701        archive_cmds_CXX=''
12702        hardcode_direct_CXX=yes
12703        hardcode_direct_absolute_CXX=yes
12704        hardcode_libdir_separator_CXX=':'
12705        link_all_deplibs_CXX=yes
12706        file_list_spec_CXX='${wl}-f,'
12707
12708        if test "$GXX" = yes; then
12709          case $host_os in aix4.[012]|aix4.[012].*)
12710          # We only want to do this on AIX 4.2 and lower, the check
12711          # below for broken collect2 doesn't work under 4.3+
12712	  collect2name=`${CC} -print-prog-name=collect2`
12713	  if test -f "$collect2name" &&
12714	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12715	  then
12716	    # We have reworked collect2
12717	    :
12718	  else
12719	    # We have old collect2
12720	    hardcode_direct_CXX=unsupported
12721	    # It fails to find uninstalled libraries when the uninstalled
12722	    # path is not listed in the libpath.  Setting hardcode_minus_L
12723	    # to unsupported forces relinking
12724	    hardcode_minus_L_CXX=yes
12725	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12726	    hardcode_libdir_separator_CXX=
12727	  fi
12728          esac
12729          shared_flag='-shared'
12730	  if test "$aix_use_runtimelinking" = yes; then
12731	    shared_flag="$shared_flag "'${wl}-G'
12732	  fi
12733        else
12734          # not using gcc
12735          if test "$host_cpu" = ia64; then
12736	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12737	  # chokes on -Wl,-G. The following line is correct:
12738	  shared_flag='-G'
12739          else
12740	    if test "$aix_use_runtimelinking" = yes; then
12741	      shared_flag='${wl}-G'
12742	    else
12743	      shared_flag='${wl}-bM:SRE'
12744	    fi
12745          fi
12746        fi
12747
12748        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12749        # It seems that -bexpall does not export symbols beginning with
12750        # underscore (_), so it is better to generate a list of symbols to
12751	# export.
12752        always_export_symbols_CXX=yes
12753        if test "$aix_use_runtimelinking" = yes; then
12754          # Warning - without using the other runtime loading flags (-brtl),
12755          # -berok will link without error, but may produce a broken library.
12756          allow_undefined_flag_CXX='-berok'
12757          # Determine the default libpath from the value encoded in an empty
12758          # executable.
12759          if test "${lt_cv_aix_libpath+set}" = set; then
12760  aix_libpath=$lt_cv_aix_libpath
12761else
12762  if ${lt_cv_aix_libpath__CXX+:} false; then :
12763  $as_echo_n "(cached) " >&6
12764else
12765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766/* end confdefs.h.  */
12767
12768int
12769main ()
12770{
12771
12772  ;
12773  return 0;
12774}
12775_ACEOF
12776if ac_fn_cxx_try_link "$LINENO"; then :
12777
12778  lt_aix_libpath_sed='
12779      /Import File Strings/,/^$/ {
12780	  /^0/ {
12781	      s/^0  *\([^ ]*\) *$/\1/
12782	      p
12783	  }
12784      }'
12785  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12786  # Check for a 64-bit object if we didn't find anything.
12787  if test -z "$lt_cv_aix_libpath__CXX"; then
12788    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12789  fi
12790fi
12791rm -f core conftest.err conftest.$ac_objext \
12792    conftest$ac_exeext conftest.$ac_ext
12793  if test -z "$lt_cv_aix_libpath__CXX"; then
12794    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12795  fi
12796
12797fi
12798
12799  aix_libpath=$lt_cv_aix_libpath__CXX
12800fi
12801
12802          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12803
12804          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12805        else
12806          if test "$host_cpu" = ia64; then
12807	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12808	    allow_undefined_flag_CXX="-z nodefs"
12809	    archive_expsym_cmds_CXX="\$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"
12810          else
12811	    # Determine the default libpath from the value encoded in an
12812	    # empty executable.
12813	    if test "${lt_cv_aix_libpath+set}" = set; then
12814  aix_libpath=$lt_cv_aix_libpath
12815else
12816  if ${lt_cv_aix_libpath__CXX+:} false; then :
12817  $as_echo_n "(cached) " >&6
12818else
12819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820/* end confdefs.h.  */
12821
12822int
12823main ()
12824{
12825
12826  ;
12827  return 0;
12828}
12829_ACEOF
12830if ac_fn_cxx_try_link "$LINENO"; then :
12831
12832  lt_aix_libpath_sed='
12833      /Import File Strings/,/^$/ {
12834	  /^0/ {
12835	      s/^0  *\([^ ]*\) *$/\1/
12836	      p
12837	  }
12838      }'
12839  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12840  # Check for a 64-bit object if we didn't find anything.
12841  if test -z "$lt_cv_aix_libpath__CXX"; then
12842    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12843  fi
12844fi
12845rm -f core conftest.err conftest.$ac_objext \
12846    conftest$ac_exeext conftest.$ac_ext
12847  if test -z "$lt_cv_aix_libpath__CXX"; then
12848    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12849  fi
12850
12851fi
12852
12853  aix_libpath=$lt_cv_aix_libpath__CXX
12854fi
12855
12856	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12857	    # Warning - without using the other run time loading flags,
12858	    # -berok will link without error, but may produce a broken library.
12859	    no_undefined_flag_CXX=' ${wl}-bernotok'
12860	    allow_undefined_flag_CXX=' ${wl}-berok'
12861	    if test "$with_gnu_ld" = yes; then
12862	      # We only use this code for GNU lds that support --whole-archive.
12863	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12864	    else
12865	      # Exported symbols can be pulled into shared objects from archives
12866	      whole_archive_flag_spec_CXX='$convenience'
12867	    fi
12868	    archive_cmds_need_lc_CXX=yes
12869	    # This is similar to how AIX traditionally builds its shared
12870	    # libraries.
12871	    archive_expsym_cmds_CXX="\$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'
12872          fi
12873        fi
12874        ;;
12875
12876      beos*)
12877	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12878	  allow_undefined_flag_CXX=unsupported
12879	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12880	  # support --undefined.  This deserves some investigation.  FIXME
12881	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12882	else
12883	  ld_shlibs_CXX=no
12884	fi
12885	;;
12886
12887      chorus*)
12888        case $cc_basename in
12889          *)
12890	  # FIXME: insert proper C++ library support
12891	  ld_shlibs_CXX=no
12892	  ;;
12893        esac
12894        ;;
12895
12896      cygwin* | mingw* | pw32* | cegcc*)
12897	case $GXX,$cc_basename in
12898	,cl* | no,cl*)
12899	  # Native MSVC
12900	  # hardcode_libdir_flag_spec is actually meaningless, as there is
12901	  # no search path for DLLs.
12902	  hardcode_libdir_flag_spec_CXX=' '
12903	  allow_undefined_flag_CXX=unsupported
12904	  always_export_symbols_CXX=yes
12905	  file_list_spec_CXX='@'
12906	  # Tell ltmain to make .lib files, not .a files.
12907	  libext=lib
12908	  # Tell ltmain to make .dll files, not .so files.
12909	  shrext_cmds=".dll"
12910	  # FIXME: Setting linknames here is a bad hack.
12911	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12912	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12913	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12914	    else
12915	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12916	    fi~
12917	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12918	    linknames='
12919	  # The linker will not automatically build a static lib if we build a DLL.
12920	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12921	  enable_shared_with_static_runtimes_CXX=yes
12922	  # Don't use ranlib
12923	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
12924	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12925	    lt_tool_outputfile="@TOOL_OUTPUT@"~
12926	    case $lt_outputfile in
12927	      *.exe|*.EXE) ;;
12928	      *)
12929		lt_outputfile="$lt_outputfile.exe"
12930		lt_tool_outputfile="$lt_tool_outputfile.exe"
12931		;;
12932	    esac~
12933	    func_to_tool_file "$lt_outputfile"~
12934	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12935	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12936	      $RM "$lt_outputfile.manifest";
12937	    fi'
12938	  ;;
12939	*)
12940	  # g++
12941	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12942	  # as there is no search path for DLLs.
12943	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12944	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12945	  allow_undefined_flag_CXX=unsupported
12946	  always_export_symbols_CXX=no
12947	  enable_shared_with_static_runtimes_CXX=yes
12948
12949	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12950	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12951	    # If the export-symbols file already is a .def file (1st line
12952	    # is EXPORTS), use it as is; otherwise, prepend...
12953	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12954	      cp $export_symbols $output_objdir/$soname.def;
12955	    else
12956	      echo EXPORTS > $output_objdir/$soname.def;
12957	      cat $export_symbols >> $output_objdir/$soname.def;
12958	    fi~
12959	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12960	  else
12961	    ld_shlibs_CXX=no
12962	  fi
12963	  ;;
12964	esac
12965	;;
12966      darwin* | rhapsody*)
12967
12968
12969  archive_cmds_need_lc_CXX=no
12970  hardcode_direct_CXX=no
12971  hardcode_automatic_CXX=yes
12972  hardcode_shlibpath_var_CXX=unsupported
12973  if test "$lt_cv_ld_force_load" = "yes"; then
12974    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12975
12976  else
12977    whole_archive_flag_spec_CXX=''
12978  fi
12979  link_all_deplibs_CXX=yes
12980  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12981  case $cc_basename in
12982     ifort*) _lt_dar_can_shared=yes ;;
12983     *) _lt_dar_can_shared=$GCC ;;
12984  esac
12985  if test "$_lt_dar_can_shared" = "yes"; then
12986    output_verbose_link_cmd=func_echo_all
12987    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12988    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12989    archive_expsym_cmds_CXX="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}"
12990    module_expsym_cmds_CXX="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}"
12991       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12992      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12993      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12994    fi
12995
12996  else
12997  ld_shlibs_CXX=no
12998  fi
12999
13000	;;
13001
13002      dgux*)
13003        case $cc_basename in
13004          ec++*)
13005	    # FIXME: insert proper C++ library support
13006	    ld_shlibs_CXX=no
13007	    ;;
13008          ghcx*)
13009	    # Green Hills C++ Compiler
13010	    # FIXME: insert proper C++ library support
13011	    ld_shlibs_CXX=no
13012	    ;;
13013          *)
13014	    # FIXME: insert proper C++ library support
13015	    ld_shlibs_CXX=no
13016	    ;;
13017        esac
13018        ;;
13019
13020      freebsd2.*)
13021        # C++ shared libraries reported to be fairly broken before
13022	# switch to ELF
13023        ld_shlibs_CXX=no
13024        ;;
13025
13026      freebsd-elf*)
13027        archive_cmds_need_lc_CXX=no
13028        ;;
13029
13030      freebsd* | dragonfly*)
13031        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13032        # conventions
13033        ld_shlibs_CXX=yes
13034        ;;
13035
13036      gnu*)
13037        ;;
13038
13039      haiku*)
13040        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13041        link_all_deplibs_CXX=yes
13042        ;;
13043
13044      hpux9*)
13045        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13046        hardcode_libdir_separator_CXX=:
13047        export_dynamic_flag_spec_CXX='${wl}-E'
13048        hardcode_direct_CXX=yes
13049        hardcode_minus_L_CXX=yes # Not in the search PATH,
13050				             # but as the default
13051				             # location of the library.
13052
13053        case $cc_basename in
13054          CC*)
13055            # FIXME: insert proper C++ library support
13056            ld_shlibs_CXX=no
13057            ;;
13058          aCC*)
13059            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13060            # Commands to make compiler produce verbose output that lists
13061            # what "hidden" libraries, object files and flags are used when
13062            # linking a shared library.
13063            #
13064            # There doesn't appear to be a way to prevent this compiler from
13065            # explicitly linking system object files so we need to strip them
13066            # from the output so that they don't get included in the library
13067            # dependencies.
13068            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13069            ;;
13070          *)
13071            if test "$GXX" = yes; then
13072              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13073            else
13074              # FIXME: insert proper C++ library support
13075              ld_shlibs_CXX=no
13076            fi
13077            ;;
13078        esac
13079        ;;
13080
13081      hpux10*|hpux11*)
13082        if test $with_gnu_ld = no; then
13083	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13084	  hardcode_libdir_separator_CXX=:
13085
13086          case $host_cpu in
13087            hppa*64*|ia64*)
13088              ;;
13089            *)
13090	      export_dynamic_flag_spec_CXX='${wl}-E'
13091              ;;
13092          esac
13093        fi
13094        case $host_cpu in
13095          hppa*64*|ia64*)
13096            hardcode_direct_CXX=no
13097            hardcode_shlibpath_var_CXX=no
13098            ;;
13099          *)
13100            hardcode_direct_CXX=yes
13101            hardcode_direct_absolute_CXX=yes
13102            hardcode_minus_L_CXX=yes # Not in the search PATH,
13103					         # but as the default
13104					         # location of the library.
13105            ;;
13106        esac
13107
13108        case $cc_basename in
13109          CC*)
13110	    # FIXME: insert proper C++ library support
13111	    ld_shlibs_CXX=no
13112	    ;;
13113          aCC*)
13114	    case $host_cpu in
13115	      hppa*64*)
13116	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13117	        ;;
13118	      ia64*)
13119	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13120	        ;;
13121	      *)
13122	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13123	        ;;
13124	    esac
13125	    # Commands to make compiler produce verbose output that lists
13126	    # what "hidden" libraries, object files and flags are used when
13127	    # linking a shared library.
13128	    #
13129	    # There doesn't appear to be a way to prevent this compiler from
13130	    # explicitly linking system object files so we need to strip them
13131	    # from the output so that they don't get included in the library
13132	    # dependencies.
13133	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13134	    ;;
13135          *)
13136	    if test "$GXX" = yes; then
13137	      if test $with_gnu_ld = no; then
13138	        case $host_cpu in
13139	          hppa*64*)
13140	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13141	            ;;
13142	          ia64*)
13143	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13144	            ;;
13145	          *)
13146	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13147	            ;;
13148	        esac
13149	      fi
13150	    else
13151	      # FIXME: insert proper C++ library support
13152	      ld_shlibs_CXX=no
13153	    fi
13154	    ;;
13155        esac
13156        ;;
13157
13158      interix[3-9]*)
13159	hardcode_direct_CXX=no
13160	hardcode_shlibpath_var_CXX=no
13161	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13162	export_dynamic_flag_spec_CXX='${wl}-E'
13163	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13164	# Instead, shared libraries are loaded at an image base (0x10000000 by
13165	# default) and relocated if they conflict, which is a slow very memory
13166	# consuming and fragmenting process.  To avoid this, we pick a random,
13167	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13168	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13169	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13170	archive_expsym_cmds_CXX='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'
13171	;;
13172      irix5* | irix6*)
13173        case $cc_basename in
13174          CC*)
13175	    # SGI C++
13176	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13177
13178	    # Archives containing C++ object files must be created using
13179	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13180	    # necessary to make sure instantiated templates are included
13181	    # in the archive.
13182	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13183	    ;;
13184          *)
13185	    if test "$GXX" = yes; then
13186	      if test "$with_gnu_ld" = no; then
13187	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13188	      else
13189	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13190	      fi
13191	    fi
13192	    link_all_deplibs_CXX=yes
13193	    ;;
13194        esac
13195        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13196        hardcode_libdir_separator_CXX=:
13197        inherit_rpath_CXX=yes
13198        ;;
13199
13200      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13201        case $cc_basename in
13202          KCC*)
13203	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13204
13205	    # KCC will only create a shared library if the output file
13206	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13207	    # to its proper name (with version) after linking.
13208	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13209	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13210	    # Commands to make compiler produce verbose output that lists
13211	    # what "hidden" libraries, object files and flags are used when
13212	    # linking a shared library.
13213	    #
13214	    # There doesn't appear to be a way to prevent this compiler from
13215	    # explicitly linking system object files so we need to strip them
13216	    # from the output so that they don't get included in the library
13217	    # dependencies.
13218	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13219
13220	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13221	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13222
13223	    # Archives containing C++ object files must be created using
13224	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13225	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13226	    ;;
13227	  icpc* | ecpc* )
13228	    # Intel C++
13229	    with_gnu_ld=yes
13230	    # version 8.0 and above of icpc choke on multiply defined symbols
13231	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13232	    # earlier do not add the objects themselves.
13233	    case `$CC -V 2>&1` in
13234	      *"Version 7."*)
13235	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13236		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13237		;;
13238	      *)  # Version 8.0 or newer
13239	        tmp_idyn=
13240	        case $host_cpu in
13241		  ia64*) tmp_idyn=' -i_dynamic';;
13242		esac
13243	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13244		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13245		;;
13246	    esac
13247	    archive_cmds_need_lc_CXX=no
13248	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13249	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13250	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13251	    ;;
13252          pgCC* | pgcpp*)
13253            # Portland Group C++ compiler
13254	    case `$CC -V` in
13255	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13256	      prelink_cmds_CXX='tpldir=Template.dir~
13257		rm -rf $tpldir~
13258		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13259		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13260	      old_archive_cmds_CXX='tpldir=Template.dir~
13261		rm -rf $tpldir~
13262		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13263		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13264		$RANLIB $oldlib'
13265	      archive_cmds_CXX='tpldir=Template.dir~
13266		rm -rf $tpldir~
13267		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13268		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13269	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13270		rm -rf $tpldir~
13271		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13272		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13273	      ;;
13274	    *) # Version 6 and above use weak symbols
13275	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13276	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13277	      ;;
13278	    esac
13279
13280	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13281	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13282	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13283            ;;
13284	  cxx*)
13285	    # Compaq C++
13286	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13287	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13288
13289	    runpath_var=LD_RUN_PATH
13290	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13291	    hardcode_libdir_separator_CXX=:
13292
13293	    # Commands to make compiler produce verbose output that lists
13294	    # what "hidden" libraries, object files and flags are used when
13295	    # linking a shared library.
13296	    #
13297	    # There doesn't appear to be a way to prevent this compiler from
13298	    # explicitly linking system object files so we need to strip them
13299	    # from the output so that they don't get included in the library
13300	    # dependencies.
13301	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13302	    ;;
13303	  xl* | mpixl* | bgxl*)
13304	    # IBM XL 8.0 on PPC, with GNU ld
13305	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13306	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13307	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13308	    if test "x$supports_anon_versioning" = xyes; then
13309	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13310		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13311		echo "local: *; };" >> $output_objdir/$libname.ver~
13312		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13313	    fi
13314	    ;;
13315	  *)
13316	    case `$CC -V 2>&1 | sed 5q` in
13317	    *Sun\ C*)
13318	      # Sun C++ 5.9
13319	      no_undefined_flag_CXX=' -zdefs'
13320	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13321	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13322	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13323	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13324	      compiler_needs_object_CXX=yes
13325
13326	      # Not sure whether something based on
13327	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13328	      # would be better.
13329	      output_verbose_link_cmd='func_echo_all'
13330
13331	      # Archives containing C++ object files must be created using
13332	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13333	      # necessary to make sure instantiated templates are included
13334	      # in the archive.
13335	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13336	      ;;
13337	    esac
13338	    ;;
13339	esac
13340	;;
13341
13342      lynxos*)
13343        # FIXME: insert proper C++ library support
13344	ld_shlibs_CXX=no
13345	;;
13346
13347      m88k*)
13348        # FIXME: insert proper C++ library support
13349        ld_shlibs_CXX=no
13350	;;
13351
13352      mvs*)
13353        case $cc_basename in
13354          cxx*)
13355	    # FIXME: insert proper C++ library support
13356	    ld_shlibs_CXX=no
13357	    ;;
13358	  *)
13359	    # FIXME: insert proper C++ library support
13360	    ld_shlibs_CXX=no
13361	    ;;
13362	esac
13363	;;
13364
13365      netbsd*)
13366        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13367	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13368	  wlarc=
13369	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13370	  hardcode_direct_CXX=yes
13371	  hardcode_shlibpath_var_CXX=no
13372	fi
13373	# Workaround some broken pre-1.5 toolchains
13374	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13375	;;
13376
13377      *nto* | *qnx*)
13378        ld_shlibs_CXX=yes
13379	;;
13380
13381      openbsd2*)
13382        # C++ shared libraries are fairly broken
13383	ld_shlibs_CXX=no
13384	;;
13385
13386      openbsd*)
13387	if test -f /usr/libexec/ld.so; then
13388	  hardcode_direct_CXX=yes
13389	  hardcode_shlibpath_var_CXX=no
13390	  hardcode_direct_absolute_CXX=yes
13391	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13392	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13393	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13394	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13395	    export_dynamic_flag_spec_CXX='${wl}-E'
13396	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13397	  fi
13398	  output_verbose_link_cmd=func_echo_all
13399	else
13400	  ld_shlibs_CXX=no
13401	fi
13402	;;
13403
13404      osf3* | osf4* | osf5*)
13405        case $cc_basename in
13406          KCC*)
13407	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13408
13409	    # KCC will only create a shared library if the output file
13410	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13411	    # to its proper name (with version) after linking.
13412	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13413
13414	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13415	    hardcode_libdir_separator_CXX=:
13416
13417	    # Archives containing C++ object files must be created using
13418	    # the KAI C++ compiler.
13419	    case $host in
13420	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13421	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13422	    esac
13423	    ;;
13424          RCC*)
13425	    # Rational C++ 2.4.1
13426	    # FIXME: insert proper C++ library support
13427	    ld_shlibs_CXX=no
13428	    ;;
13429          cxx*)
13430	    case $host in
13431	      osf3*)
13432	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13433	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13434	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13435		;;
13436	      *)
13437	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13438	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13439	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13440	          echo "-hidden">> $lib.exp~
13441	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13442	          $RM $lib.exp'
13443	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13444		;;
13445	    esac
13446
13447	    hardcode_libdir_separator_CXX=:
13448
13449	    # Commands to make compiler produce verbose output that lists
13450	    # what "hidden" libraries, object files and flags are used when
13451	    # linking a shared library.
13452	    #
13453	    # There doesn't appear to be a way to prevent this compiler from
13454	    # explicitly linking system object files so we need to strip them
13455	    # from the output so that they don't get included in the library
13456	    # dependencies.
13457	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13458	    ;;
13459	  *)
13460	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13461	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13462	      case $host in
13463	        osf3*)
13464	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13465		  ;;
13466	        *)
13467	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13468		  ;;
13469	      esac
13470
13471	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13472	      hardcode_libdir_separator_CXX=:
13473
13474	      # Commands to make compiler produce verbose output that lists
13475	      # what "hidden" libraries, object files and flags are used when
13476	      # linking a shared library.
13477	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13478
13479	    else
13480	      # FIXME: insert proper C++ library support
13481	      ld_shlibs_CXX=no
13482	    fi
13483	    ;;
13484        esac
13485        ;;
13486
13487      psos*)
13488        # FIXME: insert proper C++ library support
13489        ld_shlibs_CXX=no
13490        ;;
13491
13492      sunos4*)
13493        case $cc_basename in
13494          CC*)
13495	    # Sun C++ 4.x
13496	    # FIXME: insert proper C++ library support
13497	    ld_shlibs_CXX=no
13498	    ;;
13499          lcc*)
13500	    # Lucid
13501	    # FIXME: insert proper C++ library support
13502	    ld_shlibs_CXX=no
13503	    ;;
13504          *)
13505	    # FIXME: insert proper C++ library support
13506	    ld_shlibs_CXX=no
13507	    ;;
13508        esac
13509        ;;
13510
13511      solaris*)
13512        case $cc_basename in
13513          CC* | sunCC*)
13514	    # Sun C++ 4.2, 5.x and Centerline C++
13515            archive_cmds_need_lc_CXX=yes
13516	    no_undefined_flag_CXX=' -zdefs'
13517	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13518	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13519	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13520
13521	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13522	    hardcode_shlibpath_var_CXX=no
13523	    case $host_os in
13524	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13525	      *)
13526		# The compiler driver will combine and reorder linker options,
13527		# but understands `-z linker_flag'.
13528	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13529		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13530	        ;;
13531	    esac
13532	    link_all_deplibs_CXX=yes
13533
13534	    output_verbose_link_cmd='func_echo_all'
13535
13536	    # Archives containing C++ object files must be created using
13537	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13538	    # necessary to make sure instantiated templates are included
13539	    # in the archive.
13540	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13541	    ;;
13542          gcx*)
13543	    # Green Hills C++ Compiler
13544	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13545
13546	    # The C++ compiler must be used to create the archive.
13547	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13548	    ;;
13549          *)
13550	    # GNU C++ compiler with Solaris linker
13551	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13552	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13553	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13554	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13555	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13556		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13557
13558	        # Commands to make compiler produce verbose output that lists
13559	        # what "hidden" libraries, object files and flags are used when
13560	        # linking a shared library.
13561	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13562	      else
13563	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13564	        # platform.
13565	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13566	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13567		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13568
13569	        # Commands to make compiler produce verbose output that lists
13570	        # what "hidden" libraries, object files and flags are used when
13571	        # linking a shared library.
13572	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13573	      fi
13574
13575	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13576	      case $host_os in
13577		solaris2.[0-5] | solaris2.[0-5].*) ;;
13578		*)
13579		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13580		  ;;
13581	      esac
13582	    fi
13583	    ;;
13584        esac
13585        ;;
13586
13587    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13588      no_undefined_flag_CXX='${wl}-z,text'
13589      archive_cmds_need_lc_CXX=no
13590      hardcode_shlibpath_var_CXX=no
13591      runpath_var='LD_RUN_PATH'
13592
13593      case $cc_basename in
13594        CC*)
13595	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13596	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13597	  ;;
13598	*)
13599	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13600	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13601	  ;;
13602      esac
13603      ;;
13604
13605      sysv5* | sco3.2v5* | sco5v6*)
13606	# Note: We can NOT use -z defs as we might desire, because we do not
13607	# link with -lc, and that would cause any symbols used from libc to
13608	# always be unresolved, which means just about no library would
13609	# ever link correctly.  If we're not using GNU ld we use -z text
13610	# though, which does catch some bad symbols but isn't as heavy-handed
13611	# as -z defs.
13612	no_undefined_flag_CXX='${wl}-z,text'
13613	allow_undefined_flag_CXX='${wl}-z,nodefs'
13614	archive_cmds_need_lc_CXX=no
13615	hardcode_shlibpath_var_CXX=no
13616	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13617	hardcode_libdir_separator_CXX=':'
13618	link_all_deplibs_CXX=yes
13619	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13620	runpath_var='LD_RUN_PATH'
13621
13622	case $cc_basename in
13623          CC*)
13624	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13625	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13626	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13627	      '"$old_archive_cmds_CXX"
13628	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13629	      '"$reload_cmds_CXX"
13630	    ;;
13631	  *)
13632	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13633	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13634	    ;;
13635	esac
13636      ;;
13637
13638      tandem*)
13639        case $cc_basename in
13640          NCC*)
13641	    # NonStop-UX NCC 3.20
13642	    # FIXME: insert proper C++ library support
13643	    ld_shlibs_CXX=no
13644	    ;;
13645          *)
13646	    # FIXME: insert proper C++ library support
13647	    ld_shlibs_CXX=no
13648	    ;;
13649        esac
13650        ;;
13651
13652      vxworks*)
13653        # FIXME: insert proper C++ library support
13654        ld_shlibs_CXX=no
13655        ;;
13656
13657      *)
13658        # FIXME: insert proper C++ library support
13659        ld_shlibs_CXX=no
13660        ;;
13661    esac
13662
13663    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13664$as_echo "$ld_shlibs_CXX" >&6; }
13665    test "$ld_shlibs_CXX" = no && can_build_shared=no
13666
13667    GCC_CXX="$GXX"
13668    LD_CXX="$LD"
13669
13670    ## CAVEAT EMPTOR:
13671    ## There is no encapsulation within the following macros, do not change
13672    ## the running order or otherwise move them around unless you know exactly
13673    ## what you are doing...
13674    # Dependencies to place before and after the object being linked:
13675predep_objects_CXX=
13676postdep_objects_CXX=
13677predeps_CXX=
13678postdeps_CXX=
13679compiler_lib_search_path_CXX=
13680
13681cat > conftest.$ac_ext <<_LT_EOF
13682class Foo
13683{
13684public:
13685  Foo (void) { a = 0; }
13686private:
13687  int a;
13688};
13689_LT_EOF
13690
13691
13692_lt_libdeps_save_CFLAGS=$CFLAGS
13693case "$CC $CFLAGS " in #(
13694*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13695*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13696*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13697esac
13698
13699if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13700  (eval $ac_compile) 2>&5
13701  ac_status=$?
13702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13703  test $ac_status = 0; }; then
13704  # Parse the compiler output and extract the necessary
13705  # objects, libraries and library flags.
13706
13707  # Sentinel used to keep track of whether or not we are before
13708  # the conftest object file.
13709  pre_test_object_deps_done=no
13710
13711  for p in `eval "$output_verbose_link_cmd"`; do
13712    case ${prev}${p} in
13713
13714    -L* | -R* | -l*)
13715       # Some compilers place space between "-{L,R}" and the path.
13716       # Remove the space.
13717       if test $p = "-L" ||
13718          test $p = "-R"; then
13719	 prev=$p
13720	 continue
13721       fi
13722
13723       # Expand the sysroot to ease extracting the directories later.
13724       if test -z "$prev"; then
13725         case $p in
13726         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13727         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13728         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13729         esac
13730       fi
13731       case $p in
13732       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13733       esac
13734       if test "$pre_test_object_deps_done" = no; then
13735	 case ${prev} in
13736	 -L | -R)
13737	   # Internal compiler library paths should come after those
13738	   # provided the user.  The postdeps already come after the
13739	   # user supplied libs so there is no need to process them.
13740	   if test -z "$compiler_lib_search_path_CXX"; then
13741	     compiler_lib_search_path_CXX="${prev}${p}"
13742	   else
13743	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13744	   fi
13745	   ;;
13746	 # The "-l" case would never come before the object being
13747	 # linked, so don't bother handling this case.
13748	 esac
13749       else
13750	 if test -z "$postdeps_CXX"; then
13751	   postdeps_CXX="${prev}${p}"
13752	 else
13753	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13754	 fi
13755       fi
13756       prev=
13757       ;;
13758
13759    *.lto.$objext) ;; # Ignore GCC LTO objects
13760    *.$objext)
13761       # This assumes that the test object file only shows up
13762       # once in the compiler output.
13763       if test "$p" = "conftest.$objext"; then
13764	 pre_test_object_deps_done=yes
13765	 continue
13766       fi
13767
13768       if test "$pre_test_object_deps_done" = no; then
13769	 if test -z "$predep_objects_CXX"; then
13770	   predep_objects_CXX="$p"
13771	 else
13772	   predep_objects_CXX="$predep_objects_CXX $p"
13773	 fi
13774       else
13775	 if test -z "$postdep_objects_CXX"; then
13776	   postdep_objects_CXX="$p"
13777	 else
13778	   postdep_objects_CXX="$postdep_objects_CXX $p"
13779	 fi
13780       fi
13781       ;;
13782
13783    *) ;; # Ignore the rest.
13784
13785    esac
13786  done
13787
13788  # Clean up.
13789  rm -f a.out a.exe
13790else
13791  echo "libtool.m4: error: problem compiling CXX test program"
13792fi
13793
13794$RM -f confest.$objext
13795CFLAGS=$_lt_libdeps_save_CFLAGS
13796
13797# PORTME: override above test on systems where it is broken
13798case $host_os in
13799interix[3-9]*)
13800  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13801  # hack all around it, let's just trust "g++" to DTRT.
13802  predep_objects_CXX=
13803  postdep_objects_CXX=
13804  postdeps_CXX=
13805  ;;
13806
13807linux*)
13808  case `$CC -V 2>&1 | sed 5q` in
13809  *Sun\ C*)
13810    # Sun C++ 5.9
13811
13812    # The more standards-conforming stlport4 library is
13813    # incompatible with the Cstd library. Avoid specifying
13814    # it if it's in CXXFLAGS. Ignore libCrun as
13815    # -library=stlport4 depends on it.
13816    case " $CXX $CXXFLAGS " in
13817    *" -library=stlport4 "*)
13818      solaris_use_stlport4=yes
13819      ;;
13820    esac
13821
13822    if test "$solaris_use_stlport4" != yes; then
13823      postdeps_CXX='-library=Cstd -library=Crun'
13824    fi
13825    ;;
13826  esac
13827  ;;
13828
13829solaris*)
13830  case $cc_basename in
13831  CC* | sunCC*)
13832    # The more standards-conforming stlport4 library is
13833    # incompatible with the Cstd library. Avoid specifying
13834    # it if it's in CXXFLAGS. Ignore libCrun as
13835    # -library=stlport4 depends on it.
13836    case " $CXX $CXXFLAGS " in
13837    *" -library=stlport4 "*)
13838      solaris_use_stlport4=yes
13839      ;;
13840    esac
13841
13842    # Adding this requires a known-good setup of shared libraries for
13843    # Sun compiler versions before 5.6, else PIC objects from an old
13844    # archive will be linked into the output, leading to subtle bugs.
13845    if test "$solaris_use_stlport4" != yes; then
13846      postdeps_CXX='-library=Cstd -library=Crun'
13847    fi
13848    ;;
13849  esac
13850  ;;
13851esac
13852
13853
13854case " $postdeps_CXX " in
13855*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13856esac
13857 compiler_lib_search_dirs_CXX=
13858if test -n "${compiler_lib_search_path_CXX}"; then
13859 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13860fi
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892    lt_prog_compiler_wl_CXX=
13893lt_prog_compiler_pic_CXX=
13894lt_prog_compiler_static_CXX=
13895
13896
13897  # C++ specific cases for pic, static, wl, etc.
13898  if test "$GXX" = yes; then
13899    lt_prog_compiler_wl_CXX='-Wl,'
13900    lt_prog_compiler_static_CXX='-static'
13901
13902    case $host_os in
13903    aix*)
13904      # All AIX code is PIC.
13905      if test "$host_cpu" = ia64; then
13906	# AIX 5 now supports IA64 processor
13907	lt_prog_compiler_static_CXX='-Bstatic'
13908      fi
13909      ;;
13910
13911    amigaos*)
13912      case $host_cpu in
13913      powerpc)
13914            # see comment about AmigaOS4 .so support
13915            lt_prog_compiler_pic_CXX='-fPIC'
13916        ;;
13917      m68k)
13918            # FIXME: we need at least 68020 code to build shared libraries, but
13919            # adding the `-m68020' flag to GCC prevents building anything better,
13920            # like `-m68040'.
13921            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13922        ;;
13923      esac
13924      ;;
13925
13926    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13927      # PIC is the default for these OSes.
13928      ;;
13929    mingw* | cygwin* | os2* | pw32* | cegcc*)
13930      # This hack is so that the source file can tell whether it is being
13931      # built for inclusion in a dll (and should export symbols for example).
13932      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13933      # (--disable-auto-import) libraries
13934      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13935      ;;
13936    darwin* | rhapsody*)
13937      # PIC is the default on this platform
13938      # Common symbols not allowed in MH_DYLIB files
13939      lt_prog_compiler_pic_CXX='-fno-common'
13940      ;;
13941    *djgpp*)
13942      # DJGPP does not support shared libraries at all
13943      lt_prog_compiler_pic_CXX=
13944      ;;
13945    haiku*)
13946      # PIC is the default for Haiku.
13947      # The "-static" flag exists, but is broken.
13948      lt_prog_compiler_static_CXX=
13949      ;;
13950    interix[3-9]*)
13951      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13952      # Instead, we relocate shared libraries at runtime.
13953      ;;
13954    sysv4*MP*)
13955      if test -d /usr/nec; then
13956	lt_prog_compiler_pic_CXX=-Kconform_pic
13957      fi
13958      ;;
13959    hpux*)
13960      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13961      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13962      # sets the default TLS model and affects inlining.
13963      case $host_cpu in
13964      hppa*64*)
13965	;;
13966      *)
13967	lt_prog_compiler_pic_CXX='-fPIC'
13968	;;
13969      esac
13970      ;;
13971    *qnx* | *nto*)
13972      # QNX uses GNU C++, but need to define -shared option too, otherwise
13973      # it will coredump.
13974      lt_prog_compiler_pic_CXX='-fPIC -shared'
13975      ;;
13976    *)
13977      lt_prog_compiler_pic_CXX='-fPIC'
13978      ;;
13979    esac
13980  else
13981    case $host_os in
13982      aix[4-9]*)
13983	# All AIX code is PIC.
13984	if test "$host_cpu" = ia64; then
13985	  # AIX 5 now supports IA64 processor
13986	  lt_prog_compiler_static_CXX='-Bstatic'
13987	else
13988	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13989	fi
13990	;;
13991      chorus*)
13992	case $cc_basename in
13993	cxch68*)
13994	  # Green Hills C++ Compiler
13995	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13996	  ;;
13997	esac
13998	;;
13999      mingw* | cygwin* | os2* | pw32* | cegcc*)
14000	# This hack is so that the source file can tell whether it is being
14001	# built for inclusion in a dll (and should export symbols for example).
14002	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14003	;;
14004      dgux*)
14005	case $cc_basename in
14006	  ec++*)
14007	    lt_prog_compiler_pic_CXX='-KPIC'
14008	    ;;
14009	  ghcx*)
14010	    # Green Hills C++ Compiler
14011	    lt_prog_compiler_pic_CXX='-pic'
14012	    ;;
14013	  *)
14014	    ;;
14015	esac
14016	;;
14017      freebsd* | dragonfly*)
14018	# FreeBSD uses GNU C++
14019	;;
14020      hpux9* | hpux10* | hpux11*)
14021	case $cc_basename in
14022	  CC*)
14023	    lt_prog_compiler_wl_CXX='-Wl,'
14024	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14025	    if test "$host_cpu" != ia64; then
14026	      lt_prog_compiler_pic_CXX='+Z'
14027	    fi
14028	    ;;
14029	  aCC*)
14030	    lt_prog_compiler_wl_CXX='-Wl,'
14031	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14032	    case $host_cpu in
14033	    hppa*64*|ia64*)
14034	      # +Z the default
14035	      ;;
14036	    *)
14037	      lt_prog_compiler_pic_CXX='+Z'
14038	      ;;
14039	    esac
14040	    ;;
14041	  *)
14042	    ;;
14043	esac
14044	;;
14045      interix*)
14046	# This is c89, which is MS Visual C++ (no shared libs)
14047	# Anyone wants to do a port?
14048	;;
14049      irix5* | irix6* | nonstopux*)
14050	case $cc_basename in
14051	  CC*)
14052	    lt_prog_compiler_wl_CXX='-Wl,'
14053	    lt_prog_compiler_static_CXX='-non_shared'
14054	    # CC pic flag -KPIC is the default.
14055	    ;;
14056	  *)
14057	    ;;
14058	esac
14059	;;
14060      linux* | k*bsd*-gnu | kopensolaris*-gnu)
14061	case $cc_basename in
14062	  KCC*)
14063	    # KAI C++ Compiler
14064	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14065	    lt_prog_compiler_pic_CXX='-fPIC'
14066	    ;;
14067	  ecpc* )
14068	    # old Intel C++ for x86_64 which still supported -KPIC.
14069	    lt_prog_compiler_wl_CXX='-Wl,'
14070	    lt_prog_compiler_pic_CXX='-KPIC'
14071	    lt_prog_compiler_static_CXX='-static'
14072	    ;;
14073	  icpc* )
14074	    # Intel C++, used to be incompatible with GCC.
14075	    # ICC 10 doesn't accept -KPIC any more.
14076	    lt_prog_compiler_wl_CXX='-Wl,'
14077	    lt_prog_compiler_pic_CXX='-fPIC'
14078	    lt_prog_compiler_static_CXX='-static'
14079	    ;;
14080	  pgCC* | pgcpp*)
14081	    # Portland Group C++ compiler
14082	    lt_prog_compiler_wl_CXX='-Wl,'
14083	    lt_prog_compiler_pic_CXX='-fpic'
14084	    lt_prog_compiler_static_CXX='-Bstatic'
14085	    ;;
14086	  cxx*)
14087	    # Compaq C++
14088	    # Make sure the PIC flag is empty.  It appears that all Alpha
14089	    # Linux and Compaq Tru64 Unix objects are PIC.
14090	    lt_prog_compiler_pic_CXX=
14091	    lt_prog_compiler_static_CXX='-non_shared'
14092	    ;;
14093	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14094	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14095	    lt_prog_compiler_wl_CXX='-Wl,'
14096	    lt_prog_compiler_pic_CXX='-qpic'
14097	    lt_prog_compiler_static_CXX='-qstaticlink'
14098	    ;;
14099	  *)
14100	    case `$CC -V 2>&1 | sed 5q` in
14101	    *Sun\ C*)
14102	      # Sun C++ 5.9
14103	      lt_prog_compiler_pic_CXX='-KPIC'
14104	      lt_prog_compiler_static_CXX='-Bstatic'
14105	      lt_prog_compiler_wl_CXX='-Qoption ld '
14106	      ;;
14107	    esac
14108	    ;;
14109	esac
14110	;;
14111      lynxos*)
14112	;;
14113      m88k*)
14114	;;
14115      mvs*)
14116	case $cc_basename in
14117	  cxx*)
14118	    lt_prog_compiler_pic_CXX='-W c,exportall'
14119	    ;;
14120	  *)
14121	    ;;
14122	esac
14123	;;
14124      netbsd*)
14125	;;
14126      *qnx* | *nto*)
14127        # QNX uses GNU C++, but need to define -shared option too, otherwise
14128        # it will coredump.
14129        lt_prog_compiler_pic_CXX='-fPIC -shared'
14130        ;;
14131      osf3* | osf4* | osf5*)
14132	case $cc_basename in
14133	  KCC*)
14134	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14135	    ;;
14136	  RCC*)
14137	    # Rational C++ 2.4.1
14138	    lt_prog_compiler_pic_CXX='-pic'
14139	    ;;
14140	  cxx*)
14141	    # Digital/Compaq C++
14142	    lt_prog_compiler_wl_CXX='-Wl,'
14143	    # Make sure the PIC flag is empty.  It appears that all Alpha
14144	    # Linux and Compaq Tru64 Unix objects are PIC.
14145	    lt_prog_compiler_pic_CXX=
14146	    lt_prog_compiler_static_CXX='-non_shared'
14147	    ;;
14148	  *)
14149	    ;;
14150	esac
14151	;;
14152      psos*)
14153	;;
14154      solaris*)
14155	case $cc_basename in
14156	  CC* | sunCC*)
14157	    # Sun C++ 4.2, 5.x and Centerline C++
14158	    lt_prog_compiler_pic_CXX='-KPIC'
14159	    lt_prog_compiler_static_CXX='-Bstatic'
14160	    lt_prog_compiler_wl_CXX='-Qoption ld '
14161	    ;;
14162	  gcx*)
14163	    # Green Hills C++ Compiler
14164	    lt_prog_compiler_pic_CXX='-PIC'
14165	    ;;
14166	  *)
14167	    ;;
14168	esac
14169	;;
14170      sunos4*)
14171	case $cc_basename in
14172	  CC*)
14173	    # Sun C++ 4.x
14174	    lt_prog_compiler_pic_CXX='-pic'
14175	    lt_prog_compiler_static_CXX='-Bstatic'
14176	    ;;
14177	  lcc*)
14178	    # Lucid
14179	    lt_prog_compiler_pic_CXX='-pic'
14180	    ;;
14181	  *)
14182	    ;;
14183	esac
14184	;;
14185      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14186	case $cc_basename in
14187	  CC*)
14188	    lt_prog_compiler_wl_CXX='-Wl,'
14189	    lt_prog_compiler_pic_CXX='-KPIC'
14190	    lt_prog_compiler_static_CXX='-Bstatic'
14191	    ;;
14192	esac
14193	;;
14194      tandem*)
14195	case $cc_basename in
14196	  NCC*)
14197	    # NonStop-UX NCC 3.20
14198	    lt_prog_compiler_pic_CXX='-KPIC'
14199	    ;;
14200	  *)
14201	    ;;
14202	esac
14203	;;
14204      vxworks*)
14205	;;
14206      *)
14207	lt_prog_compiler_can_build_shared_CXX=no
14208	;;
14209    esac
14210  fi
14211
14212case $host_os in
14213  # For platforms which do not support PIC, -DPIC is meaningless:
14214  *djgpp*)
14215    lt_prog_compiler_pic_CXX=
14216    ;;
14217  *)
14218    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14219    ;;
14220esac
14221
14222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14223$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14224if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14225  $as_echo_n "(cached) " >&6
14226else
14227  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14228fi
14229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14230$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14231lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14232
14233#
14234# Check to make sure the PIC flag actually works.
14235#
14236if test -n "$lt_prog_compiler_pic_CXX"; then
14237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14238$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14239if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14240  $as_echo_n "(cached) " >&6
14241else
14242  lt_cv_prog_compiler_pic_works_CXX=no
14243   ac_outfile=conftest.$ac_objext
14244   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14245   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14246   # Insert the option either (1) after the last *FLAGS variable, or
14247   # (2) before a word containing "conftest.", or (3) at the end.
14248   # Note that $ac_compile itself does not contain backslashes and begins
14249   # with a dollar sign (not a hyphen), so the echo should work correctly.
14250   # The option is referenced via a variable to avoid confusing sed.
14251   lt_compile=`echo "$ac_compile" | $SED \
14252   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14253   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14254   -e 's:$: $lt_compiler_flag:'`
14255   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14256   (eval "$lt_compile" 2>conftest.err)
14257   ac_status=$?
14258   cat conftest.err >&5
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   if (exit $ac_status) && test -s "$ac_outfile"; then
14261     # The compiler can only warn and ignore the option if not recognized
14262     # So say no if there are warnings other than the usual output.
14263     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14264     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14265     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14266       lt_cv_prog_compiler_pic_works_CXX=yes
14267     fi
14268   fi
14269   $RM conftest*
14270
14271fi
14272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14273$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14274
14275if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14276    case $lt_prog_compiler_pic_CXX in
14277     "" | " "*) ;;
14278     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14279     esac
14280else
14281    lt_prog_compiler_pic_CXX=
14282     lt_prog_compiler_can_build_shared_CXX=no
14283fi
14284
14285fi
14286
14287
14288
14289
14290
14291#
14292# Check to make sure the static flag actually works.
14293#
14294wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14296$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14297if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14298  $as_echo_n "(cached) " >&6
14299else
14300  lt_cv_prog_compiler_static_works_CXX=no
14301   save_LDFLAGS="$LDFLAGS"
14302   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14303   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14304   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14305     # The linker can only warn and ignore the option if not recognized
14306     # So say no if there are warnings
14307     if test -s conftest.err; then
14308       # Append any errors to the config.log.
14309       cat conftest.err 1>&5
14310       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14311       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14312       if diff conftest.exp conftest.er2 >/dev/null; then
14313         lt_cv_prog_compiler_static_works_CXX=yes
14314       fi
14315     else
14316       lt_cv_prog_compiler_static_works_CXX=yes
14317     fi
14318   fi
14319   $RM -r conftest*
14320   LDFLAGS="$save_LDFLAGS"
14321
14322fi
14323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14324$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14325
14326if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14327    :
14328else
14329    lt_prog_compiler_static_CXX=
14330fi
14331
14332
14333
14334
14335    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14336$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14337if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14338  $as_echo_n "(cached) " >&6
14339else
14340  lt_cv_prog_compiler_c_o_CXX=no
14341   $RM -r conftest 2>/dev/null
14342   mkdir conftest
14343   cd conftest
14344   mkdir out
14345   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14346
14347   lt_compiler_flag="-o out/conftest2.$ac_objext"
14348   # Insert the option either (1) after the last *FLAGS variable, or
14349   # (2) before a word containing "conftest.", or (3) at the end.
14350   # Note that $ac_compile itself does not contain backslashes and begins
14351   # with a dollar sign (not a hyphen), so the echo should work correctly.
14352   lt_compile=`echo "$ac_compile" | $SED \
14353   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14354   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14355   -e 's:$: $lt_compiler_flag:'`
14356   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14357   (eval "$lt_compile" 2>out/conftest.err)
14358   ac_status=$?
14359   cat out/conftest.err >&5
14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14362   then
14363     # The compiler can only warn and ignore the option if not recognized
14364     # So say no if there are warnings
14365     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14366     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14367     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14368       lt_cv_prog_compiler_c_o_CXX=yes
14369     fi
14370   fi
14371   chmod u+w . 2>&5
14372   $RM conftest*
14373   # SGI C++ compiler will create directory out/ii_files/ for
14374   # template instantiation
14375   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14376   $RM out/* && rmdir out
14377   cd ..
14378   $RM -r conftest
14379   $RM conftest*
14380
14381fi
14382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14383$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14384
14385
14386
14387    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14388$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14389if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14390  $as_echo_n "(cached) " >&6
14391else
14392  lt_cv_prog_compiler_c_o_CXX=no
14393   $RM -r conftest 2>/dev/null
14394   mkdir conftest
14395   cd conftest
14396   mkdir out
14397   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14398
14399   lt_compiler_flag="-o out/conftest2.$ac_objext"
14400   # Insert the option either (1) after the last *FLAGS variable, or
14401   # (2) before a word containing "conftest.", or (3) at the end.
14402   # Note that $ac_compile itself does not contain backslashes and begins
14403   # with a dollar sign (not a hyphen), so the echo should work correctly.
14404   lt_compile=`echo "$ac_compile" | $SED \
14405   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14406   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14407   -e 's:$: $lt_compiler_flag:'`
14408   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14409   (eval "$lt_compile" 2>out/conftest.err)
14410   ac_status=$?
14411   cat out/conftest.err >&5
14412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14414   then
14415     # The compiler can only warn and ignore the option if not recognized
14416     # So say no if there are warnings
14417     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14418     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14419     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14420       lt_cv_prog_compiler_c_o_CXX=yes
14421     fi
14422   fi
14423   chmod u+w . 2>&5
14424   $RM conftest*
14425   # SGI C++ compiler will create directory out/ii_files/ for
14426   # template instantiation
14427   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14428   $RM out/* && rmdir out
14429   cd ..
14430   $RM -r conftest
14431   $RM conftest*
14432
14433fi
14434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14435$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14436
14437
14438
14439
14440hard_links="nottested"
14441if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14442  # do not overwrite the value of need_locks provided by the user
14443  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14444$as_echo_n "checking if we can lock with hard links... " >&6; }
14445  hard_links=yes
14446  $RM conftest*
14447  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14448  touch conftest.a
14449  ln conftest.a conftest.b 2>&5 || hard_links=no
14450  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14452$as_echo "$hard_links" >&6; }
14453  if test "$hard_links" = no; then
14454    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14455$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14456    need_locks=warn
14457  fi
14458else
14459  need_locks=no
14460fi
14461
14462
14463
14464    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14465$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14466
14467  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14468  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14469  case $host_os in
14470  aix[4-9]*)
14471    # If we're using GNU nm, then we don't want the "-C" option.
14472    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14473    # Also, AIX nm treats weak defined symbols like other global defined
14474    # symbols, whereas GNU nm marks them as "W".
14475    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14476      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14477    else
14478      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14479    fi
14480    ;;
14481  pw32*)
14482    export_symbols_cmds_CXX="$ltdll_cmds"
14483    ;;
14484  cygwin* | mingw* | cegcc*)
14485    case $cc_basename in
14486    cl*)
14487      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14488      ;;
14489    *)
14490      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14491      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14492      ;;
14493    esac
14494    ;;
14495  *)
14496    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14497    ;;
14498  esac
14499
14500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14501$as_echo "$ld_shlibs_CXX" >&6; }
14502test "$ld_shlibs_CXX" = no && can_build_shared=no
14503
14504with_gnu_ld_CXX=$with_gnu_ld
14505
14506
14507
14508
14509
14510
14511#
14512# Do we need to explicitly link libc?
14513#
14514case "x$archive_cmds_need_lc_CXX" in
14515x|xyes)
14516  # Assume -lc should be added
14517  archive_cmds_need_lc_CXX=yes
14518
14519  if test "$enable_shared" = yes && test "$GCC" = yes; then
14520    case $archive_cmds_CXX in
14521    *'~'*)
14522      # FIXME: we may have to deal with multi-command sequences.
14523      ;;
14524    '$CC '*)
14525      # Test whether the compiler implicitly links with -lc since on some
14526      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14527      # to ld, don't add -lc before -lgcc.
14528      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14529$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14530if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14531  $as_echo_n "(cached) " >&6
14532else
14533  $RM conftest*
14534	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14535
14536	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14537  (eval $ac_compile) 2>&5
14538  ac_status=$?
14539  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14540  test $ac_status = 0; } 2>conftest.err; then
14541	  soname=conftest
14542	  lib=conftest
14543	  libobjs=conftest.$ac_objext
14544	  deplibs=
14545	  wl=$lt_prog_compiler_wl_CXX
14546	  pic_flag=$lt_prog_compiler_pic_CXX
14547	  compiler_flags=-v
14548	  linker_flags=-v
14549	  verstring=
14550	  output_objdir=.
14551	  libname=conftest
14552	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14553	  allow_undefined_flag_CXX=
14554	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14555  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14556  ac_status=$?
14557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14558  test $ac_status = 0; }
14559	  then
14560	    lt_cv_archive_cmds_need_lc_CXX=no
14561	  else
14562	    lt_cv_archive_cmds_need_lc_CXX=yes
14563	  fi
14564	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14565	else
14566	  cat conftest.err 1>&5
14567	fi
14568	$RM conftest*
14569
14570fi
14571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14572$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14573      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14574      ;;
14575    esac
14576  fi
14577  ;;
14578esac
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14642$as_echo_n "checking dynamic linker characteristics... " >&6; }
14643
14644library_names_spec=
14645libname_spec='lib$name'
14646soname_spec=
14647shrext_cmds=".so"
14648postinstall_cmds=
14649postuninstall_cmds=
14650finish_cmds=
14651finish_eval=
14652shlibpath_var=
14653shlibpath_overrides_runpath=unknown
14654version_type=none
14655dynamic_linker="$host_os ld.so"
14656sys_lib_dlsearch_path_spec="/lib /usr/lib"
14657need_lib_prefix=unknown
14658hardcode_into_libs=no
14659
14660# when you set need_version to no, make sure it does not cause -set_version
14661# flags to be left without arguments
14662need_version=unknown
14663
14664case $host_os in
14665aix3*)
14666  version_type=linux # correct to gnu/linux during the next big refactor
14667  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14668  shlibpath_var=LIBPATH
14669
14670  # AIX 3 has no versioning support, so we append a major version to the name.
14671  soname_spec='${libname}${release}${shared_ext}$major'
14672  ;;
14673
14674aix[4-9]*)
14675  version_type=linux # correct to gnu/linux during the next big refactor
14676  need_lib_prefix=no
14677  need_version=no
14678  hardcode_into_libs=yes
14679  if test "$host_cpu" = ia64; then
14680    # AIX 5 supports IA64
14681    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14682    shlibpath_var=LD_LIBRARY_PATH
14683  else
14684    # With GCC up to 2.95.x, collect2 would create an import file
14685    # for dependence libraries.  The import file would start with
14686    # the line `#! .'.  This would cause the generated library to
14687    # depend on `.', always an invalid library.  This was fixed in
14688    # development snapshots of GCC prior to 3.0.
14689    case $host_os in
14690      aix4 | aix4.[01] | aix4.[01].*)
14691      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14692	   echo ' yes '
14693	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14694	:
14695      else
14696	can_build_shared=no
14697      fi
14698      ;;
14699    esac
14700    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14701    # soname into executable. Probably we can add versioning support to
14702    # collect2, so additional links can be useful in future.
14703    if test "$aix_use_runtimelinking" = yes; then
14704      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14705      # instead of lib<name>.a to let people know that these are not
14706      # typical AIX shared libraries.
14707      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14708    else
14709      # We preserve .a as extension for shared libraries through AIX4.2
14710      # and later when we are not doing run time linking.
14711      library_names_spec='${libname}${release}.a $libname.a'
14712      soname_spec='${libname}${release}${shared_ext}$major'
14713    fi
14714    shlibpath_var=LIBPATH
14715  fi
14716  ;;
14717
14718amigaos*)
14719  case $host_cpu in
14720  powerpc)
14721    # Since July 2007 AmigaOS4 officially supports .so libraries.
14722    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14723    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14724    ;;
14725  m68k)
14726    library_names_spec='$libname.ixlibrary $libname.a'
14727    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14728    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14729    ;;
14730  esac
14731  ;;
14732
14733beos*)
14734  library_names_spec='${libname}${shared_ext}'
14735  dynamic_linker="$host_os ld.so"
14736  shlibpath_var=LIBRARY_PATH
14737  ;;
14738
14739bsdi[45]*)
14740  version_type=linux # correct to gnu/linux during the next big refactor
14741  need_version=no
14742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14743  soname_spec='${libname}${release}${shared_ext}$major'
14744  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14745  shlibpath_var=LD_LIBRARY_PATH
14746  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14747  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14748  # the default ld.so.conf also contains /usr/contrib/lib and
14749  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14750  # libtool to hard-code these into programs
14751  ;;
14752
14753cygwin* | mingw* | pw32* | cegcc*)
14754  version_type=windows
14755  shrext_cmds=".dll"
14756  need_version=no
14757  need_lib_prefix=no
14758
14759  case $GCC,$cc_basename in
14760  yes,*)
14761    # gcc
14762    library_names_spec='$libname.dll.a'
14763    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14764    postinstall_cmds='base_file=`basename \${file}`~
14765      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14766      dldir=$destdir/`dirname \$dlpath`~
14767      test -d \$dldir || mkdir -p \$dldir~
14768      $install_prog $dir/$dlname \$dldir/$dlname~
14769      chmod a+x \$dldir/$dlname~
14770      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14771        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14772      fi'
14773    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14774      dlpath=$dir/\$dldll~
14775       $RM \$dlpath'
14776    shlibpath_overrides_runpath=yes
14777
14778    case $host_os in
14779    cygwin*)
14780      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14781      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14782
14783      ;;
14784    mingw* | cegcc*)
14785      # MinGW DLLs use traditional 'lib' prefix
14786      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14787      ;;
14788    pw32*)
14789      # pw32 DLLs use 'pw' prefix rather than 'lib'
14790      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14791      ;;
14792    esac
14793    dynamic_linker='Win32 ld.exe'
14794    ;;
14795
14796  *,cl*)
14797    # Native MSVC
14798    libname_spec='$name'
14799    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14800    library_names_spec='${libname}.dll.lib'
14801
14802    case $build_os in
14803    mingw*)
14804      sys_lib_search_path_spec=
14805      lt_save_ifs=$IFS
14806      IFS=';'
14807      for lt_path in $LIB
14808      do
14809        IFS=$lt_save_ifs
14810        # Let DOS variable expansion print the short 8.3 style file name.
14811        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14812        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14813      done
14814      IFS=$lt_save_ifs
14815      # Convert to MSYS style.
14816      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14817      ;;
14818    cygwin*)
14819      # Convert to unix form, then to dos form, then back to unix form
14820      # but this time dos style (no spaces!) so that the unix form looks
14821      # like /cygdrive/c/PROGRA~1:/cygdr...
14822      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14823      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14824      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14825      ;;
14826    *)
14827      sys_lib_search_path_spec="$LIB"
14828      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14829        # It is most probably a Windows format PATH.
14830        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14831      else
14832        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14833      fi
14834      # FIXME: find the short name or the path components, as spaces are
14835      # common. (e.g. "Program Files" -> "PROGRA~1")
14836      ;;
14837    esac
14838
14839    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14840    postinstall_cmds='base_file=`basename \${file}`~
14841      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14842      dldir=$destdir/`dirname \$dlpath`~
14843      test -d \$dldir || mkdir -p \$dldir~
14844      $install_prog $dir/$dlname \$dldir/$dlname'
14845    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14846      dlpath=$dir/\$dldll~
14847       $RM \$dlpath'
14848    shlibpath_overrides_runpath=yes
14849    dynamic_linker='Win32 link.exe'
14850    ;;
14851
14852  *)
14853    # Assume MSVC wrapper
14854    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14855    dynamic_linker='Win32 ld.exe'
14856    ;;
14857  esac
14858  # FIXME: first we should search . and the directory the executable is in
14859  shlibpath_var=PATH
14860  ;;
14861
14862darwin* | rhapsody*)
14863  dynamic_linker="$host_os dyld"
14864  version_type=darwin
14865  need_lib_prefix=no
14866  need_version=no
14867  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14868  soname_spec='${libname}${release}${major}$shared_ext'
14869  shlibpath_overrides_runpath=yes
14870  shlibpath_var=DYLD_LIBRARY_PATH
14871  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14872
14873  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14874  ;;
14875
14876dgux*)
14877  version_type=linux # correct to gnu/linux during the next big refactor
14878  need_lib_prefix=no
14879  need_version=no
14880  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14881  soname_spec='${libname}${release}${shared_ext}$major'
14882  shlibpath_var=LD_LIBRARY_PATH
14883  ;;
14884
14885freebsd* | dragonfly*)
14886  # DragonFly does not have aout.  When/if they implement a new
14887  # versioning mechanism, adjust this.
14888  if test -x /usr/bin/objformat; then
14889    objformat=`/usr/bin/objformat`
14890  else
14891    case $host_os in
14892    freebsd[23].*) objformat=aout ;;
14893    *) objformat=elf ;;
14894    esac
14895  fi
14896  version_type=freebsd-$objformat
14897  case $version_type in
14898    freebsd-elf*)
14899      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14900      need_version=no
14901      need_lib_prefix=no
14902      ;;
14903    freebsd-*)
14904      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14905      need_version=yes
14906      ;;
14907  esac
14908  shlibpath_var=LD_LIBRARY_PATH
14909  case $host_os in
14910  freebsd2.*)
14911    shlibpath_overrides_runpath=yes
14912    ;;
14913  freebsd3.[01]* | freebsdelf3.[01]*)
14914    shlibpath_overrides_runpath=yes
14915    hardcode_into_libs=yes
14916    ;;
14917  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14918  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14919    shlibpath_overrides_runpath=no
14920    hardcode_into_libs=yes
14921    ;;
14922  *) # from 4.6 on, and DragonFly
14923    shlibpath_overrides_runpath=yes
14924    hardcode_into_libs=yes
14925    ;;
14926  esac
14927  ;;
14928
14929gnu*)
14930  version_type=linux # correct to gnu/linux during the next big refactor
14931  need_lib_prefix=no
14932  need_version=no
14933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14934  soname_spec='${libname}${release}${shared_ext}$major'
14935  shlibpath_var=LD_LIBRARY_PATH
14936  shlibpath_overrides_runpath=no
14937  hardcode_into_libs=yes
14938  ;;
14939
14940haiku*)
14941  version_type=linux # correct to gnu/linux during the next big refactor
14942  need_lib_prefix=no
14943  need_version=no
14944  dynamic_linker="$host_os runtime_loader"
14945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14946  soname_spec='${libname}${release}${shared_ext}$major'
14947  shlibpath_var=LIBRARY_PATH
14948  shlibpath_overrides_runpath=yes
14949  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14950  hardcode_into_libs=yes
14951  ;;
14952
14953hpux9* | hpux10* | hpux11*)
14954  # Give a soname corresponding to the major version so that dld.sl refuses to
14955  # link against other versions.
14956  version_type=sunos
14957  need_lib_prefix=no
14958  need_version=no
14959  case $host_cpu in
14960  ia64*)
14961    shrext_cmds='.so'
14962    hardcode_into_libs=yes
14963    dynamic_linker="$host_os dld.so"
14964    shlibpath_var=LD_LIBRARY_PATH
14965    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14966    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14967    soname_spec='${libname}${release}${shared_ext}$major'
14968    if test "X$HPUX_IA64_MODE" = X32; then
14969      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14970    else
14971      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14972    fi
14973    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14974    ;;
14975  hppa*64*)
14976    shrext_cmds='.sl'
14977    hardcode_into_libs=yes
14978    dynamic_linker="$host_os dld.sl"
14979    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14980    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14981    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14982    soname_spec='${libname}${release}${shared_ext}$major'
14983    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14984    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14985    ;;
14986  *)
14987    shrext_cmds='.sl'
14988    dynamic_linker="$host_os dld.sl"
14989    shlibpath_var=SHLIB_PATH
14990    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14991    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14992    soname_spec='${libname}${release}${shared_ext}$major'
14993    ;;
14994  esac
14995  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14996  postinstall_cmds='chmod 555 $lib'
14997  # or fails outright, so override atomically:
14998  install_override_mode=555
14999  ;;
15000
15001interix[3-9]*)
15002  version_type=linux # correct to gnu/linux during the next big refactor
15003  need_lib_prefix=no
15004  need_version=no
15005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15006  soname_spec='${libname}${release}${shared_ext}$major'
15007  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15008  shlibpath_var=LD_LIBRARY_PATH
15009  shlibpath_overrides_runpath=no
15010  hardcode_into_libs=yes
15011  ;;
15012
15013irix5* | irix6* | nonstopux*)
15014  case $host_os in
15015    nonstopux*) version_type=nonstopux ;;
15016    *)
15017	if test "$lt_cv_prog_gnu_ld" = yes; then
15018		version_type=linux # correct to gnu/linux during the next big refactor
15019	else
15020		version_type=irix
15021	fi ;;
15022  esac
15023  need_lib_prefix=no
15024  need_version=no
15025  soname_spec='${libname}${release}${shared_ext}$major'
15026  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15027  case $host_os in
15028  irix5* | nonstopux*)
15029    libsuff= shlibsuff=
15030    ;;
15031  *)
15032    case $LD in # libtool.m4 will add one of these switches to LD
15033    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15034      libsuff= shlibsuff= libmagic=32-bit;;
15035    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15036      libsuff=32 shlibsuff=N32 libmagic=N32;;
15037    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15038      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15039    *) libsuff= shlibsuff= libmagic=never-match;;
15040    esac
15041    ;;
15042  esac
15043  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15044  shlibpath_overrides_runpath=no
15045  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15046  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15047  hardcode_into_libs=yes
15048  ;;
15049
15050# No shared lib support for Linux oldld, aout, or coff.
15051linux*oldld* | linux*aout* | linux*coff*)
15052  dynamic_linker=no
15053  ;;
15054
15055# This must be glibc/ELF.
15056linux* | k*bsd*-gnu | kopensolaris*-gnu)
15057  version_type=linux # correct to gnu/linux during the next big refactor
15058  need_lib_prefix=no
15059  need_version=no
15060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15061  soname_spec='${libname}${release}${shared_ext}$major'
15062  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15063  shlibpath_var=LD_LIBRARY_PATH
15064  shlibpath_overrides_runpath=no
15065
15066  # Some binutils ld are patched to set DT_RUNPATH
15067  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15068  $as_echo_n "(cached) " >&6
15069else
15070  lt_cv_shlibpath_overrides_runpath=no
15071    save_LDFLAGS=$LDFLAGS
15072    save_libdir=$libdir
15073    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15074	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15075    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076/* end confdefs.h.  */
15077
15078int
15079main ()
15080{
15081
15082  ;
15083  return 0;
15084}
15085_ACEOF
15086if ac_fn_cxx_try_link "$LINENO"; then :
15087  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15088  lt_cv_shlibpath_overrides_runpath=yes
15089fi
15090fi
15091rm -f core conftest.err conftest.$ac_objext \
15092    conftest$ac_exeext conftest.$ac_ext
15093    LDFLAGS=$save_LDFLAGS
15094    libdir=$save_libdir
15095
15096fi
15097
15098  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15099
15100  # This implies no fast_install, which is unacceptable.
15101  # Some rework will be needed to allow for fast_install
15102  # before this can be enabled.
15103  hardcode_into_libs=yes
15104
15105  # Append ld.so.conf contents to the search path
15106  if test -f /etc/ld.so.conf; then
15107    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15108    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15109  fi
15110
15111  # We used to test for /lib/ld.so.1 and disable shared libraries on
15112  # powerpc, because MkLinux only supported shared libraries with the
15113  # GNU dynamic linker.  Since this was broken with cross compilers,
15114  # most powerpc-linux boxes support dynamic linking these days and
15115  # people can always --disable-shared, the test was removed, and we
15116  # assume the GNU/Linux dynamic linker is in use.
15117  dynamic_linker='GNU/Linux ld.so'
15118  ;;
15119
15120netbsd*)
15121  version_type=sunos
15122  need_lib_prefix=no
15123  need_version=no
15124  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15125    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15126    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15127    dynamic_linker='NetBSD (a.out) ld.so'
15128  else
15129    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15130    soname_spec='${libname}${release}${shared_ext}$major'
15131    dynamic_linker='NetBSD ld.elf_so'
15132  fi
15133  shlibpath_var=LD_LIBRARY_PATH
15134  shlibpath_overrides_runpath=yes
15135  hardcode_into_libs=yes
15136  ;;
15137
15138newsos6)
15139  version_type=linux # correct to gnu/linux during the next big refactor
15140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15141  shlibpath_var=LD_LIBRARY_PATH
15142  shlibpath_overrides_runpath=yes
15143  ;;
15144
15145*nto* | *qnx*)
15146  version_type=qnx
15147  need_lib_prefix=no
15148  need_version=no
15149  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150  soname_spec='${libname}${release}${shared_ext}$major'
15151  shlibpath_var=LD_LIBRARY_PATH
15152  shlibpath_overrides_runpath=no
15153  hardcode_into_libs=yes
15154  dynamic_linker='ldqnx.so'
15155  ;;
15156
15157openbsd*)
15158  version_type=sunos
15159  sys_lib_dlsearch_path_spec="/usr/lib"
15160  need_lib_prefix=no
15161  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15162  case $host_os in
15163    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15164    *)				need_version=no  ;;
15165  esac
15166  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15167  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15168  shlibpath_var=LD_LIBRARY_PATH
15169  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15170    case $host_os in
15171      openbsd2.[89] | openbsd2.[89].*)
15172	shlibpath_overrides_runpath=no
15173	;;
15174      *)
15175	shlibpath_overrides_runpath=yes
15176	;;
15177      esac
15178  else
15179    shlibpath_overrides_runpath=yes
15180  fi
15181  ;;
15182
15183os2*)
15184  libname_spec='$name'
15185  shrext_cmds=".dll"
15186  need_lib_prefix=no
15187  library_names_spec='$libname${shared_ext} $libname.a'
15188  dynamic_linker='OS/2 ld.exe'
15189  shlibpath_var=LIBPATH
15190  ;;
15191
15192osf3* | osf4* | osf5*)
15193  version_type=osf
15194  need_lib_prefix=no
15195  need_version=no
15196  soname_spec='${libname}${release}${shared_ext}$major'
15197  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15198  shlibpath_var=LD_LIBRARY_PATH
15199  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15200  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15201  ;;
15202
15203rdos*)
15204  dynamic_linker=no
15205  ;;
15206
15207solaris*)
15208  version_type=linux # correct to gnu/linux during the next big refactor
15209  need_lib_prefix=no
15210  need_version=no
15211  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15212  soname_spec='${libname}${release}${shared_ext}$major'
15213  shlibpath_var=LD_LIBRARY_PATH
15214  shlibpath_overrides_runpath=yes
15215  hardcode_into_libs=yes
15216  # ldd complains unless libraries are executable
15217  postinstall_cmds='chmod +x $lib'
15218  ;;
15219
15220sunos4*)
15221  version_type=sunos
15222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15223  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15224  shlibpath_var=LD_LIBRARY_PATH
15225  shlibpath_overrides_runpath=yes
15226  if test "$with_gnu_ld" = yes; then
15227    need_lib_prefix=no
15228  fi
15229  need_version=yes
15230  ;;
15231
15232sysv4 | sysv4.3*)
15233  version_type=linux # correct to gnu/linux during the next big refactor
15234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15235  soname_spec='${libname}${release}${shared_ext}$major'
15236  shlibpath_var=LD_LIBRARY_PATH
15237  case $host_vendor in
15238    sni)
15239      shlibpath_overrides_runpath=no
15240      need_lib_prefix=no
15241      runpath_var=LD_RUN_PATH
15242      ;;
15243    siemens)
15244      need_lib_prefix=no
15245      ;;
15246    motorola)
15247      need_lib_prefix=no
15248      need_version=no
15249      shlibpath_overrides_runpath=no
15250      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15251      ;;
15252  esac
15253  ;;
15254
15255sysv4*MP*)
15256  if test -d /usr/nec ;then
15257    version_type=linux # correct to gnu/linux during the next big refactor
15258    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15259    soname_spec='$libname${shared_ext}.$major'
15260    shlibpath_var=LD_LIBRARY_PATH
15261  fi
15262  ;;
15263
15264sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15265  version_type=freebsd-elf
15266  need_lib_prefix=no
15267  need_version=no
15268  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15269  soname_spec='${libname}${release}${shared_ext}$major'
15270  shlibpath_var=LD_LIBRARY_PATH
15271  shlibpath_overrides_runpath=yes
15272  hardcode_into_libs=yes
15273  if test "$with_gnu_ld" = yes; then
15274    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15275  else
15276    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15277    case $host_os in
15278      sco3.2v5*)
15279        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15280	;;
15281    esac
15282  fi
15283  sys_lib_dlsearch_path_spec='/usr/lib'
15284  ;;
15285
15286tpf*)
15287  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15288  version_type=linux # correct to gnu/linux during the next big refactor
15289  need_lib_prefix=no
15290  need_version=no
15291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15292  shlibpath_var=LD_LIBRARY_PATH
15293  shlibpath_overrides_runpath=no
15294  hardcode_into_libs=yes
15295  ;;
15296
15297uts4*)
15298  version_type=linux # correct to gnu/linux during the next big refactor
15299  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15300  soname_spec='${libname}${release}${shared_ext}$major'
15301  shlibpath_var=LD_LIBRARY_PATH
15302  ;;
15303
15304*)
15305  dynamic_linker=no
15306  ;;
15307esac
15308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15309$as_echo "$dynamic_linker" >&6; }
15310test "$dynamic_linker" = no && can_build_shared=no
15311
15312variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15313if test "$GCC" = yes; then
15314  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15315fi
15316
15317if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15318  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15319fi
15320if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15321  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15322fi
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15362$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15363hardcode_action_CXX=
15364if test -n "$hardcode_libdir_flag_spec_CXX" ||
15365   test -n "$runpath_var_CXX" ||
15366   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15367
15368  # We can hardcode non-existent directories.
15369  if test "$hardcode_direct_CXX" != no &&
15370     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15371     # have to relink, otherwise we might link with an installed library
15372     # when we should be linking with a yet-to-be-installed one
15373     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15374     test "$hardcode_minus_L_CXX" != no; then
15375    # Linking always hardcodes the temporary library directory.
15376    hardcode_action_CXX=relink
15377  else
15378    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15379    hardcode_action_CXX=immediate
15380  fi
15381else
15382  # We cannot hardcode anything, or else we can only hardcode existing
15383  # directories.
15384  hardcode_action_CXX=unsupported
15385fi
15386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15387$as_echo "$hardcode_action_CXX" >&6; }
15388
15389if test "$hardcode_action_CXX" = relink ||
15390   test "$inherit_rpath_CXX" = yes; then
15391  # Fast installation is not supported
15392  enable_fast_install=no
15393elif test "$shlibpath_overrides_runpath" = yes ||
15394     test "$enable_shared" = no; then
15395  # Fast installation is not necessary
15396  enable_fast_install=needless
15397fi
15398
15399
15400
15401
15402
15403
15404
15405  fi # test -n "$compiler"
15406
15407  CC=$lt_save_CC
15408  CFLAGS=$lt_save_CFLAGS
15409  LDCXX=$LD
15410  LD=$lt_save_LD
15411  GCC=$lt_save_GCC
15412  with_gnu_ld=$lt_save_with_gnu_ld
15413  lt_cv_path_LDCXX=$lt_cv_path_LD
15414  lt_cv_path_LD=$lt_save_path_LD
15415  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15416  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15417fi # test "$_lt_caught_CXX_error" != yes
15418
15419ac_ext=c
15420ac_cpp='$CPP $CPPFLAGS'
15421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15423ac_compiler_gnu=$ac_cv_c_compiler_gnu
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439        ac_config_commands="$ac_config_commands libtool"
15440
15441
15442
15443
15444# Only expand once:
15445
15446
15447
15448
15449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15450$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15451    # Check whether --enable-maintainer-mode was given.
15452if test "${enable_maintainer_mode+set}" = set; then :
15453  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15454else
15455  USE_MAINTAINER_MODE=no
15456fi
15457
15458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15459$as_echo "$USE_MAINTAINER_MODE" >&6; }
15460   if test $USE_MAINTAINER_MODE = yes; then
15461  MAINTAINER_MODE_TRUE=
15462  MAINTAINER_MODE_FALSE='#'
15463else
15464  MAINTAINER_MODE_TRUE='#'
15465  MAINTAINER_MODE_FALSE=
15466fi
15467
15468  MAINT=$MAINTAINER_MODE_TRUE
15469
15470
15471# optional libraries built by default
15472# Check whether --enable-contrib was given.
15473if test "${enable_contrib+set}" = set; then :
15474  enableval=$enable_contrib;
15475fi
15476
15477# Check whether --enable-phs was given.
15478if test "${enable_phs+set}" = set; then :
15479  enableval=$enable_phs;
15480fi
15481
15482# Check whether --enable-cns was given.
15483if test "${enable_cns+set}" = set; then :
15484  enableval=$enable_cns;
15485fi
15486
15487
15488# optional libraries not built by default
15489# Check whether --enable-mmdb was given.
15490if test "${enable_mmdb+set}" = set; then :
15491  enableval=$enable_mmdb;
15492fi
15493
15494# Check whether --enable-minimol was given.
15495if test "${enable_minimol+set}" = set; then :
15496  enableval=$enable_minimol;
15497fi
15498
15499# Check whether --enable-cif was given.
15500if test "${enable_cif+set}" = set; then :
15501  enableval=$enable_cif;
15502fi
15503
15504# Check whether --enable-ccp4 was given.
15505if test "${enable_ccp4+set}" = set; then :
15506  enableval=$enable_ccp4;
15507fi
15508
15509# Check whether --enable-cctbx was given.
15510if test "${enable_cctbx+set}" = set; then :
15511  enableval=$enable_cctbx;
15512fi
15513
15514# Check whether --enable-fortran was given.
15515if test "${enable_fortran+set}" = set; then :
15516  enableval=$enable_fortran;
15517fi
15518
15519
15520 if test "x$enable_contrib" != xno; then
15521  BUILD_CONTRIB_TRUE=
15522  BUILD_CONTRIB_FALSE='#'
15523else
15524  BUILD_CONTRIB_TRUE='#'
15525  BUILD_CONTRIB_FALSE=
15526fi
15527
15528 if test "x$enable_phs" != xno; then
15529  BUILD_PHS_TRUE=
15530  BUILD_PHS_FALSE='#'
15531else
15532  BUILD_PHS_TRUE='#'
15533  BUILD_PHS_FALSE=
15534fi
15535
15536 if test "x$enable_cns" != xno; then
15537  BUILD_CNS_TRUE=
15538  BUILD_CNS_FALSE='#'
15539else
15540  BUILD_CNS_TRUE='#'
15541  BUILD_CNS_FALSE=
15542fi
15543
15544 if test "x$enable_mmdb" = xyes; then
15545  BUILD_MMDB_TRUE=
15546  BUILD_MMDB_FALSE='#'
15547else
15548  BUILD_MMDB_TRUE='#'
15549  BUILD_MMDB_FALSE=
15550fi
15551
15552 if test "x$enable_mmdbold" = xyes; then
15553  BUILD_MMDBOLD_TRUE=
15554  BUILD_MMDBOLD_FALSE='#'
15555else
15556  BUILD_MMDBOLD_TRUE='#'
15557  BUILD_MMDBOLD_FALSE=
15558fi
15559
15560 if test "x$enable_minimol" = xyes; then
15561  BUILD_MINIMOL_TRUE=
15562  BUILD_MINIMOL_FALSE='#'
15563else
15564  BUILD_MINIMOL_TRUE='#'
15565  BUILD_MINIMOL_FALSE=
15566fi
15567
15568 if test "x$enable_cif" = xyes; then
15569  BUILD_CIF_TRUE=
15570  BUILD_CIF_FALSE='#'
15571else
15572  BUILD_CIF_TRUE='#'
15573  BUILD_CIF_FALSE=
15574fi
15575
15576 if test "x$enable_ccp4" = xyes; then
15577  BUILD_CCP4_TRUE=
15578  BUILD_CCP4_FALSE='#'
15579else
15580  BUILD_CCP4_TRUE='#'
15581  BUILD_CCP4_FALSE=
15582fi
15583
15584 if test "x$enable_cctbx" = xyes; then
15585  BUILD_CCTBX_TRUE=
15586  BUILD_CCTBX_FALSE='#'
15587else
15588  BUILD_CCTBX_TRUE='#'
15589  BUILD_CCTBX_FALSE=
15590fi
15591
15592 if test "x$enable_fortran" = xyes; then
15593  BUILD_FORTRAN_TRUE=
15594  BUILD_FORTRAN_FALSE='#'
15595else
15596  BUILD_FORTRAN_TRUE='#'
15597  BUILD_FORTRAN_FALSE=
15598fi
15599
15600
15601if test "x$enable_fortran" = "xyes"; then
15602    ac_ext=f
15603ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15604ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15605ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15606if test -n "$ac_tool_prefix"; then
15607  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 pgfortran pgf95 lf95 ftn nagfor
15608  do
15609    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15610set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15612$as_echo_n "checking for $ac_word... " >&6; }
15613if ${ac_cv_prog_F77+:} false; then :
15614  $as_echo_n "(cached) " >&6
15615else
15616  if test -n "$F77"; then
15617  ac_cv_prog_F77="$F77" # Let the user override the test.
15618else
15619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15620for as_dir in $PATH
15621do
15622  IFS=$as_save_IFS
15623  test -z "$as_dir" && as_dir=.
15624    for ac_exec_ext in '' $ac_executable_extensions; do
15625  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15626    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
15627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15628    break 2
15629  fi
15630done
15631  done
15632IFS=$as_save_IFS
15633
15634fi
15635fi
15636F77=$ac_cv_prog_F77
15637if test -n "$F77"; then
15638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
15639$as_echo "$F77" >&6; }
15640else
15641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15642$as_echo "no" >&6; }
15643fi
15644
15645
15646    test -n "$F77" && break
15647  done
15648fi
15649if test -z "$F77"; then
15650  ac_ct_F77=$F77
15651  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 pgfortran pgf95 lf95 ftn nagfor
15652do
15653  # Extract the first word of "$ac_prog", so it can be a program name with args.
15654set dummy $ac_prog; ac_word=$2
15655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15656$as_echo_n "checking for $ac_word... " >&6; }
15657if ${ac_cv_prog_ac_ct_F77+:} false; then :
15658  $as_echo_n "(cached) " >&6
15659else
15660  if test -n "$ac_ct_F77"; then
15661  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
15662else
15663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15664for as_dir in $PATH
15665do
15666  IFS=$as_save_IFS
15667  test -z "$as_dir" && as_dir=.
15668    for ac_exec_ext in '' $ac_executable_extensions; do
15669  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15670    ac_cv_prog_ac_ct_F77="$ac_prog"
15671    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15672    break 2
15673  fi
15674done
15675  done
15676IFS=$as_save_IFS
15677
15678fi
15679fi
15680ac_ct_F77=$ac_cv_prog_ac_ct_F77
15681if test -n "$ac_ct_F77"; then
15682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
15683$as_echo "$ac_ct_F77" >&6; }
15684else
15685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15686$as_echo "no" >&6; }
15687fi
15688
15689
15690  test -n "$ac_ct_F77" && break
15691done
15692
15693  if test "x$ac_ct_F77" = x; then
15694    F77=""
15695  else
15696    case $cross_compiling:$ac_tool_warned in
15697yes:)
15698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15700ac_tool_warned=yes ;;
15701esac
15702    F77=$ac_ct_F77
15703  fi
15704fi
15705
15706
15707# Provide some information about the compiler.
15708$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
15709set X $ac_compile
15710ac_compiler=$2
15711for ac_option in --version -v -V -qversion; do
15712  { { ac_try="$ac_compiler $ac_option >&5"
15713case "(($ac_try" in
15714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715  *) ac_try_echo=$ac_try;;
15716esac
15717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15718$as_echo "$ac_try_echo"; } >&5
15719  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15720  ac_status=$?
15721  if test -s conftest.err; then
15722    sed '10a\
15723... rest of stderr output deleted ...
15724         10q' conftest.err >conftest.er1
15725    cat conftest.er1 >&5
15726  fi
15727  rm -f conftest.er1 conftest.err
15728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15729  test $ac_status = 0; }
15730done
15731rm -f a.out
15732
15733# If we don't use `.F' as extension, the preprocessor is not run on the
15734# input file.  (Note that this only needs to work for GNU compilers.)
15735ac_save_ext=$ac_ext
15736ac_ext=F
15737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
15738$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
15739if ${ac_cv_f77_compiler_gnu+:} false; then :
15740  $as_echo_n "(cached) " >&6
15741else
15742  cat > conftest.$ac_ext <<_ACEOF
15743      program main
15744#ifndef __GNUC__
15745       choke me
15746#endif
15747
15748      end
15749_ACEOF
15750if ac_fn_f77_try_compile "$LINENO"; then :
15751  ac_compiler_gnu=yes
15752else
15753  ac_compiler_gnu=no
15754fi
15755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15756ac_cv_f77_compiler_gnu=$ac_compiler_gnu
15757
15758fi
15759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
15760$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
15761ac_ext=$ac_save_ext
15762ac_test_FFLAGS=${FFLAGS+set}
15763ac_save_FFLAGS=$FFLAGS
15764FFLAGS=
15765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
15766$as_echo_n "checking whether $F77 accepts -g... " >&6; }
15767if ${ac_cv_prog_f77_g+:} false; then :
15768  $as_echo_n "(cached) " >&6
15769else
15770  FFLAGS=-g
15771cat > conftest.$ac_ext <<_ACEOF
15772      program main
15773
15774      end
15775_ACEOF
15776if ac_fn_f77_try_compile "$LINENO"; then :
15777  ac_cv_prog_f77_g=yes
15778else
15779  ac_cv_prog_f77_g=no
15780fi
15781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15782
15783fi
15784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
15785$as_echo "$ac_cv_prog_f77_g" >&6; }
15786if test "$ac_test_FFLAGS" = set; then
15787  FFLAGS=$ac_save_FFLAGS
15788elif test $ac_cv_prog_f77_g = yes; then
15789  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
15790    FFLAGS="-g -O2"
15791  else
15792    FFLAGS="-g"
15793  fi
15794else
15795  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
15796    FFLAGS="-O2"
15797  else
15798    FFLAGS=
15799  fi
15800fi
15801
15802if test $ac_compiler_gnu = yes; then
15803  G77=yes
15804else
15805  G77=
15806fi
15807ac_ext=c
15808ac_cpp='$CPP $CPPFLAGS'
15809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15811ac_compiler_gnu=$ac_cv_c_compiler_gnu
15812
15813      ac_ext=f
15814ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15815ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15816ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15817
15818if test -z "$F77" || test "X$F77" = "Xno"; then
15819  _lt_disable_F77=yes
15820fi
15821
15822archive_cmds_need_lc_F77=no
15823allow_undefined_flag_F77=
15824always_export_symbols_F77=no
15825archive_expsym_cmds_F77=
15826export_dynamic_flag_spec_F77=
15827hardcode_direct_F77=no
15828hardcode_direct_absolute_F77=no
15829hardcode_libdir_flag_spec_F77=
15830hardcode_libdir_separator_F77=
15831hardcode_minus_L_F77=no
15832hardcode_automatic_F77=no
15833inherit_rpath_F77=no
15834module_cmds_F77=
15835module_expsym_cmds_F77=
15836link_all_deplibs_F77=unknown
15837old_archive_cmds_F77=$old_archive_cmds
15838reload_flag_F77=$reload_flag
15839reload_cmds_F77=$reload_cmds
15840no_undefined_flag_F77=
15841whole_archive_flag_spec_F77=
15842enable_shared_with_static_runtimes_F77=no
15843
15844# Source file extension for f77 test sources.
15845ac_ext=f
15846
15847# Object file extension for compiled f77 test sources.
15848objext=o
15849objext_F77=$objext
15850
15851# No sense in running all these tests if we already determined that
15852# the F77 compiler isn't working.  Some variables (like enable_shared)
15853# are currently assumed to apply to all compilers on this platform,
15854# and will be corrupted by setting them based on a non-working compiler.
15855if test "$_lt_disable_F77" != yes; then
15856  # Code to be used in simple compile tests
15857  lt_simple_compile_test_code="\
15858      subroutine t
15859      return
15860      end
15861"
15862
15863  # Code to be used in simple link tests
15864  lt_simple_link_test_code="\
15865      program t
15866      end
15867"
15868
15869  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15870
15871
15872
15873
15874
15875
15876# If no C compiler was specified, use CC.
15877LTCC=${LTCC-"$CC"}
15878
15879# If no C compiler flags were specified, use CFLAGS.
15880LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15881
15882# Allow CC to be a program name with arguments.
15883compiler=$CC
15884
15885
15886  # save warnings/boilerplate of simple test code
15887  ac_outfile=conftest.$ac_objext
15888echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15889eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15890_lt_compiler_boilerplate=`cat conftest.err`
15891$RM conftest*
15892
15893  ac_outfile=conftest.$ac_objext
15894echo "$lt_simple_link_test_code" >conftest.$ac_ext
15895eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15896_lt_linker_boilerplate=`cat conftest.err`
15897$RM -r conftest*
15898
15899
15900  # Allow CC to be a program name with arguments.
15901  lt_save_CC="$CC"
15902  lt_save_GCC=$GCC
15903  lt_save_CFLAGS=$CFLAGS
15904  CC=${F77-"f77"}
15905  CFLAGS=$FFLAGS
15906  compiler=$CC
15907  compiler_F77=$CC
15908  for cc_temp in $compiler""; do
15909  case $cc_temp in
15910    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15911    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15912    \-*) ;;
15913    *) break;;
15914  esac
15915done
15916cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15917
15918  GCC=$G77
15919  if test -n "$compiler"; then
15920    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15921$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15922    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15923$as_echo "$can_build_shared" >&6; }
15924
15925    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15926$as_echo_n "checking whether to build shared libraries... " >&6; }
15927    test "$can_build_shared" = "no" && enable_shared=no
15928
15929    # On AIX, shared libraries and static libraries use the same namespace, and
15930    # are all built from PIC.
15931    case $host_os in
15932      aix3*)
15933        test "$enable_shared" = yes && enable_static=no
15934        if test -n "$RANLIB"; then
15935          archive_cmds="$archive_cmds~\$RANLIB \$lib"
15936          postinstall_cmds='$RANLIB $lib'
15937        fi
15938        ;;
15939      aix[4-9]*)
15940	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15941	  test "$enable_shared" = yes && enable_static=no
15942	fi
15943        ;;
15944    esac
15945    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15946$as_echo "$enable_shared" >&6; }
15947
15948    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15949$as_echo_n "checking whether to build static libraries... " >&6; }
15950    # Make sure either enable_shared or enable_static is yes.
15951    test "$enable_shared" = yes || enable_static=yes
15952    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15953$as_echo "$enable_static" >&6; }
15954
15955    GCC_F77="$G77"
15956    LD_F77="$LD"
15957
15958    ## CAVEAT EMPTOR:
15959    ## There is no encapsulation within the following macros, do not change
15960    ## the running order or otherwise move them around unless you know exactly
15961    ## what you are doing...
15962    lt_prog_compiler_wl_F77=
15963lt_prog_compiler_pic_F77=
15964lt_prog_compiler_static_F77=
15965
15966
15967  if test "$GCC" = yes; then
15968    lt_prog_compiler_wl_F77='-Wl,'
15969    lt_prog_compiler_static_F77='-static'
15970
15971    case $host_os in
15972      aix*)
15973      # All AIX code is PIC.
15974      if test "$host_cpu" = ia64; then
15975	# AIX 5 now supports IA64 processor
15976	lt_prog_compiler_static_F77='-Bstatic'
15977      fi
15978      ;;
15979
15980    amigaos*)
15981      case $host_cpu in
15982      powerpc)
15983            # see comment about AmigaOS4 .so support
15984            lt_prog_compiler_pic_F77='-fPIC'
15985        ;;
15986      m68k)
15987            # FIXME: we need at least 68020 code to build shared libraries, but
15988            # adding the `-m68020' flag to GCC prevents building anything better,
15989            # like `-m68040'.
15990            lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15991        ;;
15992      esac
15993      ;;
15994
15995    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15996      # PIC is the default for these OSes.
15997      ;;
15998
15999    mingw* | cygwin* | pw32* | os2* | cegcc*)
16000      # This hack is so that the source file can tell whether it is being
16001      # built for inclusion in a dll (and should export symbols for example).
16002      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16003      # (--disable-auto-import) libraries
16004      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16005      ;;
16006
16007    darwin* | rhapsody*)
16008      # PIC is the default on this platform
16009      # Common symbols not allowed in MH_DYLIB files
16010      lt_prog_compiler_pic_F77='-fno-common'
16011      ;;
16012
16013    haiku*)
16014      # PIC is the default for Haiku.
16015      # The "-static" flag exists, but is broken.
16016      lt_prog_compiler_static_F77=
16017      ;;
16018
16019    hpux*)
16020      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16021      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16022      # sets the default TLS model and affects inlining.
16023      case $host_cpu in
16024      hppa*64*)
16025	# +Z the default
16026	;;
16027      *)
16028	lt_prog_compiler_pic_F77='-fPIC'
16029	;;
16030      esac
16031      ;;
16032
16033    interix[3-9]*)
16034      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16035      # Instead, we relocate shared libraries at runtime.
16036      ;;
16037
16038    msdosdjgpp*)
16039      # Just because we use GCC doesn't mean we suddenly get shared libraries
16040      # on systems that don't support them.
16041      lt_prog_compiler_can_build_shared_F77=no
16042      enable_shared=no
16043      ;;
16044
16045    *nto* | *qnx*)
16046      # QNX uses GNU C++, but need to define -shared option too, otherwise
16047      # it will coredump.
16048      lt_prog_compiler_pic_F77='-fPIC -shared'
16049      ;;
16050
16051    sysv4*MP*)
16052      if test -d /usr/nec; then
16053	lt_prog_compiler_pic_F77=-Kconform_pic
16054      fi
16055      ;;
16056
16057    *)
16058      lt_prog_compiler_pic_F77='-fPIC'
16059      ;;
16060    esac
16061
16062    case $cc_basename in
16063    nvcc*) # Cuda Compiler Driver 2.2
16064      lt_prog_compiler_wl_F77='-Xlinker '
16065      if test -n "$lt_prog_compiler_pic_F77"; then
16066        lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
16067      fi
16068      ;;
16069    esac
16070  else
16071    # PORTME Check for flag to pass linker flags through the system compiler.
16072    case $host_os in
16073    aix*)
16074      lt_prog_compiler_wl_F77='-Wl,'
16075      if test "$host_cpu" = ia64; then
16076	# AIX 5 now supports IA64 processor
16077	lt_prog_compiler_static_F77='-Bstatic'
16078      else
16079	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16080      fi
16081      ;;
16082
16083    mingw* | cygwin* | pw32* | os2* | cegcc*)
16084      # This hack is so that the source file can tell whether it is being
16085      # built for inclusion in a dll (and should export symbols for example).
16086      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16087      ;;
16088
16089    hpux9* | hpux10* | hpux11*)
16090      lt_prog_compiler_wl_F77='-Wl,'
16091      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16092      # not for PA HP-UX.
16093      case $host_cpu in
16094      hppa*64*|ia64*)
16095	# +Z the default
16096	;;
16097      *)
16098	lt_prog_compiler_pic_F77='+Z'
16099	;;
16100      esac
16101      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16102      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16103      ;;
16104
16105    irix5* | irix6* | nonstopux*)
16106      lt_prog_compiler_wl_F77='-Wl,'
16107      # PIC (with -KPIC) is the default.
16108      lt_prog_compiler_static_F77='-non_shared'
16109      ;;
16110
16111    linux* | k*bsd*-gnu | kopensolaris*-gnu)
16112      case $cc_basename in
16113      # old Intel for x86_64 which still supported -KPIC.
16114      ecc*)
16115	lt_prog_compiler_wl_F77='-Wl,'
16116	lt_prog_compiler_pic_F77='-KPIC'
16117	lt_prog_compiler_static_F77='-static'
16118        ;;
16119      # icc used to be incompatible with GCC.
16120      # ICC 10 doesn't accept -KPIC any more.
16121      icc* | ifort*)
16122	lt_prog_compiler_wl_F77='-Wl,'
16123	lt_prog_compiler_pic_F77='-fPIC'
16124	lt_prog_compiler_static_F77='-static'
16125        ;;
16126      # Lahey Fortran 8.1.
16127      lf95*)
16128	lt_prog_compiler_wl_F77='-Wl,'
16129	lt_prog_compiler_pic_F77='--shared'
16130	lt_prog_compiler_static_F77='--static'
16131	;;
16132      nagfor*)
16133	# NAG Fortran compiler
16134	lt_prog_compiler_wl_F77='-Wl,-Wl,,'
16135	lt_prog_compiler_pic_F77='-PIC'
16136	lt_prog_compiler_static_F77='-Bstatic'
16137	;;
16138      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16139        # Portland Group compilers (*not* the Pentium gcc compiler,
16140	# which looks to be a dead project)
16141	lt_prog_compiler_wl_F77='-Wl,'
16142	lt_prog_compiler_pic_F77='-fpic'
16143	lt_prog_compiler_static_F77='-Bstatic'
16144        ;;
16145      ccc*)
16146        lt_prog_compiler_wl_F77='-Wl,'
16147        # All Alpha code is PIC.
16148        lt_prog_compiler_static_F77='-non_shared'
16149        ;;
16150      xl* | bgxl* | bgf* | mpixl*)
16151	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16152	lt_prog_compiler_wl_F77='-Wl,'
16153	lt_prog_compiler_pic_F77='-qpic'
16154	lt_prog_compiler_static_F77='-qstaticlink'
16155	;;
16156      *)
16157	case `$CC -V 2>&1 | sed 5q` in
16158	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
16159	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16160	  lt_prog_compiler_pic_F77='-KPIC'
16161	  lt_prog_compiler_static_F77='-Bstatic'
16162	  lt_prog_compiler_wl_F77=''
16163	  ;;
16164	*Sun\ F* | *Sun*Fortran*)
16165	  lt_prog_compiler_pic_F77='-KPIC'
16166	  lt_prog_compiler_static_F77='-Bstatic'
16167	  lt_prog_compiler_wl_F77='-Qoption ld '
16168	  ;;
16169	*Sun\ C*)
16170	  # Sun C 5.9
16171	  lt_prog_compiler_pic_F77='-KPIC'
16172	  lt_prog_compiler_static_F77='-Bstatic'
16173	  lt_prog_compiler_wl_F77='-Wl,'
16174	  ;;
16175        *Intel*\ [CF]*Compiler*)
16176	  lt_prog_compiler_wl_F77='-Wl,'
16177	  lt_prog_compiler_pic_F77='-fPIC'
16178	  lt_prog_compiler_static_F77='-static'
16179	  ;;
16180	*Portland\ Group*)
16181	  lt_prog_compiler_wl_F77='-Wl,'
16182	  lt_prog_compiler_pic_F77='-fpic'
16183	  lt_prog_compiler_static_F77='-Bstatic'
16184	  ;;
16185	esac
16186	;;
16187      esac
16188      ;;
16189
16190    newsos6)
16191      lt_prog_compiler_pic_F77='-KPIC'
16192      lt_prog_compiler_static_F77='-Bstatic'
16193      ;;
16194
16195    *nto* | *qnx*)
16196      # QNX uses GNU C++, but need to define -shared option too, otherwise
16197      # it will coredump.
16198      lt_prog_compiler_pic_F77='-fPIC -shared'
16199      ;;
16200
16201    osf3* | osf4* | osf5*)
16202      lt_prog_compiler_wl_F77='-Wl,'
16203      # All OSF/1 code is PIC.
16204      lt_prog_compiler_static_F77='-non_shared'
16205      ;;
16206
16207    rdos*)
16208      lt_prog_compiler_static_F77='-non_shared'
16209      ;;
16210
16211    solaris*)
16212      lt_prog_compiler_pic_F77='-KPIC'
16213      lt_prog_compiler_static_F77='-Bstatic'
16214      case $cc_basename in
16215      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
16216	lt_prog_compiler_wl_F77='-Qoption ld ';;
16217      *)
16218	lt_prog_compiler_wl_F77='-Wl,';;
16219      esac
16220      ;;
16221
16222    sunos4*)
16223      lt_prog_compiler_wl_F77='-Qoption ld '
16224      lt_prog_compiler_pic_F77='-PIC'
16225      lt_prog_compiler_static_F77='-Bstatic'
16226      ;;
16227
16228    sysv4 | sysv4.2uw2* | sysv4.3*)
16229      lt_prog_compiler_wl_F77='-Wl,'
16230      lt_prog_compiler_pic_F77='-KPIC'
16231      lt_prog_compiler_static_F77='-Bstatic'
16232      ;;
16233
16234    sysv4*MP*)
16235      if test -d /usr/nec ;then
16236	lt_prog_compiler_pic_F77='-Kconform_pic'
16237	lt_prog_compiler_static_F77='-Bstatic'
16238      fi
16239      ;;
16240
16241    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16242      lt_prog_compiler_wl_F77='-Wl,'
16243      lt_prog_compiler_pic_F77='-KPIC'
16244      lt_prog_compiler_static_F77='-Bstatic'
16245      ;;
16246
16247    unicos*)
16248      lt_prog_compiler_wl_F77='-Wl,'
16249      lt_prog_compiler_can_build_shared_F77=no
16250      ;;
16251
16252    uts4*)
16253      lt_prog_compiler_pic_F77='-pic'
16254      lt_prog_compiler_static_F77='-Bstatic'
16255      ;;
16256
16257    *)
16258      lt_prog_compiler_can_build_shared_F77=no
16259      ;;
16260    esac
16261  fi
16262
16263case $host_os in
16264  # For platforms which do not support PIC, -DPIC is meaningless:
16265  *djgpp*)
16266    lt_prog_compiler_pic_F77=
16267    ;;
16268  *)
16269    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16270    ;;
16271esac
16272
16273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16274$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16275if ${lt_cv_prog_compiler_pic_F77+:} false; then :
16276  $as_echo_n "(cached) " >&6
16277else
16278  lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
16279fi
16280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
16281$as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
16282lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
16283
16284#
16285# Check to make sure the PIC flag actually works.
16286#
16287if test -n "$lt_prog_compiler_pic_F77"; then
16288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16289$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
16290if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
16291  $as_echo_n "(cached) " >&6
16292else
16293  lt_cv_prog_compiler_pic_works_F77=no
16294   ac_outfile=conftest.$ac_objext
16295   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16296   lt_compiler_flag="$lt_prog_compiler_pic_F77"
16297   # Insert the option either (1) after the last *FLAGS variable, or
16298   # (2) before a word containing "conftest.", or (3) at the end.
16299   # Note that $ac_compile itself does not contain backslashes and begins
16300   # with a dollar sign (not a hyphen), so the echo should work correctly.
16301   # The option is referenced via a variable to avoid confusing sed.
16302   lt_compile=`echo "$ac_compile" | $SED \
16303   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16304   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16305   -e 's:$: $lt_compiler_flag:'`
16306   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16307   (eval "$lt_compile" 2>conftest.err)
16308   ac_status=$?
16309   cat conftest.err >&5
16310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311   if (exit $ac_status) && test -s "$ac_outfile"; then
16312     # The compiler can only warn and ignore the option if not recognized
16313     # So say no if there are warnings other than the usual output.
16314     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16315     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16316     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16317       lt_cv_prog_compiler_pic_works_F77=yes
16318     fi
16319   fi
16320   $RM conftest*
16321
16322fi
16323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
16324$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
16325
16326if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
16327    case $lt_prog_compiler_pic_F77 in
16328     "" | " "*) ;;
16329     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16330     esac
16331else
16332    lt_prog_compiler_pic_F77=
16333     lt_prog_compiler_can_build_shared_F77=no
16334fi
16335
16336fi
16337
16338
16339
16340
16341
16342#
16343# Check to make sure the static flag actually works.
16344#
16345wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16347$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16348if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
16349  $as_echo_n "(cached) " >&6
16350else
16351  lt_cv_prog_compiler_static_works_F77=no
16352   save_LDFLAGS="$LDFLAGS"
16353   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16354   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16355   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16356     # The linker can only warn and ignore the option if not recognized
16357     # So say no if there are warnings
16358     if test -s conftest.err; then
16359       # Append any errors to the config.log.
16360       cat conftest.err 1>&5
16361       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16362       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16363       if diff conftest.exp conftest.er2 >/dev/null; then
16364         lt_cv_prog_compiler_static_works_F77=yes
16365       fi
16366     else
16367       lt_cv_prog_compiler_static_works_F77=yes
16368     fi
16369   fi
16370   $RM -r conftest*
16371   LDFLAGS="$save_LDFLAGS"
16372
16373fi
16374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
16375$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
16376
16377if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
16378    :
16379else
16380    lt_prog_compiler_static_F77=
16381fi
16382
16383
16384
16385
16386    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16387$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16388if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
16389  $as_echo_n "(cached) " >&6
16390else
16391  lt_cv_prog_compiler_c_o_F77=no
16392   $RM -r conftest 2>/dev/null
16393   mkdir conftest
16394   cd conftest
16395   mkdir out
16396   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16397
16398   lt_compiler_flag="-o out/conftest2.$ac_objext"
16399   # Insert the option either (1) after the last *FLAGS variable, or
16400   # (2) before a word containing "conftest.", or (3) at the end.
16401   # Note that $ac_compile itself does not contain backslashes and begins
16402   # with a dollar sign (not a hyphen), so the echo should work correctly.
16403   lt_compile=`echo "$ac_compile" | $SED \
16404   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16405   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16406   -e 's:$: $lt_compiler_flag:'`
16407   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16408   (eval "$lt_compile" 2>out/conftest.err)
16409   ac_status=$?
16410   cat out/conftest.err >&5
16411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16413   then
16414     # The compiler can only warn and ignore the option if not recognized
16415     # So say no if there are warnings
16416     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16417     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16418     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16419       lt_cv_prog_compiler_c_o_F77=yes
16420     fi
16421   fi
16422   chmod u+w . 2>&5
16423   $RM conftest*
16424   # SGI C++ compiler will create directory out/ii_files/ for
16425   # template instantiation
16426   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16427   $RM out/* && rmdir out
16428   cd ..
16429   $RM -r conftest
16430   $RM conftest*
16431
16432fi
16433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
16434$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
16435
16436
16437
16438    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16439$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16440if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
16441  $as_echo_n "(cached) " >&6
16442else
16443  lt_cv_prog_compiler_c_o_F77=no
16444   $RM -r conftest 2>/dev/null
16445   mkdir conftest
16446   cd conftest
16447   mkdir out
16448   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16449
16450   lt_compiler_flag="-o out/conftest2.$ac_objext"
16451   # Insert the option either (1) after the last *FLAGS variable, or
16452   # (2) before a word containing "conftest.", or (3) at the end.
16453   # Note that $ac_compile itself does not contain backslashes and begins
16454   # with a dollar sign (not a hyphen), so the echo should work correctly.
16455   lt_compile=`echo "$ac_compile" | $SED \
16456   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16457   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16458   -e 's:$: $lt_compiler_flag:'`
16459   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16460   (eval "$lt_compile" 2>out/conftest.err)
16461   ac_status=$?
16462   cat out/conftest.err >&5
16463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16465   then
16466     # The compiler can only warn and ignore the option if not recognized
16467     # So say no if there are warnings
16468     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16469     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16470     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16471       lt_cv_prog_compiler_c_o_F77=yes
16472     fi
16473   fi
16474   chmod u+w . 2>&5
16475   $RM conftest*
16476   # SGI C++ compiler will create directory out/ii_files/ for
16477   # template instantiation
16478   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16479   $RM out/* && rmdir out
16480   cd ..
16481   $RM -r conftest
16482   $RM conftest*
16483
16484fi
16485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
16486$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
16487
16488
16489
16490
16491hard_links="nottested"
16492if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16493  # do not overwrite the value of need_locks provided by the user
16494  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16495$as_echo_n "checking if we can lock with hard links... " >&6; }
16496  hard_links=yes
16497  $RM conftest*
16498  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16499  touch conftest.a
16500  ln conftest.a conftest.b 2>&5 || hard_links=no
16501  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16503$as_echo "$hard_links" >&6; }
16504  if test "$hard_links" = no; then
16505    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16506$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16507    need_locks=warn
16508  fi
16509else
16510  need_locks=no
16511fi
16512
16513
16514
16515    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16516$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16517
16518  runpath_var=
16519  allow_undefined_flag_F77=
16520  always_export_symbols_F77=no
16521  archive_cmds_F77=
16522  archive_expsym_cmds_F77=
16523  compiler_needs_object_F77=no
16524  enable_shared_with_static_runtimes_F77=no
16525  export_dynamic_flag_spec_F77=
16526  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16527  hardcode_automatic_F77=no
16528  hardcode_direct_F77=no
16529  hardcode_direct_absolute_F77=no
16530  hardcode_libdir_flag_spec_F77=
16531  hardcode_libdir_separator_F77=
16532  hardcode_minus_L_F77=no
16533  hardcode_shlibpath_var_F77=unsupported
16534  inherit_rpath_F77=no
16535  link_all_deplibs_F77=unknown
16536  module_cmds_F77=
16537  module_expsym_cmds_F77=
16538  old_archive_from_new_cmds_F77=
16539  old_archive_from_expsyms_cmds_F77=
16540  thread_safe_flag_spec_F77=
16541  whole_archive_flag_spec_F77=
16542  # include_expsyms should be a list of space-separated symbols to be *always*
16543  # included in the symbol list
16544  include_expsyms_F77=
16545  # exclude_expsyms can be an extended regexp of symbols to exclude
16546  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16547  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16548  # as well as any symbol that contains `d'.
16549  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16550  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16551  # platforms (ab)use it in PIC code, but their linkers get confused if
16552  # the symbol is explicitly referenced.  Since portable code cannot
16553  # rely on this symbol name, it's probably fine to never include it in
16554  # preloaded symbol tables.
16555  # Exclude shared library initialization/finalization symbols.
16556  extract_expsyms_cmds=
16557
16558  case $host_os in
16559  cygwin* | mingw* | pw32* | cegcc*)
16560    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16561    # When not using gcc, we currently assume that we are using
16562    # Microsoft Visual C++.
16563    if test "$GCC" != yes; then
16564      with_gnu_ld=no
16565    fi
16566    ;;
16567  interix*)
16568    # we just hope/assume this is gcc and not c89 (= MSVC++)
16569    with_gnu_ld=yes
16570    ;;
16571  openbsd*)
16572    with_gnu_ld=no
16573    ;;
16574  esac
16575
16576  ld_shlibs_F77=yes
16577
16578  # On some targets, GNU ld is compatible enough with the native linker
16579  # that we're better off using the native interface for both.
16580  lt_use_gnu_ld_interface=no
16581  if test "$with_gnu_ld" = yes; then
16582    case $host_os in
16583      aix*)
16584	# The AIX port of GNU ld has always aspired to compatibility
16585	# with the native linker.  However, as the warning in the GNU ld
16586	# block says, versions before 2.19.5* couldn't really create working
16587	# shared libraries, regardless of the interface used.
16588	case `$LD -v 2>&1` in
16589	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16590	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16591	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16592	  *)
16593	    lt_use_gnu_ld_interface=yes
16594	    ;;
16595	esac
16596	;;
16597      *)
16598	lt_use_gnu_ld_interface=yes
16599	;;
16600    esac
16601  fi
16602
16603  if test "$lt_use_gnu_ld_interface" = yes; then
16604    # If archive_cmds runs LD, not CC, wlarc should be empty
16605    wlarc='${wl}'
16606
16607    # Set some defaults for GNU ld with shared library support. These
16608    # are reset later if shared libraries are not supported. Putting them
16609    # here allows them to be overridden if necessary.
16610    runpath_var=LD_RUN_PATH
16611    hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16612    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16613    # ancient GNU ld didn't support --whole-archive et. al.
16614    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16615      whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16616    else
16617      whole_archive_flag_spec_F77=
16618    fi
16619    supports_anon_versioning=no
16620    case `$LD -v 2>&1` in
16621      *GNU\ gold*) supports_anon_versioning=yes ;;
16622      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16623      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16624      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16625      *\ 2.11.*) ;; # other 2.11 versions
16626      *) supports_anon_versioning=yes ;;
16627    esac
16628
16629    # See if GNU ld supports shared libraries.
16630    case $host_os in
16631    aix[3-9]*)
16632      # On AIX/PPC, the GNU linker is very broken
16633      if test "$host_cpu" != ia64; then
16634	ld_shlibs_F77=no
16635	cat <<_LT_EOF 1>&2
16636
16637*** Warning: the GNU linker, at least up to release 2.19, is reported
16638*** to be unable to reliably create shared libraries on AIX.
16639*** Therefore, libtool is disabling shared libraries support.  If you
16640*** really care for shared libraries, you may want to install binutils
16641*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16642*** You will then need to restart the configuration process.
16643
16644_LT_EOF
16645      fi
16646      ;;
16647
16648    amigaos*)
16649      case $host_cpu in
16650      powerpc)
16651            # see comment about AmigaOS4 .so support
16652            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16653            archive_expsym_cmds_F77=''
16654        ;;
16655      m68k)
16656            archive_cmds_F77='$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)'
16657            hardcode_libdir_flag_spec_F77='-L$libdir'
16658            hardcode_minus_L_F77=yes
16659        ;;
16660      esac
16661      ;;
16662
16663    beos*)
16664      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16665	allow_undefined_flag_F77=unsupported
16666	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16667	# support --undefined.  This deserves some investigation.  FIXME
16668	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16669      else
16670	ld_shlibs_F77=no
16671      fi
16672      ;;
16673
16674    cygwin* | mingw* | pw32* | cegcc*)
16675      # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16676      # as there is no search path for DLLs.
16677      hardcode_libdir_flag_spec_F77='-L$libdir'
16678      export_dynamic_flag_spec_F77='${wl}--export-all-symbols'
16679      allow_undefined_flag_F77=unsupported
16680      always_export_symbols_F77=no
16681      enable_shared_with_static_runtimes_F77=yes
16682      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16683      exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16684
16685      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16686        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16687	# If the export-symbols file already is a .def file (1st line
16688	# is EXPORTS), use it as is; otherwise, prepend...
16689	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16690	  cp $export_symbols $output_objdir/$soname.def;
16691	else
16692	  echo EXPORTS > $output_objdir/$soname.def;
16693	  cat $export_symbols >> $output_objdir/$soname.def;
16694	fi~
16695	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16696      else
16697	ld_shlibs_F77=no
16698      fi
16699      ;;
16700
16701    haiku*)
16702      archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16703      link_all_deplibs_F77=yes
16704      ;;
16705
16706    interix[3-9]*)
16707      hardcode_direct_F77=no
16708      hardcode_shlibpath_var_F77=no
16709      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16710      export_dynamic_flag_spec_F77='${wl}-E'
16711      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16712      # Instead, shared libraries are loaded at an image base (0x10000000 by
16713      # default) and relocated if they conflict, which is a slow very memory
16714      # consuming and fragmenting process.  To avoid this, we pick a random,
16715      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16716      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16717      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16718      archive_expsym_cmds_F77='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'
16719      ;;
16720
16721    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16722      tmp_diet=no
16723      if test "$host_os" = linux-dietlibc; then
16724	case $cc_basename in
16725	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16726	esac
16727      fi
16728      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16729	 && test "$tmp_diet" = no
16730      then
16731	tmp_addflag=' $pic_flag'
16732	tmp_sharedflag='-shared'
16733	case $cc_basename,$host_cpu in
16734        pgcc*)				# Portland Group C compiler
16735	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16736	  tmp_addflag=' $pic_flag'
16737	  ;;
16738	pgf77* | pgf90* | pgf95* | pgfortran*)
16739					# Portland Group f77 and f90 compilers
16740	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16741	  tmp_addflag=' $pic_flag -Mnomain' ;;
16742	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16743	  tmp_addflag=' -i_dynamic' ;;
16744	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16745	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16746	ifc* | ifort*)			# Intel Fortran compiler
16747	  tmp_addflag=' -nofor_main' ;;
16748	lf95*)				# Lahey Fortran 8.1
16749	  whole_archive_flag_spec_F77=
16750	  tmp_sharedflag='--shared' ;;
16751	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16752	  tmp_sharedflag='-qmkshrobj'
16753	  tmp_addflag= ;;
16754	nvcc*)	# Cuda Compiler Driver 2.2
16755	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16756	  compiler_needs_object_F77=yes
16757	  ;;
16758	esac
16759	case `$CC -V 2>&1 | sed 5q` in
16760	*Sun\ C*)			# Sun C 5.9
16761	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16762	  compiler_needs_object_F77=yes
16763	  tmp_sharedflag='-G' ;;
16764	*Sun\ F*)			# Sun Fortran 8.3
16765	  tmp_sharedflag='-G' ;;
16766	esac
16767	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16768
16769        if test "x$supports_anon_versioning" = xyes; then
16770          archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
16771	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16772	    echo "local: *; };" >> $output_objdir/$libname.ver~
16773	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16774        fi
16775
16776	case $cc_basename in
16777	xlf* | bgf* | bgxlf* | mpixlf*)
16778	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16779	  whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
16780	  hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16781	  archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16782	  if test "x$supports_anon_versioning" = xyes; then
16783	    archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
16784	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16785	      echo "local: *; };" >> $output_objdir/$libname.ver~
16786	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16787	  fi
16788	  ;;
16789	esac
16790      else
16791        ld_shlibs_F77=no
16792      fi
16793      ;;
16794
16795    netbsd*)
16796      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16797	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16798	wlarc=
16799      else
16800	archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16801	archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16802      fi
16803      ;;
16804
16805    solaris*)
16806      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16807	ld_shlibs_F77=no
16808	cat <<_LT_EOF 1>&2
16809
16810*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16811*** create shared libraries on Solaris systems.  Therefore, libtool
16812*** is disabling shared libraries support.  We urge you to upgrade GNU
16813*** binutils to release 2.9.1 or newer.  Another option is to modify
16814*** your PATH or compiler configuration so that the native linker is
16815*** used, and then restart.
16816
16817_LT_EOF
16818      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16819	archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16820	archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16821      else
16822	ld_shlibs_F77=no
16823      fi
16824      ;;
16825
16826    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16827      case `$LD -v 2>&1` in
16828        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16829	ld_shlibs_F77=no
16830	cat <<_LT_EOF 1>&2
16831
16832*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16833*** reliably create shared libraries on SCO systems.  Therefore, libtool
16834*** is disabling shared libraries support.  We urge you to upgrade GNU
16835*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16836*** your PATH or compiler configuration so that the native linker is
16837*** used, and then restart.
16838
16839_LT_EOF
16840	;;
16841	*)
16842	  # For security reasons, it is highly recommended that you always
16843	  # use absolute paths for naming shared libraries, and exclude the
16844	  # DT_RUNPATH tag from executables and libraries.  But doing so
16845	  # requires that you compile everything twice, which is a pain.
16846	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16847	    hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16848	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16849	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16850	  else
16851	    ld_shlibs_F77=no
16852	  fi
16853	;;
16854      esac
16855      ;;
16856
16857    sunos4*)
16858      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16859      wlarc=
16860      hardcode_direct_F77=yes
16861      hardcode_shlibpath_var_F77=no
16862      ;;
16863
16864    *)
16865      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16866	archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16867	archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16868      else
16869	ld_shlibs_F77=no
16870      fi
16871      ;;
16872    esac
16873
16874    if test "$ld_shlibs_F77" = no; then
16875      runpath_var=
16876      hardcode_libdir_flag_spec_F77=
16877      export_dynamic_flag_spec_F77=
16878      whole_archive_flag_spec_F77=
16879    fi
16880  else
16881    # PORTME fill in a description of your system's linker (not GNU ld)
16882    case $host_os in
16883    aix3*)
16884      allow_undefined_flag_F77=unsupported
16885      always_export_symbols_F77=yes
16886      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16887      # Note: this linker hardcodes the directories in LIBPATH if there
16888      # are no directories specified by -L.
16889      hardcode_minus_L_F77=yes
16890      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16891	# Neither direct hardcoding nor static linking is supported with a
16892	# broken collect2.
16893	hardcode_direct_F77=unsupported
16894      fi
16895      ;;
16896
16897    aix[4-9]*)
16898      if test "$host_cpu" = ia64; then
16899	# On IA64, the linker does run time linking by default, so we don't
16900	# have to do anything special.
16901	aix_use_runtimelinking=no
16902	exp_sym_flag='-Bexport'
16903	no_entry_flag=""
16904      else
16905	# If we're using GNU nm, then we don't want the "-C" option.
16906	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16907	# Also, AIX nm treats weak defined symbols like other global
16908	# defined symbols, whereas GNU nm marks them as "W".
16909	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16910	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16911	else
16912	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16913	fi
16914	aix_use_runtimelinking=no
16915
16916	# Test if we are trying to use run time linking or normal
16917	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16918	# need to do runtime linking.
16919	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16920	  for ld_flag in $LDFLAGS; do
16921	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16922	    aix_use_runtimelinking=yes
16923	    break
16924	  fi
16925	  done
16926	  ;;
16927	esac
16928
16929	exp_sym_flag='-bexport'
16930	no_entry_flag='-bnoentry'
16931      fi
16932
16933      # When large executables or shared objects are built, AIX ld can
16934      # have problems creating the table of contents.  If linking a library
16935      # or program results in "error TOC overflow" add -mminimal-toc to
16936      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16937      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16938
16939      archive_cmds_F77=''
16940      hardcode_direct_F77=yes
16941      hardcode_direct_absolute_F77=yes
16942      hardcode_libdir_separator_F77=':'
16943      link_all_deplibs_F77=yes
16944      file_list_spec_F77='${wl}-f,'
16945
16946      if test "$GCC" = yes; then
16947	case $host_os in aix4.[012]|aix4.[012].*)
16948	# We only want to do this on AIX 4.2 and lower, the check
16949	# below for broken collect2 doesn't work under 4.3+
16950	  collect2name=`${CC} -print-prog-name=collect2`
16951	  if test -f "$collect2name" &&
16952	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16953	  then
16954	  # We have reworked collect2
16955	  :
16956	  else
16957	  # We have old collect2
16958	  hardcode_direct_F77=unsupported
16959	  # It fails to find uninstalled libraries when the uninstalled
16960	  # path is not listed in the libpath.  Setting hardcode_minus_L
16961	  # to unsupported forces relinking
16962	  hardcode_minus_L_F77=yes
16963	  hardcode_libdir_flag_spec_F77='-L$libdir'
16964	  hardcode_libdir_separator_F77=
16965	  fi
16966	  ;;
16967	esac
16968	shared_flag='-shared'
16969	if test "$aix_use_runtimelinking" = yes; then
16970	  shared_flag="$shared_flag "'${wl}-G'
16971	fi
16972      else
16973	# not using gcc
16974	if test "$host_cpu" = ia64; then
16975	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16976	# chokes on -Wl,-G. The following line is correct:
16977	  shared_flag='-G'
16978	else
16979	  if test "$aix_use_runtimelinking" = yes; then
16980	    shared_flag='${wl}-G'
16981	  else
16982	    shared_flag='${wl}-bM:SRE'
16983	  fi
16984	fi
16985      fi
16986
16987      export_dynamic_flag_spec_F77='${wl}-bexpall'
16988      # It seems that -bexpall does not export symbols beginning with
16989      # underscore (_), so it is better to generate a list of symbols to export.
16990      always_export_symbols_F77=yes
16991      if test "$aix_use_runtimelinking" = yes; then
16992	# Warning - without using the other runtime loading flags (-brtl),
16993	# -berok will link without error, but may produce a broken library.
16994	allow_undefined_flag_F77='-berok'
16995        # Determine the default libpath from the value encoded in an
16996        # empty executable.
16997        if test "${lt_cv_aix_libpath+set}" = set; then
16998  aix_libpath=$lt_cv_aix_libpath
16999else
17000  if ${lt_cv_aix_libpath__F77+:} false; then :
17001  $as_echo_n "(cached) " >&6
17002else
17003  cat > conftest.$ac_ext <<_ACEOF
17004      program main
17005
17006      end
17007_ACEOF
17008if ac_fn_f77_try_link "$LINENO"; then :
17009
17010  lt_aix_libpath_sed='
17011      /Import File Strings/,/^$/ {
17012	  /^0/ {
17013	      s/^0  *\([^ ]*\) *$/\1/
17014	      p
17015	  }
17016      }'
17017  lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17018  # Check for a 64-bit object if we didn't find anything.
17019  if test -z "$lt_cv_aix_libpath__F77"; then
17020    lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17021  fi
17022fi
17023rm -f core conftest.err conftest.$ac_objext \
17024    conftest$ac_exeext conftest.$ac_ext
17025  if test -z "$lt_cv_aix_libpath__F77"; then
17026    lt_cv_aix_libpath__F77="/usr/lib:/lib"
17027  fi
17028
17029fi
17030
17031  aix_libpath=$lt_cv_aix_libpath__F77
17032fi
17033
17034        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17035        archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17036      else
17037	if test "$host_cpu" = ia64; then
17038	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17039	  allow_undefined_flag_F77="-z nodefs"
17040	  archive_expsym_cmds_F77="\$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"
17041	else
17042	 # Determine the default libpath from the value encoded in an
17043	 # empty executable.
17044	 if test "${lt_cv_aix_libpath+set}" = set; then
17045  aix_libpath=$lt_cv_aix_libpath
17046else
17047  if ${lt_cv_aix_libpath__F77+:} false; then :
17048  $as_echo_n "(cached) " >&6
17049else
17050  cat > conftest.$ac_ext <<_ACEOF
17051      program main
17052
17053      end
17054_ACEOF
17055if ac_fn_f77_try_link "$LINENO"; then :
17056
17057  lt_aix_libpath_sed='
17058      /Import File Strings/,/^$/ {
17059	  /^0/ {
17060	      s/^0  *\([^ ]*\) *$/\1/
17061	      p
17062	  }
17063      }'
17064  lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17065  # Check for a 64-bit object if we didn't find anything.
17066  if test -z "$lt_cv_aix_libpath__F77"; then
17067    lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17068  fi
17069fi
17070rm -f core conftest.err conftest.$ac_objext \
17071    conftest$ac_exeext conftest.$ac_ext
17072  if test -z "$lt_cv_aix_libpath__F77"; then
17073    lt_cv_aix_libpath__F77="/usr/lib:/lib"
17074  fi
17075
17076fi
17077
17078  aix_libpath=$lt_cv_aix_libpath__F77
17079fi
17080
17081	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17082	  # Warning - without using the other run time loading flags,
17083	  # -berok will link without error, but may produce a broken library.
17084	  no_undefined_flag_F77=' ${wl}-bernotok'
17085	  allow_undefined_flag_F77=' ${wl}-berok'
17086	  if test "$with_gnu_ld" = yes; then
17087	    # We only use this code for GNU lds that support --whole-archive.
17088	    whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17089	  else
17090	    # Exported symbols can be pulled into shared objects from archives
17091	    whole_archive_flag_spec_F77='$convenience'
17092	  fi
17093	  archive_cmds_need_lc_F77=yes
17094	  # This is similar to how AIX traditionally builds its shared libraries.
17095	  archive_expsym_cmds_F77="\$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'
17096	fi
17097      fi
17098      ;;
17099
17100    amigaos*)
17101      case $host_cpu in
17102      powerpc)
17103            # see comment about AmigaOS4 .so support
17104            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17105            archive_expsym_cmds_F77=''
17106        ;;
17107      m68k)
17108            archive_cmds_F77='$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)'
17109            hardcode_libdir_flag_spec_F77='-L$libdir'
17110            hardcode_minus_L_F77=yes
17111        ;;
17112      esac
17113      ;;
17114
17115    bsdi[45]*)
17116      export_dynamic_flag_spec_F77=-rdynamic
17117      ;;
17118
17119    cygwin* | mingw* | pw32* | cegcc*)
17120      # When not using gcc, we currently assume that we are using
17121      # Microsoft Visual C++.
17122      # hardcode_libdir_flag_spec is actually meaningless, as there is
17123      # no search path for DLLs.
17124      case $cc_basename in
17125      cl*)
17126	# Native MSVC
17127	hardcode_libdir_flag_spec_F77=' '
17128	allow_undefined_flag_F77=unsupported
17129	always_export_symbols_F77=yes
17130	file_list_spec_F77='@'
17131	# Tell ltmain to make .lib files, not .a files.
17132	libext=lib
17133	# Tell ltmain to make .dll files, not .so files.
17134	shrext_cmds=".dll"
17135	# FIXME: Setting linknames here is a bad hack.
17136	archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17137	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17138	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17139	  else
17140	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17141	  fi~
17142	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17143	  linknames='
17144	# The linker will not automatically build a static lib if we build a DLL.
17145	# _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
17146	enable_shared_with_static_runtimes_F77=yes
17147	exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17148	export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17149	# Don't use ranlib
17150	old_postinstall_cmds_F77='chmod 644 $oldlib'
17151	postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
17152	  lt_tool_outputfile="@TOOL_OUTPUT@"~
17153	  case $lt_outputfile in
17154	    *.exe|*.EXE) ;;
17155	    *)
17156	      lt_outputfile="$lt_outputfile.exe"
17157	      lt_tool_outputfile="$lt_tool_outputfile.exe"
17158	      ;;
17159	  esac~
17160	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17161	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17162	    $RM "$lt_outputfile.manifest";
17163	  fi'
17164	;;
17165      *)
17166	# Assume MSVC wrapper
17167	hardcode_libdir_flag_spec_F77=' '
17168	allow_undefined_flag_F77=unsupported
17169	# Tell ltmain to make .lib files, not .a files.
17170	libext=lib
17171	# Tell ltmain to make .dll files, not .so files.
17172	shrext_cmds=".dll"
17173	# FIXME: Setting linknames here is a bad hack.
17174	archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17175	# The linker will automatically build a .lib file if we build a DLL.
17176	old_archive_from_new_cmds_F77='true'
17177	# FIXME: Should let the user specify the lib program.
17178	old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
17179	enable_shared_with_static_runtimes_F77=yes
17180	;;
17181      esac
17182      ;;
17183
17184    darwin* | rhapsody*)
17185
17186
17187  archive_cmds_need_lc_F77=no
17188  hardcode_direct_F77=no
17189  hardcode_automatic_F77=yes
17190  hardcode_shlibpath_var_F77=unsupported
17191  if test "$lt_cv_ld_force_load" = "yes"; then
17192    whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
17193    compiler_needs_object_F77=yes
17194  else
17195    whole_archive_flag_spec_F77=''
17196  fi
17197  link_all_deplibs_F77=yes
17198  allow_undefined_flag_F77="$_lt_dar_allow_undefined"
17199  case $cc_basename in
17200     ifort*) _lt_dar_can_shared=yes ;;
17201     *) _lt_dar_can_shared=$GCC ;;
17202  esac
17203  if test "$_lt_dar_can_shared" = "yes"; then
17204    output_verbose_link_cmd=func_echo_all
17205    archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17206    module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17207    archive_expsym_cmds_F77="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}"
17208    module_expsym_cmds_F77="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}"
17209
17210  else
17211  ld_shlibs_F77=no
17212  fi
17213
17214      ;;
17215
17216    dgux*)
17217      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17218      hardcode_libdir_flag_spec_F77='-L$libdir'
17219      hardcode_shlibpath_var_F77=no
17220      ;;
17221
17222    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17223    # support.  Future versions do this automatically, but an explicit c++rt0.o
17224    # does not break anything, and helps significantly (at the cost of a little
17225    # extra space).
17226    freebsd2.2*)
17227      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17228      hardcode_libdir_flag_spec_F77='-R$libdir'
17229      hardcode_direct_F77=yes
17230      hardcode_shlibpath_var_F77=no
17231      ;;
17232
17233    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17234    freebsd2.*)
17235      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17236      hardcode_direct_F77=yes
17237      hardcode_minus_L_F77=yes
17238      hardcode_shlibpath_var_F77=no
17239      ;;
17240
17241    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17242    freebsd* | dragonfly*)
17243      archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17244      hardcode_libdir_flag_spec_F77='-R$libdir'
17245      hardcode_direct_F77=yes
17246      hardcode_shlibpath_var_F77=no
17247      ;;
17248
17249    hpux9*)
17250      if test "$GCC" = yes; then
17251	archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17252      else
17253	archive_cmds_F77='$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'
17254      fi
17255      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17256      hardcode_libdir_separator_F77=:
17257      hardcode_direct_F77=yes
17258
17259      # hardcode_minus_L: Not really in the search PATH,
17260      # but as the default location of the library.
17261      hardcode_minus_L_F77=yes
17262      export_dynamic_flag_spec_F77='${wl}-E'
17263      ;;
17264
17265    hpux10*)
17266      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17267	archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17268      else
17269	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17270      fi
17271      if test "$with_gnu_ld" = no; then
17272	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17273	hardcode_libdir_separator_F77=:
17274	hardcode_direct_F77=yes
17275	hardcode_direct_absolute_F77=yes
17276	export_dynamic_flag_spec_F77='${wl}-E'
17277	# hardcode_minus_L: Not really in the search PATH,
17278	# but as the default location of the library.
17279	hardcode_minus_L_F77=yes
17280      fi
17281      ;;
17282
17283    hpux11*)
17284      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17285	case $host_cpu in
17286	hppa*64*)
17287	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17288	  ;;
17289	ia64*)
17290	  archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17291	  ;;
17292	*)
17293	  archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17294	  ;;
17295	esac
17296      else
17297	case $host_cpu in
17298	hppa*64*)
17299	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17300	  ;;
17301	ia64*)
17302	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17303	  ;;
17304	*)
17305	archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17306	  ;;
17307	esac
17308      fi
17309      if test "$with_gnu_ld" = no; then
17310	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17311	hardcode_libdir_separator_F77=:
17312
17313	case $host_cpu in
17314	hppa*64*|ia64*)
17315	  hardcode_direct_F77=no
17316	  hardcode_shlibpath_var_F77=no
17317	  ;;
17318	*)
17319	  hardcode_direct_F77=yes
17320	  hardcode_direct_absolute_F77=yes
17321	  export_dynamic_flag_spec_F77='${wl}-E'
17322
17323	  # hardcode_minus_L: Not really in the search PATH,
17324	  # but as the default location of the library.
17325	  hardcode_minus_L_F77=yes
17326	  ;;
17327	esac
17328      fi
17329      ;;
17330
17331    irix5* | irix6* | nonstopux*)
17332      if test "$GCC" = yes; then
17333	archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17334	# Try to use the -exported_symbol ld option, if it does not
17335	# work, assume that -exports_file does not work either and
17336	# implicitly export all symbols.
17337	# This should be the same for all languages, so no per-tag cache variable.
17338	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17339$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17340if ${lt_cv_irix_exported_symbol+:} false; then :
17341  $as_echo_n "(cached) " >&6
17342else
17343  save_LDFLAGS="$LDFLAGS"
17344	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17345	   cat > conftest.$ac_ext <<_ACEOF
17346
17347      subroutine foo
17348      end
17349_ACEOF
17350if ac_fn_f77_try_link "$LINENO"; then :
17351  lt_cv_irix_exported_symbol=yes
17352else
17353  lt_cv_irix_exported_symbol=no
17354fi
17355rm -f core conftest.err conftest.$ac_objext \
17356    conftest$ac_exeext conftest.$ac_ext
17357           LDFLAGS="$save_LDFLAGS"
17358fi
17359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17360$as_echo "$lt_cv_irix_exported_symbol" >&6; }
17361	if test "$lt_cv_irix_exported_symbol" = yes; then
17362          archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
17363	fi
17364      else
17365	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17366	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
17367      fi
17368      archive_cmds_need_lc_F77='no'
17369      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17370      hardcode_libdir_separator_F77=:
17371      inherit_rpath_F77=yes
17372      link_all_deplibs_F77=yes
17373      ;;
17374
17375    netbsd*)
17376      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17377	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17378      else
17379	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17380      fi
17381      hardcode_libdir_flag_spec_F77='-R$libdir'
17382      hardcode_direct_F77=yes
17383      hardcode_shlibpath_var_F77=no
17384      ;;
17385
17386    newsos6)
17387      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17388      hardcode_direct_F77=yes
17389      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17390      hardcode_libdir_separator_F77=:
17391      hardcode_shlibpath_var_F77=no
17392      ;;
17393
17394    *nto* | *qnx*)
17395      ;;
17396
17397    openbsd*)
17398      if test -f /usr/libexec/ld.so; then
17399	hardcode_direct_F77=yes
17400	hardcode_shlibpath_var_F77=no
17401	hardcode_direct_absolute_F77=yes
17402	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17403	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17404	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17405	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17406	  export_dynamic_flag_spec_F77='${wl}-E'
17407	else
17408	  case $host_os in
17409	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17410	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17411	     hardcode_libdir_flag_spec_F77='-R$libdir'
17412	     ;;
17413	   *)
17414	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17415	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17416	     ;;
17417	  esac
17418	fi
17419      else
17420	ld_shlibs_F77=no
17421      fi
17422      ;;
17423
17424    os2*)
17425      hardcode_libdir_flag_spec_F77='-L$libdir'
17426      hardcode_minus_L_F77=yes
17427      allow_undefined_flag_F77=unsupported
17428      archive_cmds_F77='$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'
17429      old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17430      ;;
17431
17432    osf3*)
17433      if test "$GCC" = yes; then
17434	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17435	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17436      else
17437	allow_undefined_flag_F77=' -expect_unresolved \*'
17438	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17439      fi
17440      archive_cmds_need_lc_F77='no'
17441      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17442      hardcode_libdir_separator_F77=:
17443      ;;
17444
17445    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17446      if test "$GCC" = yes; then
17447	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17448	archive_cmds_F77='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17449	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17450      else
17451	allow_undefined_flag_F77=' -expect_unresolved \*'
17452	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17453	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
17454	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
17455
17456	# Both c and cxx compiler support -rpath directly
17457	hardcode_libdir_flag_spec_F77='-rpath $libdir'
17458      fi
17459      archive_cmds_need_lc_F77='no'
17460      hardcode_libdir_separator_F77=:
17461      ;;
17462
17463    solaris*)
17464      no_undefined_flag_F77=' -z defs'
17465      if test "$GCC" = yes; then
17466	wlarc='${wl}'
17467	archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17468	archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17469	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17470      else
17471	case `$CC -V 2>&1` in
17472	*"Compilers 5.0"*)
17473	  wlarc=''
17474	  archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17475	  archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17476	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17477	  ;;
17478	*)
17479	  wlarc='${wl}'
17480	  archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17481	  archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17482	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17483	  ;;
17484	esac
17485      fi
17486      hardcode_libdir_flag_spec_F77='-R$libdir'
17487      hardcode_shlibpath_var_F77=no
17488      case $host_os in
17489      solaris2.[0-5] | solaris2.[0-5].*) ;;
17490      *)
17491	# The compiler driver will combine and reorder linker options,
17492	# but understands `-z linker_flag'.  GCC discards it without `$wl',
17493	# but is careful enough not to reorder.
17494	# Supported since Solaris 2.6 (maybe 2.5.1?)
17495	if test "$GCC" = yes; then
17496	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17497	else
17498	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
17499	fi
17500	;;
17501      esac
17502      link_all_deplibs_F77=yes
17503      ;;
17504
17505    sunos4*)
17506      if test "x$host_vendor" = xsequent; then
17507	# Use $CC to link under sequent, because it throws in some extra .o
17508	# files that make .init and .fini sections work.
17509	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17510      else
17511	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17512      fi
17513      hardcode_libdir_flag_spec_F77='-L$libdir'
17514      hardcode_direct_F77=yes
17515      hardcode_minus_L_F77=yes
17516      hardcode_shlibpath_var_F77=no
17517      ;;
17518
17519    sysv4)
17520      case $host_vendor in
17521	sni)
17522	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17523	  hardcode_direct_F77=yes # is this really true???
17524	;;
17525	siemens)
17526	  ## LD is ld it makes a PLAMLIB
17527	  ## CC just makes a GrossModule.
17528	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17529	  reload_cmds_F77='$CC -r -o $output$reload_objs'
17530	  hardcode_direct_F77=no
17531        ;;
17532	motorola)
17533	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17534	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17535	;;
17536      esac
17537      runpath_var='LD_RUN_PATH'
17538      hardcode_shlibpath_var_F77=no
17539      ;;
17540
17541    sysv4.3*)
17542      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17543      hardcode_shlibpath_var_F77=no
17544      export_dynamic_flag_spec_F77='-Bexport'
17545      ;;
17546
17547    sysv4*MP*)
17548      if test -d /usr/nec; then
17549	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17550	hardcode_shlibpath_var_F77=no
17551	runpath_var=LD_RUN_PATH
17552	hardcode_runpath_var=yes
17553	ld_shlibs_F77=yes
17554      fi
17555      ;;
17556
17557    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17558      no_undefined_flag_F77='${wl}-z,text'
17559      archive_cmds_need_lc_F77=no
17560      hardcode_shlibpath_var_F77=no
17561      runpath_var='LD_RUN_PATH'
17562
17563      if test "$GCC" = yes; then
17564	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17565	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17566      else
17567	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17568	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17569      fi
17570      ;;
17571
17572    sysv5* | sco3.2v5* | sco5v6*)
17573      # Note: We can NOT use -z defs as we might desire, because we do not
17574      # link with -lc, and that would cause any symbols used from libc to
17575      # always be unresolved, which means just about no library would
17576      # ever link correctly.  If we're not using GNU ld we use -z text
17577      # though, which does catch some bad symbols but isn't as heavy-handed
17578      # as -z defs.
17579      no_undefined_flag_F77='${wl}-z,text'
17580      allow_undefined_flag_F77='${wl}-z,nodefs'
17581      archive_cmds_need_lc_F77=no
17582      hardcode_shlibpath_var_F77=no
17583      hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
17584      hardcode_libdir_separator_F77=':'
17585      link_all_deplibs_F77=yes
17586      export_dynamic_flag_spec_F77='${wl}-Bexport'
17587      runpath_var='LD_RUN_PATH'
17588
17589      if test "$GCC" = yes; then
17590	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17591	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17592      else
17593	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17594	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17595      fi
17596      ;;
17597
17598    uts4*)
17599      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17600      hardcode_libdir_flag_spec_F77='-L$libdir'
17601      hardcode_shlibpath_var_F77=no
17602      ;;
17603
17604    *)
17605      ld_shlibs_F77=no
17606      ;;
17607    esac
17608
17609    if test x$host_vendor = xsni; then
17610      case $host in
17611      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17612	export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
17613	;;
17614      esac
17615    fi
17616  fi
17617
17618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
17619$as_echo "$ld_shlibs_F77" >&6; }
17620test "$ld_shlibs_F77" = no && can_build_shared=no
17621
17622with_gnu_ld_F77=$with_gnu_ld
17623
17624
17625
17626
17627
17628
17629#
17630# Do we need to explicitly link libc?
17631#
17632case "x$archive_cmds_need_lc_F77" in
17633x|xyes)
17634  # Assume -lc should be added
17635  archive_cmds_need_lc_F77=yes
17636
17637  if test "$enable_shared" = yes && test "$GCC" = yes; then
17638    case $archive_cmds_F77 in
17639    *'~'*)
17640      # FIXME: we may have to deal with multi-command sequences.
17641      ;;
17642    '$CC '*)
17643      # Test whether the compiler implicitly links with -lc since on some
17644      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17645      # to ld, don't add -lc before -lgcc.
17646      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17647$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17648if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
17649  $as_echo_n "(cached) " >&6
17650else
17651  $RM conftest*
17652	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17653
17654	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17655  (eval $ac_compile) 2>&5
17656  ac_status=$?
17657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17658  test $ac_status = 0; } 2>conftest.err; then
17659	  soname=conftest
17660	  lib=conftest
17661	  libobjs=conftest.$ac_objext
17662	  deplibs=
17663	  wl=$lt_prog_compiler_wl_F77
17664	  pic_flag=$lt_prog_compiler_pic_F77
17665	  compiler_flags=-v
17666	  linker_flags=-v
17667	  verstring=
17668	  output_objdir=.
17669	  libname=conftest
17670	  lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17671	  allow_undefined_flag_F77=
17672	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17673  (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17674  ac_status=$?
17675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17676  test $ac_status = 0; }
17677	  then
17678	    lt_cv_archive_cmds_need_lc_F77=no
17679	  else
17680	    lt_cv_archive_cmds_need_lc_F77=yes
17681	  fi
17682	  allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17683	else
17684	  cat conftest.err 1>&5
17685	fi
17686	$RM conftest*
17687
17688fi
17689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
17690$as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
17691      archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
17692      ;;
17693    esac
17694  fi
17695  ;;
17696esac
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17760$as_echo_n "checking dynamic linker characteristics... " >&6; }
17761
17762library_names_spec=
17763libname_spec='lib$name'
17764soname_spec=
17765shrext_cmds=".so"
17766postinstall_cmds=
17767postuninstall_cmds=
17768finish_cmds=
17769finish_eval=
17770shlibpath_var=
17771shlibpath_overrides_runpath=unknown
17772version_type=none
17773dynamic_linker="$host_os ld.so"
17774sys_lib_dlsearch_path_spec="/lib /usr/lib"
17775need_lib_prefix=unknown
17776hardcode_into_libs=no
17777
17778# when you set need_version to no, make sure it does not cause -set_version
17779# flags to be left without arguments
17780need_version=unknown
17781
17782case $host_os in
17783aix3*)
17784  version_type=linux # correct to gnu/linux during the next big refactor
17785  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17786  shlibpath_var=LIBPATH
17787
17788  # AIX 3 has no versioning support, so we append a major version to the name.
17789  soname_spec='${libname}${release}${shared_ext}$major'
17790  ;;
17791
17792aix[4-9]*)
17793  version_type=linux # correct to gnu/linux during the next big refactor
17794  need_lib_prefix=no
17795  need_version=no
17796  hardcode_into_libs=yes
17797  if test "$host_cpu" = ia64; then
17798    # AIX 5 supports IA64
17799    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17800    shlibpath_var=LD_LIBRARY_PATH
17801  else
17802    # With GCC up to 2.95.x, collect2 would create an import file
17803    # for dependence libraries.  The import file would start with
17804    # the line `#! .'.  This would cause the generated library to
17805    # depend on `.', always an invalid library.  This was fixed in
17806    # development snapshots of GCC prior to 3.0.
17807    case $host_os in
17808      aix4 | aix4.[01] | aix4.[01].*)
17809      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17810	   echo ' yes '
17811	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17812	:
17813      else
17814	can_build_shared=no
17815      fi
17816      ;;
17817    esac
17818    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17819    # soname into executable. Probably we can add versioning support to
17820    # collect2, so additional links can be useful in future.
17821    if test "$aix_use_runtimelinking" = yes; then
17822      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17823      # instead of lib<name>.a to let people know that these are not
17824      # typical AIX shared libraries.
17825      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17826    else
17827      # We preserve .a as extension for shared libraries through AIX4.2
17828      # and later when we are not doing run time linking.
17829      library_names_spec='${libname}${release}.a $libname.a'
17830      soname_spec='${libname}${release}${shared_ext}$major'
17831    fi
17832    shlibpath_var=LIBPATH
17833  fi
17834  ;;
17835
17836amigaos*)
17837  case $host_cpu in
17838  powerpc)
17839    # Since July 2007 AmigaOS4 officially supports .so libraries.
17840    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17841    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17842    ;;
17843  m68k)
17844    library_names_spec='$libname.ixlibrary $libname.a'
17845    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17846    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17847    ;;
17848  esac
17849  ;;
17850
17851beos*)
17852  library_names_spec='${libname}${shared_ext}'
17853  dynamic_linker="$host_os ld.so"
17854  shlibpath_var=LIBRARY_PATH
17855  ;;
17856
17857bsdi[45]*)
17858  version_type=linux # correct to gnu/linux during the next big refactor
17859  need_version=no
17860  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17861  soname_spec='${libname}${release}${shared_ext}$major'
17862  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17863  shlibpath_var=LD_LIBRARY_PATH
17864  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17865  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17866  # the default ld.so.conf also contains /usr/contrib/lib and
17867  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17868  # libtool to hard-code these into programs
17869  ;;
17870
17871cygwin* | mingw* | pw32* | cegcc*)
17872  version_type=windows
17873  shrext_cmds=".dll"
17874  need_version=no
17875  need_lib_prefix=no
17876
17877  case $GCC,$cc_basename in
17878  yes,*)
17879    # gcc
17880    library_names_spec='$libname.dll.a'
17881    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17882    postinstall_cmds='base_file=`basename \${file}`~
17883      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17884      dldir=$destdir/`dirname \$dlpath`~
17885      test -d \$dldir || mkdir -p \$dldir~
17886      $install_prog $dir/$dlname \$dldir/$dlname~
17887      chmod a+x \$dldir/$dlname~
17888      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17889        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17890      fi'
17891    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17892      dlpath=$dir/\$dldll~
17893       $RM \$dlpath'
17894    shlibpath_overrides_runpath=yes
17895
17896    case $host_os in
17897    cygwin*)
17898      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17899      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17900
17901      ;;
17902    mingw* | cegcc*)
17903      # MinGW DLLs use traditional 'lib' prefix
17904      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17905      ;;
17906    pw32*)
17907      # pw32 DLLs use 'pw' prefix rather than 'lib'
17908      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17909      ;;
17910    esac
17911    dynamic_linker='Win32 ld.exe'
17912    ;;
17913
17914  *,cl*)
17915    # Native MSVC
17916    libname_spec='$name'
17917    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17918    library_names_spec='${libname}.dll.lib'
17919
17920    case $build_os in
17921    mingw*)
17922      sys_lib_search_path_spec=
17923      lt_save_ifs=$IFS
17924      IFS=';'
17925      for lt_path in $LIB
17926      do
17927        IFS=$lt_save_ifs
17928        # Let DOS variable expansion print the short 8.3 style file name.
17929        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17930        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17931      done
17932      IFS=$lt_save_ifs
17933      # Convert to MSYS style.
17934      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17935      ;;
17936    cygwin*)
17937      # Convert to unix form, then to dos form, then back to unix form
17938      # but this time dos style (no spaces!) so that the unix form looks
17939      # like /cygdrive/c/PROGRA~1:/cygdr...
17940      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17941      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17942      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17943      ;;
17944    *)
17945      sys_lib_search_path_spec="$LIB"
17946      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17947        # It is most probably a Windows format PATH.
17948        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17949      else
17950        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17951      fi
17952      # FIXME: find the short name or the path components, as spaces are
17953      # common. (e.g. "Program Files" -> "PROGRA~1")
17954      ;;
17955    esac
17956
17957    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17958    postinstall_cmds='base_file=`basename \${file}`~
17959      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17960      dldir=$destdir/`dirname \$dlpath`~
17961      test -d \$dldir || mkdir -p \$dldir~
17962      $install_prog $dir/$dlname \$dldir/$dlname'
17963    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17964      dlpath=$dir/\$dldll~
17965       $RM \$dlpath'
17966    shlibpath_overrides_runpath=yes
17967    dynamic_linker='Win32 link.exe'
17968    ;;
17969
17970  *)
17971    # Assume MSVC wrapper
17972    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17973    dynamic_linker='Win32 ld.exe'
17974    ;;
17975  esac
17976  # FIXME: first we should search . and the directory the executable is in
17977  shlibpath_var=PATH
17978  ;;
17979
17980darwin* | rhapsody*)
17981  dynamic_linker="$host_os dyld"
17982  version_type=darwin
17983  need_lib_prefix=no
17984  need_version=no
17985  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17986  soname_spec='${libname}${release}${major}$shared_ext'
17987  shlibpath_overrides_runpath=yes
17988  shlibpath_var=DYLD_LIBRARY_PATH
17989  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17990
17991  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17992  ;;
17993
17994dgux*)
17995  version_type=linux # correct to gnu/linux during the next big refactor
17996  need_lib_prefix=no
17997  need_version=no
17998  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17999  soname_spec='${libname}${release}${shared_ext}$major'
18000  shlibpath_var=LD_LIBRARY_PATH
18001  ;;
18002
18003freebsd* | dragonfly*)
18004  # DragonFly does not have aout.  When/if they implement a new
18005  # versioning mechanism, adjust this.
18006  if test -x /usr/bin/objformat; then
18007    objformat=`/usr/bin/objformat`
18008  else
18009    case $host_os in
18010    freebsd[23].*) objformat=aout ;;
18011    *) objformat=elf ;;
18012    esac
18013  fi
18014  version_type=freebsd-$objformat
18015  case $version_type in
18016    freebsd-elf*)
18017      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18018      need_version=no
18019      need_lib_prefix=no
18020      ;;
18021    freebsd-*)
18022      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18023      need_version=yes
18024      ;;
18025  esac
18026  shlibpath_var=LD_LIBRARY_PATH
18027  case $host_os in
18028  freebsd2.*)
18029    shlibpath_overrides_runpath=yes
18030    ;;
18031  freebsd3.[01]* | freebsdelf3.[01]*)
18032    shlibpath_overrides_runpath=yes
18033    hardcode_into_libs=yes
18034    ;;
18035  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18036  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18037    shlibpath_overrides_runpath=no
18038    hardcode_into_libs=yes
18039    ;;
18040  *) # from 4.6 on, and DragonFly
18041    shlibpath_overrides_runpath=yes
18042    hardcode_into_libs=yes
18043    ;;
18044  esac
18045  ;;
18046
18047gnu*)
18048  version_type=linux # correct to gnu/linux during the next big refactor
18049  need_lib_prefix=no
18050  need_version=no
18051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18052  soname_spec='${libname}${release}${shared_ext}$major'
18053  shlibpath_var=LD_LIBRARY_PATH
18054  shlibpath_overrides_runpath=no
18055  hardcode_into_libs=yes
18056  ;;
18057
18058haiku*)
18059  version_type=linux # correct to gnu/linux during the next big refactor
18060  need_lib_prefix=no
18061  need_version=no
18062  dynamic_linker="$host_os runtime_loader"
18063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18064  soname_spec='${libname}${release}${shared_ext}$major'
18065  shlibpath_var=LIBRARY_PATH
18066  shlibpath_overrides_runpath=yes
18067  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18068  hardcode_into_libs=yes
18069  ;;
18070
18071hpux9* | hpux10* | hpux11*)
18072  # Give a soname corresponding to the major version so that dld.sl refuses to
18073  # link against other versions.
18074  version_type=sunos
18075  need_lib_prefix=no
18076  need_version=no
18077  case $host_cpu in
18078  ia64*)
18079    shrext_cmds='.so'
18080    hardcode_into_libs=yes
18081    dynamic_linker="$host_os dld.so"
18082    shlibpath_var=LD_LIBRARY_PATH
18083    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18084    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18085    soname_spec='${libname}${release}${shared_ext}$major'
18086    if test "X$HPUX_IA64_MODE" = X32; then
18087      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18088    else
18089      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18090    fi
18091    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18092    ;;
18093  hppa*64*)
18094    shrext_cmds='.sl'
18095    hardcode_into_libs=yes
18096    dynamic_linker="$host_os dld.sl"
18097    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18098    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18099    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18100    soname_spec='${libname}${release}${shared_ext}$major'
18101    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18102    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18103    ;;
18104  *)
18105    shrext_cmds='.sl'
18106    dynamic_linker="$host_os dld.sl"
18107    shlibpath_var=SHLIB_PATH
18108    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18109    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18110    soname_spec='${libname}${release}${shared_ext}$major'
18111    ;;
18112  esac
18113  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18114  postinstall_cmds='chmod 555 $lib'
18115  # or fails outright, so override atomically:
18116  install_override_mode=555
18117  ;;
18118
18119interix[3-9]*)
18120  version_type=linux # correct to gnu/linux during the next big refactor
18121  need_lib_prefix=no
18122  need_version=no
18123  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18124  soname_spec='${libname}${release}${shared_ext}$major'
18125  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18126  shlibpath_var=LD_LIBRARY_PATH
18127  shlibpath_overrides_runpath=no
18128  hardcode_into_libs=yes
18129  ;;
18130
18131irix5* | irix6* | nonstopux*)
18132  case $host_os in
18133    nonstopux*) version_type=nonstopux ;;
18134    *)
18135	if test "$lt_cv_prog_gnu_ld" = yes; then
18136		version_type=linux # correct to gnu/linux during the next big refactor
18137	else
18138		version_type=irix
18139	fi ;;
18140  esac
18141  need_lib_prefix=no
18142  need_version=no
18143  soname_spec='${libname}${release}${shared_ext}$major'
18144  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18145  case $host_os in
18146  irix5* | nonstopux*)
18147    libsuff= shlibsuff=
18148    ;;
18149  *)
18150    case $LD in # libtool.m4 will add one of these switches to LD
18151    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18152      libsuff= shlibsuff= libmagic=32-bit;;
18153    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18154      libsuff=32 shlibsuff=N32 libmagic=N32;;
18155    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18156      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18157    *) libsuff= shlibsuff= libmagic=never-match;;
18158    esac
18159    ;;
18160  esac
18161  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18162  shlibpath_overrides_runpath=no
18163  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18164  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18165  hardcode_into_libs=yes
18166  ;;
18167
18168# No shared lib support for Linux oldld, aout, or coff.
18169linux*oldld* | linux*aout* | linux*coff*)
18170  dynamic_linker=no
18171  ;;
18172
18173# This must be glibc/ELF.
18174linux* | k*bsd*-gnu | kopensolaris*-gnu)
18175  version_type=linux # correct to gnu/linux during the next big refactor
18176  need_lib_prefix=no
18177  need_version=no
18178  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18179  soname_spec='${libname}${release}${shared_ext}$major'
18180  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18181  shlibpath_var=LD_LIBRARY_PATH
18182  shlibpath_overrides_runpath=no
18183
18184  # Some binutils ld are patched to set DT_RUNPATH
18185  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18186  $as_echo_n "(cached) " >&6
18187else
18188  lt_cv_shlibpath_overrides_runpath=no
18189    save_LDFLAGS=$LDFLAGS
18190    save_libdir=$libdir
18191    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
18192	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
18193    cat > conftest.$ac_ext <<_ACEOF
18194      program main
18195
18196      end
18197_ACEOF
18198if ac_fn_f77_try_link "$LINENO"; then :
18199  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18200  lt_cv_shlibpath_overrides_runpath=yes
18201fi
18202fi
18203rm -f core conftest.err conftest.$ac_objext \
18204    conftest$ac_exeext conftest.$ac_ext
18205    LDFLAGS=$save_LDFLAGS
18206    libdir=$save_libdir
18207
18208fi
18209
18210  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18211
18212  # This implies no fast_install, which is unacceptable.
18213  # Some rework will be needed to allow for fast_install
18214  # before this can be enabled.
18215  hardcode_into_libs=yes
18216
18217  # Append ld.so.conf contents to the search path
18218  if test -f /etc/ld.so.conf; then
18219    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
18220    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18221  fi
18222
18223  # We used to test for /lib/ld.so.1 and disable shared libraries on
18224  # powerpc, because MkLinux only supported shared libraries with the
18225  # GNU dynamic linker.  Since this was broken with cross compilers,
18226  # most powerpc-linux boxes support dynamic linking these days and
18227  # people can always --disable-shared, the test was removed, and we
18228  # assume the GNU/Linux dynamic linker is in use.
18229  dynamic_linker='GNU/Linux ld.so'
18230  ;;
18231
18232netbsd*)
18233  version_type=sunos
18234  need_lib_prefix=no
18235  need_version=no
18236  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18237    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18238    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18239    dynamic_linker='NetBSD (a.out) ld.so'
18240  else
18241    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18242    soname_spec='${libname}${release}${shared_ext}$major'
18243    dynamic_linker='NetBSD ld.elf_so'
18244  fi
18245  shlibpath_var=LD_LIBRARY_PATH
18246  shlibpath_overrides_runpath=yes
18247  hardcode_into_libs=yes
18248  ;;
18249
18250newsos6)
18251  version_type=linux # correct to gnu/linux during the next big refactor
18252  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18253  shlibpath_var=LD_LIBRARY_PATH
18254  shlibpath_overrides_runpath=yes
18255  ;;
18256
18257*nto* | *qnx*)
18258  version_type=qnx
18259  need_lib_prefix=no
18260  need_version=no
18261  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18262  soname_spec='${libname}${release}${shared_ext}$major'
18263  shlibpath_var=LD_LIBRARY_PATH
18264  shlibpath_overrides_runpath=no
18265  hardcode_into_libs=yes
18266  dynamic_linker='ldqnx.so'
18267  ;;
18268
18269openbsd*)
18270  version_type=sunos
18271  sys_lib_dlsearch_path_spec="/usr/lib"
18272  need_lib_prefix=no
18273  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18274  case $host_os in
18275    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
18276    *)				need_version=no  ;;
18277  esac
18278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18279  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18280  shlibpath_var=LD_LIBRARY_PATH
18281  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18282    case $host_os in
18283      openbsd2.[89] | openbsd2.[89].*)
18284	shlibpath_overrides_runpath=no
18285	;;
18286      *)
18287	shlibpath_overrides_runpath=yes
18288	;;
18289      esac
18290  else
18291    shlibpath_overrides_runpath=yes
18292  fi
18293  ;;
18294
18295os2*)
18296  libname_spec='$name'
18297  shrext_cmds=".dll"
18298  need_lib_prefix=no
18299  library_names_spec='$libname${shared_ext} $libname.a'
18300  dynamic_linker='OS/2 ld.exe'
18301  shlibpath_var=LIBPATH
18302  ;;
18303
18304osf3* | osf4* | osf5*)
18305  version_type=osf
18306  need_lib_prefix=no
18307  need_version=no
18308  soname_spec='${libname}${release}${shared_ext}$major'
18309  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18310  shlibpath_var=LD_LIBRARY_PATH
18311  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18312  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18313  ;;
18314
18315rdos*)
18316  dynamic_linker=no
18317  ;;
18318
18319solaris*)
18320  version_type=linux # correct to gnu/linux during the next big refactor
18321  need_lib_prefix=no
18322  need_version=no
18323  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18324  soname_spec='${libname}${release}${shared_ext}$major'
18325  shlibpath_var=LD_LIBRARY_PATH
18326  shlibpath_overrides_runpath=yes
18327  hardcode_into_libs=yes
18328  # ldd complains unless libraries are executable
18329  postinstall_cmds='chmod +x $lib'
18330  ;;
18331
18332sunos4*)
18333  version_type=sunos
18334  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18335  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18336  shlibpath_var=LD_LIBRARY_PATH
18337  shlibpath_overrides_runpath=yes
18338  if test "$with_gnu_ld" = yes; then
18339    need_lib_prefix=no
18340  fi
18341  need_version=yes
18342  ;;
18343
18344sysv4 | sysv4.3*)
18345  version_type=linux # correct to gnu/linux during the next big refactor
18346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18347  soname_spec='${libname}${release}${shared_ext}$major'
18348  shlibpath_var=LD_LIBRARY_PATH
18349  case $host_vendor in
18350    sni)
18351      shlibpath_overrides_runpath=no
18352      need_lib_prefix=no
18353      runpath_var=LD_RUN_PATH
18354      ;;
18355    siemens)
18356      need_lib_prefix=no
18357      ;;
18358    motorola)
18359      need_lib_prefix=no
18360      need_version=no
18361      shlibpath_overrides_runpath=no
18362      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18363      ;;
18364  esac
18365  ;;
18366
18367sysv4*MP*)
18368  if test -d /usr/nec ;then
18369    version_type=linux # correct to gnu/linux during the next big refactor
18370    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18371    soname_spec='$libname${shared_ext}.$major'
18372    shlibpath_var=LD_LIBRARY_PATH
18373  fi
18374  ;;
18375
18376sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18377  version_type=freebsd-elf
18378  need_lib_prefix=no
18379  need_version=no
18380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18381  soname_spec='${libname}${release}${shared_ext}$major'
18382  shlibpath_var=LD_LIBRARY_PATH
18383  shlibpath_overrides_runpath=yes
18384  hardcode_into_libs=yes
18385  if test "$with_gnu_ld" = yes; then
18386    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18387  else
18388    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18389    case $host_os in
18390      sco3.2v5*)
18391        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18392	;;
18393    esac
18394  fi
18395  sys_lib_dlsearch_path_spec='/usr/lib'
18396  ;;
18397
18398tpf*)
18399  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18400  version_type=linux # correct to gnu/linux during the next big refactor
18401  need_lib_prefix=no
18402  need_version=no
18403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18404  shlibpath_var=LD_LIBRARY_PATH
18405  shlibpath_overrides_runpath=no
18406  hardcode_into_libs=yes
18407  ;;
18408
18409uts4*)
18410  version_type=linux # correct to gnu/linux during the next big refactor
18411  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18412  soname_spec='${libname}${release}${shared_ext}$major'
18413  shlibpath_var=LD_LIBRARY_PATH
18414  ;;
18415
18416*)
18417  dynamic_linker=no
18418  ;;
18419esac
18420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18421$as_echo "$dynamic_linker" >&6; }
18422test "$dynamic_linker" = no && can_build_shared=no
18423
18424variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18425if test "$GCC" = yes; then
18426  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18427fi
18428
18429if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18430  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18431fi
18432if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18433  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18434fi
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18474$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18475hardcode_action_F77=
18476if test -n "$hardcode_libdir_flag_spec_F77" ||
18477   test -n "$runpath_var_F77" ||
18478   test "X$hardcode_automatic_F77" = "Xyes" ; then
18479
18480  # We can hardcode non-existent directories.
18481  if test "$hardcode_direct_F77" != no &&
18482     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18483     # have to relink, otherwise we might link with an installed library
18484     # when we should be linking with a yet-to-be-installed one
18485     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18486     test "$hardcode_minus_L_F77" != no; then
18487    # Linking always hardcodes the temporary library directory.
18488    hardcode_action_F77=relink
18489  else
18490    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18491    hardcode_action_F77=immediate
18492  fi
18493else
18494  # We cannot hardcode anything, or else we can only hardcode existing
18495  # directories.
18496  hardcode_action_F77=unsupported
18497fi
18498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
18499$as_echo "$hardcode_action_F77" >&6; }
18500
18501if test "$hardcode_action_F77" = relink ||
18502   test "$inherit_rpath_F77" = yes; then
18503  # Fast installation is not supported
18504  enable_fast_install=no
18505elif test "$shlibpath_overrides_runpath" = yes ||
18506     test "$enable_shared" = no; then
18507  # Fast installation is not necessary
18508  enable_fast_install=needless
18509fi
18510
18511
18512
18513
18514
18515
18516
18517  fi # test -n "$compiler"
18518
18519  GCC=$lt_save_GCC
18520  CC="$lt_save_CC"
18521  CFLAGS="$lt_save_CFLAGS"
18522fi # test "$_lt_disable_F77" != yes
18523
18524ac_ext=c
18525ac_cpp='$CPP $CPPFLAGS'
18526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18528ac_compiler_gnu=$ac_cv_c_compiler_gnu
18529
18530
18531    ac_ext=f
18532ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18533ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18534ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
18536$as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
18537if ${ac_cv_prog_f77_v+:} false; then :
18538  $as_echo_n "(cached) " >&6
18539else
18540  cat > conftest.$ac_ext <<_ACEOF
18541      program main
18542
18543      end
18544_ACEOF
18545if ac_fn_f77_try_compile "$LINENO"; then :
18546  ac_cv_prog_f77_v=
18547# Try some options frequently used verbose output
18548for ac_verb in -v -verbose --verbose -V -\#\#\#; do
18549  cat > conftest.$ac_ext <<_ACEOF
18550      program main
18551
18552      end
18553_ACEOF
18554
18555# Compile and link our simple test program by passing a flag (argument
18556# 1 to this macro) to the Fortran compiler in order to get
18557# "verbose" output that we can then parse for the Fortran linker
18558# flags.
18559ac_save_FFLAGS=$FFLAGS
18560FFLAGS="$FFLAGS $ac_verb"
18561eval "set x $ac_link"
18562shift
18563$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
18564# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
18565# LIBRARY_PATH; skip all such settings.
18566ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
18567  sed '/^Driving:/d; /^Configured with:/d;
18568      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
18569$as_echo "$ac_f77_v_output" >&5
18570FFLAGS=$ac_save_FFLAGS
18571
18572rm -rf conftest*
18573
18574# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
18575# /foo, /bar, and /baz are search directories for the Fortran linker.
18576# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
18577ac_f77_v_output="`echo $ac_f77_v_output |
18578	grep 'LPATH is:' |
18579	sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
18580
18581# FIXME: we keep getting bitten by quoted arguments; a more general fix
18582#        that detects unbalanced quotes in FLIBS should be implemented
18583#        and (ugh) tested at some point.
18584case $ac_f77_v_output in
18585  # With xlf replace commas with spaces,
18586  # and remove "-link" and closing parenthesis.
18587  *xlfentry*)
18588    ac_f77_v_output=`echo $ac_f77_v_output |
18589      sed '
18590        s/,/ /g
18591        s/ -link / /g
18592        s/) *$//
18593      '
18594    ` ;;
18595
18596  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
18597  # $LIBS confuse us, and the libraries appear later in the output anyway).
18598  *mGLOB_options_string*)
18599    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
18600
18601  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
18602  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
18603  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
18604  *-cmdline\ * | *-ignore\ * | *-def\ *)
18605    ac_f77_v_output=`echo $ac_f77_v_output | sed "\
18606	s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
18607	s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
18608	s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
18609
18610  # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
18611  *fort77*f2c*gcc*)
18612    ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
18613        /:[	 ]\+Running[	 ]\{1,\}"gcc"/{
18614          /"-c"/d
18615          /[.]c"*/d
18616          s/^.*"gcc"/"gcc"/
18617          s/"//gp
18618        }'` ;;
18619
18620  # If we are using Cray Fortran then delete quotes.
18621  *cft90*)
18622    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
18623esac
18624
18625
18626  # look for -l* and *.a constructs in the output
18627  for ac_arg in $ac_f77_v_output; do
18628     case $ac_arg in
18629	[\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
18630	  ac_cv_prog_f77_v=$ac_verb
18631	  break 2 ;;
18632     esac
18633  done
18634done
18635if test -z "$ac_cv_prog_f77_v"; then
18636   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5
18637$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
18638fi
18639else
18640  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
18641$as_echo "$as_me: WARNING: compilation failed" >&2;}
18642fi
18643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18644
18645fi
18646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5
18647$as_echo "$ac_cv_prog_f77_v" >&6; }
18648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
18649$as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
18650if ${ac_cv_f77_libs+:} false; then :
18651  $as_echo_n "(cached) " >&6
18652else
18653  if test "x$FLIBS" != "x"; then
18654  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
18655else
18656
18657cat > conftest.$ac_ext <<_ACEOF
18658      program main
18659
18660      end
18661_ACEOF
18662
18663# Compile and link our simple test program by passing a flag (argument
18664# 1 to this macro) to the Fortran compiler in order to get
18665# "verbose" output that we can then parse for the Fortran linker
18666# flags.
18667ac_save_FFLAGS=$FFLAGS
18668FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
18669eval "set x $ac_link"
18670shift
18671$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
18672# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
18673# LIBRARY_PATH; skip all such settings.
18674ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
18675  sed '/^Driving:/d; /^Configured with:/d;
18676      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
18677$as_echo "$ac_f77_v_output" >&5
18678FFLAGS=$ac_save_FFLAGS
18679
18680rm -rf conftest*
18681
18682# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
18683# /foo, /bar, and /baz are search directories for the Fortran linker.
18684# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
18685ac_f77_v_output="`echo $ac_f77_v_output |
18686	grep 'LPATH is:' |
18687	sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
18688
18689# FIXME: we keep getting bitten by quoted arguments; a more general fix
18690#        that detects unbalanced quotes in FLIBS should be implemented
18691#        and (ugh) tested at some point.
18692case $ac_f77_v_output in
18693  # With xlf replace commas with spaces,
18694  # and remove "-link" and closing parenthesis.
18695  *xlfentry*)
18696    ac_f77_v_output=`echo $ac_f77_v_output |
18697      sed '
18698        s/,/ /g
18699        s/ -link / /g
18700        s/) *$//
18701      '
18702    ` ;;
18703
18704  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
18705  # $LIBS confuse us, and the libraries appear later in the output anyway).
18706  *mGLOB_options_string*)
18707    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
18708
18709  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
18710  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
18711  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
18712  *-cmdline\ * | *-ignore\ * | *-def\ *)
18713    ac_f77_v_output=`echo $ac_f77_v_output | sed "\
18714	s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
18715	s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
18716	s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
18717
18718  # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
18719  *fort77*f2c*gcc*)
18720    ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
18721        /:[	 ]\+Running[	 ]\{1,\}"gcc"/{
18722          /"-c"/d
18723          /[.]c"*/d
18724          s/^.*"gcc"/"gcc"/
18725          s/"//gp
18726        }'` ;;
18727
18728  # If we are using Cray Fortran then delete quotes.
18729  *cft90*)
18730    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
18731esac
18732
18733
18734
18735ac_cv_f77_libs=
18736
18737# Save positional arguments (if any)
18738ac_save_positional="$@"
18739
18740set X $ac_f77_v_output
18741while test $# != 1; do
18742  shift
18743  ac_arg=$1
18744  case $ac_arg in
18745	[\\/]*.a | ?:[\\/]*.a)
18746	    ac_exists=false
18747  for ac_i in $ac_cv_f77_libs; do
18748    if test x"$ac_arg" = x"$ac_i"; then
18749      ac_exists=true
18750      break
18751    fi
18752  done
18753
18754  if test x"$ac_exists" = xtrue; then :
18755
18756else
18757  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
18758fi
18759	  ;;
18760	-bI:*)
18761	    ac_exists=false
18762  for ac_i in $ac_cv_f77_libs; do
18763    if test x"$ac_arg" = x"$ac_i"; then
18764      ac_exists=true
18765      break
18766    fi
18767  done
18768
18769  if test x"$ac_exists" = xtrue; then :
18770
18771else
18772  if test "$ac_compiler_gnu" = yes; then
18773  for ac_link_opt in $ac_arg; do
18774    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
18775  done
18776else
18777  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
18778fi
18779fi
18780	  ;;
18781	  # Ignore these flags.
18782	-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
18783	  |-LANG:=* | -LIST:* | -LNO:* | -link)
18784	  ;;
18785	-lkernel32)
18786	  case $host_os in
18787	  *cygwin*) ;;
18788	  *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
18789	    ;;
18790	  esac
18791	  ;;
18792	-[LRuYz])
18793	  # These flags, when seen by themselves, take an argument.
18794	  # We remove the space between option and argument and re-iterate
18795	  # unless we find an empty arg or a new option (starting with -)
18796	  case $2 in
18797	     "" | -*);;
18798	     *)
18799		ac_arg="$ac_arg$2"
18800		shift; shift
18801		set X $ac_arg "$@"
18802		;;
18803	  esac
18804	  ;;
18805	-YP,*)
18806	  for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
18807	      ac_exists=false
18808  for ac_i in $ac_cv_f77_libs; do
18809    if test x"$ac_j" = x"$ac_i"; then
18810      ac_exists=true
18811      break
18812    fi
18813  done
18814
18815  if test x"$ac_exists" = xtrue; then :
18816
18817else
18818  ac_arg="$ac_arg $ac_j"
18819			       ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
18820fi
18821	  done
18822	  ;;
18823	-[lLR]*)
18824	    ac_exists=false
18825  for ac_i in $ac_cv_f77_libs; do
18826    if test x"$ac_arg" = x"$ac_i"; then
18827      ac_exists=true
18828      break
18829    fi
18830  done
18831
18832  if test x"$ac_exists" = xtrue; then :
18833
18834else
18835  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
18836fi
18837	  ;;
18838	-zallextract*| -zdefaultextract)
18839	  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
18840	  ;;
18841	  # Ignore everything else.
18842  esac
18843done
18844# restore positional arguments
18845set X $ac_save_positional; shift
18846
18847# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
18848# then we insist that the "run path" must be an absolute path (i.e. it
18849# must begin with a "/").
18850case `(uname -sr) 2>/dev/null` in
18851   "SunOS 5"*)
18852      ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
18853			sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
18854      test "x$ac_ld_run_path" != x &&
18855	if test "$ac_compiler_gnu" = yes; then
18856  for ac_link_opt in $ac_ld_run_path; do
18857    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
18858  done
18859else
18860  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
18861fi
18862      ;;
18863esac
18864fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
18865
18866fi
18867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5
18868$as_echo "$ac_cv_f77_libs" >&6; }
18869FLIBS="$ac_cv_f77_libs"
18870
18871
18872ac_ext=c
18873ac_cpp='$CPP $CPPFLAGS'
18874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18876ac_compiler_gnu=$ac_cv_c_compiler_gnu
18877
18878ac_ext=f
18879ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18880ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18881ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18882
18883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5
18884$as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; }
18885if ${ac_cv_f77_dummy_main+:} false; then :
18886  $as_echo_n "(cached) " >&6
18887else
18888  ac_f77_dm_save_LIBS=$LIBS
18889 LIBS="$LIBS $FLIBS"
18890 ac_fortran_dm_var=F77_DUMMY_MAIN
18891 ac_ext=c
18892ac_cpp='$CPP $CPPFLAGS'
18893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18895ac_compiler_gnu=$ac_cv_c_compiler_gnu
18896
18897 # First, try linking without a dummy main:
18898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18899/* end confdefs.h.  */
18900
18901#ifdef F77_DUMMY_MAIN
18902
18903#  ifdef __cplusplus
18904     extern "C"
18905#  endif
18906   int F77_DUMMY_MAIN() { return 1; }
18907
18908#endif
18909int
18910main ()
18911{
18912
18913  ;
18914  return 0;
18915}
18916_ACEOF
18917if ac_fn_c_try_link "$LINENO"; then :
18918  ac_cv_fortran_dummy_main=none
18919else
18920  ac_cv_fortran_dummy_main=unknown
18921fi
18922rm -f core conftest.err conftest.$ac_objext \
18923    conftest$ac_exeext conftest.$ac_ext
18924
18925 if test $ac_cv_fortran_dummy_main = unknown; then
18926   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
18927     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18928/* end confdefs.h.  */
18929#define $ac_fortran_dm_var $ac_func
18930#ifdef F77_DUMMY_MAIN
18931
18932#  ifdef __cplusplus
18933     extern "C"
18934#  endif
18935   int F77_DUMMY_MAIN() { return 1; }
18936
18937#endif
18938int
18939main ()
18940{
18941
18942  ;
18943  return 0;
18944}
18945_ACEOF
18946if ac_fn_c_try_link "$LINENO"; then :
18947  ac_cv_fortran_dummy_main=$ac_func; break
18948fi
18949rm -f core conftest.err conftest.$ac_objext \
18950    conftest$ac_exeext conftest.$ac_ext
18951   done
18952 fi
18953 ac_ext=f
18954ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18955ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18956ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18957 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
18958 rm -rf conftest*
18959 LIBS=$ac_f77_dm_save_LIBS
18960
18961fi
18962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5
18963$as_echo "$ac_cv_f77_dummy_main" >&6; }
18964F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
18965if test "$F77_DUMMY_MAIN" != unknown; then :
18966  if test $F77_DUMMY_MAIN != none; then
18967
18968cat >>confdefs.h <<_ACEOF
18969#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
18970_ACEOF
18971
18972  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
18973
18974$as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
18975
18976  fi
18977fi
18978else
18979  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18980$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18981as_fn_error $? "linking to Fortran libraries from C fails
18982See \`config.log' for more details" "$LINENO" 5; }
18983fi
18984
18985ac_ext=c
18986ac_cpp='$CPP $CPPFLAGS'
18987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18989ac_compiler_gnu=$ac_cv_c_compiler_gnu
18990
18991ac_ext=f
18992ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18993ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18994ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5
18996$as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; }
18997if ${ac_cv_f77_mangling+:} false; then :
18998  $as_echo_n "(cached) " >&6
18999else
19000  cat > conftest.$ac_ext <<_ACEOF
19001      subroutine foobar()
19002      return
19003      end
19004      subroutine foo_bar()
19005      return
19006      end
19007_ACEOF
19008if ac_fn_f77_try_compile "$LINENO"; then :
19009  mv conftest.$ac_objext cfortran_test.$ac_objext
19010
19011  ac_save_LIBS=$LIBS
19012  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
19013
19014  ac_ext=c
19015ac_cpp='$CPP $CPPFLAGS'
19016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19018ac_compiler_gnu=$ac_cv_c_compiler_gnu
19019  ac_success=no
19020  for ac_foobar in foobar FOOBAR; do
19021    for ac_underscore in "" "_"; do
19022      ac_func="$ac_foobar$ac_underscore"
19023      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19024/* end confdefs.h.  */
19025
19026/* Override any GCC internal prototype to avoid an error.
19027   Use char because int might match the return type of a GCC
19028   builtin and then its argument prototype would still apply.  */
19029#ifdef __cplusplus
19030extern "C"
19031#endif
19032char $ac_func ();
19033#ifdef F77_DUMMY_MAIN
19034
19035#  ifdef __cplusplus
19036     extern "C"
19037#  endif
19038   int F77_DUMMY_MAIN() { return 1; }
19039
19040#endif
19041int
19042main ()
19043{
19044return $ac_func ();
19045  ;
19046  return 0;
19047}
19048_ACEOF
19049if ac_fn_c_try_link "$LINENO"; then :
19050  ac_success=yes; break 2
19051fi
19052rm -f core conftest.err conftest.$ac_objext \
19053    conftest$ac_exeext conftest.$ac_ext
19054    done
19055  done
19056  ac_ext=f
19057ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19058ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19059ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19060
19061  if test "$ac_success" = "yes"; then
19062     case $ac_foobar in
19063	foobar)
19064	   ac_case=lower
19065	   ac_foo_bar=foo_bar
19066	   ;;
19067	FOOBAR)
19068	   ac_case=upper
19069	   ac_foo_bar=FOO_BAR
19070	   ;;
19071     esac
19072
19073     ac_ext=c
19074ac_cpp='$CPP $CPPFLAGS'
19075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19077ac_compiler_gnu=$ac_cv_c_compiler_gnu
19078     ac_success_extra=no
19079     for ac_extra in "" "_"; do
19080	ac_func="$ac_foo_bar$ac_underscore$ac_extra"
19081	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19082/* end confdefs.h.  */
19083
19084/* Override any GCC internal prototype to avoid an error.
19085   Use char because int might match the return type of a GCC
19086   builtin and then its argument prototype would still apply.  */
19087#ifdef __cplusplus
19088extern "C"
19089#endif
19090char $ac_func ();
19091#ifdef F77_DUMMY_MAIN
19092
19093#  ifdef __cplusplus
19094     extern "C"
19095#  endif
19096   int F77_DUMMY_MAIN() { return 1; }
19097
19098#endif
19099int
19100main ()
19101{
19102return $ac_func ();
19103  ;
19104  return 0;
19105}
19106_ACEOF
19107if ac_fn_c_try_link "$LINENO"; then :
19108  ac_success_extra=yes; break
19109fi
19110rm -f core conftest.err conftest.$ac_objext \
19111    conftest$ac_exeext conftest.$ac_ext
19112     done
19113     ac_ext=f
19114ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19115ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19116ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19117
19118     if test "$ac_success_extra" = "yes"; then
19119	ac_cv_f77_mangling="$ac_case case"
19120	if test -z "$ac_underscore"; then
19121	   ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
19122	else
19123	   ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
19124	fi
19125	if test -z "$ac_extra"; then
19126	   ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
19127	else
19128	   ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
19129	fi
19130      else
19131	ac_cv_f77_mangling="unknown"
19132      fi
19133  else
19134     ac_cv_f77_mangling="unknown"
19135  fi
19136
19137  LIBS=$ac_save_LIBS
19138  rm -rf conftest*
19139  rm -f cfortran_test*
19140else
19141  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19143as_fn_error $? "cannot compile a simple Fortran program
19144See \`config.log' for more details" "$LINENO" 5; }
19145fi
19146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19147
19148fi
19149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5
19150$as_echo "$ac_cv_f77_mangling" >&6; }
19151
19152ac_ext=c
19153ac_cpp='$CPP $CPPFLAGS'
19154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19156ac_compiler_gnu=$ac_cv_c_compiler_gnu
19157
19158ac_ext=f
19159ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19160ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19161ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19162case $ac_cv_f77_mangling in
19163  "lower case, no underscore, no extra underscore")
19164	  $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
19165
19166	  $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h
19167 ;;
19168  "lower case, no underscore, extra underscore")
19169	  $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
19170
19171	  $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
19172 ;;
19173  "lower case, underscore, no extra underscore")
19174	  $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
19175
19176	  $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
19177 ;;
19178  "lower case, underscore, extra underscore")
19179	  $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
19180
19181	  $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h
19182 ;;
19183  "upper case, no underscore, no extra underscore")
19184	  $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
19185
19186	  $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h
19187 ;;
19188  "upper case, no underscore, extra underscore")
19189	  $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
19190
19191	  $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
19192 ;;
19193  "upper case, underscore, no extra underscore")
19194	  $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
19195
19196	  $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
19197 ;;
19198  "upper case, underscore, extra underscore")
19199	  $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
19200
19201	  $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h
19202 ;;
19203  *)
19204	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
19205$as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
19206	  ;;
19207esac
19208
19209ac_ext=c
19210ac_cpp='$CPP $CPPFLAGS'
19211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19213ac_compiler_gnu=$ac_cv_c_compiler_gnu
19214
19215fi
19216
19217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
19218$as_echo_n "checking for library containing cos... " >&6; }
19219if ${ac_cv_search_cos+:} false; then :
19220  $as_echo_n "(cached) " >&6
19221else
19222  ac_func_search_save_LIBS=$LIBS
19223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19224/* end confdefs.h.  */
19225
19226/* Override any GCC internal prototype to avoid an error.
19227   Use char because int might match the return type of a GCC
19228   builtin and then its argument prototype would still apply.  */
19229#ifdef __cplusplus
19230extern "C"
19231#endif
19232char cos ();
19233#ifdef F77_DUMMY_MAIN
19234
19235#  ifdef __cplusplus
19236     extern "C"
19237#  endif
19238   int F77_DUMMY_MAIN() { return 1; }
19239
19240#endif
19241int
19242main ()
19243{
19244return cos ();
19245  ;
19246  return 0;
19247}
19248_ACEOF
19249for ac_lib in '' m; do
19250  if test -z "$ac_lib"; then
19251    ac_res="none required"
19252  else
19253    ac_res=-l$ac_lib
19254    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19255  fi
19256  if ac_fn_c_try_link "$LINENO"; then :
19257  ac_cv_search_cos=$ac_res
19258fi
19259rm -f core conftest.err conftest.$ac_objext \
19260    conftest$ac_exeext
19261  if ${ac_cv_search_cos+:} false; then :
19262  break
19263fi
19264done
19265if ${ac_cv_search_cos+:} false; then :
19266
19267else
19268  ac_cv_search_cos=no
19269fi
19270rm conftest.$ac_ext
19271LIBS=$ac_func_search_save_LIBS
19272fi
19273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
19274$as_echo "$ac_cv_search_cos" >&6; }
19275ac_res=$ac_cv_search_cos
19276if test "$ac_res" != no; then :
19277  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19278
19279else
19280  as_fn_error $? "math library not found." "$LINENO" 5
19281fi
19282
19283
19284saved_LIBS="$LIBS"
19285ac_ext=cpp
19286ac_cpp='$CXXCPP $CPPFLAGS'
19287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19290
19291
19292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prefixed single-precision FFTW2 (sfftw.h)" >&5
19293$as_echo_n "checking for prefixed single-precision FFTW2 (sfftw.h)... " >&6; }
19294FFTW2_LIBS="-lsrfftw -lsfftw"
19295LIBS="$FFTW2_LIBS $saved_LIBS"
19296# FFTW2 uses sincos() from libm but is not linked with -lm.
19297# Which is nothing unusual, at the times of FFTW2 underlinking was common.
19298# But this causes problems with some linker configurations, e.g. Ubuntu 12.04.
19299# To make sure that -lm (that should be already in $LIBS) is not discarded
19300# by the linker as not needed we put a math function into the test below.
19301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19302/* end confdefs.h.  */
19303#include <sfftw.h>
19304#include <math.h>
19305#ifdef F77_DUMMY_MAIN
19306
19307#  ifdef __cplusplus
19308     extern "C"
19309#  endif
19310   int F77_DUMMY_MAIN() { return 1; }
19311
19312#endif
19313int
19314main ()
19315{
19316float a; fftw_real *p = &a; return (int)sin(*fftw_version)
19317  ;
19318  return 0;
19319}
19320_ACEOF
19321if ac_fn_cxx_try_link "$LINENO"; then :
19322  have_fftw=yes
19323else
19324  have_fftw=no
19325fi
19326rm -f core conftest.err conftest.$ac_objext \
19327    conftest$ac_exeext conftest.$ac_ext
19328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fftw" >&5
19329$as_echo "$have_fftw" >&6; }
19330if test $have_fftw = yes; then
19331
19332$as_echo "#define FFTW2_PREFIX_S 1" >>confdefs.h
19333
19334else
19335  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for not prefixed single-precision FFTW2 (fftw.h)" >&5
19336$as_echo_n "checking for not prefixed single-precision FFTW2 (fftw.h)... " >&6; }
19337  FFTW2_LIBS="-lrfftw -lfftw"
19338  LIBS="$FFTW2_LIBS $saved_LIBS"
19339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19340/* end confdefs.h.  */
19341#include <fftw.h>
19342#include <math.h>
19343#ifdef F77_DUMMY_MAIN
19344
19345#  ifdef __cplusplus
19346     extern "C"
19347#  endif
19348   int F77_DUMMY_MAIN() { return 1; }
19349
19350#endif
19351int
19352main ()
19353{
19354float a; fftw_real *p = &a; return (int)sin(*fftw_version)
19355  ;
19356  return 0;
19357}
19358_ACEOF
19359if ac_fn_cxx_try_link "$LINENO"; then :
19360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19361$as_echo "yes" >&6; }
19362else
19363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19364$as_echo "no" >&6; }
19365               as_fn_error $? "single-precision FFTW 2 library not found." "$LINENO" 5
19366fi
19367rm -f core conftest.err conftest.$ac_objext \
19368    conftest$ac_exeext conftest.$ac_ext
19369fi
19370
19371ac_ext=c
19372ac_cpp='$CPP $CPPFLAGS'
19373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19375ac_compiler_gnu=$ac_cv_c_compiler_gnu
19376
19377LIBS="$saved_LIBS"
19378
19379
19380
19381case $host_os in
19382  cygwin* | mingw* | pw32* | cegcc*)
19383    ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
19384if test "x$ac_cv_header_windows_h" = xyes; then :
19385  :
19386else
19387  as_fn_error $? "Windows headers not found" "$LINENO" 5
19388fi
19389
19390
19391    ;;
19392  *)
19393
19394
19395ac_ext=c
19396ac_cpp='$CPP $CPPFLAGS'
19397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19399ac_compiler_gnu=$ac_cv_c_compiler_gnu
19400
19401ax_pthread_ok=no
19402
19403# We used to check for pthread.h first, but this fails if pthread.h
19404# requires special compiler flags (e.g. on True64 or Sequent).
19405# It gets checked for in the link test anyway.
19406
19407# First of all, check if the user has set any of the PTHREAD_LIBS,
19408# etcetera environment variables, and if threads linking works using
19409# them:
19410if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19411        save_CFLAGS="$CFLAGS"
19412        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19413        save_LIBS="$LIBS"
19414        LIBS="$PTHREAD_LIBS $LIBS"
19415        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19416$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19417        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19418/* end confdefs.h.  */
19419
19420/* Override any GCC internal prototype to avoid an error.
19421   Use char because int might match the return type of a GCC
19422   builtin and then its argument prototype would still apply.  */
19423#ifdef __cplusplus
19424extern "C"
19425#endif
19426char pthread_join ();
19427#ifdef F77_DUMMY_MAIN
19428
19429#  ifdef __cplusplus
19430     extern "C"
19431#  endif
19432   int F77_DUMMY_MAIN() { return 1; }
19433
19434#endif
19435int
19436main ()
19437{
19438return pthread_join ();
19439  ;
19440  return 0;
19441}
19442_ACEOF
19443if ac_fn_c_try_link "$LINENO"; then :
19444  ax_pthread_ok=yes
19445fi
19446rm -f core conftest.err conftest.$ac_objext \
19447    conftest$ac_exeext conftest.$ac_ext
19448        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19449$as_echo "$ax_pthread_ok" >&6; }
19450        if test x"$ax_pthread_ok" = xno; then
19451                PTHREAD_LIBS=""
19452                PTHREAD_CFLAGS=""
19453        fi
19454        LIBS="$save_LIBS"
19455        CFLAGS="$save_CFLAGS"
19456fi
19457
19458# We must check for the threads library under a number of different
19459# names; the ordering is very important because some systems
19460# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19461# libraries is broken (non-POSIX).
19462
19463# Create a list of thread flags to try.  Items starting with a "-" are
19464# C compiler flags, and other items are library names, except for "none"
19465# which indicates that we try without any flags at all, and "pthread-config"
19466# which is a program returning the flags for the Pth emulation library.
19467
19468#ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19469ax_pthread_flags="pthreads pthread none -Kthread -kthread lthread -pthread -pthreads -mthreads --thread-safe -mt pthread-config"
19470
19471# The ordering *is* (sometimes) important.  Some notes on the
19472# individual items follow:
19473
19474# pthreads: AIX (must check this before -lpthread)
19475# none: in case threads are in libc; should be tried before -Kthread and
19476#       other compiler flags to prevent continual compiler warnings
19477# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19478# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19479# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19480# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19481# -pthreads: Solaris/gcc
19482# -mthreads: Mingw32/gcc, Lynx/gcc
19483# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19484#      doesn't hurt to check since this sometimes defines pthreads too;
19485#      also defines -D_REENTRANT)
19486#      ... -mt is also the pthreads flag for HP/aCC
19487# pthread: Linux, etcetera
19488# --thread-safe: KAI C++
19489# pthread-config: use pthread-config program (for GNU Pth library)
19490
19491case ${host_os} in
19492        solaris*)
19493
19494        # On Solaris (at least, for some versions), libc contains stubbed
19495        # (non-functional) versions of the pthreads routines, so link-based
19496        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
19497        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
19498        # a function called by this macro, so we could check for that, but
19499        # who knows whether they'll stub that too in a future libc.)  So,
19500        # we'll just look for -pthreads and -lpthread first:
19501
19502        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
19503        ;;
19504
19505        darwin*)
19506        ax_pthread_flags="-pthread $ax_pthread_flags"
19507        ;;
19508esac
19509
19510if test x"$ax_pthread_ok" = xno; then
19511for flag in $ax_pthread_flags; do
19512
19513        case $flag in
19514                none)
19515                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19516$as_echo_n "checking whether pthreads work without any flags... " >&6; }
19517                ;;
19518
19519                -*)
19520                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19521$as_echo_n "checking whether pthreads work with $flag... " >&6; }
19522                PTHREAD_CFLAGS="$flag"
19523                ;;
19524
19525                pthread-config)
19526                # Extract the first word of "pthread-config", so it can be a program name with args.
19527set dummy pthread-config; ac_word=$2
19528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19529$as_echo_n "checking for $ac_word... " >&6; }
19530if ${ac_cv_prog_ax_pthread_config+:} false; then :
19531  $as_echo_n "(cached) " >&6
19532else
19533  if test -n "$ax_pthread_config"; then
19534  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19535else
19536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19537for as_dir in $PATH
19538do
19539  IFS=$as_save_IFS
19540  test -z "$as_dir" && as_dir=.
19541    for ac_exec_ext in '' $ac_executable_extensions; do
19542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19543    ac_cv_prog_ax_pthread_config="yes"
19544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19545    break 2
19546  fi
19547done
19548  done
19549IFS=$as_save_IFS
19550
19551  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19552fi
19553fi
19554ax_pthread_config=$ac_cv_prog_ax_pthread_config
19555if test -n "$ax_pthread_config"; then
19556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19557$as_echo "$ax_pthread_config" >&6; }
19558else
19559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19560$as_echo "no" >&6; }
19561fi
19562
19563
19564                if test x"$ax_pthread_config" = xno; then continue; fi
19565                PTHREAD_CFLAGS="`pthread-config --cflags`"
19566                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19567                ;;
19568
19569                *)
19570                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19571$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19572                PTHREAD_LIBS="-l$flag"
19573                ;;
19574        esac
19575
19576        save_LIBS="$LIBS"
19577        save_CFLAGS="$CFLAGS"
19578        LIBS="$PTHREAD_LIBS $LIBS"
19579        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19580
19581        # Check for various functions.  We must include pthread.h,
19582        # since some functions may be macros.  (On the Sequent, we
19583        # need a special flag -Kthread to make this header compile.)
19584        # We check for pthread_join because it is in -lpthread on IRIX
19585        # while pthread_create is in libc.  We check for pthread_attr_init
19586        # due to DEC craziness with -lpthreads.  We check for
19587        # pthread_cleanup_push because it is one of the few pthread
19588        # functions on Solaris that doesn't have a non-functional libc stub.
19589        # We try pthread_create on general principles.
19590        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19591/* end confdefs.h.  */
19592#include <pthread.h>
19593                        static void routine(void *a) { a = 0; }
19594                        static void *start_routine(void *a) { return a; }
19595#ifdef F77_DUMMY_MAIN
19596
19597#  ifdef __cplusplus
19598     extern "C"
19599#  endif
19600   int F77_DUMMY_MAIN() { return 1; }
19601
19602#endif
19603int
19604main ()
19605{
19606pthread_t th; pthread_attr_t attr;
19607                        pthread_create(&th, 0, start_routine, 0);
19608                        pthread_join(th, 0);
19609                        pthread_attr_init(&attr);
19610                        pthread_cleanup_push(routine, 0);
19611                        pthread_cleanup_pop(0) /* ; */
19612  ;
19613  return 0;
19614}
19615_ACEOF
19616if ac_fn_c_try_link "$LINENO"; then :
19617  ax_pthread_ok=yes
19618fi
19619rm -f core conftest.err conftest.$ac_objext \
19620    conftest$ac_exeext conftest.$ac_ext
19621
19622        LIBS="$save_LIBS"
19623        CFLAGS="$save_CFLAGS"
19624
19625        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19626$as_echo "$ax_pthread_ok" >&6; }
19627        if test "x$ax_pthread_ok" = xyes; then
19628                break;
19629        fi
19630
19631        PTHREAD_LIBS=""
19632        PTHREAD_CFLAGS=""
19633done
19634fi
19635
19636# Various other checks:
19637if test "x$ax_pthread_ok" = xyes; then
19638        save_LIBS="$LIBS"
19639        LIBS="$PTHREAD_LIBS $LIBS"
19640        save_CFLAGS="$CFLAGS"
19641        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19642
19643        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19644        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19645$as_echo_n "checking for joinable pthread attribute... " >&6; }
19646        attr_name=unknown
19647        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19648            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19649/* end confdefs.h.  */
19650#include <pthread.h>
19651#ifdef F77_DUMMY_MAIN
19652
19653#  ifdef __cplusplus
19654     extern "C"
19655#  endif
19656   int F77_DUMMY_MAIN() { return 1; }
19657
19658#endif
19659int
19660main ()
19661{
19662int attr = $attr; return attr /* ; */
19663  ;
19664  return 0;
19665}
19666_ACEOF
19667if ac_fn_c_try_link "$LINENO"; then :
19668  attr_name=$attr; break
19669fi
19670rm -f core conftest.err conftest.$ac_objext \
19671    conftest$ac_exeext conftest.$ac_ext
19672        done
19673        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
19674$as_echo "$attr_name" >&6; }
19675        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
19676
19677cat >>confdefs.h <<_ACEOF
19678#define PTHREAD_CREATE_JOINABLE $attr_name
19679_ACEOF
19680
19681        fi
19682
19683        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19684$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19685        flag=no
19686        case ${host_os} in
19687            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
19688            osf* | hpux*) flag="-D_REENTRANT";;
19689            solaris*)
19690            if test "$GCC" = "yes"; then
19691                flag="-D_REENTRANT"
19692            else
19693                flag="-mt -D_REENTRANT"
19694            fi
19695            ;;
19696        esac
19697        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
19698$as_echo "${flag}" >&6; }
19699        if test "x$flag" != xno; then
19700            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19701        fi
19702
19703        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
19704$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
19705if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
19706  $as_echo_n "(cached) " >&6
19707else
19708
19709                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19710/* end confdefs.h.  */
19711
19712                    #include <pthread.h>
19713#ifdef F77_DUMMY_MAIN
19714
19715#  ifdef __cplusplus
19716     extern "C"
19717#  endif
19718   int F77_DUMMY_MAIN() { return 1; }
19719
19720#endif
19721int
19722main ()
19723{
19724int i = PTHREAD_PRIO_INHERIT;
19725  ;
19726  return 0;
19727}
19728_ACEOF
19729if ac_fn_c_try_link "$LINENO"; then :
19730  ax_cv_PTHREAD_PRIO_INHERIT=yes
19731else
19732  ax_cv_PTHREAD_PRIO_INHERIT=no
19733fi
19734rm -f core conftest.err conftest.$ac_objext \
19735    conftest$ac_exeext conftest.$ac_ext
19736
19737fi
19738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
19739$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
19740        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
19741
19742$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
19743
19744fi
19745
19746        LIBS="$save_LIBS"
19747        CFLAGS="$save_CFLAGS"
19748
19749        # More AIX lossage: must compile with xlc_r or cc_r
19750        if test x"$GCC" != xyes; then
19751          for ac_prog in xlc_r cc_r
19752do
19753  # Extract the first word of "$ac_prog", so it can be a program name with args.
19754set dummy $ac_prog; ac_word=$2
19755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19756$as_echo_n "checking for $ac_word... " >&6; }
19757if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19758  $as_echo_n "(cached) " >&6
19759else
19760  if test -n "$PTHREAD_CC"; then
19761  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19762else
19763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19764for as_dir in $PATH
19765do
19766  IFS=$as_save_IFS
19767  test -z "$as_dir" && as_dir=.
19768    for ac_exec_ext in '' $ac_executable_extensions; do
19769  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19770    ac_cv_prog_PTHREAD_CC="$ac_prog"
19771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19772    break 2
19773  fi
19774done
19775  done
19776IFS=$as_save_IFS
19777
19778fi
19779fi
19780PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19781if test -n "$PTHREAD_CC"; then
19782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19783$as_echo "$PTHREAD_CC" >&6; }
19784else
19785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19786$as_echo "no" >&6; }
19787fi
19788
19789
19790  test -n "$PTHREAD_CC" && break
19791done
19792test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
19793
19794        else
19795          PTHREAD_CC=$CC
19796        fi
19797else
19798        PTHREAD_CC="$CC"
19799fi
19800
19801
19802
19803
19804
19805# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19806if test x"$ax_pthread_ok" = xyes; then
19807
19808$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19809
19810        :
19811else
19812        ax_pthread_ok=no
19813
19814fi
19815ac_ext=c
19816ac_cpp='$CPP $CPPFLAGS'
19817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19819ac_compiler_gnu=$ac_cv_c_compiler_gnu
19820
19821
19822    ;;
19823esac
19824
19825CLIPPER_LIBS="-lclipper-core"
19826test "x$enable_contrib" != xno && CLIPPER_LIBS="-lclipper-contrib $CLIPPER_LIBS"
19827test "x$enable_phs" != xno     && CLIPPER_LIBS="-lclipper-phs $CLIPPER_LIBS"
19828test "x$enable_cns" != xno     && CLIPPER_LIBS="-lclipper-cns $CLIPPER_LIBS"
19829test "x$enable_mmdb" = xyes    && CLIPPER_LIBS="-lclipper-mmdb $CLIPPER_LIBS"
19830test "x$enable_minimol" = xyes && CLIPPER_LIBS="-lclipper-minimol $CLIPPER_LIBS"
19831test "x$enable_cif" = xyes     && CLIPPER_LIBS="-lclipper-cif $CLIPPER_LIBS"
19832test "x$enable_ccp4" = xyes    && CLIPPER_LIBS="-lclipper-ccp4 $CLIPPER_LIBS"
19833#test "x$enable_cctbx" = xyes   && CLIPPER_LIBS="-lclipper-cctbx $CLIPPER_LIBS"
19834test "x$enable_fortran" = xyes && CLIPPER_LIBS="-lclipper-fortran $CLIPPER_LIBS"
19835
19836if test "x$enable_mmdb" = "xyes" -o "x$enable_mmdbold" = "xyes" -o \
19837        "x$enable_minimol" = "xyes" -o "x$enable_cif" = "xyes"; then
19838    ac_ext=cpp
19839ac_cpp='$CXXCPP $CPPFLAGS'
19840ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19841ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19842ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19843
19844    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMDB_CCIF_Init in -lmmdb2" >&5
19845$as_echo_n "checking for MMDB_CCIF_Init in -lmmdb2... " >&6; }
19846if ${ac_cv_lib_mmdb2_MMDB_CCIF_Init+:} false; then :
19847  $as_echo_n "(cached) " >&6
19848else
19849  ac_check_lib_save_LIBS=$LIBS
19850LIBS="-lmmdb2  $LIBS"
19851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19852/* end confdefs.h.  */
19853
19854/* Override any GCC internal prototype to avoid an error.
19855   Use char because int might match the return type of a GCC
19856   builtin and then its argument prototype would still apply.  */
19857#ifdef __cplusplus
19858extern "C"
19859#endif
19860char MMDB_CCIF_Init ();
19861#ifdef F77_DUMMY_MAIN
19862
19863#  ifdef __cplusplus
19864     extern "C"
19865#  endif
19866   int F77_DUMMY_MAIN() { return 1; }
19867
19868#endif
19869int
19870main ()
19871{
19872return MMDB_CCIF_Init ();
19873  ;
19874  return 0;
19875}
19876_ACEOF
19877if ac_fn_cxx_try_link "$LINENO"; then :
19878  ac_cv_lib_mmdb2_MMDB_CCIF_Init=yes
19879else
19880  ac_cv_lib_mmdb2_MMDB_CCIF_Init=no
19881fi
19882rm -f core conftest.err conftest.$ac_objext \
19883    conftest$ac_exeext conftest.$ac_ext
19884LIBS=$ac_check_lib_save_LIBS
19885fi
19886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mmdb2_MMDB_CCIF_Init" >&5
19887$as_echo "$ac_cv_lib_mmdb2_MMDB_CCIF_Init" >&6; }
19888if test "x$ac_cv_lib_mmdb2_MMDB_CCIF_Init" = xyes; then :
19889  :
19890else
19891  as_fn_error $? "mmdb2 library not found" "$LINENO" 5
19892fi
19893
19894
19895ac_fn_cxx_check_header_mongrel "$LINENO" "mmdb2/mmdb_manager.h" "ac_cv_header_mmdb2_mmdb_manager_h" "$ac_includes_default"
19896if test "x$ac_cv_header_mmdb2_mmdb_manager_h" = xyes; then :
19897  :
19898else
19899  as_fn_error $? "mmdb2 headers not found" "$LINENO" 5
19900fi
19901
19902
19903    ac_ext=c
19904ac_cpp='$CPP $CPPFLAGS'
19905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19907ac_compiler_gnu=$ac_cv_c_compiler_gnu
19908
19909    # CLIPPER_REQUIRES is only for clipper.pc
19910    CLIPPER_REQUIRES="mmdb2"
19911fi
19912
19913if test "x$enable_ccp4" = "xyes"; then
19914    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccp4_banner in -lccp4c" >&5
19915$as_echo_n "checking for ccp4_banner in -lccp4c... " >&6; }
19916if ${ac_cv_lib_ccp4c_ccp4_banner+:} false; then :
19917  $as_echo_n "(cached) " >&6
19918else
19919  ac_check_lib_save_LIBS=$LIBS
19920LIBS="-lccp4c  $LIBS"
19921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19922/* end confdefs.h.  */
19923
19924/* Override any GCC internal prototype to avoid an error.
19925   Use char because int might match the return type of a GCC
19926   builtin and then its argument prototype would still apply.  */
19927#ifdef __cplusplus
19928extern "C"
19929#endif
19930char ccp4_banner ();
19931#ifdef F77_DUMMY_MAIN
19932
19933#  ifdef __cplusplus
19934     extern "C"
19935#  endif
19936   int F77_DUMMY_MAIN() { return 1; }
19937
19938#endif
19939int
19940main ()
19941{
19942return ccp4_banner ();
19943  ;
19944  return 0;
19945}
19946_ACEOF
19947if ac_fn_c_try_link "$LINENO"; then :
19948  ac_cv_lib_ccp4c_ccp4_banner=yes
19949else
19950  ac_cv_lib_ccp4c_ccp4_banner=no
19951fi
19952rm -f core conftest.err conftest.$ac_objext \
19953    conftest$ac_exeext conftest.$ac_ext
19954LIBS=$ac_check_lib_save_LIBS
19955fi
19956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccp4c_ccp4_banner" >&5
19957$as_echo "$ac_cv_lib_ccp4c_ccp4_banner" >&6; }
19958if test "x$ac_cv_lib_ccp4c_ccp4_banner" = xyes; then :
19959  :
19960else
19961  as_fn_error $? "ccp4c library not found" "$LINENO" 5
19962fi
19963
19964    ac_fn_c_check_header_mongrel "$LINENO" "ccp4/ccp4_general.h" "ac_cv_header_ccp4_ccp4_general_h" "$ac_includes_default"
19965if test "x$ac_cv_header_ccp4_ccp4_general_h" = xyes; then :
19966  :
19967else
19968  as_fn_error $? "libccp4 headers not found" "$LINENO" 5
19969fi
19970
19971
19972    CLIPPER_REQUIRES="libccp4c $CLIPPER_REQUIRES"
19973fi
19974
19975if test "x$enable_cctbx" = "xyes"; then
19976    ac_ext=cpp
19977ac_cpp='$CXXCPP $CPPFLAGS'
19978ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19979ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19980ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19981
19982    ac_fn_cxx_check_header_mongrel "$LINENO" "cctbx/miller.h" "ac_cv_header_cctbx_miller_h" "$ac_includes_default"
19983if test "x$ac_cv_header_cctbx_miller_h" = xyes; then :
19984  :
19985else
19986  as_fn_error $? "cctbx headers not found" "$LINENO" 5
19987fi
19988
19989
19990    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cctbx" >&5
19991$as_echo_n "checking for cctbx... " >&6; }
19992    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19993/* end confdefs.h.  */
19994#include <cctbx/miller.h>
19995#ifdef F77_DUMMY_MAIN
19996
19997#  ifdef __cplusplus
19998     extern "C"
19999#  endif
20000   int F77_DUMMY_MAIN() { return 1; }
20001
20002#endif
20003int
20004main ()
20005{
20006cctbx::Miller::Index a
20007  ;
20008  return 0;
20009}
20010_ACEOF
20011if ac_fn_cxx_try_link "$LINENO"; then :
20012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20013$as_echo "yes" >&6; }
20014else
20015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20016$as_echo "no" >&6; }
20017                    as_fn_error $? "cctbx library not found" "$LINENO" 5
20018fi
20019rm -f core conftest.err conftest.$ac_objext \
20020    conftest$ac_exeext conftest.$ac_ext
20021    ac_ext=c
20022ac_cpp='$CPP $CPPFLAGS'
20023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20025ac_compiler_gnu=$ac_cv_c_compiler_gnu
20026
20027fi
20028
20029VERSION_INFO="-version-info 2:1"
20030
20031
20032
20033
20034ac_config_files="$ac_config_files Makefile clipper/Makefile clipper/core/Makefile clipper/contrib/Makefile examples/Makefile clipper.pc"
20035
20036cat >confcache <<\_ACEOF
20037# This file is a shell script that caches the results of configure
20038# tests run on this system so they can be shared between configure
20039# scripts and configure runs, see configure's option --config-cache.
20040# It is not useful on other systems.  If it contains results you don't
20041# want to keep, you may remove or edit it.
20042#
20043# config.status only pays attention to the cache file if you give it
20044# the --recheck option to rerun configure.
20045#
20046# `ac_cv_env_foo' variables (set or unset) will be overridden when
20047# loading this file, other *unset* `ac_cv_foo' will be assigned the
20048# following values.
20049
20050_ACEOF
20051
20052# The following way of writing the cache mishandles newlines in values,
20053# but we know of no workaround that is simple, portable, and efficient.
20054# So, we kill variables containing newlines.
20055# Ultrix sh set writes to stderr and can't be redirected directly,
20056# and sets the high bit in the cache file unless we assign to the vars.
20057(
20058  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20059    eval ac_val=\$$ac_var
20060    case $ac_val in #(
20061    *${as_nl}*)
20062      case $ac_var in #(
20063      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20064$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20065      esac
20066      case $ac_var in #(
20067      _ | IFS | as_nl) ;; #(
20068      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20069      *) { eval $ac_var=; unset $ac_var;} ;;
20070      esac ;;
20071    esac
20072  done
20073
20074  (set) 2>&1 |
20075    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20076    *${as_nl}ac_space=\ *)
20077      # `set' does not quote correctly, so add quotes: double-quote
20078      # substitution turns \\\\ into \\, and sed turns \\ into \.
20079      sed -n \
20080	"s/'/'\\\\''/g;
20081	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20082      ;; #(
20083    *)
20084      # `set' quotes correctly as required by POSIX, so do not add quotes.
20085      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20086      ;;
20087    esac |
20088    sort
20089) |
20090  sed '
20091     /^ac_cv_env_/b end
20092     t clear
20093     :clear
20094     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20095     t end
20096     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20097     :end' >>confcache
20098if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20099  if test -w "$cache_file"; then
20100    if test "x$cache_file" != "x/dev/null"; then
20101      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20102$as_echo "$as_me: updating cache $cache_file" >&6;}
20103      if test ! -f "$cache_file" || test -h "$cache_file"; then
20104	cat confcache >"$cache_file"
20105      else
20106        case $cache_file in #(
20107        */* | ?:*)
20108	  mv -f confcache "$cache_file"$$ &&
20109	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20110        *)
20111	  mv -f confcache "$cache_file" ;;
20112	esac
20113      fi
20114    fi
20115  else
20116    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20117$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20118  fi
20119fi
20120rm -f confcache
20121
20122test "x$prefix" = xNONE && prefix=$ac_default_prefix
20123# Let make expand exec_prefix.
20124test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20125
20126DEFS=-DHAVE_CONFIG_H
20127
20128ac_libobjs=
20129ac_ltlibobjs=
20130U=
20131for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20132  # 1. Remove the extension, and $U if already installed.
20133  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20134  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20135  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20136  #    will be set to the directory where LIBOBJS objects are built.
20137  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20138  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20139done
20140LIBOBJS=$ac_libobjs
20141
20142LTLIBOBJS=$ac_ltlibobjs
20143
20144
20145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20146$as_echo_n "checking that generated files are newer than configure... " >&6; }
20147   if test -n "$am_sleep_pid"; then
20148     # Hide warnings about reused PIDs.
20149     wait $am_sleep_pid 2>/dev/null
20150   fi
20151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20152$as_echo "done" >&6; }
20153 if test -n "$EXEEXT"; then
20154  am__EXEEXT_TRUE=
20155  am__EXEEXT_FALSE='#'
20156else
20157  am__EXEEXT_TRUE='#'
20158  am__EXEEXT_FALSE=
20159fi
20160
20161if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20162  as_fn_error $? "conditional \"AMDEP\" was never defined.
20163Usually this means the macro was only invoked conditionally." "$LINENO" 5
20164fi
20165if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20166  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20167Usually this means the macro was only invoked conditionally." "$LINENO" 5
20168fi
20169if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20170  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20171Usually this means the macro was only invoked conditionally." "$LINENO" 5
20172fi
20173if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20174  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20175Usually this means the macro was only invoked conditionally." "$LINENO" 5
20176fi
20177if test -z "${BUILD_CONTRIB_TRUE}" && test -z "${BUILD_CONTRIB_FALSE}"; then
20178  as_fn_error $? "conditional \"BUILD_CONTRIB\" was never defined.
20179Usually this means the macro was only invoked conditionally." "$LINENO" 5
20180fi
20181if test -z "${BUILD_PHS_TRUE}" && test -z "${BUILD_PHS_FALSE}"; then
20182  as_fn_error $? "conditional \"BUILD_PHS\" was never defined.
20183Usually this means the macro was only invoked conditionally." "$LINENO" 5
20184fi
20185if test -z "${BUILD_CNS_TRUE}" && test -z "${BUILD_CNS_FALSE}"; then
20186  as_fn_error $? "conditional \"BUILD_CNS\" was never defined.
20187Usually this means the macro was only invoked conditionally." "$LINENO" 5
20188fi
20189if test -z "${BUILD_MMDB_TRUE}" && test -z "${BUILD_MMDB_FALSE}"; then
20190  as_fn_error $? "conditional \"BUILD_MMDB\" was never defined.
20191Usually this means the macro was only invoked conditionally." "$LINENO" 5
20192fi
20193if test -z "${BUILD_MMDBOLD_TRUE}" && test -z "${BUILD_MMDBOLD_FALSE}"; then
20194  as_fn_error $? "conditional \"BUILD_MMDBOLD\" was never defined.
20195Usually this means the macro was only invoked conditionally." "$LINENO" 5
20196fi
20197if test -z "${BUILD_MINIMOL_TRUE}" && test -z "${BUILD_MINIMOL_FALSE}"; then
20198  as_fn_error $? "conditional \"BUILD_MINIMOL\" was never defined.
20199Usually this means the macro was only invoked conditionally." "$LINENO" 5
20200fi
20201if test -z "${BUILD_CIF_TRUE}" && test -z "${BUILD_CIF_FALSE}"; then
20202  as_fn_error $? "conditional \"BUILD_CIF\" was never defined.
20203Usually this means the macro was only invoked conditionally." "$LINENO" 5
20204fi
20205if test -z "${BUILD_CCP4_TRUE}" && test -z "${BUILD_CCP4_FALSE}"; then
20206  as_fn_error $? "conditional \"BUILD_CCP4\" was never defined.
20207Usually this means the macro was only invoked conditionally." "$LINENO" 5
20208fi
20209if test -z "${BUILD_CCTBX_TRUE}" && test -z "${BUILD_CCTBX_FALSE}"; then
20210  as_fn_error $? "conditional \"BUILD_CCTBX\" was never defined.
20211Usually this means the macro was only invoked conditionally." "$LINENO" 5
20212fi
20213if test -z "${BUILD_FORTRAN_TRUE}" && test -z "${BUILD_FORTRAN_FALSE}"; then
20214  as_fn_error $? "conditional \"BUILD_FORTRAN\" was never defined.
20215Usually this means the macro was only invoked conditionally." "$LINENO" 5
20216fi
20217
20218: "${CONFIG_STATUS=./config.status}"
20219ac_write_fail=0
20220ac_clean_files_save=$ac_clean_files
20221ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20222{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20223$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20224as_write_fail=0
20225cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20226#! $SHELL
20227# Generated by $as_me.
20228# Run this file to recreate the current configuration.
20229# Compiler output produced by configure, useful for debugging
20230# configure, is in config.log if it exists.
20231
20232debug=false
20233ac_cs_recheck=false
20234ac_cs_silent=false
20235
20236SHELL=\${CONFIG_SHELL-$SHELL}
20237export SHELL
20238_ASEOF
20239cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20240## -------------------- ##
20241## M4sh Initialization. ##
20242## -------------------- ##
20243
20244# Be more Bourne compatible
20245DUALCASE=1; export DUALCASE # for MKS sh
20246if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20247  emulate sh
20248  NULLCMD=:
20249  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20250  # is contrary to our usage.  Disable this feature.
20251  alias -g '${1+"$@"}'='"$@"'
20252  setopt NO_GLOB_SUBST
20253else
20254  case `(set -o) 2>/dev/null` in #(
20255  *posix*) :
20256    set -o posix ;; #(
20257  *) :
20258     ;;
20259esac
20260fi
20261
20262
20263as_nl='
20264'
20265export as_nl
20266# Printing a long string crashes Solaris 7 /usr/bin/printf.
20267as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20268as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20269as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20270# Prefer a ksh shell builtin over an external printf program on Solaris,
20271# but without wasting forks for bash or zsh.
20272if test -z "$BASH_VERSION$ZSH_VERSION" \
20273    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20274  as_echo='print -r --'
20275  as_echo_n='print -rn --'
20276elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20277  as_echo='printf %s\n'
20278  as_echo_n='printf %s'
20279else
20280  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20281    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20282    as_echo_n='/usr/ucb/echo -n'
20283  else
20284    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20285    as_echo_n_body='eval
20286      arg=$1;
20287      case $arg in #(
20288      *"$as_nl"*)
20289	expr "X$arg" : "X\\(.*\\)$as_nl";
20290	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20291      esac;
20292      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20293    '
20294    export as_echo_n_body
20295    as_echo_n='sh -c $as_echo_n_body as_echo'
20296  fi
20297  export as_echo_body
20298  as_echo='sh -c $as_echo_body as_echo'
20299fi
20300
20301# The user is always right.
20302if test "${PATH_SEPARATOR+set}" != set; then
20303  PATH_SEPARATOR=:
20304  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20305    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20306      PATH_SEPARATOR=';'
20307  }
20308fi
20309
20310
20311# IFS
20312# We need space, tab and new line, in precisely that order.  Quoting is
20313# there to prevent editors from complaining about space-tab.
20314# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20315# splitting by setting IFS to empty value.)
20316IFS=" ""	$as_nl"
20317
20318# Find who we are.  Look in the path if we contain no directory separator.
20319as_myself=
20320case $0 in #((
20321  *[\\/]* ) as_myself=$0 ;;
20322  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20323for as_dir in $PATH
20324do
20325  IFS=$as_save_IFS
20326  test -z "$as_dir" && as_dir=.
20327    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20328  done
20329IFS=$as_save_IFS
20330
20331     ;;
20332esac
20333# We did not find ourselves, most probably we were run as `sh COMMAND'
20334# in which case we are not to be found in the path.
20335if test "x$as_myself" = x; then
20336  as_myself=$0
20337fi
20338if test ! -f "$as_myself"; then
20339  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20340  exit 1
20341fi
20342
20343# Unset variables that we do not need and which cause bugs (e.g. in
20344# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20345# suppresses any "Segmentation fault" message there.  '((' could
20346# trigger a bug in pdksh 5.2.14.
20347for as_var in BASH_ENV ENV MAIL MAILPATH
20348do eval test x\${$as_var+set} = xset \
20349  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20350done
20351PS1='$ '
20352PS2='> '
20353PS4='+ '
20354
20355# NLS nuisances.
20356LC_ALL=C
20357export LC_ALL
20358LANGUAGE=C
20359export LANGUAGE
20360
20361# CDPATH.
20362(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20363
20364
20365# as_fn_error STATUS ERROR [LINENO LOG_FD]
20366# ----------------------------------------
20367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20369# script with STATUS, using 1 if that was 0.
20370as_fn_error ()
20371{
20372  as_status=$1; test $as_status -eq 0 && as_status=1
20373  if test "$4"; then
20374    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20375    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20376  fi
20377  $as_echo "$as_me: error: $2" >&2
20378  as_fn_exit $as_status
20379} # as_fn_error
20380
20381
20382# as_fn_set_status STATUS
20383# -----------------------
20384# Set $? to STATUS, without forking.
20385as_fn_set_status ()
20386{
20387  return $1
20388} # as_fn_set_status
20389
20390# as_fn_exit STATUS
20391# -----------------
20392# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20393as_fn_exit ()
20394{
20395  set +e
20396  as_fn_set_status $1
20397  exit $1
20398} # as_fn_exit
20399
20400# as_fn_unset VAR
20401# ---------------
20402# Portably unset VAR.
20403as_fn_unset ()
20404{
20405  { eval $1=; unset $1;}
20406}
20407as_unset=as_fn_unset
20408# as_fn_append VAR VALUE
20409# ----------------------
20410# Append the text in VALUE to the end of the definition contained in VAR. Take
20411# advantage of any shell optimizations that allow amortized linear growth over
20412# repeated appends, instead of the typical quadratic growth present in naive
20413# implementations.
20414if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20415  eval 'as_fn_append ()
20416  {
20417    eval $1+=\$2
20418  }'
20419else
20420  as_fn_append ()
20421  {
20422    eval $1=\$$1\$2
20423  }
20424fi # as_fn_append
20425
20426# as_fn_arith ARG...
20427# ------------------
20428# Perform arithmetic evaluation on the ARGs, and store the result in the
20429# global $as_val. Take advantage of shells that can avoid forks. The arguments
20430# must be portable across $(()) and expr.
20431if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20432  eval 'as_fn_arith ()
20433  {
20434    as_val=$(( $* ))
20435  }'
20436else
20437  as_fn_arith ()
20438  {
20439    as_val=`expr "$@" || test $? -eq 1`
20440  }
20441fi # as_fn_arith
20442
20443
20444if expr a : '\(a\)' >/dev/null 2>&1 &&
20445   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20446  as_expr=expr
20447else
20448  as_expr=false
20449fi
20450
20451if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20452  as_basename=basename
20453else
20454  as_basename=false
20455fi
20456
20457if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20458  as_dirname=dirname
20459else
20460  as_dirname=false
20461fi
20462
20463as_me=`$as_basename -- "$0" ||
20464$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20465	 X"$0" : 'X\(//\)$' \| \
20466	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20467$as_echo X/"$0" |
20468    sed '/^.*\/\([^/][^/]*\)\/*$/{
20469	    s//\1/
20470	    q
20471	  }
20472	  /^X\/\(\/\/\)$/{
20473	    s//\1/
20474	    q
20475	  }
20476	  /^X\/\(\/\).*/{
20477	    s//\1/
20478	    q
20479	  }
20480	  s/.*/./; q'`
20481
20482# Avoid depending upon Character Ranges.
20483as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20484as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20485as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20486as_cr_digits='0123456789'
20487as_cr_alnum=$as_cr_Letters$as_cr_digits
20488
20489ECHO_C= ECHO_N= ECHO_T=
20490case `echo -n x` in #(((((
20491-n*)
20492  case `echo 'xy\c'` in
20493  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20494  xy)  ECHO_C='\c';;
20495  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20496       ECHO_T='	';;
20497  esac;;
20498*)
20499  ECHO_N='-n';;
20500esac
20501
20502rm -f conf$$ conf$$.exe conf$$.file
20503if test -d conf$$.dir; then
20504  rm -f conf$$.dir/conf$$.file
20505else
20506  rm -f conf$$.dir
20507  mkdir conf$$.dir 2>/dev/null
20508fi
20509if (echo >conf$$.file) 2>/dev/null; then
20510  if ln -s conf$$.file conf$$ 2>/dev/null; then
20511    as_ln_s='ln -s'
20512    # ... but there are two gotchas:
20513    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20514    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20515    # In both cases, we have to default to `cp -pR'.
20516    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20517      as_ln_s='cp -pR'
20518  elif ln conf$$.file conf$$ 2>/dev/null; then
20519    as_ln_s=ln
20520  else
20521    as_ln_s='cp -pR'
20522  fi
20523else
20524  as_ln_s='cp -pR'
20525fi
20526rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20527rmdir conf$$.dir 2>/dev/null
20528
20529
20530# as_fn_mkdir_p
20531# -------------
20532# Create "$as_dir" as a directory, including parents if necessary.
20533as_fn_mkdir_p ()
20534{
20535
20536  case $as_dir in #(
20537  -*) as_dir=./$as_dir;;
20538  esac
20539  test -d "$as_dir" || eval $as_mkdir_p || {
20540    as_dirs=
20541    while :; do
20542      case $as_dir in #(
20543      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20544      *) as_qdir=$as_dir;;
20545      esac
20546      as_dirs="'$as_qdir' $as_dirs"
20547      as_dir=`$as_dirname -- "$as_dir" ||
20548$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20549	 X"$as_dir" : 'X\(//\)[^/]' \| \
20550	 X"$as_dir" : 'X\(//\)$' \| \
20551	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20552$as_echo X"$as_dir" |
20553    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20554	    s//\1/
20555	    q
20556	  }
20557	  /^X\(\/\/\)[^/].*/{
20558	    s//\1/
20559	    q
20560	  }
20561	  /^X\(\/\/\)$/{
20562	    s//\1/
20563	    q
20564	  }
20565	  /^X\(\/\).*/{
20566	    s//\1/
20567	    q
20568	  }
20569	  s/.*/./; q'`
20570      test -d "$as_dir" && break
20571    done
20572    test -z "$as_dirs" || eval "mkdir $as_dirs"
20573  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20574
20575
20576} # as_fn_mkdir_p
20577if mkdir -p . 2>/dev/null; then
20578  as_mkdir_p='mkdir -p "$as_dir"'
20579else
20580  test -d ./-p && rmdir ./-p
20581  as_mkdir_p=false
20582fi
20583
20584
20585# as_fn_executable_p FILE
20586# -----------------------
20587# Test if FILE is an executable regular file.
20588as_fn_executable_p ()
20589{
20590  test -f "$1" && test -x "$1"
20591} # as_fn_executable_p
20592as_test_x='test -x'
20593as_executable_p=as_fn_executable_p
20594
20595# Sed expression to map a string onto a valid CPP name.
20596as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20597
20598# Sed expression to map a string onto a valid variable name.
20599as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20600
20601
20602exec 6>&1
20603## ----------------------------------- ##
20604## Main body of $CONFIG_STATUS script. ##
20605## ----------------------------------- ##
20606_ASEOF
20607test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20608
20609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20610# Save the log message, to keep $0 and so on meaningful, and to
20611# report actual input values of CONFIG_FILES etc. instead of their
20612# values after options handling.
20613ac_log="
20614This file was extended by clipper $as_me 2.1, which was
20615generated by GNU Autoconf 2.69.  Invocation command line was
20616
20617  CONFIG_FILES    = $CONFIG_FILES
20618  CONFIG_HEADERS  = $CONFIG_HEADERS
20619  CONFIG_LINKS    = $CONFIG_LINKS
20620  CONFIG_COMMANDS = $CONFIG_COMMANDS
20621  $ $0 $@
20622
20623on `(hostname || uname -n) 2>/dev/null | sed 1q`
20624"
20625
20626_ACEOF
20627
20628case $ac_config_files in *"
20629"*) set x $ac_config_files; shift; ac_config_files=$*;;
20630esac
20631
20632case $ac_config_headers in *"
20633"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20634esac
20635
20636
20637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20638# Files that config.status was made for.
20639config_files="$ac_config_files"
20640config_headers="$ac_config_headers"
20641config_commands="$ac_config_commands"
20642
20643_ACEOF
20644
20645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20646ac_cs_usage="\
20647\`$as_me' instantiates files and other configuration actions
20648from templates according to the current configuration.  Unless the files
20649and actions are specified as TAGs, all are instantiated by default.
20650
20651Usage: $0 [OPTION]... [TAG]...
20652
20653  -h, --help       print this help, then exit
20654  -V, --version    print version number and configuration settings, then exit
20655      --config     print configuration, then exit
20656  -q, --quiet, --silent
20657                   do not print progress messages
20658  -d, --debug      don't remove temporary files
20659      --recheck    update $as_me by reconfiguring in the same conditions
20660      --file=FILE[:TEMPLATE]
20661                   instantiate the configuration file FILE
20662      --header=FILE[:TEMPLATE]
20663                   instantiate the configuration header FILE
20664
20665Configuration files:
20666$config_files
20667
20668Configuration headers:
20669$config_headers
20670
20671Configuration commands:
20672$config_commands
20673
20674Report bugs to the package provider."
20675
20676_ACEOF
20677cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20678ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20679ac_cs_version="\\
20680clipper config.status 2.1
20681configured by $0, generated by GNU Autoconf 2.69,
20682  with options \\"\$ac_cs_config\\"
20683
20684Copyright (C) 2012 Free Software Foundation, Inc.
20685This config.status script is free software; the Free Software Foundation
20686gives unlimited permission to copy, distribute and modify it."
20687
20688ac_pwd='$ac_pwd'
20689srcdir='$srcdir'
20690INSTALL='$INSTALL'
20691MKDIR_P='$MKDIR_P'
20692AWK='$AWK'
20693test -n "\$AWK" || AWK=awk
20694_ACEOF
20695
20696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20697# The default lists apply if the user does not specify any file.
20698ac_need_defaults=:
20699while test $# != 0
20700do
20701  case $1 in
20702  --*=?*)
20703    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20704    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20705    ac_shift=:
20706    ;;
20707  --*=)
20708    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20709    ac_optarg=
20710    ac_shift=:
20711    ;;
20712  *)
20713    ac_option=$1
20714    ac_optarg=$2
20715    ac_shift=shift
20716    ;;
20717  esac
20718
20719  case $ac_option in
20720  # Handling of the options.
20721  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20722    ac_cs_recheck=: ;;
20723  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20724    $as_echo "$ac_cs_version"; exit ;;
20725  --config | --confi | --conf | --con | --co | --c )
20726    $as_echo "$ac_cs_config"; exit ;;
20727  --debug | --debu | --deb | --de | --d | -d )
20728    debug=: ;;
20729  --file | --fil | --fi | --f )
20730    $ac_shift
20731    case $ac_optarg in
20732    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20733    '') as_fn_error $? "missing file argument" ;;
20734    esac
20735    as_fn_append CONFIG_FILES " '$ac_optarg'"
20736    ac_need_defaults=false;;
20737  --header | --heade | --head | --hea )
20738    $ac_shift
20739    case $ac_optarg in
20740    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20741    esac
20742    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20743    ac_need_defaults=false;;
20744  --he | --h)
20745    # Conflict between --help and --header
20746    as_fn_error $? "ambiguous option: \`$1'
20747Try \`$0 --help' for more information.";;
20748  --help | --hel | -h )
20749    $as_echo "$ac_cs_usage"; exit ;;
20750  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20751  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20752    ac_cs_silent=: ;;
20753
20754  # This is an error.
20755  -*) as_fn_error $? "unrecognized option: \`$1'
20756Try \`$0 --help' for more information." ;;
20757
20758  *) as_fn_append ac_config_targets " $1"
20759     ac_need_defaults=false ;;
20760
20761  esac
20762  shift
20763done
20764
20765ac_configure_extra_args=
20766
20767if $ac_cs_silent; then
20768  exec 6>/dev/null
20769  ac_configure_extra_args="$ac_configure_extra_args --silent"
20770fi
20771
20772_ACEOF
20773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20774if \$ac_cs_recheck; then
20775  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20776  shift
20777  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20778  CONFIG_SHELL='$SHELL'
20779  export CONFIG_SHELL
20780  exec "\$@"
20781fi
20782
20783_ACEOF
20784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20785exec 5>>config.log
20786{
20787  echo
20788  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20789## Running $as_me. ##
20790_ASBOX
20791  $as_echo "$ac_log"
20792} >&5
20793
20794_ACEOF
20795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20796#
20797# INIT-COMMANDS
20798#
20799AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20800
20801
20802# The HP-UX ksh and POSIX shell print the target directory to stdout
20803# if CDPATH is set.
20804(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20805
20806sed_quote_subst='$sed_quote_subst'
20807double_quote_subst='$double_quote_subst'
20808delay_variable_subst='$delay_variable_subst'
20809macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20810macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20811enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20812enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20813pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20814enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20815SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20816ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20817PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20818host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20819host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20820host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20821build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20822build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20823build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20824SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20825Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20826GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20827EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20828FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20829LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20830NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20831LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20832max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20833ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20834exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20835lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20836lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20837lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20838lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20839lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20840reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20841reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20842OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20843deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20844file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20845file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20846want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20847DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20848sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20849AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20850AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20851archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20852STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20853RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20854old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20855old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20856old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20857lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20858CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20859CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20860compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20861GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20862lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20863lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20864lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20865lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
20866nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20867lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20868objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20869MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20870lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20871lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20872lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20873lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20874lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20875need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20876MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20877DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20878NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20879LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20880OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20881OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20882libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20883shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20884extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20885archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20886enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20887export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20888whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20889compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20890old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20891old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20892archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20893archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20894module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20895module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20896with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20897allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20898no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20899hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20900hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20901hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20902hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20903hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20904hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20905hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20906inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20907link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20908always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20909export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20910exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20911include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20912prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20913postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20914file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20915variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20916need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20917need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20918version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20919runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20920shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20921shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20922libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20923library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20924soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20925install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20926postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20927postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20928finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20929finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20930hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20931sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20932sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20933hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20934enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20935enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20936enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20937old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20938striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20939compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20940predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20941postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20942predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20943postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20944compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20945LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20946LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
20947reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20948reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
20949reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20950reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
20951old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20952old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
20953compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20954compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
20955GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20956GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
20957lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20958lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
20959lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20960lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
20961lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20962lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
20963lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20964lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
20965lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20966lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
20967archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20968archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
20969enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20970enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
20971export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20972export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
20973whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20974whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
20975compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20976compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
20977old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20978old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
20979old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20980old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
20981archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20982archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
20983archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20984archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
20985module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20986module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
20987module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20988module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
20989with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20990with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
20991allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20992allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
20993no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20994no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
20995hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20996hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
20997hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20998hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
20999hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21000hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
21001hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21002hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
21003hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21004hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
21005hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21006hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
21007hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21008hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
21009inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21010inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
21011link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21012link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
21013always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21014always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
21015export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21016export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
21017exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21018exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
21019include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21020include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
21021prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21022prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
21023postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21024postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
21025file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21026file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
21027hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21028hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
21029compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21030compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`'
21031predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21032predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`'
21033postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21034postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`'
21035predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21036predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`'
21037postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21038postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`'
21039compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21040compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`'
21041
21042LTCC='$LTCC'
21043LTCFLAGS='$LTCFLAGS'
21044compiler='$compiler_DEFAULT'
21045
21046# A function that is used when there is no print builtin or printf.
21047func_fallback_echo ()
21048{
21049  eval 'cat <<_LTECHO_EOF
21050\$1
21051_LTECHO_EOF'
21052}
21053
21054# Quote evaled strings.
21055for var in SHELL \
21056ECHO \
21057PATH_SEPARATOR \
21058SED \
21059GREP \
21060EGREP \
21061FGREP \
21062LD \
21063NM \
21064LN_S \
21065lt_SP2NL \
21066lt_NL2SP \
21067reload_flag \
21068OBJDUMP \
21069deplibs_check_method \
21070file_magic_cmd \
21071file_magic_glob \
21072want_nocaseglob \
21073DLLTOOL \
21074sharedlib_from_linklib_cmd \
21075AR \
21076AR_FLAGS \
21077archiver_list_spec \
21078STRIP \
21079RANLIB \
21080CC \
21081CFLAGS \
21082compiler \
21083lt_cv_sys_global_symbol_pipe \
21084lt_cv_sys_global_symbol_to_cdecl \
21085lt_cv_sys_global_symbol_to_c_name_address \
21086lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21087nm_file_list_spec \
21088lt_prog_compiler_no_builtin_flag \
21089lt_prog_compiler_pic \
21090lt_prog_compiler_wl \
21091lt_prog_compiler_static \
21092lt_cv_prog_compiler_c_o \
21093need_locks \
21094MANIFEST_TOOL \
21095DSYMUTIL \
21096NMEDIT \
21097LIPO \
21098OTOOL \
21099OTOOL64 \
21100shrext_cmds \
21101export_dynamic_flag_spec \
21102whole_archive_flag_spec \
21103compiler_needs_object \
21104with_gnu_ld \
21105allow_undefined_flag \
21106no_undefined_flag \
21107hardcode_libdir_flag_spec \
21108hardcode_libdir_separator \
21109exclude_expsyms \
21110include_expsyms \
21111file_list_spec \
21112variables_saved_for_relink \
21113libname_spec \
21114library_names_spec \
21115soname_spec \
21116install_override_mode \
21117finish_eval \
21118old_striplib \
21119striplib \
21120compiler_lib_search_dirs \
21121predep_objects \
21122postdep_objects \
21123predeps \
21124postdeps \
21125compiler_lib_search_path \
21126LD_CXX \
21127LD_F77 \
21128reload_flag_CXX \
21129reload_flag_F77 \
21130compiler_CXX \
21131compiler_F77 \
21132lt_prog_compiler_no_builtin_flag_CXX \
21133lt_prog_compiler_no_builtin_flag_F77 \
21134lt_prog_compiler_pic_CXX \
21135lt_prog_compiler_pic_F77 \
21136lt_prog_compiler_wl_CXX \
21137lt_prog_compiler_wl_F77 \
21138lt_prog_compiler_static_CXX \
21139lt_prog_compiler_static_F77 \
21140lt_cv_prog_compiler_c_o_CXX \
21141lt_cv_prog_compiler_c_o_F77 \
21142export_dynamic_flag_spec_CXX \
21143export_dynamic_flag_spec_F77 \
21144whole_archive_flag_spec_CXX \
21145whole_archive_flag_spec_F77 \
21146compiler_needs_object_CXX \
21147compiler_needs_object_F77 \
21148with_gnu_ld_CXX \
21149with_gnu_ld_F77 \
21150allow_undefined_flag_CXX \
21151allow_undefined_flag_F77 \
21152no_undefined_flag_CXX \
21153no_undefined_flag_F77 \
21154hardcode_libdir_flag_spec_CXX \
21155hardcode_libdir_flag_spec_F77 \
21156hardcode_libdir_separator_CXX \
21157hardcode_libdir_separator_F77 \
21158exclude_expsyms_CXX \
21159exclude_expsyms_F77 \
21160include_expsyms_CXX \
21161include_expsyms_F77 \
21162file_list_spec_CXX \
21163file_list_spec_F77 \
21164compiler_lib_search_dirs_CXX \
21165compiler_lib_search_dirs_F77 \
21166predep_objects_CXX \
21167predep_objects_F77 \
21168postdep_objects_CXX \
21169postdep_objects_F77 \
21170predeps_CXX \
21171predeps_F77 \
21172postdeps_CXX \
21173postdeps_F77 \
21174compiler_lib_search_path_CXX \
21175compiler_lib_search_path_F77; do
21176    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21177    *[\\\\\\\`\\"\\\$]*)
21178      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21179      ;;
21180    *)
21181      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21182      ;;
21183    esac
21184done
21185
21186# Double-quote double-evaled strings.
21187for var in reload_cmds \
21188old_postinstall_cmds \
21189old_postuninstall_cmds \
21190old_archive_cmds \
21191extract_expsyms_cmds \
21192old_archive_from_new_cmds \
21193old_archive_from_expsyms_cmds \
21194archive_cmds \
21195archive_expsym_cmds \
21196module_cmds \
21197module_expsym_cmds \
21198export_symbols_cmds \
21199prelink_cmds \
21200postlink_cmds \
21201postinstall_cmds \
21202postuninstall_cmds \
21203finish_cmds \
21204sys_lib_search_path_spec \
21205sys_lib_dlsearch_path_spec \
21206reload_cmds_CXX \
21207reload_cmds_F77 \
21208old_archive_cmds_CXX \
21209old_archive_cmds_F77 \
21210old_archive_from_new_cmds_CXX \
21211old_archive_from_new_cmds_F77 \
21212old_archive_from_expsyms_cmds_CXX \
21213old_archive_from_expsyms_cmds_F77 \
21214archive_cmds_CXX \
21215archive_cmds_F77 \
21216archive_expsym_cmds_CXX \
21217archive_expsym_cmds_F77 \
21218module_cmds_CXX \
21219module_cmds_F77 \
21220module_expsym_cmds_CXX \
21221module_expsym_cmds_F77 \
21222export_symbols_cmds_CXX \
21223export_symbols_cmds_F77 \
21224prelink_cmds_CXX \
21225prelink_cmds_F77 \
21226postlink_cmds_CXX \
21227postlink_cmds_F77; do
21228    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21229    *[\\\\\\\`\\"\\\$]*)
21230      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21231      ;;
21232    *)
21233      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21234      ;;
21235    esac
21236done
21237
21238ac_aux_dir='$ac_aux_dir'
21239xsi_shell='$xsi_shell'
21240lt_shell_append='$lt_shell_append'
21241
21242# See if we are running on zsh, and set the options which allow our
21243# commands through without removal of \ escapes INIT.
21244if test -n "\${ZSH_VERSION+set}" ; then
21245   setopt NO_GLOB_SUBST
21246fi
21247
21248
21249    PACKAGE='$PACKAGE'
21250    VERSION='$VERSION'
21251    TIMESTAMP='$TIMESTAMP'
21252    RM='$RM'
21253    ofile='$ofile'
21254
21255
21256
21257
21258
21259
21260
21261
21262_ACEOF
21263
21264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21265
21266# Handling of arguments.
21267for ac_config_target in $ac_config_targets
21268do
21269  case $ac_config_target in
21270    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21271    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21272    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21273    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21274    "clipper/Makefile") CONFIG_FILES="$CONFIG_FILES clipper/Makefile" ;;
21275    "clipper/core/Makefile") CONFIG_FILES="$CONFIG_FILES clipper/core/Makefile" ;;
21276    "clipper/contrib/Makefile") CONFIG_FILES="$CONFIG_FILES clipper/contrib/Makefile" ;;
21277    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21278    "clipper.pc") CONFIG_FILES="$CONFIG_FILES clipper.pc" ;;
21279
21280  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21281  esac
21282done
21283
21284
21285# If the user did not use the arguments to specify the items to instantiate,
21286# then the envvar interface is used.  Set only those that are not.
21287# We use the long form for the default assignment because of an extremely
21288# bizarre bug on SunOS 4.1.3.
21289if $ac_need_defaults; then
21290  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21291  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21292  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21293fi
21294
21295# Have a temporary directory for convenience.  Make it in the build tree
21296# simply because there is no reason against having it here, and in addition,
21297# creating and moving files from /tmp can sometimes cause problems.
21298# Hook for its removal unless debugging.
21299# Note that there is a small window in which the directory will not be cleaned:
21300# after its creation but before its name has been assigned to `$tmp'.
21301$debug ||
21302{
21303  tmp= ac_tmp=
21304  trap 'exit_status=$?
21305  : "${ac_tmp:=$tmp}"
21306  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21307' 0
21308  trap 'as_fn_exit 1' 1 2 13 15
21309}
21310# Create a (secure) tmp directory for tmp files.
21311
21312{
21313  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21314  test -d "$tmp"
21315}  ||
21316{
21317  tmp=./conf$$-$RANDOM
21318  (umask 077 && mkdir "$tmp")
21319} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21320ac_tmp=$tmp
21321
21322# Set up the scripts for CONFIG_FILES section.
21323# No need to generate them if there are no CONFIG_FILES.
21324# This happens for instance with `./config.status config.h'.
21325if test -n "$CONFIG_FILES"; then
21326
21327
21328ac_cr=`echo X | tr X '\015'`
21329# On cygwin, bash can eat \r inside `` if the user requested igncr.
21330# But we know of no other shell where ac_cr would be empty at this
21331# point, so we can use a bashism as a fallback.
21332if test "x$ac_cr" = x; then
21333  eval ac_cr=\$\'\\r\'
21334fi
21335ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21336if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21337  ac_cs_awk_cr='\\r'
21338else
21339  ac_cs_awk_cr=$ac_cr
21340fi
21341
21342echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21343_ACEOF
21344
21345
21346{
21347  echo "cat >conf$$subs.awk <<_ACEOF" &&
21348  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21349  echo "_ACEOF"
21350} >conf$$subs.sh ||
21351  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21352ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21353ac_delim='%!_!# '
21354for ac_last_try in false false false false false :; do
21355  . ./conf$$subs.sh ||
21356    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21357
21358  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21359  if test $ac_delim_n = $ac_delim_num; then
21360    break
21361  elif $ac_last_try; then
21362    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21363  else
21364    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21365  fi
21366done
21367rm -f conf$$subs.sh
21368
21369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21370cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21371_ACEOF
21372sed -n '
21373h
21374s/^/S["/; s/!.*/"]=/
21375p
21376g
21377s/^[^!]*!//
21378:repl
21379t repl
21380s/'"$ac_delim"'$//
21381t delim
21382:nl
21383h
21384s/\(.\{148\}\)..*/\1/
21385t more1
21386s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21387p
21388n
21389b repl
21390:more1
21391s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21392p
21393g
21394s/.\{148\}//
21395t nl
21396:delim
21397h
21398s/\(.\{148\}\)..*/\1/
21399t more2
21400s/["\\]/\\&/g; s/^/"/; s/$/"/
21401p
21402b
21403:more2
21404s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21405p
21406g
21407s/.\{148\}//
21408t delim
21409' <conf$$subs.awk | sed '
21410/^[^""]/{
21411  N
21412  s/\n//
21413}
21414' >>$CONFIG_STATUS || ac_write_fail=1
21415rm -f conf$$subs.awk
21416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21417_ACAWK
21418cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21419  for (key in S) S_is_set[key] = 1
21420  FS = ""
21421
21422}
21423{
21424  line = $ 0
21425  nfields = split(line, field, "@")
21426  substed = 0
21427  len = length(field[1])
21428  for (i = 2; i < nfields; i++) {
21429    key = field[i]
21430    keylen = length(key)
21431    if (S_is_set[key]) {
21432      value = S[key]
21433      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21434      len += length(value) + length(field[++i])
21435      substed = 1
21436    } else
21437      len += 1 + keylen
21438  }
21439
21440  print line
21441}
21442
21443_ACAWK
21444_ACEOF
21445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21446if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21447  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21448else
21449  cat
21450fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21451  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21452_ACEOF
21453
21454# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21455# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21456# trailing colons and then remove the whole line if VPATH becomes empty
21457# (actually we leave an empty line to preserve line numbers).
21458if test "x$srcdir" = x.; then
21459  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21460h
21461s///
21462s/^/:/
21463s/[	 ]*$/:/
21464s/:\$(srcdir):/:/g
21465s/:\${srcdir}:/:/g
21466s/:@srcdir@:/:/g
21467s/^:*//
21468s/:*$//
21469x
21470s/\(=[	 ]*\).*/\1/
21471G
21472s/\n//
21473s/^[^=]*=[	 ]*$//
21474}'
21475fi
21476
21477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21478fi # test -n "$CONFIG_FILES"
21479
21480# Set up the scripts for CONFIG_HEADERS section.
21481# No need to generate them if there are no CONFIG_HEADERS.
21482# This happens for instance with `./config.status Makefile'.
21483if test -n "$CONFIG_HEADERS"; then
21484cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21485BEGIN {
21486_ACEOF
21487
21488# Transform confdefs.h into an awk script `defines.awk', embedded as
21489# here-document in config.status, that substitutes the proper values into
21490# config.h.in to produce config.h.
21491
21492# Create a delimiter string that does not exist in confdefs.h, to ease
21493# handling of long lines.
21494ac_delim='%!_!# '
21495for ac_last_try in false false :; do
21496  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21497  if test -z "$ac_tt"; then
21498    break
21499  elif $ac_last_try; then
21500    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21501  else
21502    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21503  fi
21504done
21505
21506# For the awk script, D is an array of macro values keyed by name,
21507# likewise P contains macro parameters if any.  Preserve backslash
21508# newline sequences.
21509
21510ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21511sed -n '
21512s/.\{148\}/&'"$ac_delim"'/g
21513t rset
21514:rset
21515s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21516t def
21517d
21518:def
21519s/\\$//
21520t bsnl
21521s/["\\]/\\&/g
21522s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21523D["\1"]=" \3"/p
21524s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21525d
21526:bsnl
21527s/["\\]/\\&/g
21528s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21529D["\1"]=" \3\\\\\\n"\\/p
21530t cont
21531s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21532t cont
21533d
21534:cont
21535n
21536s/.\{148\}/&'"$ac_delim"'/g
21537t clear
21538:clear
21539s/\\$//
21540t bsnlc
21541s/["\\]/\\&/g; s/^/"/; s/$/"/p
21542d
21543:bsnlc
21544s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21545b cont
21546' <confdefs.h | sed '
21547s/'"$ac_delim"'/"\\\
21548"/g' >>$CONFIG_STATUS || ac_write_fail=1
21549
21550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21551  for (key in D) D_is_set[key] = 1
21552  FS = ""
21553}
21554/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21555  line = \$ 0
21556  split(line, arg, " ")
21557  if (arg[1] == "#") {
21558    defundef = arg[2]
21559    mac1 = arg[3]
21560  } else {
21561    defundef = substr(arg[1], 2)
21562    mac1 = arg[2]
21563  }
21564  split(mac1, mac2, "(") #)
21565  macro = mac2[1]
21566  prefix = substr(line, 1, index(line, defundef) - 1)
21567  if (D_is_set[macro]) {
21568    # Preserve the white space surrounding the "#".
21569    print prefix "define", macro P[macro] D[macro]
21570    next
21571  } else {
21572    # Replace #undef with comments.  This is necessary, for example,
21573    # in the case of _POSIX_SOURCE, which is predefined and required
21574    # on some systems where configure will not decide to define it.
21575    if (defundef == "undef") {
21576      print "/*", prefix defundef, macro, "*/"
21577      next
21578    }
21579  }
21580}
21581{ print }
21582_ACAWK
21583_ACEOF
21584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21585  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21586fi # test -n "$CONFIG_HEADERS"
21587
21588
21589eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21590shift
21591for ac_tag
21592do
21593  case $ac_tag in
21594  :[FHLC]) ac_mode=$ac_tag; continue;;
21595  esac
21596  case $ac_mode$ac_tag in
21597  :[FHL]*:*);;
21598  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21599  :[FH]-) ac_tag=-:-;;
21600  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21601  esac
21602  ac_save_IFS=$IFS
21603  IFS=:
21604  set x $ac_tag
21605  IFS=$ac_save_IFS
21606  shift
21607  ac_file=$1
21608  shift
21609
21610  case $ac_mode in
21611  :L) ac_source=$1;;
21612  :[FH])
21613    ac_file_inputs=
21614    for ac_f
21615    do
21616      case $ac_f in
21617      -) ac_f="$ac_tmp/stdin";;
21618      *) # Look for the file first in the build tree, then in the source tree
21619	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21620	 # because $ac_f cannot contain `:'.
21621	 test -f "$ac_f" ||
21622	   case $ac_f in
21623	   [\\/$]*) false;;
21624	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21625	   esac ||
21626	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21627      esac
21628      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21629      as_fn_append ac_file_inputs " '$ac_f'"
21630    done
21631
21632    # Let's still pretend it is `configure' which instantiates (i.e., don't
21633    # use $as_me), people would be surprised to read:
21634    #    /* config.h.  Generated by config.status.  */
21635    configure_input='Generated from '`
21636	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21637	`' by configure.'
21638    if test x"$ac_file" != x-; then
21639      configure_input="$ac_file.  $configure_input"
21640      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21641$as_echo "$as_me: creating $ac_file" >&6;}
21642    fi
21643    # Neutralize special characters interpreted by sed in replacement strings.
21644    case $configure_input in #(
21645    *\&* | *\|* | *\\* )
21646       ac_sed_conf_input=`$as_echo "$configure_input" |
21647       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21648    *) ac_sed_conf_input=$configure_input;;
21649    esac
21650
21651    case $ac_tag in
21652    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21653      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21654    esac
21655    ;;
21656  esac
21657
21658  ac_dir=`$as_dirname -- "$ac_file" ||
21659$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21660	 X"$ac_file" : 'X\(//\)[^/]' \| \
21661	 X"$ac_file" : 'X\(//\)$' \| \
21662	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21663$as_echo X"$ac_file" |
21664    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21665	    s//\1/
21666	    q
21667	  }
21668	  /^X\(\/\/\)[^/].*/{
21669	    s//\1/
21670	    q
21671	  }
21672	  /^X\(\/\/\)$/{
21673	    s//\1/
21674	    q
21675	  }
21676	  /^X\(\/\).*/{
21677	    s//\1/
21678	    q
21679	  }
21680	  s/.*/./; q'`
21681  as_dir="$ac_dir"; as_fn_mkdir_p
21682  ac_builddir=.
21683
21684case "$ac_dir" in
21685.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21686*)
21687  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21688  # A ".." for each directory in $ac_dir_suffix.
21689  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21690  case $ac_top_builddir_sub in
21691  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21692  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21693  esac ;;
21694esac
21695ac_abs_top_builddir=$ac_pwd
21696ac_abs_builddir=$ac_pwd$ac_dir_suffix
21697# for backward compatibility:
21698ac_top_builddir=$ac_top_build_prefix
21699
21700case $srcdir in
21701  .)  # We are building in place.
21702    ac_srcdir=.
21703    ac_top_srcdir=$ac_top_builddir_sub
21704    ac_abs_top_srcdir=$ac_pwd ;;
21705  [\\/]* | ?:[\\/]* )  # Absolute name.
21706    ac_srcdir=$srcdir$ac_dir_suffix;
21707    ac_top_srcdir=$srcdir
21708    ac_abs_top_srcdir=$srcdir ;;
21709  *) # Relative name.
21710    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21711    ac_top_srcdir=$ac_top_build_prefix$srcdir
21712    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21713esac
21714ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21715
21716
21717  case $ac_mode in
21718  :F)
21719  #
21720  # CONFIG_FILE
21721  #
21722
21723  case $INSTALL in
21724  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21725  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21726  esac
21727  ac_MKDIR_P=$MKDIR_P
21728  case $MKDIR_P in
21729  [\\/$]* | ?:[\\/]* ) ;;
21730  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21731  esac
21732_ACEOF
21733
21734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21735# If the template does not know about datarootdir, expand it.
21736# FIXME: This hack should be removed a few years after 2.60.
21737ac_datarootdir_hack=; ac_datarootdir_seen=
21738ac_sed_dataroot='
21739/datarootdir/ {
21740  p
21741  q
21742}
21743/@datadir@/p
21744/@docdir@/p
21745/@infodir@/p
21746/@localedir@/p
21747/@mandir@/p'
21748case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21749*datarootdir*) ac_datarootdir_seen=yes;;
21750*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21751  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21752$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21753_ACEOF
21754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21755  ac_datarootdir_hack='
21756  s&@datadir@&$datadir&g
21757  s&@docdir@&$docdir&g
21758  s&@infodir@&$infodir&g
21759  s&@localedir@&$localedir&g
21760  s&@mandir@&$mandir&g
21761  s&\\\${datarootdir}&$datarootdir&g' ;;
21762esac
21763_ACEOF
21764
21765# Neutralize VPATH when `$srcdir' = `.'.
21766# Shell code in configure.ac might set extrasub.
21767# FIXME: do we really want to maintain this feature?
21768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21769ac_sed_extra="$ac_vpsub
21770$extrasub
21771_ACEOF
21772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21773:t
21774/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21775s|@configure_input@|$ac_sed_conf_input|;t t
21776s&@top_builddir@&$ac_top_builddir_sub&;t t
21777s&@top_build_prefix@&$ac_top_build_prefix&;t t
21778s&@srcdir@&$ac_srcdir&;t t
21779s&@abs_srcdir@&$ac_abs_srcdir&;t t
21780s&@top_srcdir@&$ac_top_srcdir&;t t
21781s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21782s&@builddir@&$ac_builddir&;t t
21783s&@abs_builddir@&$ac_abs_builddir&;t t
21784s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21785s&@INSTALL@&$ac_INSTALL&;t t
21786s&@MKDIR_P@&$ac_MKDIR_P&;t t
21787$ac_datarootdir_hack
21788"
21789eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21790  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21791
21792test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21793  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21794  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21795      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21796  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21797which seems to be undefined.  Please make sure it is defined" >&5
21798$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21799which seems to be undefined.  Please make sure it is defined" >&2;}
21800
21801  rm -f "$ac_tmp/stdin"
21802  case $ac_file in
21803  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21804  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21805  esac \
21806  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21807 ;;
21808  :H)
21809  #
21810  # CONFIG_HEADER
21811  #
21812  if test x"$ac_file" != x-; then
21813    {
21814      $as_echo "/* $configure_input  */" \
21815      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21816    } >"$ac_tmp/config.h" \
21817      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21818    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21819      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21820$as_echo "$as_me: $ac_file is unchanged" >&6;}
21821    else
21822      rm -f "$ac_file"
21823      mv "$ac_tmp/config.h" "$ac_file" \
21824	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21825    fi
21826  else
21827    $as_echo "/* $configure_input  */" \
21828      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21829      || as_fn_error $? "could not create -" "$LINENO" 5
21830  fi
21831# Compute "$ac_file"'s index in $config_headers.
21832_am_arg="$ac_file"
21833_am_stamp_count=1
21834for _am_header in $config_headers :; do
21835  case $_am_header in
21836    $_am_arg | $_am_arg:* )
21837      break ;;
21838    * )
21839      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21840  esac
21841done
21842echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21843$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21844	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21845	 X"$_am_arg" : 'X\(//\)$' \| \
21846	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21847$as_echo X"$_am_arg" |
21848    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21849	    s//\1/
21850	    q
21851	  }
21852	  /^X\(\/\/\)[^/].*/{
21853	    s//\1/
21854	    q
21855	  }
21856	  /^X\(\/\/\)$/{
21857	    s//\1/
21858	    q
21859	  }
21860	  /^X\(\/\).*/{
21861	    s//\1/
21862	    q
21863	  }
21864	  s/.*/./; q'`/stamp-h$_am_stamp_count
21865 ;;
21866
21867  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21868$as_echo "$as_me: executing $ac_file commands" >&6;}
21869 ;;
21870  esac
21871
21872
21873  case $ac_file$ac_mode in
21874    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21875  # Older Autoconf quotes --file arguments for eval, but not when files
21876  # are listed without --file.  Let's play safe and only enable the eval
21877  # if we detect the quoting.
21878  case $CONFIG_FILES in
21879  *\'*) eval set x "$CONFIG_FILES" ;;
21880  *)   set x $CONFIG_FILES ;;
21881  esac
21882  shift
21883  for mf
21884  do
21885    # Strip MF so we end up with the name of the file.
21886    mf=`echo "$mf" | sed -e 's/:.*$//'`
21887    # Check whether this is an Automake generated Makefile or not.
21888    # We used to match only the files named 'Makefile.in', but
21889    # some people rename them; so instead we look at the file content.
21890    # Grep'ing the first line is not enough: some people post-process
21891    # each Makefile.in and add a new line on top of each file to say so.
21892    # Grep'ing the whole file is not good either: AIX grep has a line
21893    # limit of 2048, but all sed's we know have understand at least 4000.
21894    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21895      dirpart=`$as_dirname -- "$mf" ||
21896$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21897	 X"$mf" : 'X\(//\)[^/]' \| \
21898	 X"$mf" : 'X\(//\)$' \| \
21899	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21900$as_echo X"$mf" |
21901    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21902	    s//\1/
21903	    q
21904	  }
21905	  /^X\(\/\/\)[^/].*/{
21906	    s//\1/
21907	    q
21908	  }
21909	  /^X\(\/\/\)$/{
21910	    s//\1/
21911	    q
21912	  }
21913	  /^X\(\/\).*/{
21914	    s//\1/
21915	    q
21916	  }
21917	  s/.*/./; q'`
21918    else
21919      continue
21920    fi
21921    # Extract the definition of DEPDIR, am__include, and am__quote
21922    # from the Makefile without running 'make'.
21923    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21924    test -z "$DEPDIR" && continue
21925    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21926    test -z "$am__include" && continue
21927    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21928    # Find all dependency output files, they are included files with
21929    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21930    # simplest approach to changing $(DEPDIR) to its actual value in the
21931    # expansion.
21932    for file in `sed -n "
21933      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21934	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21935      # Make sure the directory exists.
21936      test -f "$dirpart/$file" && continue
21937      fdir=`$as_dirname -- "$file" ||
21938$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21939	 X"$file" : 'X\(//\)[^/]' \| \
21940	 X"$file" : 'X\(//\)$' \| \
21941	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21942$as_echo X"$file" |
21943    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21944	    s//\1/
21945	    q
21946	  }
21947	  /^X\(\/\/\)[^/].*/{
21948	    s//\1/
21949	    q
21950	  }
21951	  /^X\(\/\/\)$/{
21952	    s//\1/
21953	    q
21954	  }
21955	  /^X\(\/\).*/{
21956	    s//\1/
21957	    q
21958	  }
21959	  s/.*/./; q'`
21960      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21961      # echo "creating $dirpart/$file"
21962      echo '# dummy' > "$dirpart/$file"
21963    done
21964  done
21965}
21966 ;;
21967    "libtool":C)
21968
21969    # See if we are running on zsh, and set the options which allow our
21970    # commands through without removal of \ escapes.
21971    if test -n "${ZSH_VERSION+set}" ; then
21972      setopt NO_GLOB_SUBST
21973    fi
21974
21975    cfgfile="${ofile}T"
21976    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21977    $RM "$cfgfile"
21978
21979    cat <<_LT_EOF >> "$cfgfile"
21980#! $SHELL
21981
21982# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21983# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21984# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21985# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21986#
21987#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21988#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21989#                 Foundation, Inc.
21990#   Written by Gordon Matzigkeit, 1996
21991#
21992#   This file is part of GNU Libtool.
21993#
21994# GNU Libtool is free software; you can redistribute it and/or
21995# modify it under the terms of the GNU General Public License as
21996# published by the Free Software Foundation; either version 2 of
21997# the License, or (at your option) any later version.
21998#
21999# As a special exception to the GNU General Public License,
22000# if you distribute this file as part of a program or library that
22001# is built using GNU Libtool, you may include this file under the
22002# same distribution terms that you use for the rest of that program.
22003#
22004# GNU Libtool is distributed in the hope that it will be useful,
22005# but WITHOUT ANY WARRANTY; without even the implied warranty of
22006# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22007# GNU General Public License for more details.
22008#
22009# You should have received a copy of the GNU General Public License
22010# along with GNU Libtool; see the file COPYING.  If not, a copy
22011# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22012# obtained by writing to the Free Software Foundation, Inc.,
22013# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22014
22015
22016# The names of the tagged configurations supported by this script.
22017available_tags="CXX F77 "
22018
22019# ### BEGIN LIBTOOL CONFIG
22020
22021# Which release of libtool.m4 was used?
22022macro_version=$macro_version
22023macro_revision=$macro_revision
22024
22025# Whether or not to build shared libraries.
22026build_libtool_libs=$enable_shared
22027
22028# Whether or not to build static libraries.
22029build_old_libs=$enable_static
22030
22031# What type of objects to build.
22032pic_mode=$pic_mode
22033
22034# Whether or not to optimize for fast installation.
22035fast_install=$enable_fast_install
22036
22037# Shell to use when invoking shell scripts.
22038SHELL=$lt_SHELL
22039
22040# An echo program that protects backslashes.
22041ECHO=$lt_ECHO
22042
22043# The PATH separator for the build system.
22044PATH_SEPARATOR=$lt_PATH_SEPARATOR
22045
22046# The host system.
22047host_alias=$host_alias
22048host=$host
22049host_os=$host_os
22050
22051# The build system.
22052build_alias=$build_alias
22053build=$build
22054build_os=$build_os
22055
22056# A sed program that does not truncate output.
22057SED=$lt_SED
22058
22059# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22060Xsed="\$SED -e 1s/^X//"
22061
22062# A grep program that handles long lines.
22063GREP=$lt_GREP
22064
22065# An ERE matcher.
22066EGREP=$lt_EGREP
22067
22068# A literal string matcher.
22069FGREP=$lt_FGREP
22070
22071# A BSD- or MS-compatible name lister.
22072NM=$lt_NM
22073
22074# Whether we need soft or hard links.
22075LN_S=$lt_LN_S
22076
22077# What is the maximum length of a command?
22078max_cmd_len=$max_cmd_len
22079
22080# Object file suffix (normally "o").
22081objext=$ac_objext
22082
22083# Executable file suffix (normally "").
22084exeext=$exeext
22085
22086# whether the shell understands "unset".
22087lt_unset=$lt_unset
22088
22089# turn spaces into newlines.
22090SP2NL=$lt_lt_SP2NL
22091
22092# turn newlines into spaces.
22093NL2SP=$lt_lt_NL2SP
22094
22095# convert \$build file names to \$host format.
22096to_host_file_cmd=$lt_cv_to_host_file_cmd
22097
22098# convert \$build files to toolchain format.
22099to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22100
22101# An object symbol dumper.
22102OBJDUMP=$lt_OBJDUMP
22103
22104# Method to check whether dependent libraries are shared objects.
22105deplibs_check_method=$lt_deplibs_check_method
22106
22107# Command to use when deplibs_check_method = "file_magic".
22108file_magic_cmd=$lt_file_magic_cmd
22109
22110# How to find potential files when deplibs_check_method = "file_magic".
22111file_magic_glob=$lt_file_magic_glob
22112
22113# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22114want_nocaseglob=$lt_want_nocaseglob
22115
22116# DLL creation program.
22117DLLTOOL=$lt_DLLTOOL
22118
22119# Command to associate shared and link libraries.
22120sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22121
22122# The archiver.
22123AR=$lt_AR
22124
22125# Flags to create an archive.
22126AR_FLAGS=$lt_AR_FLAGS
22127
22128# How to feed a file listing to the archiver.
22129archiver_list_spec=$lt_archiver_list_spec
22130
22131# A symbol stripping program.
22132STRIP=$lt_STRIP
22133
22134# Commands used to install an old-style archive.
22135RANLIB=$lt_RANLIB
22136old_postinstall_cmds=$lt_old_postinstall_cmds
22137old_postuninstall_cmds=$lt_old_postuninstall_cmds
22138
22139# Whether to use a lock for old archive extraction.
22140lock_old_archive_extraction=$lock_old_archive_extraction
22141
22142# A C compiler.
22143LTCC=$lt_CC
22144
22145# LTCC compiler flags.
22146LTCFLAGS=$lt_CFLAGS
22147
22148# Take the output of nm and produce a listing of raw symbols and C names.
22149global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22150
22151# Transform the output of nm in a proper C declaration.
22152global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22153
22154# Transform the output of nm in a C name address pair.
22155global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22156
22157# Transform the output of nm in a C name address pair when lib prefix is needed.
22158global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22159
22160# Specify filename containing input files for \$NM.
22161nm_file_list_spec=$lt_nm_file_list_spec
22162
22163# The root where to search for dependent libraries,and in which our libraries should be installed.
22164lt_sysroot=$lt_sysroot
22165
22166# The name of the directory that contains temporary libtool files.
22167objdir=$objdir
22168
22169# Used to examine libraries when file_magic_cmd begins with "file".
22170MAGIC_CMD=$MAGIC_CMD
22171
22172# Must we lock files when doing compilation?
22173need_locks=$lt_need_locks
22174
22175# Manifest tool.
22176MANIFEST_TOOL=$lt_MANIFEST_TOOL
22177
22178# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22179DSYMUTIL=$lt_DSYMUTIL
22180
22181# Tool to change global to local symbols on Mac OS X.
22182NMEDIT=$lt_NMEDIT
22183
22184# Tool to manipulate fat objects and archives on Mac OS X.
22185LIPO=$lt_LIPO
22186
22187# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22188OTOOL=$lt_OTOOL
22189
22190# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22191OTOOL64=$lt_OTOOL64
22192
22193# Old archive suffix (normally "a").
22194libext=$libext
22195
22196# Shared library suffix (normally ".so").
22197shrext_cmds=$lt_shrext_cmds
22198
22199# The commands to extract the exported symbol list from a shared archive.
22200extract_expsyms_cmds=$lt_extract_expsyms_cmds
22201
22202# Variables whose values should be saved in libtool wrapper scripts and
22203# restored at link time.
22204variables_saved_for_relink=$lt_variables_saved_for_relink
22205
22206# Do we need the "lib" prefix for modules?
22207need_lib_prefix=$need_lib_prefix
22208
22209# Do we need a version for libraries?
22210need_version=$need_version
22211
22212# Library versioning type.
22213version_type=$version_type
22214
22215# Shared library runtime path variable.
22216runpath_var=$runpath_var
22217
22218# Shared library path variable.
22219shlibpath_var=$shlibpath_var
22220
22221# Is shlibpath searched before the hard-coded library search path?
22222shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22223
22224# Format of library name prefix.
22225libname_spec=$lt_libname_spec
22226
22227# List of archive names.  First name is the real one, the rest are links.
22228# The last name is the one that the linker finds with -lNAME
22229library_names_spec=$lt_library_names_spec
22230
22231# The coded name of the library, if different from the real name.
22232soname_spec=$lt_soname_spec
22233
22234# Permission mode override for installation of shared libraries.
22235install_override_mode=$lt_install_override_mode
22236
22237# Command to use after installation of a shared archive.
22238postinstall_cmds=$lt_postinstall_cmds
22239
22240# Command to use after uninstallation of a shared archive.
22241postuninstall_cmds=$lt_postuninstall_cmds
22242
22243# Commands used to finish a libtool library installation in a directory.
22244finish_cmds=$lt_finish_cmds
22245
22246# As "finish_cmds", except a single script fragment to be evaled but
22247# not shown.
22248finish_eval=$lt_finish_eval
22249
22250# Whether we should hardcode library paths into libraries.
22251hardcode_into_libs=$hardcode_into_libs
22252
22253# Compile-time system search path for libraries.
22254sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22255
22256# Run-time system search path for libraries.
22257sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22258
22259# Whether dlopen is supported.
22260dlopen_support=$enable_dlopen
22261
22262# Whether dlopen of programs is supported.
22263dlopen_self=$enable_dlopen_self
22264
22265# Whether dlopen of statically linked programs is supported.
22266dlopen_self_static=$enable_dlopen_self_static
22267
22268# Commands to strip libraries.
22269old_striplib=$lt_old_striplib
22270striplib=$lt_striplib
22271
22272
22273# The linker used to build libraries.
22274LD=$lt_LD
22275
22276# How to create reloadable object files.
22277reload_flag=$lt_reload_flag
22278reload_cmds=$lt_reload_cmds
22279
22280# Commands used to build an old-style archive.
22281old_archive_cmds=$lt_old_archive_cmds
22282
22283# A language specific compiler.
22284CC=$lt_compiler
22285
22286# Is the compiler the GNU compiler?
22287with_gcc=$GCC
22288
22289# Compiler flag to turn off builtin functions.
22290no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22291
22292# Additional compiler flags for building library objects.
22293pic_flag=$lt_lt_prog_compiler_pic
22294
22295# How to pass a linker flag through the compiler.
22296wl=$lt_lt_prog_compiler_wl
22297
22298# Compiler flag to prevent dynamic linking.
22299link_static_flag=$lt_lt_prog_compiler_static
22300
22301# Does compiler simultaneously support -c and -o options?
22302compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22303
22304# Whether or not to add -lc for building shared libraries.
22305build_libtool_need_lc=$archive_cmds_need_lc
22306
22307# Whether or not to disallow shared libs when runtime libs are static.
22308allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22309
22310# Compiler flag to allow reflexive dlopens.
22311export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22312
22313# Compiler flag to generate shared objects directly from archives.
22314whole_archive_flag_spec=$lt_whole_archive_flag_spec
22315
22316# Whether the compiler copes with passing no objects directly.
22317compiler_needs_object=$lt_compiler_needs_object
22318
22319# Create an old-style archive from a shared archive.
22320old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22321
22322# Create a temporary old-style archive to link instead of a shared archive.
22323old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22324
22325# Commands used to build a shared archive.
22326archive_cmds=$lt_archive_cmds
22327archive_expsym_cmds=$lt_archive_expsym_cmds
22328
22329# Commands used to build a loadable module if different from building
22330# a shared archive.
22331module_cmds=$lt_module_cmds
22332module_expsym_cmds=$lt_module_expsym_cmds
22333
22334# Whether we are building with GNU ld or not.
22335with_gnu_ld=$lt_with_gnu_ld
22336
22337# Flag that allows shared libraries with undefined symbols to be built.
22338allow_undefined_flag=$lt_allow_undefined_flag
22339
22340# Flag that enforces no undefined symbols.
22341no_undefined_flag=$lt_no_undefined_flag
22342
22343# Flag to hardcode \$libdir into a binary during linking.
22344# This must work even if \$libdir does not exist
22345hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22346
22347# Whether we need a single "-rpath" flag with a separated argument.
22348hardcode_libdir_separator=$lt_hardcode_libdir_separator
22349
22350# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22351# DIR into the resulting binary.
22352hardcode_direct=$hardcode_direct
22353
22354# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22355# DIR into the resulting binary and the resulting library dependency is
22356# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22357# library is relocated.
22358hardcode_direct_absolute=$hardcode_direct_absolute
22359
22360# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22361# into the resulting binary.
22362hardcode_minus_L=$hardcode_minus_L
22363
22364# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22365# into the resulting binary.
22366hardcode_shlibpath_var=$hardcode_shlibpath_var
22367
22368# Set to "yes" if building a shared library automatically hardcodes DIR
22369# into the library and all subsequent libraries and executables linked
22370# against it.
22371hardcode_automatic=$hardcode_automatic
22372
22373# Set to yes if linker adds runtime paths of dependent libraries
22374# to runtime path list.
22375inherit_rpath=$inherit_rpath
22376
22377# Whether libtool must link a program against all its dependency libraries.
22378link_all_deplibs=$link_all_deplibs
22379
22380# Set to "yes" if exported symbols are required.
22381always_export_symbols=$always_export_symbols
22382
22383# The commands to list exported symbols.
22384export_symbols_cmds=$lt_export_symbols_cmds
22385
22386# Symbols that should not be listed in the preloaded symbols.
22387exclude_expsyms=$lt_exclude_expsyms
22388
22389# Symbols that must always be exported.
22390include_expsyms=$lt_include_expsyms
22391
22392# Commands necessary for linking programs (against libraries) with templates.
22393prelink_cmds=$lt_prelink_cmds
22394
22395# Commands necessary for finishing linking programs.
22396postlink_cmds=$lt_postlink_cmds
22397
22398# Specify filename containing input files.
22399file_list_spec=$lt_file_list_spec
22400
22401# How to hardcode a shared library path into an executable.
22402hardcode_action=$hardcode_action
22403
22404# The directories searched by this compiler when creating a shared library.
22405compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22406
22407# Dependencies to place before and after the objects being linked to
22408# create a shared library.
22409predep_objects=$lt_predep_objects
22410postdep_objects=$lt_postdep_objects
22411predeps=$lt_predeps
22412postdeps=$lt_postdeps
22413
22414# The library search path used internally by the compiler when linking
22415# a shared library.
22416compiler_lib_search_path=$lt_compiler_lib_search_path
22417
22418# ### END LIBTOOL CONFIG
22419
22420_LT_EOF
22421
22422  case $host_os in
22423  aix3*)
22424    cat <<\_LT_EOF >> "$cfgfile"
22425# AIX sometimes has problems with the GCC collect2 program.  For some
22426# reason, if we set the COLLECT_NAMES environment variable, the problems
22427# vanish in a puff of smoke.
22428if test "X${COLLECT_NAMES+set}" != Xset; then
22429  COLLECT_NAMES=
22430  export COLLECT_NAMES
22431fi
22432_LT_EOF
22433    ;;
22434  esac
22435
22436
22437ltmain="$ac_aux_dir/ltmain.sh"
22438
22439
22440  # We use sed instead of cat because bash on DJGPP gets confused if
22441  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22442  # text mode, it properly converts lines to CR/LF.  This bash problem
22443  # is reportedly fixed, but why not run on old versions too?
22444  sed '$q' "$ltmain" >> "$cfgfile" \
22445     || (rm -f "$cfgfile"; exit 1)
22446
22447  if test x"$xsi_shell" = xyes; then
22448  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22449func_dirname ()\
22450{\
22451\    case ${1} in\
22452\      */*) func_dirname_result="${1%/*}${2}" ;;\
22453\      *  ) func_dirname_result="${3}" ;;\
22454\    esac\
22455} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22456  && mv -f "$cfgfile.tmp" "$cfgfile" \
22457    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22458test 0 -eq $? || _lt_function_replace_fail=:
22459
22460
22461  sed -e '/^func_basename ()$/,/^} # func_basename /c\
22462func_basename ()\
22463{\
22464\    func_basename_result="${1##*/}"\
22465} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22466  && mv -f "$cfgfile.tmp" "$cfgfile" \
22467    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22468test 0 -eq $? || _lt_function_replace_fail=:
22469
22470
22471  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22472func_dirname_and_basename ()\
22473{\
22474\    case ${1} in\
22475\      */*) func_dirname_result="${1%/*}${2}" ;;\
22476\      *  ) func_dirname_result="${3}" ;;\
22477\    esac\
22478\    func_basename_result="${1##*/}"\
22479} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22480  && mv -f "$cfgfile.tmp" "$cfgfile" \
22481    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22482test 0 -eq $? || _lt_function_replace_fail=:
22483
22484
22485  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22486func_stripname ()\
22487{\
22488\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22489\    # positional parameters, so assign one to ordinary parameter first.\
22490\    func_stripname_result=${3}\
22491\    func_stripname_result=${func_stripname_result#"${1}"}\
22492\    func_stripname_result=${func_stripname_result%"${2}"}\
22493} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22494  && mv -f "$cfgfile.tmp" "$cfgfile" \
22495    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22496test 0 -eq $? || _lt_function_replace_fail=:
22497
22498
22499  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22500func_split_long_opt ()\
22501{\
22502\    func_split_long_opt_name=${1%%=*}\
22503\    func_split_long_opt_arg=${1#*=}\
22504} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22505  && mv -f "$cfgfile.tmp" "$cfgfile" \
22506    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22507test 0 -eq $? || _lt_function_replace_fail=:
22508
22509
22510  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22511func_split_short_opt ()\
22512{\
22513\    func_split_short_opt_arg=${1#??}\
22514\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22515} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22516  && mv -f "$cfgfile.tmp" "$cfgfile" \
22517    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22518test 0 -eq $? || _lt_function_replace_fail=:
22519
22520
22521  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22522func_lo2o ()\
22523{\
22524\    case ${1} in\
22525\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22526\      *)    func_lo2o_result=${1} ;;\
22527\    esac\
22528} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22529  && mv -f "$cfgfile.tmp" "$cfgfile" \
22530    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22531test 0 -eq $? || _lt_function_replace_fail=:
22532
22533
22534  sed -e '/^func_xform ()$/,/^} # func_xform /c\
22535func_xform ()\
22536{\
22537    func_xform_result=${1%.*}.lo\
22538} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22539  && mv -f "$cfgfile.tmp" "$cfgfile" \
22540    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22541test 0 -eq $? || _lt_function_replace_fail=:
22542
22543
22544  sed -e '/^func_arith ()$/,/^} # func_arith /c\
22545func_arith ()\
22546{\
22547    func_arith_result=$(( $* ))\
22548} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22549  && mv -f "$cfgfile.tmp" "$cfgfile" \
22550    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22551test 0 -eq $? || _lt_function_replace_fail=:
22552
22553
22554  sed -e '/^func_len ()$/,/^} # func_len /c\
22555func_len ()\
22556{\
22557    func_len_result=${#1}\
22558} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22559  && mv -f "$cfgfile.tmp" "$cfgfile" \
22560    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22561test 0 -eq $? || _lt_function_replace_fail=:
22562
22563fi
22564
22565if test x"$lt_shell_append" = xyes; then
22566  sed -e '/^func_append ()$/,/^} # func_append /c\
22567func_append ()\
22568{\
22569    eval "${1}+=\\${2}"\
22570} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22571  && mv -f "$cfgfile.tmp" "$cfgfile" \
22572    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22573test 0 -eq $? || _lt_function_replace_fail=:
22574
22575
22576  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22577func_append_quoted ()\
22578{\
22579\    func_quote_for_eval "${2}"\
22580\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22581} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22582  && mv -f "$cfgfile.tmp" "$cfgfile" \
22583    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22584test 0 -eq $? || _lt_function_replace_fail=:
22585
22586
22587  # Save a `func_append' function call where possible by direct use of '+='
22588  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22589    && mv -f "$cfgfile.tmp" "$cfgfile" \
22590      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22591  test 0 -eq $? || _lt_function_replace_fail=:
22592else
22593  # Save a `func_append' function call even when '+=' is not available
22594  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22595    && mv -f "$cfgfile.tmp" "$cfgfile" \
22596      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22597  test 0 -eq $? || _lt_function_replace_fail=:
22598fi
22599
22600if test x"$_lt_function_replace_fail" = x":"; then
22601  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22602$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22603fi
22604
22605
22606   mv -f "$cfgfile" "$ofile" ||
22607    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22608  chmod +x "$ofile"
22609
22610
22611    cat <<_LT_EOF >> "$ofile"
22612
22613# ### BEGIN LIBTOOL TAG CONFIG: CXX
22614
22615# The linker used to build libraries.
22616LD=$lt_LD_CXX
22617
22618# How to create reloadable object files.
22619reload_flag=$lt_reload_flag_CXX
22620reload_cmds=$lt_reload_cmds_CXX
22621
22622# Commands used to build an old-style archive.
22623old_archive_cmds=$lt_old_archive_cmds_CXX
22624
22625# A language specific compiler.
22626CC=$lt_compiler_CXX
22627
22628# Is the compiler the GNU compiler?
22629with_gcc=$GCC_CXX
22630
22631# Compiler flag to turn off builtin functions.
22632no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22633
22634# Additional compiler flags for building library objects.
22635pic_flag=$lt_lt_prog_compiler_pic_CXX
22636
22637# How to pass a linker flag through the compiler.
22638wl=$lt_lt_prog_compiler_wl_CXX
22639
22640# Compiler flag to prevent dynamic linking.
22641link_static_flag=$lt_lt_prog_compiler_static_CXX
22642
22643# Does compiler simultaneously support -c and -o options?
22644compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22645
22646# Whether or not to add -lc for building shared libraries.
22647build_libtool_need_lc=$archive_cmds_need_lc_CXX
22648
22649# Whether or not to disallow shared libs when runtime libs are static.
22650allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22651
22652# Compiler flag to allow reflexive dlopens.
22653export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22654
22655# Compiler flag to generate shared objects directly from archives.
22656whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22657
22658# Whether the compiler copes with passing no objects directly.
22659compiler_needs_object=$lt_compiler_needs_object_CXX
22660
22661# Create an old-style archive from a shared archive.
22662old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22663
22664# Create a temporary old-style archive to link instead of a shared archive.
22665old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22666
22667# Commands used to build a shared archive.
22668archive_cmds=$lt_archive_cmds_CXX
22669archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22670
22671# Commands used to build a loadable module if different from building
22672# a shared archive.
22673module_cmds=$lt_module_cmds_CXX
22674module_expsym_cmds=$lt_module_expsym_cmds_CXX
22675
22676# Whether we are building with GNU ld or not.
22677with_gnu_ld=$lt_with_gnu_ld_CXX
22678
22679# Flag that allows shared libraries with undefined symbols to be built.
22680allow_undefined_flag=$lt_allow_undefined_flag_CXX
22681
22682# Flag that enforces no undefined symbols.
22683no_undefined_flag=$lt_no_undefined_flag_CXX
22684
22685# Flag to hardcode \$libdir into a binary during linking.
22686# This must work even if \$libdir does not exist
22687hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22688
22689# Whether we need a single "-rpath" flag with a separated argument.
22690hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22691
22692# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22693# DIR into the resulting binary.
22694hardcode_direct=$hardcode_direct_CXX
22695
22696# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22697# DIR into the resulting binary and the resulting library dependency is
22698# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22699# library is relocated.
22700hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22701
22702# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22703# into the resulting binary.
22704hardcode_minus_L=$hardcode_minus_L_CXX
22705
22706# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22707# into the resulting binary.
22708hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22709
22710# Set to "yes" if building a shared library automatically hardcodes DIR
22711# into the library and all subsequent libraries and executables linked
22712# against it.
22713hardcode_automatic=$hardcode_automatic_CXX
22714
22715# Set to yes if linker adds runtime paths of dependent libraries
22716# to runtime path list.
22717inherit_rpath=$inherit_rpath_CXX
22718
22719# Whether libtool must link a program against all its dependency libraries.
22720link_all_deplibs=$link_all_deplibs_CXX
22721
22722# Set to "yes" if exported symbols are required.
22723always_export_symbols=$always_export_symbols_CXX
22724
22725# The commands to list exported symbols.
22726export_symbols_cmds=$lt_export_symbols_cmds_CXX
22727
22728# Symbols that should not be listed in the preloaded symbols.
22729exclude_expsyms=$lt_exclude_expsyms_CXX
22730
22731# Symbols that must always be exported.
22732include_expsyms=$lt_include_expsyms_CXX
22733
22734# Commands necessary for linking programs (against libraries) with templates.
22735prelink_cmds=$lt_prelink_cmds_CXX
22736
22737# Commands necessary for finishing linking programs.
22738postlink_cmds=$lt_postlink_cmds_CXX
22739
22740# Specify filename containing input files.
22741file_list_spec=$lt_file_list_spec_CXX
22742
22743# How to hardcode a shared library path into an executable.
22744hardcode_action=$hardcode_action_CXX
22745
22746# The directories searched by this compiler when creating a shared library.
22747compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22748
22749# Dependencies to place before and after the objects being linked to
22750# create a shared library.
22751predep_objects=$lt_predep_objects_CXX
22752postdep_objects=$lt_postdep_objects_CXX
22753predeps=$lt_predeps_CXX
22754postdeps=$lt_postdeps_CXX
22755
22756# The library search path used internally by the compiler when linking
22757# a shared library.
22758compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22759
22760# ### END LIBTOOL TAG CONFIG: CXX
22761_LT_EOF
22762
22763
22764    cat <<_LT_EOF >> "$ofile"
22765
22766# ### BEGIN LIBTOOL TAG CONFIG: F77
22767
22768# The linker used to build libraries.
22769LD=$lt_LD_F77
22770
22771# How to create reloadable object files.
22772reload_flag=$lt_reload_flag_F77
22773reload_cmds=$lt_reload_cmds_F77
22774
22775# Commands used to build an old-style archive.
22776old_archive_cmds=$lt_old_archive_cmds_F77
22777
22778# A language specific compiler.
22779CC=$lt_compiler_F77
22780
22781# Is the compiler the GNU compiler?
22782with_gcc=$GCC_F77
22783
22784# Compiler flag to turn off builtin functions.
22785no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22786
22787# Additional compiler flags for building library objects.
22788pic_flag=$lt_lt_prog_compiler_pic_F77
22789
22790# How to pass a linker flag through the compiler.
22791wl=$lt_lt_prog_compiler_wl_F77
22792
22793# Compiler flag to prevent dynamic linking.
22794link_static_flag=$lt_lt_prog_compiler_static_F77
22795
22796# Does compiler simultaneously support -c and -o options?
22797compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22798
22799# Whether or not to add -lc for building shared libraries.
22800build_libtool_need_lc=$archive_cmds_need_lc_F77
22801
22802# Whether or not to disallow shared libs when runtime libs are static.
22803allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22804
22805# Compiler flag to allow reflexive dlopens.
22806export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22807
22808# Compiler flag to generate shared objects directly from archives.
22809whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22810
22811# Whether the compiler copes with passing no objects directly.
22812compiler_needs_object=$lt_compiler_needs_object_F77
22813
22814# Create an old-style archive from a shared archive.
22815old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22816
22817# Create a temporary old-style archive to link instead of a shared archive.
22818old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22819
22820# Commands used to build a shared archive.
22821archive_cmds=$lt_archive_cmds_F77
22822archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22823
22824# Commands used to build a loadable module if different from building
22825# a shared archive.
22826module_cmds=$lt_module_cmds_F77
22827module_expsym_cmds=$lt_module_expsym_cmds_F77
22828
22829# Whether we are building with GNU ld or not.
22830with_gnu_ld=$lt_with_gnu_ld_F77
22831
22832# Flag that allows shared libraries with undefined symbols to be built.
22833allow_undefined_flag=$lt_allow_undefined_flag_F77
22834
22835# Flag that enforces no undefined symbols.
22836no_undefined_flag=$lt_no_undefined_flag_F77
22837
22838# Flag to hardcode \$libdir into a binary during linking.
22839# This must work even if \$libdir does not exist
22840hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22841
22842# Whether we need a single "-rpath" flag with a separated argument.
22843hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22844
22845# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22846# DIR into the resulting binary.
22847hardcode_direct=$hardcode_direct_F77
22848
22849# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22850# DIR into the resulting binary and the resulting library dependency is
22851# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22852# library is relocated.
22853hardcode_direct_absolute=$hardcode_direct_absolute_F77
22854
22855# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22856# into the resulting binary.
22857hardcode_minus_L=$hardcode_minus_L_F77
22858
22859# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22860# into the resulting binary.
22861hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22862
22863# Set to "yes" if building a shared library automatically hardcodes DIR
22864# into the library and all subsequent libraries and executables linked
22865# against it.
22866hardcode_automatic=$hardcode_automatic_F77
22867
22868# Set to yes if linker adds runtime paths of dependent libraries
22869# to runtime path list.
22870inherit_rpath=$inherit_rpath_F77
22871
22872# Whether libtool must link a program against all its dependency libraries.
22873link_all_deplibs=$link_all_deplibs_F77
22874
22875# Set to "yes" if exported symbols are required.
22876always_export_symbols=$always_export_symbols_F77
22877
22878# The commands to list exported symbols.
22879export_symbols_cmds=$lt_export_symbols_cmds_F77
22880
22881# Symbols that should not be listed in the preloaded symbols.
22882exclude_expsyms=$lt_exclude_expsyms_F77
22883
22884# Symbols that must always be exported.
22885include_expsyms=$lt_include_expsyms_F77
22886
22887# Commands necessary for linking programs (against libraries) with templates.
22888prelink_cmds=$lt_prelink_cmds_F77
22889
22890# Commands necessary for finishing linking programs.
22891postlink_cmds=$lt_postlink_cmds_F77
22892
22893# Specify filename containing input files.
22894file_list_spec=$lt_file_list_spec_F77
22895
22896# How to hardcode a shared library path into an executable.
22897hardcode_action=$hardcode_action_F77
22898
22899# The directories searched by this compiler when creating a shared library.
22900compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
22901
22902# Dependencies to place before and after the objects being linked to
22903# create a shared library.
22904predep_objects=$lt_predep_objects_F77
22905postdep_objects=$lt_postdep_objects_F77
22906predeps=$lt_predeps_F77
22907postdeps=$lt_postdeps_F77
22908
22909# The library search path used internally by the compiler when linking
22910# a shared library.
22911compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22912
22913# ### END LIBTOOL TAG CONFIG: F77
22914_LT_EOF
22915
22916 ;;
22917
22918  esac
22919done # for ac_tag
22920
22921
22922as_fn_exit 0
22923_ACEOF
22924ac_clean_files=$ac_clean_files_save
22925
22926test $ac_write_fail = 0 ||
22927  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22928
22929
22930# configure is writing to config.log, and then calls config.status.
22931# config.status does its own redirection, appending to config.log.
22932# Unfortunately, on DOS this fails, as config.log is still kept open
22933# by configure, so config.status won't be able to write to it; its
22934# output is simply discarded.  So we exec the FD to /dev/null,
22935# effectively closing config.log, so it can be properly (re)opened and
22936# appended to by config.status.  When coming back to configure, we
22937# need to make the FD available again.
22938if test "$no_create" != yes; then
22939  ac_cs_success=:
22940  ac_config_status_args=
22941  test "$silent" = yes &&
22942    ac_config_status_args="$ac_config_status_args --quiet"
22943  exec 5>/dev/null
22944  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22945  exec 5>>config.log
22946  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22947  # would make configure fail if this is the last instruction.
22948  $ac_cs_success || as_fn_exit 1
22949fi
22950if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22951  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22952$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22953fi
22954
22955
22956
22957echo "       "
22958echo "       " Configuration Summary
22959echo "" ------------------------------
22960echo core: "        "  yes
22961echo contrib: "     "  ${enable_contrib:-yes}
22962echo phs: "         "  ${enable_phs:-yes}
22963echo cns: "         "  ${enable_cns:-yes}
22964echo mmdb: "        "  ${enable_mmdb:-no}
22965echo minimol: "     "  ${enable_minimol:-no}
22966echo cif: "         "  ${enable_cif:-no}
22967echo ccp4: "        "  ${enable_ccp4:-no}
22968echo cctbx: "       "  ${enable_cctbx:-no}
22969echo fortran: "     "  ${enable_fortran:-no}
22970echo " "
22971
22972