1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for netCDF 4.7.4.
4#
5# Report bugs to <support-netcdf@unidata.ucar.edu>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: support-netcdf@unidata.ucar.edu about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='netCDF'
592PACKAGE_TARNAME='netcdf-c'
593PACKAGE_VERSION='4.7.4'
594PACKAGE_STRING='netCDF 4.7.4'
595PACKAGE_BUGREPORT='support-netcdf@unidata.ucar.edu'
596PACKAGE_URL=''
597
598ac_unique_file="include/netcdf.h"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639MSVC
640ISCMAKE
641NC_DISPATCH_VERSION
642NC_HAS_BYTERANGE
643NC_HAS_PAR_FILTERS
644NC_HAS_ERANGE_FILL
645NC_HAS_CDF5
646NC_HAS_PARALLEL4
647NC_HAS_PARALLEL
648NC_HAS_PNETCDF
649NC_HAS_JNA
650NC_HAS_MMAP
651NC_HAS_DISKLESS
652NC_HAS_DAP4
653NC_HAS_DAP2
654NC_HAS_SZIP
655NC_HAS_HDF5
656NC_HAS_HDF4
657NC_HAS_NC4
658NC_HAS_NC2
659NC_VERSION
660NOUNDEFINED
661AM_LDFLAGS
662AM_CPPFLAGS
663AM_CFLAGS
664enable_static
665enable_shared
666HAS_PAR_FILTERS
667RELAX_COORD_BOUND
668HAS_BYTERANGE
669HAS_ERANGE_FILL
670HAS_JNA
671HAS_MMAP
672HAS_DISKLESS
673HAS_PARALLEL4
674HAS_PARALLEL
675HAS_SZLIB_WRITE
676HAS_SZLIB
677HAS_LOGGING
678HAS_PNETCDF
679HAS_HDF5
680HAS_HDF4
681HAS_CDF5
682HAS_NC4
683HAS_NC2
684HAS_DAP4
685HAS_DAP2
686HAS_DAP
687NC_LIBS
688ENABLE_FILTER_TESTING_FALSE
689ENABLE_FILTER_TESTING_TRUE
690BINFILE_NAME
691HAS_PAR_FILTERS_FALSE
692HAS_PAR_FILTERS_TRUE
693RELAX_COORD_BOUND_FALSE
694RELAX_COORD_BOUND_TRUE
695ENABLE_BYTERANGE_FALSE
696ENABLE_BYTERANGE_TRUE
697ENABLE_METADATA_PERF_FALSE
698ENABLE_METADATA_PERF_TRUE
699BUILD_MMAP_FALSE
700BUILD_MMAP_TRUE
701USE_DISPATCH_FALSE
702USE_DISPATCH_TRUE
703USE_PNETCDF_FALSE
704USE_PNETCDF_TRUE
705BUILD_FORTRAN_FALSE
706BUILD_FORTRAN_TRUE
707USE_RENAMEV3_FALSE
708USE_RENAMEV3_TRUE
709USE_HDF4_FILE_TESTS_FALSE
710USE_HDF4_FILE_TESTS_TRUE
711USE_HDF4_FALSE
712USE_HDF4_TRUE
713USE_HDF5_FALSE
714USE_HDF5_TRUE
715USE_NETCDF4_FALSE
716USE_NETCDF4_TRUE
717CROSS_COMPILING_FALSE
718CROSS_COMPILING_TRUE
719USE_LOGGING_FALSE
720USE_LOGGING_TRUE
721USE_PNETCDF_DIR_FALSE
722USE_PNETCDF_DIR_TRUE
723USE_SZIP_FALSE
724USE_SZIP_TRUE
725ENABLE_DAP_LONG_TESTS_FALSE
726ENABLE_DAP_LONG_TESTS_TRUE
727ENABLE_DAP_AUTH_TESTS_FALSE
728ENABLE_DAP_AUTH_TESTS_TRUE
729ENABLE_DAP_REMOTE_TESTS_FALSE
730ENABLE_DAP_REMOTE_TESTS_TRUE
731ENABLE_DAP4_FALSE
732ENABLE_DAP4_TRUE
733ENABLE_DAP_FALSE
734ENABLE_DAP_TRUE
735USE_DAP_FALSE
736USE_DAP_TRUE
737BUILD_DAP_FALSE
738BUILD_DAP_TRUE
739TEST_PARALLEL4_FALSE
740TEST_PARALLEL4_TRUE
741BUILD_PARALLEL_FALSE
742BUILD_PARALLEL_TRUE
743M4FLAGS
744ENABLE_PARALLEL_FALSE
745ENABLE_PARALLEL_TRUE
746ENABLE_CDF5_FALSE
747ENABLE_CDF5_TRUE
748ISCYGWIN_FALSE
749ISCYGWIN_TRUE
750ALLOCA
751HAVE_DOT
752DOT
753DOXYGEN
754NC_M4
755CPP
756LT_SYS_LIBRARY_PATH
757OTOOL64
758OTOOL
759LIPO
760NMEDIT
761DSYMUTIL
762MANIFEST_TOOL
763RANLIB
764ac_ct_AR
765AR
766DLLTOOL
767OBJDUMP
768LN_S
769NM
770ac_ct_DUMPBIN
771DUMPBIN
772LD
773FGREP
774EGREP
775GREP
776SED
777LIBTOOL
778CC_VERSION
779BUILD_BENCHMARKS_FALSE
780BUILD_BENCHMARKS_TRUE
781LARGE_FILE_TESTS_FALSE
782LARGE_FILE_TESTS_TRUE
783BUILD_TESTSETS_FALSE
784BUILD_TESTSETS_TRUE
785BUILD_UTILITIES_FALSE
786BUILD_UTILITIES_TRUE
787BUILD_V2_FALSE
788BUILD_V2_TRUE
789BUILD_EXAMPLES_FALSE
790BUILD_EXAMPLES_TRUE
791USE_STDIO_FALSE
792USE_STDIO_TRUE
793USE_FFIO_FALSE
794USE_FFIO_TRUE
795USE_STRICT_NULL_BYTE_HEADER_PADDING_FALSE
796USE_STRICT_NULL_BYTE_HEADER_PADDING_TRUE
797INTERNAL_OCLIB_FALSE
798INTERNAL_OCLIB_TRUE
799am__fastdepCC_FALSE
800am__fastdepCC_TRUE
801CCDEPMODE
802am__nodep
803AMDEPBACKSLASH
804AMDEP_FALSE
805AMDEP_TRUE
806am__include
807DEPDIR
808OBJEXT
809EXEEXT
810ac_ct_CC
811CPPFLAGS
812LDFLAGS
813CFLAGS
814CC
815MPIEXEC
816BUILD_UNIT_TESTS_FALSE
817BUILD_UNIT_TESTS_TRUE
818ENABLED_DOC_SECTIONS
819BUILD_INTERNAL_DOCS
820NC_ENABLE_DOXYGEN_PDF_OUTPUT
821NC_ENABLE_DOXYGEN_PDF_OUTPUT_FALSE
822NC_ENABLE_DOXYGEN_PDF_OUTPUT_TRUE
823DOXYGEN_SERVER_BASED_SEARCH
824DOXYGEN_SEARCHENGINE
825DOXYGEN_HEADER_FILE
826DOXYGEN_CSS_FILE
827DOXYGEN_BUILD_RELEASE_DOCS_FALSE
828DOXYGEN_BUILD_RELEASE_DOCS_TRUE
829SHOW_DOXYGEN_TAG_LIST
830SHOW_DOXYGEN_TAG_LIST_FALSE
831SHOW_DOXYGEN_TAG_LIST_TRUE
832BUILD_DOCS_FALSE
833BUILD_DOCS_TRUE
834ENABLE_VALGRIND_FALSE
835ENABLE_VALGRIND_TRUE
836VALGRIND_CHECK_RULES
837valgrind_enabled_tools
838valgrind_tools
839ENABLE_VALGRIND_sgcheck
840ENABLE_VALGRIND_drd
841ENABLE_VALGRIND_helgrind
842ENABLE_VALGRIND_memcheck
843VALGRIND_ENABLED
844VALGRIND_ENABLED_FALSE
845VALGRIND_ENABLED_TRUE
846VALGRIND
847MAINT
848MAINTAINER_MODE_FALSE
849MAINTAINER_MODE_TRUE
850AM_BACKSLASH
851AM_DEFAULT_VERBOSITY
852AM_DEFAULT_V
853AM_V
854am__untar
855am__tar
856AMTAR
857am__leading_dot
858SET_MAKE
859AWK
860mkdir_p
861MKDIR_P
862INSTALL_STRIP_PROGRAM
863STRIP
864install_sh
865MAKEINFO
866AUTOHEADER
867AUTOMAKE
868AUTOCONF
869ACLOCAL
870VERSION
871PACKAGE
872CYGPATH_W
873am__isrc
874INSTALL_DATA
875INSTALL_SCRIPT
876INSTALL_PROGRAM
877target_os
878target_vendor
879target_cpu
880target
881host_os
882host_vendor
883host_cpu
884host
885build_os
886build_vendor
887build_cpu
888build
889CONFIG_DATE
890NC_VERSION_NOTE
891NC_VERSION_PATCH
892NC_VERSION_MINOR
893NC_VERSION_MAJOR
894target_alias
895host_alias
896build_alias
897LIBS
898ECHO_T
899ECHO_N
900ECHO_C
901DEFS
902mandir
903localedir
904libdir
905psdir
906pdfdir
907dvidir
908htmldir
909infodir
910docdir
911oldincludedir
912includedir
913localstatedir
914sharedstatedir
915sysconfdir
916datadir
917datarootdir
918libexecdir
919sbindir
920bindir
921program_transform_name
922prefix
923exec_prefix
924PACKAGE_URL
925PACKAGE_BUGREPORT
926PACKAGE_STRING
927PACKAGE_VERSION
928PACKAGE_TARNAME
929PACKAGE_NAME
930PATH_SEPARATOR
931SHELL
932am__quote'
933ac_subst_files=''
934ac_user_opts='
935enable_option_checking
936enable_silent_rules
937enable_maintainer_mode
938with_minblocksize
939enable_valgrind
940enable_valgrind_memcheck
941enable_valgrind_helgrind
942enable_valgrind_drd
943enable_valgrind_sgcheck
944enable_doxygen
945enable_doxygen_tasks
946enable_doxygen_build_release_docs
947enable_doxygen_pdf_output
948enable_dot
949enable_internal_docs
950enable_fsync
951enable_jna
952enable_unit_tests
953enable_netcdf_4
954enable_netcdf4
955enable_hdf5
956enable_dynamic_loading
957enable_hdf4
958enable_hdf4_file_tests
959enable_remote_fortran_bootstrap
960enable_parallel_tests
961with_mpiexec
962with_default_chunk_size
963with_max_default_cache_size
964with_default_chunks_in_cache
965with_chunk_cache_size
966with_chunk_cache_nelems
967with_chunk_cache_preemption
968enable_logging
969enable_set_log_level_func
970enable_dap
971enable_dependency_tracking
972enable_dap_remote_tests
973enable_dap_auth_tests
974with_testservers
975enable_dap_long_tests
976enable_strict_null_byte_header_padding
977enable_ffio
978enable_stdio
979enable_examples
980enable_v2
981enable_utilities
982enable_testsets
983enable_large_file_tests
984enable_benchmarks
985enable_extreme_numbers
986with_temp_large
987with_ncproperties_extra
988with_udf0
989with_udf0_magic_number
990with_udf1
991with_udf1_magic_number
992enable_shared
993enable_static
994with_pic
995enable_fast_install
996with_aix_soname
997with_gnu_ld
998with_sysroot
999enable_libtool_lock
1000enable_largefile
1001enable_mmap
1002enable_byterange
1003enable_cdf5
1004enable_parallel4
1005enable_pnetcdf
1006enable_erange_fill
1007enable_filter_testing
1008'
1009      ac_precious_vars='build_alias
1010host_alias
1011target_alias
1012CC
1013CFLAGS
1014LDFLAGS
1015LIBS
1016CPPFLAGS
1017LT_SYS_LIBRARY_PATH
1018CPP'
1019
1020
1021# Initialize some variables set by options.
1022ac_init_help=
1023ac_init_version=false
1024ac_unrecognized_opts=
1025ac_unrecognized_sep=
1026# The variables have the same names as the options, with
1027# dashes changed to underlines.
1028cache_file=/dev/null
1029exec_prefix=NONE
1030no_create=
1031no_recursion=
1032prefix=NONE
1033program_prefix=NONE
1034program_suffix=NONE
1035program_transform_name=s,x,x,
1036silent=
1037site=
1038srcdir=
1039verbose=
1040x_includes=NONE
1041x_libraries=NONE
1042
1043# Installation directory options.
1044# These are left unexpanded so users can "make install exec_prefix=/foo"
1045# and all the variables that are supposed to be based on exec_prefix
1046# by default will actually change.
1047# Use braces instead of parens because sh, perl, etc. also accept them.
1048# (The list follows the same order as the GNU Coding Standards.)
1049bindir='${exec_prefix}/bin'
1050sbindir='${exec_prefix}/sbin'
1051libexecdir='${exec_prefix}/libexec'
1052datarootdir='${prefix}/share'
1053datadir='${datarootdir}'
1054sysconfdir='${prefix}/etc'
1055sharedstatedir='${prefix}/com'
1056localstatedir='${prefix}/var'
1057includedir='${prefix}/include'
1058oldincludedir='/usr/include'
1059docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1060infodir='${datarootdir}/info'
1061htmldir='${docdir}'
1062dvidir='${docdir}'
1063pdfdir='${docdir}'
1064psdir='${docdir}'
1065libdir='${exec_prefix}/lib'
1066localedir='${datarootdir}/locale'
1067mandir='${datarootdir}/man'
1068
1069ac_prev=
1070ac_dashdash=
1071for ac_option
1072do
1073  # If the previous option needs an argument, assign it.
1074  if test -n "$ac_prev"; then
1075    eval $ac_prev=\$ac_option
1076    ac_prev=
1077    continue
1078  fi
1079
1080  case $ac_option in
1081  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1082  *=)   ac_optarg= ;;
1083  *)    ac_optarg=yes ;;
1084  esac
1085
1086  # Accept the important Cygnus configure options, so we can diagnose typos.
1087
1088  case $ac_dashdash$ac_option in
1089  --)
1090    ac_dashdash=yes ;;
1091
1092  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1093    ac_prev=bindir ;;
1094  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1095    bindir=$ac_optarg ;;
1096
1097  -build | --build | --buil | --bui | --bu)
1098    ac_prev=build_alias ;;
1099  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1100    build_alias=$ac_optarg ;;
1101
1102  -cache-file | --cache-file | --cache-fil | --cache-fi \
1103  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1104    ac_prev=cache_file ;;
1105  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1106  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1107    cache_file=$ac_optarg ;;
1108
1109  --config-cache | -C)
1110    cache_file=config.cache ;;
1111
1112  -datadir | --datadir | --datadi | --datad)
1113    ac_prev=datadir ;;
1114  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1115    datadir=$ac_optarg ;;
1116
1117  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1118  | --dataroo | --dataro | --datar)
1119    ac_prev=datarootdir ;;
1120  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1121  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1122    datarootdir=$ac_optarg ;;
1123
1124  -disable-* | --disable-*)
1125    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1126    # Reject names that are not valid shell variable names.
1127    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128      as_fn_error $? "invalid feature name: $ac_useropt"
1129    ac_useropt_orig=$ac_useropt
1130    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131    case $ac_user_opts in
1132      *"
1133"enable_$ac_useropt"
1134"*) ;;
1135      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1136	 ac_unrecognized_sep=', ';;
1137    esac
1138    eval enable_$ac_useropt=no ;;
1139
1140  -docdir | --docdir | --docdi | --doc | --do)
1141    ac_prev=docdir ;;
1142  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1143    docdir=$ac_optarg ;;
1144
1145  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1146    ac_prev=dvidir ;;
1147  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1148    dvidir=$ac_optarg ;;
1149
1150  -enable-* | --enable-*)
1151    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1152    # Reject names that are not valid shell variable names.
1153    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154      as_fn_error $? "invalid feature name: $ac_useropt"
1155    ac_useropt_orig=$ac_useropt
1156    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157    case $ac_user_opts in
1158      *"
1159"enable_$ac_useropt"
1160"*) ;;
1161      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1162	 ac_unrecognized_sep=', ';;
1163    esac
1164    eval enable_$ac_useropt=\$ac_optarg ;;
1165
1166  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1167  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1168  | --exec | --exe | --ex)
1169    ac_prev=exec_prefix ;;
1170  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1171  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1172  | --exec=* | --exe=* | --ex=*)
1173    exec_prefix=$ac_optarg ;;
1174
1175  -gas | --gas | --ga | --g)
1176    # Obsolete; use --with-gas.
1177    with_gas=yes ;;
1178
1179  -help | --help | --hel | --he | -h)
1180    ac_init_help=long ;;
1181  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1182    ac_init_help=recursive ;;
1183  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1184    ac_init_help=short ;;
1185
1186  -host | --host | --hos | --ho)
1187    ac_prev=host_alias ;;
1188  -host=* | --host=* | --hos=* | --ho=*)
1189    host_alias=$ac_optarg ;;
1190
1191  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1192    ac_prev=htmldir ;;
1193  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1194  | --ht=*)
1195    htmldir=$ac_optarg ;;
1196
1197  -includedir | --includedir | --includedi | --included | --include \
1198  | --includ | --inclu | --incl | --inc)
1199    ac_prev=includedir ;;
1200  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1201  | --includ=* | --inclu=* | --incl=* | --inc=*)
1202    includedir=$ac_optarg ;;
1203
1204  -infodir | --infodir | --infodi | --infod | --info | --inf)
1205    ac_prev=infodir ;;
1206  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1207    infodir=$ac_optarg ;;
1208
1209  -libdir | --libdir | --libdi | --libd)
1210    ac_prev=libdir ;;
1211  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1212    libdir=$ac_optarg ;;
1213
1214  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1215  | --libexe | --libex | --libe)
1216    ac_prev=libexecdir ;;
1217  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1218  | --libexe=* | --libex=* | --libe=*)
1219    libexecdir=$ac_optarg ;;
1220
1221  -localedir | --localedir | --localedi | --localed | --locale)
1222    ac_prev=localedir ;;
1223  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1224    localedir=$ac_optarg ;;
1225
1226  -localstatedir | --localstatedir | --localstatedi | --localstated \
1227  | --localstate | --localstat | --localsta | --localst | --locals)
1228    ac_prev=localstatedir ;;
1229  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1230  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1231    localstatedir=$ac_optarg ;;
1232
1233  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1234    ac_prev=mandir ;;
1235  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1236    mandir=$ac_optarg ;;
1237
1238  -nfp | --nfp | --nf)
1239    # Obsolete; use --without-fp.
1240    with_fp=no ;;
1241
1242  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1243  | --no-cr | --no-c | -n)
1244    no_create=yes ;;
1245
1246  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1247  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1248    no_recursion=yes ;;
1249
1250  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1251  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1252  | --oldin | --oldi | --old | --ol | --o)
1253    ac_prev=oldincludedir ;;
1254  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1255  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1256  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1257    oldincludedir=$ac_optarg ;;
1258
1259  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1260    ac_prev=prefix ;;
1261  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1262    prefix=$ac_optarg ;;
1263
1264  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1265  | --program-pre | --program-pr | --program-p)
1266    ac_prev=program_prefix ;;
1267  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1268  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1269    program_prefix=$ac_optarg ;;
1270
1271  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1272  | --program-suf | --program-su | --program-s)
1273    ac_prev=program_suffix ;;
1274  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1275  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1276    program_suffix=$ac_optarg ;;
1277
1278  -program-transform-name | --program-transform-name \
1279  | --program-transform-nam | --program-transform-na \
1280  | --program-transform-n | --program-transform- \
1281  | --program-transform | --program-transfor \
1282  | --program-transfo | --program-transf \
1283  | --program-trans | --program-tran \
1284  | --progr-tra | --program-tr | --program-t)
1285    ac_prev=program_transform_name ;;
1286  -program-transform-name=* | --program-transform-name=* \
1287  | --program-transform-nam=* | --program-transform-na=* \
1288  | --program-transform-n=* | --program-transform-=* \
1289  | --program-transform=* | --program-transfor=* \
1290  | --program-transfo=* | --program-transf=* \
1291  | --program-trans=* | --program-tran=* \
1292  | --progr-tra=* | --program-tr=* | --program-t=*)
1293    program_transform_name=$ac_optarg ;;
1294
1295  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1296    ac_prev=pdfdir ;;
1297  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1298    pdfdir=$ac_optarg ;;
1299
1300  -psdir | --psdir | --psdi | --psd | --ps)
1301    ac_prev=psdir ;;
1302  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1303    psdir=$ac_optarg ;;
1304
1305  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1306  | -silent | --silent | --silen | --sile | --sil)
1307    silent=yes ;;
1308
1309  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1310    ac_prev=sbindir ;;
1311  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1312  | --sbi=* | --sb=*)
1313    sbindir=$ac_optarg ;;
1314
1315  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1316  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1317  | --sharedst | --shareds | --shared | --share | --shar \
1318  | --sha | --sh)
1319    ac_prev=sharedstatedir ;;
1320  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1321  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1322  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1323  | --sha=* | --sh=*)
1324    sharedstatedir=$ac_optarg ;;
1325
1326  -site | --site | --sit)
1327    ac_prev=site ;;
1328  -site=* | --site=* | --sit=*)
1329    site=$ac_optarg ;;
1330
1331  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1332    ac_prev=srcdir ;;
1333  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1334    srcdir=$ac_optarg ;;
1335
1336  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1337  | --syscon | --sysco | --sysc | --sys | --sy)
1338    ac_prev=sysconfdir ;;
1339  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1340  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1341    sysconfdir=$ac_optarg ;;
1342
1343  -target | --target | --targe | --targ | --tar | --ta | --t)
1344    ac_prev=target_alias ;;
1345  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1346    target_alias=$ac_optarg ;;
1347
1348  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1349    verbose=yes ;;
1350
1351  -version | --version | --versio | --versi | --vers | -V)
1352    ac_init_version=: ;;
1353
1354  -with-* | --with-*)
1355    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1356    # Reject names that are not valid shell variable names.
1357    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1358      as_fn_error $? "invalid package name: $ac_useropt"
1359    ac_useropt_orig=$ac_useropt
1360    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1361    case $ac_user_opts in
1362      *"
1363"with_$ac_useropt"
1364"*) ;;
1365      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1366	 ac_unrecognized_sep=', ';;
1367    esac
1368    eval with_$ac_useropt=\$ac_optarg ;;
1369
1370  -without-* | --without-*)
1371    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1372    # Reject names that are not valid shell variable names.
1373    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1374      as_fn_error $? "invalid package name: $ac_useropt"
1375    ac_useropt_orig=$ac_useropt
1376    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1377    case $ac_user_opts in
1378      *"
1379"with_$ac_useropt"
1380"*) ;;
1381      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1382	 ac_unrecognized_sep=', ';;
1383    esac
1384    eval with_$ac_useropt=no ;;
1385
1386  --x)
1387    # Obsolete; use --with-x.
1388    with_x=yes ;;
1389
1390  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1391  | --x-incl | --x-inc | --x-in | --x-i)
1392    ac_prev=x_includes ;;
1393  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1394  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1395    x_includes=$ac_optarg ;;
1396
1397  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1398  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1399    ac_prev=x_libraries ;;
1400  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1401  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1402    x_libraries=$ac_optarg ;;
1403
1404  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1405Try \`$0 --help' for more information"
1406    ;;
1407
1408  *=*)
1409    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1410    # Reject names that are not valid shell variable names.
1411    case $ac_envvar in #(
1412      '' | [0-9]* | *[!_$as_cr_alnum]* )
1413      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1414    esac
1415    eval $ac_envvar=\$ac_optarg
1416    export $ac_envvar ;;
1417
1418  *)
1419    # FIXME: should be removed in autoconf 3.0.
1420    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1421    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1422      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1423    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1424    ;;
1425
1426  esac
1427done
1428
1429if test -n "$ac_prev"; then
1430  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1431  as_fn_error $? "missing argument to $ac_option"
1432fi
1433
1434if test -n "$ac_unrecognized_opts"; then
1435  case $enable_option_checking in
1436    no) ;;
1437    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1438    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1439  esac
1440fi
1441
1442# Check all directory arguments for consistency.
1443for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1444		datadir sysconfdir sharedstatedir localstatedir includedir \
1445		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1446		libdir localedir mandir
1447do
1448  eval ac_val=\$$ac_var
1449  # Remove trailing slashes.
1450  case $ac_val in
1451    */ )
1452      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1453      eval $ac_var=\$ac_val;;
1454  esac
1455  # Be sure to have absolute directory names.
1456  case $ac_val in
1457    [\\/$]* | ?:[\\/]* )  continue;;
1458    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1459  esac
1460  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1461done
1462
1463# There might be people who depend on the old broken behavior: `$host'
1464# used to hold the argument of --host etc.
1465# FIXME: To remove some day.
1466build=$build_alias
1467host=$host_alias
1468target=$target_alias
1469
1470# FIXME: To remove some day.
1471if test "x$host_alias" != x; then
1472  if test "x$build_alias" = x; then
1473    cross_compiling=maybe
1474  elif test "x$build_alias" != "x$host_alias"; then
1475    cross_compiling=yes
1476  fi
1477fi
1478
1479ac_tool_prefix=
1480test -n "$host_alias" && ac_tool_prefix=$host_alias-
1481
1482test "$silent" = yes && exec 6>/dev/null
1483
1484
1485ac_pwd=`pwd` && test -n "$ac_pwd" &&
1486ac_ls_di=`ls -di .` &&
1487ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1488  as_fn_error $? "working directory cannot be determined"
1489test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1490  as_fn_error $? "pwd does not report name of working directory"
1491
1492
1493# Find the source files, if location was not specified.
1494if test -z "$srcdir"; then
1495  ac_srcdir_defaulted=yes
1496  # Try the directory containing this script, then the parent directory.
1497  ac_confdir=`$as_dirname -- "$as_myself" ||
1498$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1499	 X"$as_myself" : 'X\(//\)[^/]' \| \
1500	 X"$as_myself" : 'X\(//\)$' \| \
1501	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1502$as_echo X"$as_myself" |
1503    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1504	    s//\1/
1505	    q
1506	  }
1507	  /^X\(\/\/\)[^/].*/{
1508	    s//\1/
1509	    q
1510	  }
1511	  /^X\(\/\/\)$/{
1512	    s//\1/
1513	    q
1514	  }
1515	  /^X\(\/\).*/{
1516	    s//\1/
1517	    q
1518	  }
1519	  s/.*/./; q'`
1520  srcdir=$ac_confdir
1521  if test ! -r "$srcdir/$ac_unique_file"; then
1522    srcdir=..
1523  fi
1524else
1525  ac_srcdir_defaulted=no
1526fi
1527if test ! -r "$srcdir/$ac_unique_file"; then
1528  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1529  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1530fi
1531ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1532ac_abs_confdir=`(
1533	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1534	pwd)`
1535# When building in place, set srcdir=.
1536if test "$ac_abs_confdir" = "$ac_pwd"; then
1537  srcdir=.
1538fi
1539# Remove unnecessary trailing slashes from srcdir.
1540# Double slashes in file names in object file debugging info
1541# mess up M-x gdb in Emacs.
1542case $srcdir in
1543*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1544esac
1545for ac_var in $ac_precious_vars; do
1546  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1547  eval ac_env_${ac_var}_value=\$${ac_var}
1548  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1549  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1550done
1551
1552#
1553# Report the --help message.
1554#
1555if test "$ac_init_help" = "long"; then
1556  # Omit some internal or obsolete options to make the list less imposing.
1557  # This message is too long to be a string in the A/UX 3.1 sh.
1558  cat <<_ACEOF
1559\`configure' configures netCDF 4.7.4 to adapt to many kinds of systems.
1560
1561Usage: $0 [OPTION]... [VAR=VALUE]...
1562
1563To assign environment variables (e.g., CC, CFLAGS...), specify them as
1564VAR=VALUE.  See below for descriptions of some of the useful variables.
1565
1566Defaults for the options are specified in brackets.
1567
1568Configuration:
1569  -h, --help              display this help and exit
1570      --help=short        display options specific to this package
1571      --help=recursive    display the short help of all the included packages
1572  -V, --version           display version information and exit
1573  -q, --quiet, --silent   do not print \`checking ...' messages
1574      --cache-file=FILE   cache test results in FILE [disabled]
1575  -C, --config-cache      alias for \`--cache-file=config.cache'
1576  -n, --no-create         do not create output files
1577      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1578
1579Installation directories:
1580  --prefix=PREFIX         install architecture-independent files in PREFIX
1581                          [$ac_default_prefix]
1582  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1583                          [PREFIX]
1584
1585By default, \`make install' will install all the files in
1586\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1587an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1588for instance \`--prefix=\$HOME'.
1589
1590For better control, use the options below.
1591
1592Fine tuning of the installation directories:
1593  --bindir=DIR            user executables [EPREFIX/bin]
1594  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1595  --libexecdir=DIR        program executables [EPREFIX/libexec]
1596  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1597  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1598  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1599  --libdir=DIR            object code libraries [EPREFIX/lib]
1600  --includedir=DIR        C header files [PREFIX/include]
1601  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1602  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1603  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1604  --infodir=DIR           info documentation [DATAROOTDIR/info]
1605  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1606  --mandir=DIR            man documentation [DATAROOTDIR/man]
1607  --docdir=DIR            documentation root [DATAROOTDIR/doc/netcdf-c]
1608  --htmldir=DIR           html documentation [DOCDIR]
1609  --dvidir=DIR            dvi documentation [DOCDIR]
1610  --pdfdir=DIR            pdf documentation [DOCDIR]
1611  --psdir=DIR             ps documentation [DOCDIR]
1612_ACEOF
1613
1614  cat <<\_ACEOF
1615
1616Program names:
1617  --program-prefix=PREFIX            prepend PREFIX to installed program names
1618  --program-suffix=SUFFIX            append SUFFIX to installed program names
1619  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1620
1621System types:
1622  --build=BUILD     configure for building on BUILD [guessed]
1623  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1624  --target=TARGET   configure for building compilers for TARGET [HOST]
1625_ACEOF
1626fi
1627
1628if test -n "$ac_init_help"; then
1629  case $ac_init_help in
1630     short | recursive ) echo "Configuration of netCDF 4.7.4:";;
1631   esac
1632  cat <<\_ACEOF
1633
1634Optional Features:
1635  --disable-option-checking  ignore unrecognized --enable/--with options
1636  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1637  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1638  --enable-silent-rules   less verbose build output (undo: "make V=1")
1639  --disable-silent-rules  verbose build output (undo: "make V=0")
1640  --enable-maintainer-mode
1641                          enable make rules and dependencies not useful (and
1642                          sometimes confusing) to the casual installer
1643  --enable-valgrind       Whether to enable Valgrind on the unit tests
1644  --disable-valgrind-memcheck
1645                          Whether to skip memcheck during the Valgrind tests
1646  --disable-valgrind-helgrind
1647                          Whether to skip helgrind during the Valgrind tests
1648  --disable-valgrind-drd  Whether to skip drd during the Valgrind tests
1649  --enable-valgrind-sgcheck
1650                          Whether to use sgcheck during the Valgrind tests
1651  --enable-doxygen        Enable generation of documentation.
1652  --enable-doxygen-tasks  Enable Doxygen-generated test, todo and bug list
1653                          documentation. Developers only.
1654  --enable-doxygen-build-release-docs
1655                          Build release documentation. This is of interest
1656                          only to developers.
1657  --enable-doxygen-pdf-output
1658                          Build netCDF library documentation in PDF format.
1659                          Experimental.
1660  --enable-dot            Use dot (provided by graphviz) to generate charts
1661                          and graphs in the doxygen-based documentation.
1662  --enable-internal-docs  Include documentation of library internals. This is
1663                          of interest only to those developing the netCDF
1664                          library.
1665  --enable-fsync          enable fsync support
1666  --enable-jna            enable jna bug workaround
1667  --disable-unit-tests    Disable tests in unit_test directory. Other tests
1668                          still run.
1669  --disable-netcdf-4      do not build with netcdf-4 (else HDF5 and zlib
1670                          required)
1671  --disable-netcdf4       (just a synonym for --disable-netcdf-4)
1672  --disable-hdf5          do not build with HDF5
1673  --enable-dynamic-loading
1674                          enable dynamic loading for use with supported hdf5
1675                          installs (libdl, HDF5 required)
1676  --enable-hdf4           build netcdf-4 with HDF4 read capability (HDF4, HDF5
1677                          and zlib required)
1678  --enable-hdf4-file-tests
1679                          get some HDF4 files from Unidata ftp site and test
1680                          that they can be read
1681  --enable-remote-fortran-bootstrap
1682                          Download and install netcdf-fortran (EXPERIMENTAL)
1683  --enable-parallel-tests Run extra parallel IO tests. Requires netCDF-4 with
1684                          parallel I/O support.
1685  --enable-logging        enable logging capability (only applies when
1686                          netCDF-4 is built). This debugging features is only
1687                          of interest to netCDF developers. Ignored if
1688                          netCDF-4 is not enabled.
1689  --disable-set-log-level-func
1690                          disable the nc_set_log_level function
1691  --disable-dap           build without DAP client support.
1692  --enable-dependency-tracking
1693                          do not reject slow dependency extractors
1694  --disable-dependency-tracking
1695                          speeds up one-time build
1696  --disable-dap-remote-tests
1697                          disable dap remote tests
1698  --enable-dap-auth-tests enable dap remote authorization tests
1699  --enable-dap-long-tests enable dap long tests
1700  --enable-strict-null-byte-header-padding
1701                          enable strict null-byte header padding when reading
1702                          netCDF3 files.
1703  --enable-ffio           use ffio instead of posixio (ex. on the Cray)
1704  --enable-stdio          use stdio instead of posixio (ex. on the Cray)
1705  --disable-examples      don't build the netCDF examples during make check
1706                          (examples are treated as extra tests by netCDF)
1707  --disable-v2            turn off the netCDF version 2 API
1708  --disable-utilities     don't build netCDF utilities ncgen, ncdump, and
1709                          nccopy
1710  --disable-testsets      don't build or run netCDF tests
1711  --enable-large-file-tests
1712                          Run tests which create very large data files (~13 GB
1713                          disk space required, but it will be recovered when
1714                          tests are complete). See option --with-temp-large to
1715                          specify temporary directory
1716  --enable-benchmarks     Run benchmarks. This will cause sample data files
1717                          from the Unidata ftp site to be fetched. The
1718                          benchmarks are a bunch of extra tests, which are
1719                          timed. We use these tests to check netCDF
1720                          performance.
1721  --disable-extreme-numbers
1722                          don't use extreme numbers during testing, such as
1723                          MAX_INT - 1
1724  --enable-shared[=PKGS]  build shared libraries [default=yes]
1725  --enable-static[=PKGS]  build static libraries [default=yes]
1726  --enable-fast-install[=PKGS]
1727                          optimize for fast installation [default=yes]
1728  --disable-libtool-lock  avoid locking (might break parallel builds)
1729  --disable-largefile     omit support for large files
1730  --enable-mmap           allow mmap for in-memory files
1731  --enable-byterange      allow byte-range I/O
1732  --disable-cdf5          build without CDF5 support. [default: auto]
1733  --disable-parallel4     disable parallel I/O for netcdf-4, even if it's
1734                          enabled in libhdf5
1735  --enable-pnetcdf        build with parallel I/O for classic files. [default:
1736                          disabled]
1737  --enable-erange-fill    Enable use of fill value when out-of-range type
1738                          conversion causes NC_ERANGE error. [default:
1739                          disabled]
1740  --enable-jna            enable jna bug fix
1741  --disable-filter-testing
1742                          Do not run filter test and example; requires shared
1743                          libraries and netCDF-4
1744
1745Optional Packages:
1746  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1747  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1748  --with-minblocksize=<integer>
1749                          Specify minimum I/O blocksize for netCDF classic and
1750                          64-bit offset format files.
1751  --with-mpiexec=<command>
1752                          Specify command to launch MPI parallel tests.
1753  --with-default-chunk-size=<integer>
1754                          Specify default size of chunks in bytes.
1755  --with-max-default-cache-size=<integer>
1756                          Specify maximum size (in bytes) for the default
1757                          per-var chunk cache.
1758  --with-default-chunks-in-cache=<integer>
1759                          Specify the number of chunks to store in default
1760                          per-variable cache.
1761  --with-chunk-cache-size=<integer>
1762                          Specify default file cache chunk size for HDF5 files
1763                          in bytes.
1764  --with-chunk-cache-nelems=<integer>
1765                          Specify default maximum number of elements in the
1766                          file chunk cache chunk for HDF5 files (should be
1767                          prime number).
1768  --with-chunk-cache-preemption=<float between 0 and 1 inclusive>
1769                          Specify default file chunk cache preemption policy
1770                          for HDF5 files (a number between 0 and 1,
1771                          inclusive).
1772  --with-testservers=<host:port>,<host:port>...
1773                          Specify the testserver(s) to try for remote tests.
1774  --with-temp-large=<directory>
1775                          specify directory where large files (i.e. >2 GB)
1776                          will be written, if large files tests are run with
1777                          --enable-large-file-tests
1778  --with-ncproperties-extra="<name>=<value>,...
1779                          specify extra pairs for _NCProperties
1780  --with-udf0=<dispatch_name>
1781                          Specify a dispatch table for user-defined format 0.
1782  --with-udf0-magic-number=<magic_number>
1783                          Specify a magic number for user-defined format 0
1784                          (ignored unless --with-udf0 is also used).
1785  --with-udf1=<dispatch_name>
1786                          Specify a dispatch table for user-defined format 1.
1787  --with-udf1-magic-number=<magic_number>
1788                          Specify a magic number for user-defined format 1
1789                          (ignored unless --with-udf1 is also used).
1790  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1791                          both]
1792  --with-aix-soname=aix|svr4|both
1793                          shared library versioning (aka "SONAME") variant to
1794                          provide on AIX, [default=aix].
1795  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1796  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1797                          compiler's sysroot if not specified).
1798
1799Some influential environment variables:
1800  CC          C compiler command
1801  CFLAGS      C compiler flags
1802  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1803              nonstandard directory <lib dir>
1804  LIBS        libraries to pass to the linker, e.g. -l<library>
1805  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1806              you have headers in a nonstandard directory <include dir>
1807  LT_SYS_LIBRARY_PATH
1808              User-defined run-time library search path.
1809  CPP         C preprocessor
1810
1811Use these variables to override the choices made by `configure' or to help
1812it to find libraries and programs with nonstandard names/locations.
1813
1814Report bugs to <support-netcdf@unidata.ucar.edu>.
1815_ACEOF
1816ac_status=$?
1817fi
1818
1819if test "$ac_init_help" = "recursive"; then
1820  # If there are subdirs, report their specific --help.
1821  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1822    test -d "$ac_dir" ||
1823      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1824      continue
1825    ac_builddir=.
1826
1827case "$ac_dir" in
1828.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1829*)
1830  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1831  # A ".." for each directory in $ac_dir_suffix.
1832  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1833  case $ac_top_builddir_sub in
1834  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1835  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1836  esac ;;
1837esac
1838ac_abs_top_builddir=$ac_pwd
1839ac_abs_builddir=$ac_pwd$ac_dir_suffix
1840# for backward compatibility:
1841ac_top_builddir=$ac_top_build_prefix
1842
1843case $srcdir in
1844  .)  # We are building in place.
1845    ac_srcdir=.
1846    ac_top_srcdir=$ac_top_builddir_sub
1847    ac_abs_top_srcdir=$ac_pwd ;;
1848  [\\/]* | ?:[\\/]* )  # Absolute name.
1849    ac_srcdir=$srcdir$ac_dir_suffix;
1850    ac_top_srcdir=$srcdir
1851    ac_abs_top_srcdir=$srcdir ;;
1852  *) # Relative name.
1853    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1854    ac_top_srcdir=$ac_top_build_prefix$srcdir
1855    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1856esac
1857ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1858
1859    cd "$ac_dir" || { ac_status=$?; continue; }
1860    # Check for guested configure.
1861    if test -f "$ac_srcdir/configure.gnu"; then
1862      echo &&
1863      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1864    elif test -f "$ac_srcdir/configure"; then
1865      echo &&
1866      $SHELL "$ac_srcdir/configure" --help=recursive
1867    else
1868      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1869    fi || ac_status=$?
1870    cd "$ac_pwd" || { ac_status=$?; break; }
1871  done
1872fi
1873
1874test -n "$ac_init_help" && exit $ac_status
1875if $ac_init_version; then
1876  cat <<\_ACEOF
1877netCDF configure 4.7.4
1878generated by GNU Autoconf 2.69
1879
1880Copyright (C) 2012 Free Software Foundation, Inc.
1881This configure script is free software; the Free Software Foundation
1882gives unlimited permission to copy, distribute and modify it.
1883_ACEOF
1884  exit
1885fi
1886
1887## ------------------------ ##
1888## Autoconf initialization. ##
1889## ------------------------ ##
1890
1891# ac_fn_c_try_compile LINENO
1892# --------------------------
1893# Try to compile conftest.$ac_ext, and return whether this succeeded.
1894ac_fn_c_try_compile ()
1895{
1896  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897  rm -f conftest.$ac_objext
1898  if { { ac_try="$ac_compile"
1899case "(($ac_try" in
1900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901  *) ac_try_echo=$ac_try;;
1902esac
1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904$as_echo "$ac_try_echo"; } >&5
1905  (eval "$ac_compile") 2>conftest.err
1906  ac_status=$?
1907  if test -s conftest.err; then
1908    grep -v '^ *+' conftest.err >conftest.er1
1909    cat conftest.er1 >&5
1910    mv -f conftest.er1 conftest.err
1911  fi
1912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913  test $ac_status = 0; } && {
1914	 test -z "$ac_c_werror_flag" ||
1915	 test ! -s conftest.err
1916       } && test -s conftest.$ac_objext; then :
1917  ac_retval=0
1918else
1919  $as_echo "$as_me: failed program was:" >&5
1920sed 's/^/| /' conftest.$ac_ext >&5
1921
1922	ac_retval=1
1923fi
1924  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925  as_fn_set_status $ac_retval
1926
1927} # ac_fn_c_try_compile
1928
1929# ac_fn_c_try_link LINENO
1930# -----------------------
1931# Try to link conftest.$ac_ext, and return whether this succeeded.
1932ac_fn_c_try_link ()
1933{
1934  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935  rm -f conftest.$ac_objext conftest$ac_exeext
1936  if { { ac_try="$ac_link"
1937case "(($ac_try" in
1938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939  *) ac_try_echo=$ac_try;;
1940esac
1941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942$as_echo "$ac_try_echo"; } >&5
1943  (eval "$ac_link") 2>conftest.err
1944  ac_status=$?
1945  if test -s conftest.err; then
1946    grep -v '^ *+' conftest.err >conftest.er1
1947    cat conftest.er1 >&5
1948    mv -f conftest.er1 conftest.err
1949  fi
1950  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951  test $ac_status = 0; } && {
1952	 test -z "$ac_c_werror_flag" ||
1953	 test ! -s conftest.err
1954       } && test -s conftest$ac_exeext && {
1955	 test "$cross_compiling" = yes ||
1956	 test -x conftest$ac_exeext
1957       }; then :
1958  ac_retval=0
1959else
1960  $as_echo "$as_me: failed program was:" >&5
1961sed 's/^/| /' conftest.$ac_ext >&5
1962
1963	ac_retval=1
1964fi
1965  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1966  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1967  # interfere with the next link command; also delete a directory that is
1968  # left behind by Apple's compiler.  We do this before executing the actions.
1969  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971  as_fn_set_status $ac_retval
1972
1973} # ac_fn_c_try_link
1974
1975# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1976# -------------------------------------------------------
1977# Tests whether HEADER exists and can be compiled using the include files in
1978# INCLUDES, setting the cache variable VAR accordingly.
1979ac_fn_c_check_header_compile ()
1980{
1981  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983$as_echo_n "checking for $2... " >&6; }
1984if eval \${$3+:} false; then :
1985  $as_echo_n "(cached) " >&6
1986else
1987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988/* end confdefs.h.  */
1989$4
1990#include <$2>
1991_ACEOF
1992if ac_fn_c_try_compile "$LINENO"; then :
1993  eval "$3=yes"
1994else
1995  eval "$3=no"
1996fi
1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998fi
1999eval ac_res=\$$3
2000	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001$as_echo "$ac_res" >&6; }
2002  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003
2004} # ac_fn_c_check_header_compile
2005
2006# ac_fn_c_try_cpp LINENO
2007# ----------------------
2008# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2009ac_fn_c_try_cpp ()
2010{
2011  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012  if { { ac_try="$ac_cpp conftest.$ac_ext"
2013case "(($ac_try" in
2014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2015  *) ac_try_echo=$ac_try;;
2016esac
2017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2018$as_echo "$ac_try_echo"; } >&5
2019  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2020  ac_status=$?
2021  if test -s conftest.err; then
2022    grep -v '^ *+' conftest.err >conftest.er1
2023    cat conftest.er1 >&5
2024    mv -f conftest.er1 conftest.err
2025  fi
2026  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2027  test $ac_status = 0; } > conftest.i && {
2028	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2029	 test ! -s conftest.err
2030       }; then :
2031  ac_retval=0
2032else
2033  $as_echo "$as_me: failed program was:" >&5
2034sed 's/^/| /' conftest.$ac_ext >&5
2035
2036    ac_retval=1
2037fi
2038  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039  as_fn_set_status $ac_retval
2040
2041} # ac_fn_c_try_cpp
2042
2043# ac_fn_c_try_run LINENO
2044# ----------------------
2045# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2046# that executables *can* be run.
2047ac_fn_c_try_run ()
2048{
2049  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050  if { { ac_try="$ac_link"
2051case "(($ac_try" in
2052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053  *) ac_try_echo=$ac_try;;
2054esac
2055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056$as_echo "$ac_try_echo"; } >&5
2057  (eval "$ac_link") 2>&5
2058  ac_status=$?
2059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2061  { { case "(($ac_try" in
2062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2063  *) ac_try_echo=$ac_try;;
2064esac
2065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2066$as_echo "$ac_try_echo"; } >&5
2067  (eval "$ac_try") 2>&5
2068  ac_status=$?
2069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070  test $ac_status = 0; }; }; then :
2071  ac_retval=0
2072else
2073  $as_echo "$as_me: program exited with status $ac_status" >&5
2074       $as_echo "$as_me: failed program was:" >&5
2075sed 's/^/| /' conftest.$ac_ext >&5
2076
2077       ac_retval=$ac_status
2078fi
2079  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2080  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081  as_fn_set_status $ac_retval
2082
2083} # ac_fn_c_try_run
2084
2085# ac_fn_c_check_func LINENO FUNC VAR
2086# ----------------------------------
2087# Tests whether FUNC exists, setting the cache variable VAR accordingly
2088ac_fn_c_check_func ()
2089{
2090  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092$as_echo_n "checking for $2... " >&6; }
2093if eval \${$3+:} false; then :
2094  $as_echo_n "(cached) " >&6
2095else
2096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097/* end confdefs.h.  */
2098/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2099   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2100#define $2 innocuous_$2
2101
2102/* System header to define __stub macros and hopefully few prototypes,
2103    which can conflict with char $2 (); below.
2104    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2105    <limits.h> exists even on freestanding compilers.  */
2106
2107#ifdef __STDC__
2108# include <limits.h>
2109#else
2110# include <assert.h>
2111#endif
2112
2113#undef $2
2114
2115/* Override any GCC internal prototype to avoid an error.
2116   Use char because int might match the return type of a GCC
2117   builtin and then its argument prototype would still apply.  */
2118#ifdef __cplusplus
2119extern "C"
2120#endif
2121char $2 ();
2122/* The GNU C library defines this for functions which it implements
2123    to always fail with ENOSYS.  Some functions are actually named
2124    something starting with __ and the normal name is an alias.  */
2125#if defined __stub_$2 || defined __stub___$2
2126choke me
2127#endif
2128
2129int
2130main ()
2131{
2132return $2 ();
2133  ;
2134  return 0;
2135}
2136_ACEOF
2137if ac_fn_c_try_link "$LINENO"; then :
2138  eval "$3=yes"
2139else
2140  eval "$3=no"
2141fi
2142rm -f core conftest.err conftest.$ac_objext \
2143    conftest$ac_exeext conftest.$ac_ext
2144fi
2145eval ac_res=\$$3
2146	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147$as_echo "$ac_res" >&6; }
2148  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149
2150} # ac_fn_c_check_func
2151
2152# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2153# -------------------------------------------------------
2154# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2155# the include files in INCLUDES and setting the cache variable VAR
2156# accordingly.
2157ac_fn_c_check_header_mongrel ()
2158{
2159  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160  if eval \${$3+:} false; then :
2161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162$as_echo_n "checking for $2... " >&6; }
2163if eval \${$3+:} false; then :
2164  $as_echo_n "(cached) " >&6
2165fi
2166eval ac_res=\$$3
2167	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168$as_echo "$ac_res" >&6; }
2169else
2170  # Is the header compilable?
2171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2172$as_echo_n "checking $2 usability... " >&6; }
2173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174/* end confdefs.h.  */
2175$4
2176#include <$2>
2177_ACEOF
2178if ac_fn_c_try_compile "$LINENO"; then :
2179  ac_header_compiler=yes
2180else
2181  ac_header_compiler=no
2182fi
2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2185$as_echo "$ac_header_compiler" >&6; }
2186
2187# Is the header present?
2188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2189$as_echo_n "checking $2 presence... " >&6; }
2190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191/* end confdefs.h.  */
2192#include <$2>
2193_ACEOF
2194if ac_fn_c_try_cpp "$LINENO"; then :
2195  ac_header_preproc=yes
2196else
2197  ac_header_preproc=no
2198fi
2199rm -f conftest.err conftest.i conftest.$ac_ext
2200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2201$as_echo "$ac_header_preproc" >&6; }
2202
2203# So?  What about this header?
2204case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2205  yes:no: )
2206    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2207$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2208    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2209$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2210    ;;
2211  no:yes:* )
2212    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2213$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2214    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2215$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2216    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2217$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2218    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2219$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2220    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2221$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2222( $as_echo "## ---------------------------------------------- ##
2223## Report this to support-netcdf@unidata.ucar.edu ##
2224## ---------------------------------------------- ##"
2225     ) | sed "s/^/$as_me: WARNING:     /" >&2
2226    ;;
2227esac
2228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2229$as_echo_n "checking for $2... " >&6; }
2230if eval \${$3+:} false; then :
2231  $as_echo_n "(cached) " >&6
2232else
2233  eval "$3=\$ac_header_compiler"
2234fi
2235eval ac_res=\$$3
2236	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237$as_echo "$ac_res" >&6; }
2238fi
2239  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2240
2241} # ac_fn_c_check_header_mongrel
2242
2243# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2244# -------------------------------------------
2245# Tests whether TYPE exists after having included INCLUDES, setting cache
2246# variable VAR accordingly.
2247ac_fn_c_check_type ()
2248{
2249  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2251$as_echo_n "checking for $2... " >&6; }
2252if eval \${$3+:} false; then :
2253  $as_echo_n "(cached) " >&6
2254else
2255  eval "$3=no"
2256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257/* end confdefs.h.  */
2258$4
2259int
2260main ()
2261{
2262if (sizeof ($2))
2263	 return 0;
2264  ;
2265  return 0;
2266}
2267_ACEOF
2268if ac_fn_c_try_compile "$LINENO"; then :
2269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270/* end confdefs.h.  */
2271$4
2272int
2273main ()
2274{
2275if (sizeof (($2)))
2276	    return 0;
2277  ;
2278  return 0;
2279}
2280_ACEOF
2281if ac_fn_c_try_compile "$LINENO"; then :
2282
2283else
2284  eval "$3=yes"
2285fi
2286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287fi
2288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289fi
2290eval ac_res=\$$3
2291	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2292$as_echo "$ac_res" >&6; }
2293  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294
2295} # ac_fn_c_check_type
2296
2297# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2298# ---------------------------------------------
2299# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2300# accordingly.
2301ac_fn_c_check_decl ()
2302{
2303  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2304  as_decl_name=`echo $2|sed 's/ *(.*//'`
2305  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2306  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2307$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2308if eval \${$3+:} false; then :
2309  $as_echo_n "(cached) " >&6
2310else
2311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312/* end confdefs.h.  */
2313$4
2314int
2315main ()
2316{
2317#ifndef $as_decl_name
2318#ifdef __cplusplus
2319  (void) $as_decl_use;
2320#else
2321  (void) $as_decl_name;
2322#endif
2323#endif
2324
2325  ;
2326  return 0;
2327}
2328_ACEOF
2329if ac_fn_c_try_compile "$LINENO"; then :
2330  eval "$3=yes"
2331else
2332  eval "$3=no"
2333fi
2334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335fi
2336eval ac_res=\$$3
2337	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2338$as_echo "$ac_res" >&6; }
2339  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2340
2341} # ac_fn_c_check_decl
2342
2343# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2344# ----------------------------------------------------
2345# Tries to find if the field MEMBER exists in type AGGR, after including
2346# INCLUDES, setting cache variable VAR accordingly.
2347ac_fn_c_check_member ()
2348{
2349  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2351$as_echo_n "checking for $2.$3... " >&6; }
2352if eval \${$4+:} false; then :
2353  $as_echo_n "(cached) " >&6
2354else
2355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356/* end confdefs.h.  */
2357$5
2358int
2359main ()
2360{
2361static $2 ac_aggr;
2362if (ac_aggr.$3)
2363return 0;
2364  ;
2365  return 0;
2366}
2367_ACEOF
2368if ac_fn_c_try_compile "$LINENO"; then :
2369  eval "$4=yes"
2370else
2371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372/* end confdefs.h.  */
2373$5
2374int
2375main ()
2376{
2377static $2 ac_aggr;
2378if (sizeof ac_aggr.$3)
2379return 0;
2380  ;
2381  return 0;
2382}
2383_ACEOF
2384if ac_fn_c_try_compile "$LINENO"; then :
2385  eval "$4=yes"
2386else
2387  eval "$4=no"
2388fi
2389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390fi
2391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392fi
2393eval ac_res=\$$4
2394	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395$as_echo "$ac_res" >&6; }
2396  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2397
2398} # ac_fn_c_check_member
2399
2400# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2401# --------------------------------------------
2402# Tries to find the compile-time value of EXPR in a program that includes
2403# INCLUDES, setting VAR accordingly. Returns whether the value could be
2404# computed
2405ac_fn_c_compute_int ()
2406{
2407  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408  if test "$cross_compiling" = yes; then
2409    # Depending upon the size, compute the lo and hi bounds.
2410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411/* end confdefs.h.  */
2412$4
2413int
2414main ()
2415{
2416static int test_array [1 - 2 * !(($2) >= 0)];
2417test_array [0] = 0;
2418return test_array [0];
2419
2420  ;
2421  return 0;
2422}
2423_ACEOF
2424if ac_fn_c_try_compile "$LINENO"; then :
2425  ac_lo=0 ac_mid=0
2426  while :; do
2427    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428/* end confdefs.h.  */
2429$4
2430int
2431main ()
2432{
2433static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2434test_array [0] = 0;
2435return test_array [0];
2436
2437  ;
2438  return 0;
2439}
2440_ACEOF
2441if ac_fn_c_try_compile "$LINENO"; then :
2442  ac_hi=$ac_mid; break
2443else
2444  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2445			if test $ac_lo -le $ac_mid; then
2446			  ac_lo= ac_hi=
2447			  break
2448			fi
2449			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2450fi
2451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452  done
2453else
2454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455/* end confdefs.h.  */
2456$4
2457int
2458main ()
2459{
2460static int test_array [1 - 2 * !(($2) < 0)];
2461test_array [0] = 0;
2462return test_array [0];
2463
2464  ;
2465  return 0;
2466}
2467_ACEOF
2468if ac_fn_c_try_compile "$LINENO"; then :
2469  ac_hi=-1 ac_mid=-1
2470  while :; do
2471    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472/* end confdefs.h.  */
2473$4
2474int
2475main ()
2476{
2477static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2478test_array [0] = 0;
2479return test_array [0];
2480
2481  ;
2482  return 0;
2483}
2484_ACEOF
2485if ac_fn_c_try_compile "$LINENO"; then :
2486  ac_lo=$ac_mid; break
2487else
2488  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2489			if test $ac_mid -le $ac_hi; then
2490			  ac_lo= ac_hi=
2491			  break
2492			fi
2493			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2494fi
2495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2496  done
2497else
2498  ac_lo= ac_hi=
2499fi
2500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2501fi
2502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2503# Binary search between lo and hi bounds.
2504while test "x$ac_lo" != "x$ac_hi"; do
2505  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507/* end confdefs.h.  */
2508$4
2509int
2510main ()
2511{
2512static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2513test_array [0] = 0;
2514return test_array [0];
2515
2516  ;
2517  return 0;
2518}
2519_ACEOF
2520if ac_fn_c_try_compile "$LINENO"; then :
2521  ac_hi=$ac_mid
2522else
2523  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2524fi
2525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2526done
2527case $ac_lo in #((
2528?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2529'') ac_retval=1 ;;
2530esac
2531  else
2532    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533/* end confdefs.h.  */
2534$4
2535static long int longval () { return $2; }
2536static unsigned long int ulongval () { return $2; }
2537#include <stdio.h>
2538#include <stdlib.h>
2539int
2540main ()
2541{
2542
2543  FILE *f = fopen ("conftest.val", "w");
2544  if (! f)
2545    return 1;
2546  if (($2) < 0)
2547    {
2548      long int i = longval ();
2549      if (i != ($2))
2550	return 1;
2551      fprintf (f, "%ld", i);
2552    }
2553  else
2554    {
2555      unsigned long int i = ulongval ();
2556      if (i != ($2))
2557	return 1;
2558      fprintf (f, "%lu", i);
2559    }
2560  /* Do not output a trailing newline, as this causes \r\n confusion
2561     on some platforms.  */
2562  return ferror (f) || fclose (f) != 0;
2563
2564  ;
2565  return 0;
2566}
2567_ACEOF
2568if ac_fn_c_try_run "$LINENO"; then :
2569  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2570else
2571  ac_retval=1
2572fi
2573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2574  conftest.$ac_objext conftest.beam conftest.$ac_ext
2575rm -f conftest.val
2576
2577  fi
2578  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2579  as_fn_set_status $ac_retval
2580
2581} # ac_fn_c_compute_int
2582cat >config.log <<_ACEOF
2583This file contains any messages produced by compilers while
2584running configure, to aid debugging if configure makes a mistake.
2585
2586It was created by netCDF $as_me 4.7.4, which was
2587generated by GNU Autoconf 2.69.  Invocation command line was
2588
2589  $ $0 $@
2590
2591_ACEOF
2592exec 5>>config.log
2593{
2594cat <<_ASUNAME
2595## --------- ##
2596## Platform. ##
2597## --------- ##
2598
2599hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2600uname -m = `(uname -m) 2>/dev/null || echo unknown`
2601uname -r = `(uname -r) 2>/dev/null || echo unknown`
2602uname -s = `(uname -s) 2>/dev/null || echo unknown`
2603uname -v = `(uname -v) 2>/dev/null || echo unknown`
2604
2605/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2606/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2607
2608/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2609/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2610/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2611/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2612/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2613/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2614/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2615
2616_ASUNAME
2617
2618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619for as_dir in $PATH
2620do
2621  IFS=$as_save_IFS
2622  test -z "$as_dir" && as_dir=.
2623    $as_echo "PATH: $as_dir"
2624  done
2625IFS=$as_save_IFS
2626
2627} >&5
2628
2629cat >&5 <<_ACEOF
2630
2631
2632## ----------- ##
2633## Core tests. ##
2634## ----------- ##
2635
2636_ACEOF
2637
2638
2639# Keep a trace of the command line.
2640# Strip out --no-create and --no-recursion so they do not pile up.
2641# Strip out --silent because we don't want to record it for future runs.
2642# Also quote any args containing shell meta-characters.
2643# Make two passes to allow for proper duplicate-argument suppression.
2644ac_configure_args=
2645ac_configure_args0=
2646ac_configure_args1=
2647ac_must_keep_next=false
2648for ac_pass in 1 2
2649do
2650  for ac_arg
2651  do
2652    case $ac_arg in
2653    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2654    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2655    | -silent | --silent | --silen | --sile | --sil)
2656      continue ;;
2657    *\'*)
2658      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2659    esac
2660    case $ac_pass in
2661    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2662    2)
2663      as_fn_append ac_configure_args1 " '$ac_arg'"
2664      if test $ac_must_keep_next = true; then
2665	ac_must_keep_next=false # Got value, back to normal.
2666      else
2667	case $ac_arg in
2668	  *=* | --config-cache | -C | -disable-* | --disable-* \
2669	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2670	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2671	  | -with-* | --with-* | -without-* | --without-* | --x)
2672	    case "$ac_configure_args0 " in
2673	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2674	    esac
2675	    ;;
2676	  -* ) ac_must_keep_next=true ;;
2677	esac
2678      fi
2679      as_fn_append ac_configure_args " '$ac_arg'"
2680      ;;
2681    esac
2682  done
2683done
2684{ ac_configure_args0=; unset ac_configure_args0;}
2685{ ac_configure_args1=; unset ac_configure_args1;}
2686
2687# When interrupted or exit'd, cleanup temporary files, and complete
2688# config.log.  We remove comments because anyway the quotes in there
2689# would cause problems or look ugly.
2690# WARNING: Use '\'' to represent an apostrophe within the trap.
2691# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2692trap 'exit_status=$?
2693  # Save into config.log some information that might help in debugging.
2694  {
2695    echo
2696
2697    $as_echo "## ---------------- ##
2698## Cache variables. ##
2699## ---------------- ##"
2700    echo
2701    # The following way of writing the cache mishandles newlines in values,
2702(
2703  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2704    eval ac_val=\$$ac_var
2705    case $ac_val in #(
2706    *${as_nl}*)
2707      case $ac_var in #(
2708      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2709$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2710      esac
2711      case $ac_var in #(
2712      _ | IFS | as_nl) ;; #(
2713      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2714      *) { eval $ac_var=; unset $ac_var;} ;;
2715      esac ;;
2716    esac
2717  done
2718  (set) 2>&1 |
2719    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2720    *${as_nl}ac_space=\ *)
2721      sed -n \
2722	"s/'\''/'\''\\\\'\'''\''/g;
2723	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2724      ;; #(
2725    *)
2726      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2727      ;;
2728    esac |
2729    sort
2730)
2731    echo
2732
2733    $as_echo "## ----------------- ##
2734## Output variables. ##
2735## ----------------- ##"
2736    echo
2737    for ac_var in $ac_subst_vars
2738    do
2739      eval ac_val=\$$ac_var
2740      case $ac_val in
2741      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2742      esac
2743      $as_echo "$ac_var='\''$ac_val'\''"
2744    done | sort
2745    echo
2746
2747    if test -n "$ac_subst_files"; then
2748      $as_echo "## ------------------- ##
2749## File substitutions. ##
2750## ------------------- ##"
2751      echo
2752      for ac_var in $ac_subst_files
2753      do
2754	eval ac_val=\$$ac_var
2755	case $ac_val in
2756	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2757	esac
2758	$as_echo "$ac_var='\''$ac_val'\''"
2759      done | sort
2760      echo
2761    fi
2762
2763    if test -s confdefs.h; then
2764      $as_echo "## ----------- ##
2765## confdefs.h. ##
2766## ----------- ##"
2767      echo
2768      cat confdefs.h
2769      echo
2770    fi
2771    test "$ac_signal" != 0 &&
2772      $as_echo "$as_me: caught signal $ac_signal"
2773    $as_echo "$as_me: exit $exit_status"
2774  } >&5
2775  rm -f core *.core core.conftest.* &&
2776    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2777    exit $exit_status
2778' 0
2779for ac_signal in 1 2 13 15; do
2780  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2781done
2782ac_signal=0
2783
2784# confdefs.h avoids OS command line length limits that DEFS can exceed.
2785rm -f -r conftest* confdefs.h
2786
2787$as_echo "/* confdefs.h */" > confdefs.h
2788
2789# Predefined preprocessor variables.
2790
2791cat >>confdefs.h <<_ACEOF
2792#define PACKAGE_NAME "$PACKAGE_NAME"
2793_ACEOF
2794
2795cat >>confdefs.h <<_ACEOF
2796#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2797_ACEOF
2798
2799cat >>confdefs.h <<_ACEOF
2800#define PACKAGE_VERSION "$PACKAGE_VERSION"
2801_ACEOF
2802
2803cat >>confdefs.h <<_ACEOF
2804#define PACKAGE_STRING "$PACKAGE_STRING"
2805_ACEOF
2806
2807cat >>confdefs.h <<_ACEOF
2808#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2809_ACEOF
2810
2811cat >>confdefs.h <<_ACEOF
2812#define PACKAGE_URL "$PACKAGE_URL"
2813_ACEOF
2814
2815
2816# Let the site file select an alternate cache file if it wants to.
2817# Prefer an explicitly selected file to automatically selected ones.
2818ac_site_file1=NONE
2819ac_site_file2=NONE
2820if test -n "$CONFIG_SITE"; then
2821  # We do not want a PATH search for config.site.
2822  case $CONFIG_SITE in #((
2823    -*)  ac_site_file1=./$CONFIG_SITE;;
2824    */*) ac_site_file1=$CONFIG_SITE;;
2825    *)   ac_site_file1=./$CONFIG_SITE;;
2826  esac
2827elif test "x$prefix" != xNONE; then
2828  ac_site_file1=$prefix/share/config.site
2829  ac_site_file2=$prefix/etc/config.site
2830else
2831  ac_site_file1=$ac_default_prefix/share/config.site
2832  ac_site_file2=$ac_default_prefix/etc/config.site
2833fi
2834for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2835do
2836  test "x$ac_site_file" = xNONE && continue
2837  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2838    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2839$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2840    sed 's/^/| /' "$ac_site_file" >&5
2841    . "$ac_site_file" \
2842      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2844as_fn_error $? "failed to load site script $ac_site_file
2845See \`config.log' for more details" "$LINENO" 5; }
2846  fi
2847done
2848
2849if test -r "$cache_file"; then
2850  # Some versions of bash will fail to source /dev/null (special files
2851  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2852  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2853    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2854$as_echo "$as_me: loading cache $cache_file" >&6;}
2855    case $cache_file in
2856      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2857      *)                      . "./$cache_file";;
2858    esac
2859  fi
2860else
2861  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2862$as_echo "$as_me: creating cache $cache_file" >&6;}
2863  >$cache_file
2864fi
2865
2866# Check that the precious variables saved in the cache have kept the same
2867# value.
2868ac_cache_corrupted=false
2869for ac_var in $ac_precious_vars; do
2870  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2871  eval ac_new_set=\$ac_env_${ac_var}_set
2872  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2873  eval ac_new_val=\$ac_env_${ac_var}_value
2874  case $ac_old_set,$ac_new_set in
2875    set,)
2876      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2877$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2878      ac_cache_corrupted=: ;;
2879    ,set)
2880      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2881$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2882      ac_cache_corrupted=: ;;
2883    ,);;
2884    *)
2885      if test "x$ac_old_val" != "x$ac_new_val"; then
2886	# differences in whitespace do not lead to failure.
2887	ac_old_val_w=`echo x $ac_old_val`
2888	ac_new_val_w=`echo x $ac_new_val`
2889	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2890	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2891$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2892	  ac_cache_corrupted=:
2893	else
2894	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2895$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2896	  eval $ac_var=\$ac_old_val
2897	fi
2898	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2899$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2900	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2901$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2902      fi;;
2903  esac
2904  # Pass precious variables to config.status.
2905  if test "$ac_new_set" = set; then
2906    case $ac_new_val in
2907    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2908    *) ac_arg=$ac_var=$ac_new_val ;;
2909    esac
2910    case " $ac_configure_args " in
2911      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2912      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2913    esac
2914  fi
2915done
2916if $ac_cache_corrupted; then
2917  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2919  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2920$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2921  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2922fi
2923## -------------------- ##
2924## Main body of script. ##
2925## -------------------- ##
2926
2927ac_ext=c
2928ac_cpp='$CPP $CPPFLAGS'
2929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931ac_compiler_gnu=$ac_cv_c_compiler_gnu
2932
2933
2934
2935##
2936# Prefer an empty CFLAGS variable instead of the default -g -O2.
2937# See:
2938#   * http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/C-Compiler.html#C-Compiler
2939##
2940: ${CFLAGS=""}
2941
2942 NC_VERSION_MAJOR=4
2943 NC_VERSION_MINOR=7
2944 NC_VERSION_PATCH=4
2945 NC_VERSION_NOTE=""
2946
2947#####
2948# Set some variables used to generate a libnetcdf.settings file,
2949# pattered after the files generated by libhdf4, libhdf5.
2950#####
2951
2952# Create the VERSION file, which contains the package version from
2953# AC_INIT.
2954echo 4.7.4>VERSION
2955
2956
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: netCDF 4.7.4" >&5
2958$as_echo "$as_me: netCDF 4.7.4" >&6;}
2959
2960# Keep libtool macros in an m4 directory.
2961
2962
2963# Configuration Date
2964if test "x$SOURCE_DATE_EPOCH" != "x" ; then
2965     CONFIG_DATE="`date -u -d "${SOURCE_DATE_EPOCH}"`"
2966else
2967     CONFIG_DATE="`date`"
2968fi
2969
2970# Find out about the host we're building on.
2971ac_aux_dir=
2972for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2973  if test -f "$ac_dir/install-sh"; then
2974    ac_aux_dir=$ac_dir
2975    ac_install_sh="$ac_aux_dir/install-sh -c"
2976    break
2977  elif test -f "$ac_dir/install.sh"; then
2978    ac_aux_dir=$ac_dir
2979    ac_install_sh="$ac_aux_dir/install.sh -c"
2980    break
2981  elif test -f "$ac_dir/shtool"; then
2982    ac_aux_dir=$ac_dir
2983    ac_install_sh="$ac_aux_dir/shtool install -c"
2984    break
2985  fi
2986done
2987if test -z "$ac_aux_dir"; then
2988  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2989fi
2990
2991# These three variables are undocumented and unsupported,
2992# and are intended to be withdrawn in a future Autoconf release.
2993# They can cause serious problems if a builder's source tree is in a directory
2994# whose full name contains unusual characters.
2995ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2996ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2997ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2998
2999
3000# Make sure we can run config.sub.
3001$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3002  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3003
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3005$as_echo_n "checking build system type... " >&6; }
3006if ${ac_cv_build+:} false; then :
3007  $as_echo_n "(cached) " >&6
3008else
3009  ac_build_alias=$build_alias
3010test "x$ac_build_alias" = x &&
3011  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3012test "x$ac_build_alias" = x &&
3013  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3014ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3015  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3016
3017fi
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3019$as_echo "$ac_cv_build" >&6; }
3020case $ac_cv_build in
3021*-*-*) ;;
3022*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3023esac
3024build=$ac_cv_build
3025ac_save_IFS=$IFS; IFS='-'
3026set x $ac_cv_build
3027shift
3028build_cpu=$1
3029build_vendor=$2
3030shift; shift
3031# Remember, the first character of IFS is used to create $*,
3032# except with old shells:
3033build_os=$*
3034IFS=$ac_save_IFS
3035case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3036
3037
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3039$as_echo_n "checking host system type... " >&6; }
3040if ${ac_cv_host+:} false; then :
3041  $as_echo_n "(cached) " >&6
3042else
3043  if test "x$host_alias" = x; then
3044  ac_cv_host=$ac_cv_build
3045else
3046  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3047    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3048fi
3049
3050fi
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3052$as_echo "$ac_cv_host" >&6; }
3053case $ac_cv_host in
3054*-*-*) ;;
3055*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3056esac
3057host=$ac_cv_host
3058ac_save_IFS=$IFS; IFS='-'
3059set x $ac_cv_host
3060shift
3061host_cpu=$1
3062host_vendor=$2
3063shift; shift
3064# Remember, the first character of IFS is used to create $*,
3065# except with old shells:
3066host_os=$*
3067IFS=$ac_save_IFS
3068case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3069
3070
3071
3072# Find out about the target we're building for.
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3074$as_echo_n "checking target system type... " >&6; }
3075if ${ac_cv_target+:} false; then :
3076  $as_echo_n "(cached) " >&6
3077else
3078  if test "x$target_alias" = x; then
3079  ac_cv_target=$ac_cv_host
3080else
3081  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3082    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3083fi
3084
3085fi
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3087$as_echo "$ac_cv_target" >&6; }
3088case $ac_cv_target in
3089*-*-*) ;;
3090*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3091esac
3092target=$ac_cv_target
3093ac_save_IFS=$IFS; IFS='-'
3094set x $ac_cv_target
3095shift
3096target_cpu=$1
3097target_vendor=$2
3098shift; shift
3099# Remember, the first character of IFS is used to create $*,
3100# except with old shells:
3101target_os=$*
3102IFS=$ac_save_IFS
3103case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3104
3105
3106# The aliases save the names the user supplied, while $host etc.
3107# will get canonicalized.
3108test -n "$target_alias" &&
3109  test "$program_prefix$program_suffix$program_transform_name" = \
3110    NONENONEs,x,x, &&
3111  program_prefix=${target_alias}-
3112
3113ac_config_headers="$ac_config_headers config.h"
3114
3115
3116##
3117# Some files need to exist in build directories
3118# that do not correspond to their source directory, or
3119# the test program makes an assumption about where files
3120# live.  AC_CONFIG_LINKS provides a mechanism to link/copy files
3121# if an out-of-source build is happening.
3122##
3123
3124ac_config_links="$ac_config_links nc_test4/ref_hdf5_compat1.nc:nc_test4/ref_hdf5_compat1.nc"
3125
3126ac_config_links="$ac_config_links nc_test4/ref_hdf5_compat2.nc:nc_test4/ref_hdf5_compat2.nc"
3127
3128ac_config_links="$ac_config_links nc_test4/ref_hdf5_compat3.nc:nc_test4/ref_hdf5_compat3.nc"
3129
3130
3131ac_config_links="$ac_config_links hdf4_test/ref_chunked.hdf4:hdf4_test/ref_chunked.hdf4"
3132
3133ac_config_links="$ac_config_links hdf4_test/ref_contiguous.hdf4:hdf4_test/ref_contiguous.hdf4"
3134
3135
3136am__api_version='1.16'
3137
3138# Find a good install program.  We prefer a C program (faster),
3139# so one script is as good as another.  But avoid the broken or
3140# incompatible versions:
3141# SysV /etc/install, /usr/sbin/install
3142# SunOS /usr/etc/install
3143# IRIX /sbin/install
3144# AIX /bin/install
3145# AmigaOS /C/install, which installs bootblocks on floppy discs
3146# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3147# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3148# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3149# OS/2's system install, which has a completely different semantic
3150# ./install, which can be erroneously created by make from ./install.sh.
3151# Reject install programs that cannot install multiple files.
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3153$as_echo_n "checking for a BSD-compatible install... " >&6; }
3154if test -z "$INSTALL"; then
3155if ${ac_cv_path_install+:} false; then :
3156  $as_echo_n "(cached) " >&6
3157else
3158  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159for as_dir in $PATH
3160do
3161  IFS=$as_save_IFS
3162  test -z "$as_dir" && as_dir=.
3163    # Account for people who put trailing slashes in PATH elements.
3164case $as_dir/ in #((
3165  ./ | .// | /[cC]/* | \
3166  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3167  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3168  /usr/ucb/* ) ;;
3169  *)
3170    # OSF1 and SCO ODT 3.0 have their own names for install.
3171    # Don't use installbsd from OSF since it installs stuff as root
3172    # by default.
3173    for ac_prog in ginstall scoinst install; do
3174      for ac_exec_ext in '' $ac_executable_extensions; do
3175	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3176	  if test $ac_prog = install &&
3177	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3178	    # AIX install.  It has an incompatible calling convention.
3179	    :
3180	  elif test $ac_prog = install &&
3181	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3182	    # program-specific install script used by HP pwplus--don't use.
3183	    :
3184	  else
3185	    rm -rf conftest.one conftest.two conftest.dir
3186	    echo one > conftest.one
3187	    echo two > conftest.two
3188	    mkdir conftest.dir
3189	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3190	      test -s conftest.one && test -s conftest.two &&
3191	      test -s conftest.dir/conftest.one &&
3192	      test -s conftest.dir/conftest.two
3193	    then
3194	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3195	      break 3
3196	    fi
3197	  fi
3198	fi
3199      done
3200    done
3201    ;;
3202esac
3203
3204  done
3205IFS=$as_save_IFS
3206
3207rm -rf conftest.one conftest.two conftest.dir
3208
3209fi
3210  if test "${ac_cv_path_install+set}" = set; then
3211    INSTALL=$ac_cv_path_install
3212  else
3213    # As a last resort, use the slow shell script.  Don't cache a
3214    # value for INSTALL within a source directory, because that will
3215    # break other packages using the cache if that directory is
3216    # removed, or if the value is a relative name.
3217    INSTALL=$ac_install_sh
3218  fi
3219fi
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3221$as_echo "$INSTALL" >&6; }
3222
3223# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3224# It thinks the first close brace ends the variable substitution.
3225test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3226
3227test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3228
3229test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3230
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3232$as_echo_n "checking whether build environment is sane... " >&6; }
3233# Reject unsafe characters in $srcdir or the absolute working directory
3234# name.  Accept space and tab only in the latter.
3235am_lf='
3236'
3237case `pwd` in
3238  *[\\\"\#\$\&\'\`$am_lf]*)
3239    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3240esac
3241case $srcdir in
3242  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3243    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3244esac
3245
3246# Do 'set' in a subshell so we don't clobber the current shell's
3247# arguments.  Must try -L first in case configure is actually a
3248# symlink; some systems play weird games with the mod time of symlinks
3249# (eg FreeBSD returns the mod time of the symlink's containing
3250# directory).
3251if (
3252   am_has_slept=no
3253   for am_try in 1 2; do
3254     echo "timestamp, slept: $am_has_slept" > conftest.file
3255     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3256     if test "$*" = "X"; then
3257	# -L didn't work.
3258	set X `ls -t "$srcdir/configure" conftest.file`
3259     fi
3260     if test "$*" != "X $srcdir/configure conftest.file" \
3261	&& test "$*" != "X conftest.file $srcdir/configure"; then
3262
3263	# If neither matched, then we have a broken ls.  This can happen
3264	# if, for instance, CONFIG_SHELL is bash and it inherits a
3265	# broken ls alias from the environment.  This has actually
3266	# happened.  Such a system could not be considered "sane".
3267	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3268  alias in your environment" "$LINENO" 5
3269     fi
3270     if test "$2" = conftest.file || test $am_try -eq 2; then
3271       break
3272     fi
3273     # Just in case.
3274     sleep 1
3275     am_has_slept=yes
3276   done
3277   test "$2" = conftest.file
3278   )
3279then
3280   # Ok.
3281   :
3282else
3283   as_fn_error $? "newly created file is older than distributed files!
3284Check your system clock" "$LINENO" 5
3285fi
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3287$as_echo "yes" >&6; }
3288# If we didn't sleep, we still need to ensure time stamps of config.status and
3289# generated files are strictly newer.
3290am_sleep_pid=
3291if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3292  ( sleep 1 ) &
3293  am_sleep_pid=$!
3294fi
3295
3296rm -f conftest.file
3297
3298test "$program_prefix" != NONE &&
3299  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3300# Use a double $ so make ignores it.
3301test "$program_suffix" != NONE &&
3302  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3303# Double any \ or $.
3304# By default was `s,x,x', remove it if useless.
3305ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3306program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3307
3308# Expand $ac_aux_dir to an absolute path.
3309am_aux_dir=`cd "$ac_aux_dir" && pwd`
3310
3311if test x"${MISSING+set}" != xset; then
3312  case $am_aux_dir in
3313  *\ * | *\	*)
3314    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3315  *)
3316    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3317  esac
3318fi
3319# Use eval to expand $SHELL
3320if eval "$MISSING --is-lightweight"; then
3321  am_missing_run="$MISSING "
3322else
3323  am_missing_run=
3324  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3325$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3326fi
3327
3328if test x"${install_sh+set}" != xset; then
3329  case $am_aux_dir in
3330  *\ * | *\	*)
3331    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3332  *)
3333    install_sh="\${SHELL} $am_aux_dir/install-sh"
3334  esac
3335fi
3336
3337# Installed binaries are usually stripped using 'strip' when the user
3338# run "make install-strip".  However 'strip' might not be the right
3339# tool to use in cross-compilation environments, therefore Automake
3340# will honor the 'STRIP' environment variable to overrule this program.
3341if test "$cross_compiling" != no; then
3342  if test -n "$ac_tool_prefix"; then
3343  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3344set dummy ${ac_tool_prefix}strip; ac_word=$2
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346$as_echo_n "checking for $ac_word... " >&6; }
3347if ${ac_cv_prog_STRIP+:} false; then :
3348  $as_echo_n "(cached) " >&6
3349else
3350  if test -n "$STRIP"; then
3351  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3352else
3353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354for as_dir in $PATH
3355do
3356  IFS=$as_save_IFS
3357  test -z "$as_dir" && as_dir=.
3358    for ac_exec_ext in '' $ac_executable_extensions; do
3359  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362    break 2
3363  fi
3364done
3365  done
3366IFS=$as_save_IFS
3367
3368fi
3369fi
3370STRIP=$ac_cv_prog_STRIP
3371if test -n "$STRIP"; then
3372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3373$as_echo "$STRIP" >&6; }
3374else
3375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376$as_echo "no" >&6; }
3377fi
3378
3379
3380fi
3381if test -z "$ac_cv_prog_STRIP"; then
3382  ac_ct_STRIP=$STRIP
3383  # Extract the first word of "strip", so it can be a program name with args.
3384set dummy strip; ac_word=$2
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386$as_echo_n "checking for $ac_word... " >&6; }
3387if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3388  $as_echo_n "(cached) " >&6
3389else
3390  if test -n "$ac_ct_STRIP"; then
3391  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3392else
3393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394for as_dir in $PATH
3395do
3396  IFS=$as_save_IFS
3397  test -z "$as_dir" && as_dir=.
3398    for ac_exec_ext in '' $ac_executable_extensions; do
3399  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400    ac_cv_prog_ac_ct_STRIP="strip"
3401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402    break 2
3403  fi
3404done
3405  done
3406IFS=$as_save_IFS
3407
3408fi
3409fi
3410ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3411if test -n "$ac_ct_STRIP"; then
3412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3413$as_echo "$ac_ct_STRIP" >&6; }
3414else
3415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416$as_echo "no" >&6; }
3417fi
3418
3419  if test "x$ac_ct_STRIP" = x; then
3420    STRIP=":"
3421  else
3422    case $cross_compiling:$ac_tool_warned in
3423yes:)
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3426ac_tool_warned=yes ;;
3427esac
3428    STRIP=$ac_ct_STRIP
3429  fi
3430else
3431  STRIP="$ac_cv_prog_STRIP"
3432fi
3433
3434fi
3435INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3436
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3438$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3439if test -z "$MKDIR_P"; then
3440  if ${ac_cv_path_mkdir+:} false; then :
3441  $as_echo_n "(cached) " >&6
3442else
3443  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3445do
3446  IFS=$as_save_IFS
3447  test -z "$as_dir" && as_dir=.
3448    for ac_prog in mkdir gmkdir; do
3449	 for ac_exec_ext in '' $ac_executable_extensions; do
3450	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3451	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3452	     'mkdir (GNU coreutils) '* | \
3453	     'mkdir (coreutils) '* | \
3454	     'mkdir (fileutils) '4.1*)
3455	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3456	       break 3;;
3457	   esac
3458	 done
3459       done
3460  done
3461IFS=$as_save_IFS
3462
3463fi
3464
3465  test -d ./--version && rmdir ./--version
3466  if test "${ac_cv_path_mkdir+set}" = set; then
3467    MKDIR_P="$ac_cv_path_mkdir -p"
3468  else
3469    # As a last resort, use the slow shell script.  Don't cache a
3470    # value for MKDIR_P within a source directory, because that will
3471    # break other packages using the cache if that directory is
3472    # removed, or if the value is a relative name.
3473    MKDIR_P="$ac_install_sh -d"
3474  fi
3475fi
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3477$as_echo "$MKDIR_P" >&6; }
3478
3479for ac_prog in gawk mawk nawk awk
3480do
3481  # Extract the first word of "$ac_prog", so it can be a program name with args.
3482set dummy $ac_prog; ac_word=$2
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484$as_echo_n "checking for $ac_word... " >&6; }
3485if ${ac_cv_prog_AWK+:} false; then :
3486  $as_echo_n "(cached) " >&6
3487else
3488  if test -n "$AWK"; then
3489  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3490else
3491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492for as_dir in $PATH
3493do
3494  IFS=$as_save_IFS
3495  test -z "$as_dir" && as_dir=.
3496    for ac_exec_ext in '' $ac_executable_extensions; do
3497  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3498    ac_cv_prog_AWK="$ac_prog"
3499    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500    break 2
3501  fi
3502done
3503  done
3504IFS=$as_save_IFS
3505
3506fi
3507fi
3508AWK=$ac_cv_prog_AWK
3509if test -n "$AWK"; then
3510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3511$as_echo "$AWK" >&6; }
3512else
3513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514$as_echo "no" >&6; }
3515fi
3516
3517
3518  test -n "$AWK" && break
3519done
3520
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3522$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3523set x ${MAKE-make}
3524ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3525if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3526  $as_echo_n "(cached) " >&6
3527else
3528  cat >conftest.make <<\_ACEOF
3529SHELL = /bin/sh
3530all:
3531	@echo '@@@%%%=$(MAKE)=@@@%%%'
3532_ACEOF
3533# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3534case `${MAKE-make} -f conftest.make 2>/dev/null` in
3535  *@@@%%%=?*=@@@%%%*)
3536    eval ac_cv_prog_make_${ac_make}_set=yes;;
3537  *)
3538    eval ac_cv_prog_make_${ac_make}_set=no;;
3539esac
3540rm -f conftest.make
3541fi
3542if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3544$as_echo "yes" >&6; }
3545  SET_MAKE=
3546else
3547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548$as_echo "no" >&6; }
3549  SET_MAKE="MAKE=${MAKE-make}"
3550fi
3551
3552rm -rf .tst 2>/dev/null
3553mkdir .tst 2>/dev/null
3554if test -d .tst; then
3555  am__leading_dot=.
3556else
3557  am__leading_dot=_
3558fi
3559rmdir .tst 2>/dev/null
3560
3561# Check whether --enable-silent-rules was given.
3562if test "${enable_silent_rules+set}" = set; then :
3563  enableval=$enable_silent_rules;
3564fi
3565
3566case $enable_silent_rules in # (((
3567  yes) AM_DEFAULT_VERBOSITY=0;;
3568   no) AM_DEFAULT_VERBOSITY=1;;
3569    *) AM_DEFAULT_VERBOSITY=1;;
3570esac
3571am_make=${MAKE-make}
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3573$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3574if ${am_cv_make_support_nested_variables+:} false; then :
3575  $as_echo_n "(cached) " >&6
3576else
3577  if $as_echo 'TRUE=$(BAR$(V))
3578BAR0=false
3579BAR1=true
3580V=1
3581am__doit:
3582	@$(TRUE)
3583.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3584  am_cv_make_support_nested_variables=yes
3585else
3586  am_cv_make_support_nested_variables=no
3587fi
3588fi
3589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3590$as_echo "$am_cv_make_support_nested_variables" >&6; }
3591if test $am_cv_make_support_nested_variables = yes; then
3592    AM_V='$(V)'
3593  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3594else
3595  AM_V=$AM_DEFAULT_VERBOSITY
3596  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3597fi
3598AM_BACKSLASH='\'
3599
3600if test "`cd $srcdir && pwd`" != "`pwd`"; then
3601  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3602  # is not polluted with repeated "-I."
3603  am__isrc=' -I$(srcdir)'
3604  # test to see if srcdir already configured
3605  if test -f $srcdir/config.status; then
3606    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3607  fi
3608fi
3609
3610# test whether we have cygpath
3611if test -z "$CYGPATH_W"; then
3612  if (cygpath --version) >/dev/null 2>/dev/null; then
3613    CYGPATH_W='cygpath -w'
3614  else
3615    CYGPATH_W=echo
3616  fi
3617fi
3618
3619
3620# Define the identity of the package.
3621 PACKAGE='netcdf-c'
3622 VERSION='4.7.4'
3623
3624
3625cat >>confdefs.h <<_ACEOF
3626#define PACKAGE "$PACKAGE"
3627_ACEOF
3628
3629
3630cat >>confdefs.h <<_ACEOF
3631#define VERSION "$VERSION"
3632_ACEOF
3633
3634# Some tools Automake needs.
3635
3636ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3637
3638
3639AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3640
3641
3642AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3643
3644
3645AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3646
3647
3648MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3649
3650# For better backward compatibility.  To be removed once Automake 1.9.x
3651# dies out for good.  For more background, see:
3652# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3653# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3654mkdir_p='$(MKDIR_P)'
3655
3656# We need awk for the "check" target (and possibly the TAP driver).  The
3657# system "awk" is bad on some platforms.
3658# Always define AMTAR for backward compatibility.  Yes, it's still used
3659# in the wild :-(  We should find a proper way to deprecate it ...
3660AMTAR='$${TAR-tar}'
3661
3662
3663# We'll loop over all known methods to create a tar archive until one works.
3664_am_tools='gnutar  pax cpio none'
3665
3666am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3667
3668
3669
3670
3671
3672
3673# POSIX will say in a future version that running "rm -f" with no argument
3674# is OK; and we want to be able to make that assumption in our Makefile
3675# recipes.  So use an aggressive probe to check that the usage we want is
3676# actually supported "in the wild" to an acceptable degree.
3677# See automake bug#10828.
3678# To make any issue more visible, cause the running configure to be aborted
3679# by default if the 'rm' program in use doesn't match our expectations; the
3680# user can still override this though.
3681if rm -f && rm -fr && rm -rf; then : OK; else
3682  cat >&2 <<'END'
3683Oops!
3684
3685Your 'rm' program seems unable to run without file operands specified
3686on the command line, even when the '-f' option is present.  This is contrary
3687to the behaviour of most rm programs out there, and not conforming with
3688the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3689
3690Please tell bug-automake@gnu.org about your system, including the value
3691of your $PATH and any error possibly output before this message.  This
3692can help us improve future automake versions.
3693
3694END
3695  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3696    echo 'Configuration will proceed anyway, since you have set the' >&2
3697    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3698    echo >&2
3699  else
3700    cat >&2 <<'END'
3701Aborting the configuration process, to ensure you take notice of the issue.
3702
3703You can download and install GNU coreutils to get an 'rm' implementation
3704that behaves properly: <https://www.gnu.org/software/coreutils/>.
3705
3706If you want to complete the configuration process using your problematic
3707'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3708to "yes", and re-run configure.
3709
3710END
3711    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3712  fi
3713fi
3714
3715
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3717$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3718    # Check whether --enable-maintainer-mode was given.
3719if test "${enable_maintainer_mode+set}" = set; then :
3720  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3721else
3722  USE_MAINTAINER_MODE=no
3723fi
3724
3725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3726$as_echo "$USE_MAINTAINER_MODE" >&6; }
3727   if test $USE_MAINTAINER_MODE = yes; then
3728  MAINTAINER_MODE_TRUE=
3729  MAINTAINER_MODE_FALSE='#'
3730else
3731  MAINTAINER_MODE_TRUE='#'
3732  MAINTAINER_MODE_FALSE=
3733fi
3734
3735  MAINT=$MAINTAINER_MODE_TRUE
3736
3737
3738
3739# Check for the existence of this file before proceeding.
3740
3741
3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking user options" >&5
3743$as_echo "$as_me: checking user options" >&6;}
3744
3745# Did the user specify a default minimum blocksize (NCIO_MINBLOCKSIZE) for posixio?
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a NCIO_MINBLOCKSIZE was specified" >&5
3747$as_echo_n "checking whether a NCIO_MINBLOCKSIZE was specified... " >&6; }
3748
3749# Check whether --with-minblocksize was given.
3750if test "${with_minblocksize+set}" = set; then :
3751  withval=$with_minblocksize; NCIO_MINBLOCKSIZE=$with_minblocksize
3752else
3753  NCIO_MINBLOCKSIZE=256
3754fi
3755
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NCIO_MINBLOCKSIZE" >&5
3757$as_echo "$NCIO_MINBLOCKSIZE" >&6; }
3758
3759cat >>confdefs.h <<_ACEOF
3760#define NCIO_MINBLOCKSIZE $NCIO_MINBLOCKSIZE
3761_ACEOF
3762
3763
3764# Find valgrind, if available, and add targets for it.
3765
3766
3767
3768
3769		# Check whether --enable-valgrind was given.
3770if test "${enable_valgrind+set}" = set; then :
3771  enableval=$enable_valgrind; enable_valgrind=$enableval
3772else
3773  enable_valgrind=
3774fi
3775
3776
3777	if test "$enable_valgrind" != "no"; then :
3778
3779		# Check for Valgrind.
3780		# Extract the first word of "valgrind", so it can be a program name with args.
3781set dummy valgrind; ac_word=$2
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3783$as_echo_n "checking for $ac_word... " >&6; }
3784if ${ac_cv_prog_VALGRIND+:} false; then :
3785  $as_echo_n "(cached) " >&6
3786else
3787  if test -n "$VALGRIND"; then
3788  ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
3789else
3790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791for as_dir in $PATH
3792do
3793  IFS=$as_save_IFS
3794  test -z "$as_dir" && as_dir=.
3795    for ac_exec_ext in '' $ac_executable_extensions; do
3796  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797    ac_cv_prog_VALGRIND="valgrind"
3798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799    break 2
3800  fi
3801done
3802  done
3803IFS=$as_save_IFS
3804
3805fi
3806fi
3807VALGRIND=$ac_cv_prog_VALGRIND
3808if test -n "$VALGRIND"; then
3809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
3810$as_echo "$VALGRIND" >&6; }
3811else
3812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813$as_echo "no" >&6; }
3814fi
3815
3816
3817		if test "$VALGRIND" = ""; then :
3818
3819			if test "$enable_valgrind" = "yes"; then :
3820
3821				as_fn_error $? "Could not find valgrind; either install it or reconfigure with --disable-valgrind" "$LINENO" 5
3822
3823else
3824
3825				enable_valgrind=no
3826
3827fi
3828
3829else
3830
3831			enable_valgrind=yes
3832
3833fi
3834
3835fi
3836
3837	 if test "$enable_valgrind" = "yes"; then
3838  VALGRIND_ENABLED_TRUE=
3839  VALGRIND_ENABLED_FALSE='#'
3840else
3841  VALGRIND_ENABLED_TRUE='#'
3842  VALGRIND_ENABLED_FALSE=
3843fi
3844
3845	VALGRIND_ENABLED=$enable_valgrind
3846
3847
3848	# Check for Valgrind tools we care about.
3849	valgrind_enabled_tools=
3850
3851		# Check whether --enable-valgrind-memcheck was given.
3852if test "${enable_valgrind_memcheck+set}" = set; then :
3853  enableval=$enable_valgrind_memcheck; enable_valgrind_memcheck=$enableval
3854else
3855  enable_valgrind_memcheck=
3856fi
3857
3858		if test "$enable_valgrind" = "no"; then :
3859
3860			enable_valgrind_memcheck=no
3861elif test "$enable_valgrind_memcheck" != "no"; then :
3862
3863			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool memcheck" >&5
3864$as_echo_n "checking for Valgrind tool memcheck... " >&6; }
3865if ${ax_cv_valgrind_tool_memcheck+:} false; then :
3866  $as_echo_n "(cached) " >&6
3867else
3868
3869				ax_cv_valgrind_tool_memcheck=no
3870
3871				if `$VALGRIND --tool=memcheck --help >/dev/null 2>&1`; then :
3872
3873					ax_cv_valgrind_tool_memcheck=yes
3874
3875fi
3876
3877fi
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_memcheck" >&5
3879$as_echo "$ax_cv_valgrind_tool_memcheck" >&6; }
3880			if test "$ax_cv_valgrind_tool_memcheck" = "no"; then :
3881
3882				if test "$enable_valgrind_memcheck" = "yes"; then :
3883
3884					as_fn_error $? "Valgrind does not support memcheck; reconfigure with --disable-valgrind-memcheck" "$LINENO" 5
3885
3886else
3887
3888					enable_valgrind_memcheck=no
3889
3890fi
3891
3892else
3893
3894				enable_valgrind_memcheck=yes
3895
3896fi
3897
3898fi
3899		if test "$enable_valgrind_memcheck" = "yes"; then :
3900
3901			valgrind_enabled_tools="$valgrind_enabled_tools memcheck"
3902
3903fi
3904		ENABLE_VALGRIND_memcheck=$enable_valgrind_memcheck
3905
3906
3907		# Check whether --enable-valgrind-helgrind was given.
3908if test "${enable_valgrind_helgrind+set}" = set; then :
3909  enableval=$enable_valgrind_helgrind; enable_valgrind_helgrind=$enableval
3910else
3911  enable_valgrind_helgrind=
3912fi
3913
3914		if test "$enable_valgrind" = "no"; then :
3915
3916			enable_valgrind_helgrind=no
3917elif test "$enable_valgrind_helgrind" != "no"; then :
3918
3919			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool helgrind" >&5
3920$as_echo_n "checking for Valgrind tool helgrind... " >&6; }
3921if ${ax_cv_valgrind_tool_helgrind+:} false; then :
3922  $as_echo_n "(cached) " >&6
3923else
3924
3925				ax_cv_valgrind_tool_helgrind=no
3926
3927				if `$VALGRIND --tool=helgrind --help >/dev/null 2>&1`; then :
3928
3929					ax_cv_valgrind_tool_helgrind=yes
3930
3931fi
3932
3933fi
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_helgrind" >&5
3935$as_echo "$ax_cv_valgrind_tool_helgrind" >&6; }
3936			if test "$ax_cv_valgrind_tool_helgrind" = "no"; then :
3937
3938				if test "$enable_valgrind_helgrind" = "yes"; then :
3939
3940					as_fn_error $? "Valgrind does not support helgrind; reconfigure with --disable-valgrind-helgrind" "$LINENO" 5
3941
3942else
3943
3944					enable_valgrind_helgrind=no
3945
3946fi
3947
3948else
3949
3950				enable_valgrind_helgrind=yes
3951
3952fi
3953
3954fi
3955		if test "$enable_valgrind_helgrind" = "yes"; then :
3956
3957			valgrind_enabled_tools="$valgrind_enabled_tools helgrind"
3958
3959fi
3960		ENABLE_VALGRIND_helgrind=$enable_valgrind_helgrind
3961
3962
3963		# Check whether --enable-valgrind-drd was given.
3964if test "${enable_valgrind_drd+set}" = set; then :
3965  enableval=$enable_valgrind_drd; enable_valgrind_drd=$enableval
3966else
3967  enable_valgrind_drd=
3968fi
3969
3970		if test "$enable_valgrind" = "no"; then :
3971
3972			enable_valgrind_drd=no
3973elif test "$enable_valgrind_drd" != "no"; then :
3974
3975			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool drd" >&5
3976$as_echo_n "checking for Valgrind tool drd... " >&6; }
3977if ${ax_cv_valgrind_tool_drd+:} false; then :
3978  $as_echo_n "(cached) " >&6
3979else
3980
3981				ax_cv_valgrind_tool_drd=no
3982
3983				if `$VALGRIND --tool=drd --help >/dev/null 2>&1`; then :
3984
3985					ax_cv_valgrind_tool_drd=yes
3986
3987fi
3988
3989fi
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_drd" >&5
3991$as_echo "$ax_cv_valgrind_tool_drd" >&6; }
3992			if test "$ax_cv_valgrind_tool_drd" = "no"; then :
3993
3994				if test "$enable_valgrind_drd" = "yes"; then :
3995
3996					as_fn_error $? "Valgrind does not support drd; reconfigure with --disable-valgrind-drd" "$LINENO" 5
3997
3998else
3999
4000					enable_valgrind_drd=no
4001
4002fi
4003
4004else
4005
4006				enable_valgrind_drd=yes
4007
4008fi
4009
4010fi
4011		if test "$enable_valgrind_drd" = "yes"; then :
4012
4013			valgrind_enabled_tools="$valgrind_enabled_tools drd"
4014
4015fi
4016		ENABLE_VALGRIND_drd=$enable_valgrind_drd
4017
4018
4019		# Check whether --enable-valgrind-sgcheck was given.
4020if test "${enable_valgrind_sgcheck+set}" = set; then :
4021  enableval=$enable_valgrind_sgcheck; enable_valgrind_sgcheck=$enableval
4022else
4023  enable_valgrind_sgcheck=
4024fi
4025
4026		if test "$enable_valgrind" = "no"; then :
4027
4028			enable_valgrind_sgcheck=no
4029elif test "$enable_valgrind_sgcheck" = "yes"; then :
4030
4031			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool sgcheck" >&5
4032$as_echo_n "checking for Valgrind tool sgcheck... " >&6; }
4033if ${ax_cv_valgrind_tool_sgcheck+:} false; then :
4034  $as_echo_n "(cached) " >&6
4035else
4036
4037				ax_cv_valgrind_tool_sgcheck=no
4038
4039				if `$VALGRIND --tool=exp-sgcheck --help >/dev/null 2>&1`; then :
4040
4041					ax_cv_valgrind_tool_sgcheck=yes
4042
4043fi
4044
4045fi
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_sgcheck" >&5
4047$as_echo "$ax_cv_valgrind_tool_sgcheck" >&6; }
4048			if test "$ax_cv_valgrind_tool_sgcheck" = "no"; then :
4049
4050				if test "$enable_valgrind_sgcheck" = "yes"; then :
4051
4052					as_fn_error $? "Valgrind does not support sgcheck; reconfigure with --disable-valgrind-sgcheck" "$LINENO" 5
4053
4054else
4055
4056					enable_valgrind_sgcheck=no
4057
4058fi
4059
4060else
4061
4062				enable_valgrind_sgcheck=yes
4063
4064fi
4065
4066fi
4067		if test "$enable_valgrind_sgcheck" = "yes"; then :
4068
4069			valgrind_enabled_tools="$valgrind_enabled_tools sgcheck"
4070
4071fi
4072		ENABLE_VALGRIND_sgcheck=$enable_valgrind_sgcheck
4073
4074
4075	valgrind_tools="memcheck helgrind drd sgcheck"
4076
4077	valgrind_enabled_tools=$valgrind_enabled_tools
4078
4079
4080VALGRIND_CHECK_RULES='
4081# Valgrind check
4082#
4083# Optional:
4084#  - VALGRIND_SUPPRESSIONS_FILES: Space-separated list of Valgrind suppressions
4085#    files to load. (Default: empty)
4086#  - VALGRIND_FLAGS: General flags to pass to all Valgrind tools.
4087#    (Default: --num-callers=30)
4088#  - VALGRIND_$toolname_FLAGS: Flags to pass to Valgrind $toolname (one of:
4089#    memcheck, helgrind, drd, sgcheck). (Default: various)
4090
4091# Optional variables
4092VALGRIND_SUPPRESSIONS ?= $(addprefix --suppressions=,$(VALGRIND_SUPPRESSIONS_FILES))
4093VALGRIND_FLAGS ?= --num-callers=30
4094VALGRIND_memcheck_FLAGS ?= --leak-check=full --show-reachable=no
4095VALGRIND_helgrind_FLAGS ?= --history-level=approx
4096VALGRIND_drd_FLAGS ?=
4097VALGRIND_sgcheck_FLAGS ?=
4098
4099# Internal use
4100valgrind_log_files = $(addprefix test-suite-,$(addsuffix .log,$(valgrind_tools)))
4101
4102valgrind_memcheck_flags = --tool=memcheck $(VALGRIND_memcheck_FLAGS)
4103valgrind_helgrind_flags = --tool=helgrind $(VALGRIND_helgrind_FLAGS)
4104valgrind_drd_flags = --tool=drd $(VALGRIND_drd_FLAGS)
4105valgrind_sgcheck_flags = --tool=exp-sgcheck $(VALGRIND_sgcheck_FLAGS)
4106
4107valgrind_quiet = $(valgrind_quiet_$(V))
4108valgrind_quiet_ = $(valgrind_quiet_$(AM_DEFAULT_VERBOSITY))
4109valgrind_quiet_0 = --quiet
4110valgrind_v_use   = $(valgrind_v_use_$(V))
4111valgrind_v_use_  = $(valgrind_v_use_$(AM_DEFAULT_VERBOSITY))
4112valgrind_v_use_0 = @echo "  USE   " $(patsubst check-valgrind-%-am,%,$''@):;
4113
4114# Support running with and without libtool.
4115ifneq ($(LIBTOOL),)
4116valgrind_lt = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=execute
4117else
4118valgrind_lt =
4119endif
4120
4121# Use recursive makes in order to ignore errors during check
4122check-valgrind-am:
4123ifeq ($(VALGRIND_ENABLED),yes)
4124	$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k \
4125		$(foreach tool, $(valgrind_enabled_tools), check-valgrind-$(tool))
4126else
4127	@echo "Need to reconfigure with --enable-valgrind"
4128endif
4129
4130# Valgrind running
4131VALGRIND_TESTS_ENVIRONMENT = \
4132	$(TESTS_ENVIRONMENT) \
4133	env VALGRIND=$(VALGRIND) \
4134	G_SLICE=always-malloc,debug-blocks \
4135	G_DEBUG=fatal-warnings,fatal-criticals,gc-friendly
4136
4137VALGRIND_LOG_COMPILER = \
4138	$(valgrind_lt) \
4139	$(VALGRIND) $(VALGRIND_SUPPRESSIONS) --error-exitcode=1 $(VALGRIND_FLAGS)
4140
4141define valgrind_tool_rule
4142check-valgrind-$(1)-am:
4143ifeq ($$(VALGRIND_ENABLED)-$$(ENABLE_VALGRIND_$(1)),yes-yes)
4144ifneq ($$(TESTS),)
4145	$$(valgrind_v_use)$$(MAKE) check-TESTS \
4146		TESTS_ENVIRONMENT="$$(VALGRIND_TESTS_ENVIRONMENT)" \
4147		LOG_COMPILER="$$(VALGRIND_LOG_COMPILER)" \
4148		LOG_FLAGS="$$(valgrind_$(1)_flags)" \
4149		TEST_SUITE_LOG=test-suite-$(1).log
4150endif
4151else ifeq ($$(VALGRIND_ENABLED),yes)
4152	@echo "Need to reconfigure with --enable-valgrind-$(1)"
4153else
4154	@echo "Need to reconfigure with --enable-valgrind"
4155endif
4156endef
4157
4158$(foreach tool,$(valgrind_tools),$(eval $(call valgrind_tool_rule,$(tool))))
4159
4160A''M_DISTCHECK_CONFIGURE_FLAGS ?=
4161A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-valgrind
4162
4163MOSTLYCLEANFILES ?=
4164MOSTLYCLEANFILES += $(valgrind_log_files)
4165
4166.PHONY: check-valgrind $(add-prefix check-valgrind-,$(valgrind_tools))
4167'
4168
4169
4170
4171
4172 if test "x$VALGRIND_ENABLED" = xyes; then
4173  ENABLE_VALGRIND_TRUE=
4174  ENABLE_VALGRIND_FALSE='#'
4175else
4176  ENABLE_VALGRIND_TRUE='#'
4177  ENABLE_VALGRIND_FALSE=
4178fi
4179
4180
4181###
4182# Doxygen and doxygen-related options.
4183###
4184# Check whether --enable-doxygen was given.
4185if test "${enable_doxygen+set}" = set; then :
4186  enableval=$enable_doxygen;
4187fi
4188
4189test "x$enable_doxygen" = xyes || enable_doxygen=no
4190 if test "x$enable_doxygen" = xyes; then
4191  BUILD_DOCS_TRUE=
4192  BUILD_DOCS_FALSE='#'
4193else
4194  BUILD_DOCS_TRUE='#'
4195  BUILD_DOCS_FALSE=
4196fi
4197
4198
4199# Check whether --enable-doxygen-tasks was given.
4200if test "${enable_doxygen_tasks+set}" = set; then :
4201  enableval=$enable_doxygen_tasks;
4202fi
4203
4204test "x$enable_doxygen_tasks" = xyes || enable_doxygen_tasks=no
4205 if test "x$enable_doxygen_tasks" = xyes; then
4206  SHOW_DOXYGEN_TAG_LIST_TRUE=
4207  SHOW_DOXYGEN_TAG_LIST_FALSE='#'
4208else
4209  SHOW_DOXYGEN_TAG_LIST_TRUE='#'
4210  SHOW_DOXYGEN_TAG_LIST_FALSE=
4211fi
4212
4213SHOW_DOXYGEN_TAG_LIST=$enable_doxygen_tasks
4214
4215
4216###
4217# Determine if we should build documentation
4218# configured for releases on the Unidata web server.
4219###
4220# Check whether --enable-doxygen-build-release-docs was given.
4221if test "${enable_doxygen_build_release_docs+set}" = set; then :
4222  enableval=$enable_doxygen_build_release_docs;
4223fi
4224
4225test "x$enable_doxygen_build_release_docs" = xyes || enable_doxygen_build_release_docs=no
4226 if test "x$enable_doxygen_build_release_docs" = xyes; then
4227  DOXYGEN_BUILD_RELEASE_DOCS_TRUE=
4228  DOXYGEN_BUILD_RELEASE_DOCS_FALSE='#'
4229else
4230  DOXYGEN_BUILD_RELEASE_DOCS_TRUE='#'
4231  DOXYGEN_BUILD_RELEASE_DOCS_FALSE=
4232fi
4233
4234
4235if test $enable_doxygen_build_release_docs = yes; then
4236   DOXYGEN_CSS_FILE="release.css"
4237
4238   DOXYGEN_HEADER_FILE="release_header.html"
4239
4240   DOXYGEN_SEARCHENGINE="NO"
4241
4242else
4243
4244
4245   DOXYGEN_SEARCHENGINE="YES"
4246
4247fi
4248DOXYGEN_SERVER_BASED_SEARCH="NO"
4249
4250
4251# Check whether --enable-doxygen-pdf-output was given.
4252if test "${enable_doxygen_pdf_output+set}" = set; then :
4253  enableval=$enable_doxygen_pdf_output;
4254fi
4255
4256                if test "x$enable_doxygen_pdf_output" = xyes; then
4257  NC_ENABLE_DOXYGEN_PDF_OUTPUT_TRUE=
4258  NC_ENABLE_DOXYGEN_PDF_OUTPUT_FALSE='#'
4259else
4260  NC_ENABLE_DOXYGEN_PDF_OUTPUT_TRUE='#'
4261  NC_ENABLE_DOXYGEN_PDF_OUTPUT_FALSE=
4262fi
4263
4264NC_ENABLE_DOXYGEN_PDF_OUTPUT=$enable_doxygen_pdf_output
4265
4266
4267# Check whether --enable-dot was given.
4268if test "${enable_dot+set}" = set; then :
4269  enableval=$enable_dot;
4270fi
4271
4272	test "x$enable_dot" = xyes || enable_dot=no
4273
4274# Check whether --enable-internal-docs was given.
4275if test "${enable_internal_docs+set}" = set; then :
4276  enableval=$enable_internal_docs;
4277fi
4278
4279test "x$enable_internal_docs" = xyes || enable_internal_docs=no
4280BUILD_INTERNAL_DOCS=$enable_internal_docs
4281
4282
4283# Doxygen is apparently buggy when trying to combine a markdown
4284# file with @internal. The equivalent can be faked using
4285# the Doxygen ENABLED_SECTIONS mechanism. See docs/testserver.dox
4286# to see how this is done.
4287sections=
4288if test "x$enable_internal_docs" = xyes ; then
4289sections="$sections INTERNAL"
4290fi
4291ENABLED_DOC_SECTIONS=$sections
4292
4293
4294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsync support is enabled" >&5
4295$as_echo_n "checking if fsync support is enabled... " >&6; }
4296# Check whether --enable-fsync was given.
4297if test "${enable_fsync+set}" = set; then :
4298  enableval=$enable_fsync;
4299else
4300  enable_fsync=no
4301fi
4302
4303test "x$enable_fsync" = xno || enable_fsync=yes
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fsync" >&5
4305$as_echo "$enable_fsync" >&6; }
4306if test "x$enable_fsync" = xyes ; then
4307
4308$as_echo "#define USE_FSYNC 1" >>confdefs.h
4309
4310fi
4311
4312# Temporary until JNA bug is fixed (which is probably never).
4313# The problem being solved is this:
4314# > On Windows using the microsoft runtime, it is an error
4315# > for one library to free memory allocated by a different library.
4316# This is probably only an issue when using the netcdf-c library
4317# via JNA under Java.
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if jna bug workaround is enabled" >&5
4319$as_echo_n "checking if jna bug workaround is enabled... " >&6; }
4320# Check whether --enable-jna was given.
4321if test "${enable_jna+set}" = set; then :
4322  enableval=$enable_jna;
4323else
4324  enable_jna=no
4325fi
4326
4327test "x$enable_jna" = xno || enable_jna=yes
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_jna" >&5
4329$as_echo "$enable_jna" >&6; }
4330if test "x$enable_jna" = xyes ; then
4331
4332$as_echo "#define JNA 1" >>confdefs.h
4333
4334fi
4335
4336# Does the user want to turn off unit tests (useful for test coverage
4337# analysis).
4338# Check whether --enable-unit-tests was given.
4339if test "${enable_unit_tests+set}" = set; then :
4340  enableval=$enable_unit_tests;
4341fi
4342
4343test "x$enable_unit_tests" = xno || enable_unit_tests=yes
4344 if test "x$enable_unit_tests" = xyes; then
4345  BUILD_UNIT_TESTS_TRUE=
4346  BUILD_UNIT_TESTS_FALSE='#'
4347else
4348  BUILD_UNIT_TESTS_TRUE='#'
4349  BUILD_UNIT_TESTS_FALSE=
4350fi
4351
4352
4353# Does the user want to build netcdf-4?
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should build netCDF-4" >&5
4355$as_echo_n "checking whether we should build netCDF-4... " >&6; }
4356# Check whether --enable-netcdf-4 was given.
4357if test "${enable_netcdf_4+set}" = set; then :
4358  enableval=$enable_netcdf_4;
4359fi
4360
4361test "x$enable_netcdf_4" = xno || enable_netcdf_4=yes
4362
4363# Synonym
4364# Check whether --enable-netcdf4 was given.
4365if test "${enable_netcdf4+set}" = set; then :
4366  enableval=$enable_netcdf4;
4367fi
4368
4369test "x$enable_netcdf4" = xno || enable_netcdf4=yesi
4370if test "x$enable_netcdf4" = xno ; then
4371enable_netcdf_4=no
4372fi
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_netcdf_4" >&5
4374$as_echo "$enable_netcdf_4" >&6; }
4375
4376# Does the user want to use HDF5?
4377# WARNING: enable_hdf5 does not imply that use_netcdf_4 is enabled
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should build with HDF5" >&5
4379$as_echo_n "checking whether we should build with HDF5... " >&6; }
4380#enable_hdf5=$enable_netcdf_4
4381# Check whether --enable-hdf5 was given.
4382if test "${enable_hdf5+set}" = set; then :
4383  enableval=$enable_hdf5;
4384fi
4385
4386test "x$enable_hdf5" = xno || enable_hdf5=yes
4387if test "x$enable_netcdf_4" = xno ; then
4388enable_hdf5=no
4389fi
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hdf5" >&5
4391$as_echo "$enable_hdf5" >&6; }
4392
4393# Does the user require dynamic loading?
4394# This is only for those hdf5 installs that support it.
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking do we require hdf5 dynamic-loading support" >&5
4396$as_echo_n "checking do we require hdf5 dynamic-loading support... " >&6; }
4397# Check whether --enable-dynamic-loading was given.
4398if test "${enable_dynamic_loading+set}" = set; then :
4399  enableval=$enable_dynamic_loading;
4400fi
4401
4402test "x$enable_dynamic_loading" = xno || enable_dynamic_loading=yes
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dynamic_loading" >&5
4404$as_echo "$enable_dynamic_loading" >&6; }
4405
4406# Does the user want to turn on HDF4 read ability?
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether reading of HDF4 SD files is to be enabled" >&5
4408$as_echo_n "checking whether reading of HDF4 SD files is to be enabled... " >&6; }
4409# Check whether --enable-hdf4 was given.
4410if test "${enable_hdf4+set}" = set; then :
4411  enableval=$enable_hdf4;
4412fi
4413
4414test "x$enable_hdf4" = xyes || enable_hdf4=no
4415if test "x$enable_hdf4" = xyes -a "x$enable_netcdf_4" = xno; then
4416      as_fn_error $? "NetCDF-4 is required for HDF4 features" "$LINENO" 5
4417fi
4418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hdf4" >&5
4419$as_echo "$enable_hdf4" >&6; }
4420
4421# Does the user want to turn on extra HDF4 file tests?
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to fetch some sample HDF4 files from Unidata ftp site to test HDF4 reading (requires wget)" >&5
4423$as_echo_n "checking whether to fetch some sample HDF4 files from Unidata ftp site to test HDF4 reading (requires wget)... " >&6; }
4424# Check whether --enable-hdf4-file-tests was given.
4425if test "${enable_hdf4_file_tests+set}" = set; then :
4426  enableval=$enable_hdf4_file_tests;
4427fi
4428
4429test "x$enable_hdf4" = xyes -a "x$enable_hdf4_file_tests" = xyes || enable_hdf4_file_tests=no
4430if test "x$enable_hdf4_file_tests" = xyes; then
4431
4432$as_echo "#define USE_HDF4_FILE_TESTS 1" >>confdefs.h
4433
4434fi
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hdf4_file_tests" >&5
4436$as_echo "$enable_hdf4_file_tests" >&6; }
4437
4438# Does the user want to try to install netcdf-fortran
4439# automatically?
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should attempt to install netcdf-fortran (EXPERIMENTAL)" >&5
4441$as_echo_n "checking whether we should attempt to install netcdf-fortran (EXPERIMENTAL)... " >&6; }
4442# Check whether --enable-remote-fortran-bootstrap was given.
4443if test "${enable_remote_fortran_bootstrap+set}" = set; then :
4444  enableval=$enable_remote_fortran_bootstrap;
4445fi
4446
4447test "x$enable_remote_fortran_bootstrap" = xyes || enable_remote_fortran_bootstrap=no
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_remote_fortran_bootstrap" >&5
4449$as_echo "$enable_remote_fortran_bootstrap" >&6; }
4450
4451# Does the user want to run extra parallel tests when parallel netCDF-4 is built?
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether parallel IO tests should be run" >&5
4453$as_echo_n "checking whether parallel IO tests should be run... " >&6; }
4454# Check whether --enable-parallel-tests was given.
4455if test "${enable_parallel_tests+set}" = set; then :
4456  enableval=$enable_parallel_tests;
4457fi
4458
4459test "x$enable_parallel_tests" = xyes || enable_parallel_tests=no
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_parallel_tests" >&5
4461$as_echo "$enable_parallel_tests" >&6; }
4462
4463# Did the user specify an MPI launcher other than mpiexec?
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a user specified program to run mpi programs" >&5
4465$as_echo_n "checking whether a user specified program to run mpi programs... " >&6; }
4466
4467# Check whether --with-mpiexec was given.
4468if test "${with_mpiexec+set}" = set; then :
4469  withval=$with_mpiexec; MPIEXEC=$with_mpiexec
4470else
4471  MPIEXEC=mpiexec
4472fi
4473
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIEXEC" >&5
4475$as_echo "$MPIEXEC" >&6; }
4476MPIEXEC=$MPIEXEC
4477
4478
4479# Did the user specify a default chunk size?
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default chunk size in bytes was specified" >&5
4481$as_echo_n "checking whether a default chunk size in bytes was specified... " >&6; }
4482
4483# Check whether --with-default-chunk-size was given.
4484if test "${with_default_chunk_size+set}" = set; then :
4485  withval=$with_default_chunk_size; DEFAULT_CHUNK_SIZE=$with_default_chunk_size
4486else
4487  DEFAULT_CHUNK_SIZE=4194304
4488fi
4489
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_CHUNK_SIZE" >&5
4491$as_echo "$DEFAULT_CHUNK_SIZE" >&6; }
4492
4493cat >>confdefs.h <<_ACEOF
4494#define DEFAULT_CHUNK_SIZE $DEFAULT_CHUNK_SIZE
4495_ACEOF
4496
4497
4498# Did the user specify a max per-var cache size?
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a maximum per-variable cache size for HDF5 was specified" >&5
4500$as_echo_n "checking whether a maximum per-variable cache size for HDF5 was specified... " >&6; }
4501
4502# Check whether --with-max-default-cache-size was given.
4503if test "${with_max_default_cache_size+set}" = set; then :
4504  withval=$with_max_default_cache_size; MAX_DEFAULT_CACHE_SIZE=$with_max_default_cache_size
4505else
4506  MAX_DEFAULT_CACHE_SIZE=67108864
4507fi
4508
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAX_DEFAULT_CACHE_SIZE" >&5
4510$as_echo "$MAX_DEFAULT_CACHE_SIZE" >&6; }
4511
4512cat >>confdefs.h <<_ACEOF
4513#define MAX_DEFAULT_CACHE_SIZE $MAX_DEFAULT_CACHE_SIZE
4514_ACEOF
4515
4516
4517# Did the user specify a number of chunks in default per-var cache size?
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a number of chunks for the default per-variable cache was specified" >&5
4519$as_echo_n "checking whether a number of chunks for the default per-variable cache was specified... " >&6; }
4520
4521# Check whether --with-default-chunks-in-cache was given.
4522if test "${with_default_chunks_in_cache+set}" = set; then :
4523  withval=$with_default_chunks_in_cache; DEFAULT_CHUNKS_IN_CACHE=$with_default_chunks_in_cache
4524else
4525  DEFAULT_CHUNKS_IN_CACHE=10
4526fi
4527
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_CHUNKS_IN_CACHE" >&5
4529$as_echo "$DEFAULT_CHUNKS_IN_CACHE" >&6; }
4530
4531cat >>confdefs.h <<_ACEOF
4532#define DEFAULT_CHUNKS_IN_CACHE $DEFAULT_CHUNKS_IN_CACHE
4533_ACEOF
4534
4535
4536# Did the user specify a default cache size?
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default file cache size for HDF5 was specified" >&5
4538$as_echo_n "checking whether a default file cache size for HDF5 was specified... " >&6; }
4539
4540# Check whether --with-chunk-cache-size was given.
4541if test "${with_chunk_cache_size+set}" = set; then :
4542  withval=$with_chunk_cache_size; CHUNK_CACHE_SIZE=$with_chunk_cache_size
4543else
4544  CHUNK_CACHE_SIZE=16777216
4545fi
4546
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHUNK_CACHE_SIZE" >&5
4548$as_echo "$CHUNK_CACHE_SIZE" >&6; }
4549
4550cat >>confdefs.h <<_ACEOF
4551#define CHUNK_CACHE_SIZE $CHUNK_CACHE_SIZE
4552_ACEOF
4553
4554
4555# Did the user specify a default cache nelems?
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default file cache maximum number of elements for HDF5 was specified" >&5
4557$as_echo_n "checking whether a default file cache maximum number of elements for HDF5 was specified... " >&6; }
4558
4559# Check whether --with-chunk-cache-nelems was given.
4560if test "${with_chunk_cache_nelems+set}" = set; then :
4561  withval=$with_chunk_cache_nelems; CHUNK_CACHE_NELEMS=$with_chunk_cache_nelems
4562else
4563  CHUNK_CACHE_NELEMS=4133
4564fi
4565
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHUNK_CACHE_NELEMS" >&5
4567$as_echo "$CHUNK_CACHE_NELEMS" >&6; }
4568
4569cat >>confdefs.h <<_ACEOF
4570#define CHUNK_CACHE_NELEMS $CHUNK_CACHE_NELEMS
4571_ACEOF
4572
4573
4574# Did the user specify a default cache preemption?
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default cache preemption for HDF5 was specified" >&5
4576$as_echo_n "checking whether a default cache preemption for HDF5 was specified... " >&6; }
4577
4578# Check whether --with-chunk-cache-preemption was given.
4579if test "${with_chunk_cache_preemption+set}" = set; then :
4580  withval=$with_chunk_cache_preemption; CHUNK_CACHE_PREEMPTION=$with_chunk_cache_preemption
4581else
4582  CHUNK_CACHE_PREEMPTION=0.75
4583fi
4584
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHUNK_CACHE_PREEMPTION" >&5
4586$as_echo "$CHUNK_CACHE_PREEMPTION" >&6; }
4587
4588cat >>confdefs.h <<_ACEOF
4589#define CHUNK_CACHE_PREEMPTION $CHUNK_CACHE_PREEMPTION
4590_ACEOF
4591
4592
4593# Does the user want to enable netcdf-4 logging?
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netCDF-4 logging is enabled" >&5
4595$as_echo_n "checking whether netCDF-4 logging is enabled... " >&6; }
4596# Check whether --enable-logging was given.
4597if test "${enable_logging+set}" = set; then :
4598  enableval=$enable_logging;
4599fi
4600
4601test "x$enable_logging" = xyes || enable_logging=no
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_logging" >&5
4603$as_echo "$enable_logging" >&6; }
4604
4605# Does the user want to turn off nc_set_log_level() function? (It will
4606# always be defined if --enable-logging is used.)
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nc_set_log_level() function is included (will do nothing unless enable-logging is also used)" >&5
4608$as_echo_n "checking whether nc_set_log_level() function is included (will do nothing unless enable-logging is also used)... " >&6; }
4609# Check whether --enable-set_log_level_func was given.
4610if test "${enable_set_log_level_func+set}" = set; then :
4611  enableval=$enable_set_log_level_func;
4612fi
4613
4614test "x$enable_set_log_level_func" = xno -a "x$enable_logging" = xno || enable_set_log_level_func=yes
4615if test "x$enable_set_log_level_func" = xyes -a "x$enable_netcdf_4" = xyes; then
4616
4617$as_echo "#define ENABLE_SET_LOG_LEVEL 1" >>confdefs.h
4618
4619fi
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_set_log_level_func" >&5
4621$as_echo "$enable_set_log_level_func" >&6; }
4622
4623## Capture the state of the --enable-dap flag => enable dap2+dap4
4624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DAP client(s) are to be built" >&5
4625$as_echo_n "checking whether DAP client(s) are to be built... " >&6; }
4626# Check whether --enable-dap was given.
4627if test "${enable_dap+set}" = set; then :
4628  enableval=$enable_dap;
4629fi
4630
4631test "x$enable_dap" = xno || enable_dap=yes
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dap" >&5
4633$as_echo "$enable_dap" >&6; }
4634
4635# We need curl for DAP and byterange
4636DEPDIR="${am__leading_dot}deps"
4637
4638ac_config_commands="$ac_config_commands depfiles"
4639
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4641$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4642cat > confinc.mk << 'END'
4643am__doit:
4644	@echo this is the am__doit target >confinc.out
4645.PHONY: am__doit
4646END
4647am__include="#"
4648am__quote=
4649# BSD make does it like this.
4650echo '.include "confinc.mk" # ignored' > confmf.BSD
4651# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4652echo 'include confinc.mk # ignored' > confmf.GNU
4653_am_result=no
4654for s in GNU BSD; do
4655  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4656   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4657   ac_status=$?
4658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659   (exit $ac_status); }
4660  case $?:`cat confinc.out 2>/dev/null` in #(
4661  '0:this is the am__doit target') :
4662    case $s in #(
4663  BSD) :
4664    am__include='.include' am__quote='"' ;; #(
4665  *) :
4666    am__include='include' am__quote='' ;;
4667esac ;; #(
4668  *) :
4669     ;;
4670esac
4671  if test "$am__include" != "#"; then
4672    _am_result="yes ($s style)"
4673    break
4674  fi
4675done
4676rm -f confinc.* confmf.*
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4678$as_echo "${_am_result}" >&6; }
4679
4680# Check whether --enable-dependency-tracking was given.
4681if test "${enable_dependency_tracking+set}" = set; then :
4682  enableval=$enable_dependency_tracking;
4683fi
4684
4685if test "x$enable_dependency_tracking" != xno; then
4686  am_depcomp="$ac_aux_dir/depcomp"
4687  AMDEPBACKSLASH='\'
4688  am__nodep='_no'
4689fi
4690 if test "x$enable_dependency_tracking" != xno; then
4691  AMDEP_TRUE=
4692  AMDEP_FALSE='#'
4693else
4694  AMDEP_TRUE='#'
4695  AMDEP_FALSE=
4696fi
4697
4698
4699ac_ext=c
4700ac_cpp='$CPP $CPPFLAGS'
4701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4703ac_compiler_gnu=$ac_cv_c_compiler_gnu
4704if test -n "$ac_tool_prefix"; then
4705  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4706set dummy ${ac_tool_prefix}gcc; ac_word=$2
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708$as_echo_n "checking for $ac_word... " >&6; }
4709if ${ac_cv_prog_CC+:} false; then :
4710  $as_echo_n "(cached) " >&6
4711else
4712  if test -n "$CC"; then
4713  ac_cv_prog_CC="$CC" # Let the user override the test.
4714else
4715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716for as_dir in $PATH
4717do
4718  IFS=$as_save_IFS
4719  test -z "$as_dir" && as_dir=.
4720    for ac_exec_ext in '' $ac_executable_extensions; do
4721  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4722    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4724    break 2
4725  fi
4726done
4727  done
4728IFS=$as_save_IFS
4729
4730fi
4731fi
4732CC=$ac_cv_prog_CC
4733if test -n "$CC"; then
4734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4735$as_echo "$CC" >&6; }
4736else
4737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738$as_echo "no" >&6; }
4739fi
4740
4741
4742fi
4743if test -z "$ac_cv_prog_CC"; then
4744  ac_ct_CC=$CC
4745  # Extract the first word of "gcc", so it can be a program name with args.
4746set dummy gcc; ac_word=$2
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748$as_echo_n "checking for $ac_word... " >&6; }
4749if ${ac_cv_prog_ac_ct_CC+:} false; then :
4750  $as_echo_n "(cached) " >&6
4751else
4752  if test -n "$ac_ct_CC"; then
4753  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4754else
4755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756for as_dir in $PATH
4757do
4758  IFS=$as_save_IFS
4759  test -z "$as_dir" && as_dir=.
4760    for ac_exec_ext in '' $ac_executable_extensions; do
4761  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4762    ac_cv_prog_ac_ct_CC="gcc"
4763    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4764    break 2
4765  fi
4766done
4767  done
4768IFS=$as_save_IFS
4769
4770fi
4771fi
4772ac_ct_CC=$ac_cv_prog_ac_ct_CC
4773if test -n "$ac_ct_CC"; then
4774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4775$as_echo "$ac_ct_CC" >&6; }
4776else
4777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778$as_echo "no" >&6; }
4779fi
4780
4781  if test "x$ac_ct_CC" = x; then
4782    CC=""
4783  else
4784    case $cross_compiling:$ac_tool_warned in
4785yes:)
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4788ac_tool_warned=yes ;;
4789esac
4790    CC=$ac_ct_CC
4791  fi
4792else
4793  CC="$ac_cv_prog_CC"
4794fi
4795
4796if test -z "$CC"; then
4797          if test -n "$ac_tool_prefix"; then
4798    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4799set dummy ${ac_tool_prefix}cc; ac_word=$2
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4801$as_echo_n "checking for $ac_word... " >&6; }
4802if ${ac_cv_prog_CC+:} false; then :
4803  $as_echo_n "(cached) " >&6
4804else
4805  if test -n "$CC"; then
4806  ac_cv_prog_CC="$CC" # Let the user override the test.
4807else
4808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809for as_dir in $PATH
4810do
4811  IFS=$as_save_IFS
4812  test -z "$as_dir" && as_dir=.
4813    for ac_exec_ext in '' $ac_executable_extensions; do
4814  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4815    ac_cv_prog_CC="${ac_tool_prefix}cc"
4816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817    break 2
4818  fi
4819done
4820  done
4821IFS=$as_save_IFS
4822
4823fi
4824fi
4825CC=$ac_cv_prog_CC
4826if test -n "$CC"; then
4827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4828$as_echo "$CC" >&6; }
4829else
4830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831$as_echo "no" >&6; }
4832fi
4833
4834
4835  fi
4836fi
4837if test -z "$CC"; then
4838  # Extract the first word of "cc", so it can be a program name with args.
4839set dummy cc; ac_word=$2
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841$as_echo_n "checking for $ac_word... " >&6; }
4842if ${ac_cv_prog_CC+:} false; then :
4843  $as_echo_n "(cached) " >&6
4844else
4845  if test -n "$CC"; then
4846  ac_cv_prog_CC="$CC" # Let the user override the test.
4847else
4848  ac_prog_rejected=no
4849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850for as_dir in $PATH
4851do
4852  IFS=$as_save_IFS
4853  test -z "$as_dir" && as_dir=.
4854    for ac_exec_ext in '' $ac_executable_extensions; do
4855  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4856    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4857       ac_prog_rejected=yes
4858       continue
4859     fi
4860    ac_cv_prog_CC="cc"
4861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4862    break 2
4863  fi
4864done
4865  done
4866IFS=$as_save_IFS
4867
4868if test $ac_prog_rejected = yes; then
4869  # We found a bogon in the path, so make sure we never use it.
4870  set dummy $ac_cv_prog_CC
4871  shift
4872  if test $# != 0; then
4873    # We chose a different compiler from the bogus one.
4874    # However, it has the same basename, so the bogon will be chosen
4875    # first if we set CC to just the basename; use the full file name.
4876    shift
4877    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4878  fi
4879fi
4880fi
4881fi
4882CC=$ac_cv_prog_CC
4883if test -n "$CC"; then
4884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4885$as_echo "$CC" >&6; }
4886else
4887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888$as_echo "no" >&6; }
4889fi
4890
4891
4892fi
4893if test -z "$CC"; then
4894  if test -n "$ac_tool_prefix"; then
4895  for ac_prog in cl.exe
4896  do
4897    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4898set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900$as_echo_n "checking for $ac_word... " >&6; }
4901if ${ac_cv_prog_CC+:} false; then :
4902  $as_echo_n "(cached) " >&6
4903else
4904  if test -n "$CC"; then
4905  ac_cv_prog_CC="$CC" # Let the user override the test.
4906else
4907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908for as_dir in $PATH
4909do
4910  IFS=$as_save_IFS
4911  test -z "$as_dir" && as_dir=.
4912    for ac_exec_ext in '' $ac_executable_extensions; do
4913  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4914    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916    break 2
4917  fi
4918done
4919  done
4920IFS=$as_save_IFS
4921
4922fi
4923fi
4924CC=$ac_cv_prog_CC
4925if test -n "$CC"; then
4926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4927$as_echo "$CC" >&6; }
4928else
4929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930$as_echo "no" >&6; }
4931fi
4932
4933
4934    test -n "$CC" && break
4935  done
4936fi
4937if test -z "$CC"; then
4938  ac_ct_CC=$CC
4939  for ac_prog in cl.exe
4940do
4941  # Extract the first word of "$ac_prog", so it can be a program name with args.
4942set dummy $ac_prog; ac_word=$2
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944$as_echo_n "checking for $ac_word... " >&6; }
4945if ${ac_cv_prog_ac_ct_CC+:} false; then :
4946  $as_echo_n "(cached) " >&6
4947else
4948  if test -n "$ac_ct_CC"; then
4949  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4950else
4951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952for as_dir in $PATH
4953do
4954  IFS=$as_save_IFS
4955  test -z "$as_dir" && as_dir=.
4956    for ac_exec_ext in '' $ac_executable_extensions; do
4957  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958    ac_cv_prog_ac_ct_CC="$ac_prog"
4959    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960    break 2
4961  fi
4962done
4963  done
4964IFS=$as_save_IFS
4965
4966fi
4967fi
4968ac_ct_CC=$ac_cv_prog_ac_ct_CC
4969if test -n "$ac_ct_CC"; then
4970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4971$as_echo "$ac_ct_CC" >&6; }
4972else
4973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974$as_echo "no" >&6; }
4975fi
4976
4977
4978  test -n "$ac_ct_CC" && break
4979done
4980
4981  if test "x$ac_ct_CC" = x; then
4982    CC=""
4983  else
4984    case $cross_compiling:$ac_tool_warned in
4985yes:)
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4988ac_tool_warned=yes ;;
4989esac
4990    CC=$ac_ct_CC
4991  fi
4992fi
4993
4994fi
4995
4996
4997test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4999as_fn_error $? "no acceptable C compiler found in \$PATH
5000See \`config.log' for more details" "$LINENO" 5; }
5001
5002# Provide some information about the compiler.
5003$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5004set X $ac_compile
5005ac_compiler=$2
5006for ac_option in --version -v -V -qversion; do
5007  { { ac_try="$ac_compiler $ac_option >&5"
5008case "(($ac_try" in
5009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5010  *) ac_try_echo=$ac_try;;
5011esac
5012eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5013$as_echo "$ac_try_echo"; } >&5
5014  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5015  ac_status=$?
5016  if test -s conftest.err; then
5017    sed '10a\
5018... rest of stderr output deleted ...
5019         10q' conftest.err >conftest.er1
5020    cat conftest.er1 >&5
5021  fi
5022  rm -f conftest.er1 conftest.err
5023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5024  test $ac_status = 0; }
5025done
5026
5027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028/* end confdefs.h.  */
5029
5030int
5031main ()
5032{
5033
5034  ;
5035  return 0;
5036}
5037_ACEOF
5038ac_clean_files_save=$ac_clean_files
5039ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5040# Try to create an executable without -o first, disregard a.out.
5041# It will help us diagnose broken compilers, and finding out an intuition
5042# of exeext.
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5044$as_echo_n "checking whether the C compiler works... " >&6; }
5045ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5046
5047# The possible output files:
5048ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5049
5050ac_rmfiles=
5051for ac_file in $ac_files
5052do
5053  case $ac_file in
5054    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5055    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5056  esac
5057done
5058rm -f $ac_rmfiles
5059
5060if { { ac_try="$ac_link_default"
5061case "(($ac_try" in
5062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063  *) ac_try_echo=$ac_try;;
5064esac
5065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5066$as_echo "$ac_try_echo"; } >&5
5067  (eval "$ac_link_default") 2>&5
5068  ac_status=$?
5069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5070  test $ac_status = 0; }; then :
5071  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5072# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5073# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5074# so that the user can short-circuit this test for compilers unknown to
5075# Autoconf.
5076for ac_file in $ac_files ''
5077do
5078  test -f "$ac_file" || continue
5079  case $ac_file in
5080    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5081	;;
5082    [ab].out )
5083	# We found the default executable, but exeext='' is most
5084	# certainly right.
5085	break;;
5086    *.* )
5087	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5088	then :; else
5089	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5090	fi
5091	# We set ac_cv_exeext here because the later test for it is not
5092	# safe: cross compilers may not add the suffix if given an `-o'
5093	# argument, so we may need to know it at that point already.
5094	# Even if this section looks crufty: it has the advantage of
5095	# actually working.
5096	break;;
5097    * )
5098	break;;
5099  esac
5100done
5101test "$ac_cv_exeext" = no && ac_cv_exeext=
5102
5103else
5104  ac_file=''
5105fi
5106if test -z "$ac_file"; then :
5107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108$as_echo "no" >&6; }
5109$as_echo "$as_me: failed program was:" >&5
5110sed 's/^/| /' conftest.$ac_ext >&5
5111
5112{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5114as_fn_error 77 "C compiler cannot create executables
5115See \`config.log' for more details" "$LINENO" 5; }
5116else
5117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5118$as_echo "yes" >&6; }
5119fi
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5121$as_echo_n "checking for C compiler default output file name... " >&6; }
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5123$as_echo "$ac_file" >&6; }
5124ac_exeext=$ac_cv_exeext
5125
5126rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5127ac_clean_files=$ac_clean_files_save
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5129$as_echo_n "checking for suffix of executables... " >&6; }
5130if { { ac_try="$ac_link"
5131case "(($ac_try" in
5132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133  *) ac_try_echo=$ac_try;;
5134esac
5135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5136$as_echo "$ac_try_echo"; } >&5
5137  (eval "$ac_link") 2>&5
5138  ac_status=$?
5139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5140  test $ac_status = 0; }; then :
5141  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5142# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5143# work properly (i.e., refer to `conftest.exe'), while it won't with
5144# `rm'.
5145for ac_file in conftest.exe conftest conftest.*; do
5146  test -f "$ac_file" || continue
5147  case $ac_file in
5148    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5149    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5150	  break;;
5151    * ) break;;
5152  esac
5153done
5154else
5155  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5157as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5158See \`config.log' for more details" "$LINENO" 5; }
5159fi
5160rm -f conftest conftest$ac_cv_exeext
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5162$as_echo "$ac_cv_exeext" >&6; }
5163
5164rm -f conftest.$ac_ext
5165EXEEXT=$ac_cv_exeext
5166ac_exeext=$EXEEXT
5167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168/* end confdefs.h.  */
5169#include <stdio.h>
5170int
5171main ()
5172{
5173FILE *f = fopen ("conftest.out", "w");
5174 return ferror (f) || fclose (f) != 0;
5175
5176  ;
5177  return 0;
5178}
5179_ACEOF
5180ac_clean_files="$ac_clean_files conftest.out"
5181# Check that the compiler produces executables we can run.  If not, either
5182# the compiler is broken, or we cross compile.
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5184$as_echo_n "checking whether we are cross compiling... " >&6; }
5185if test "$cross_compiling" != yes; then
5186  { { ac_try="$ac_link"
5187case "(($ac_try" in
5188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189  *) ac_try_echo=$ac_try;;
5190esac
5191eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5192$as_echo "$ac_try_echo"; } >&5
5193  (eval "$ac_link") 2>&5
5194  ac_status=$?
5195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5196  test $ac_status = 0; }
5197  if { ac_try='./conftest$ac_cv_exeext'
5198  { { case "(($ac_try" in
5199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200  *) ac_try_echo=$ac_try;;
5201esac
5202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5203$as_echo "$ac_try_echo"; } >&5
5204  (eval "$ac_try") 2>&5
5205  ac_status=$?
5206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5207  test $ac_status = 0; }; }; then
5208    cross_compiling=no
5209  else
5210    if test "$cross_compiling" = maybe; then
5211	cross_compiling=yes
5212    else
5213	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5215as_fn_error $? "cannot run C compiled programs.
5216If you meant to cross compile, use \`--host'.
5217See \`config.log' for more details" "$LINENO" 5; }
5218    fi
5219  fi
5220fi
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5222$as_echo "$cross_compiling" >&6; }
5223
5224rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5225ac_clean_files=$ac_clean_files_save
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5227$as_echo_n "checking for suffix of object files... " >&6; }
5228if ${ac_cv_objext+:} false; then :
5229  $as_echo_n "(cached) " >&6
5230else
5231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232/* end confdefs.h.  */
5233
5234int
5235main ()
5236{
5237
5238  ;
5239  return 0;
5240}
5241_ACEOF
5242rm -f conftest.o conftest.obj
5243if { { ac_try="$ac_compile"
5244case "(($ac_try" in
5245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246  *) ac_try_echo=$ac_try;;
5247esac
5248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5249$as_echo "$ac_try_echo"; } >&5
5250  (eval "$ac_compile") 2>&5
5251  ac_status=$?
5252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5253  test $ac_status = 0; }; then :
5254  for ac_file in conftest.o conftest.obj conftest.*; do
5255  test -f "$ac_file" || continue;
5256  case $ac_file in
5257    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5258    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5259       break;;
5260  esac
5261done
5262else
5263  $as_echo "$as_me: failed program was:" >&5
5264sed 's/^/| /' conftest.$ac_ext >&5
5265
5266{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5268as_fn_error $? "cannot compute suffix of object files: cannot compile
5269See \`config.log' for more details" "$LINENO" 5; }
5270fi
5271rm -f conftest.$ac_cv_objext conftest.$ac_ext
5272fi
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5274$as_echo "$ac_cv_objext" >&6; }
5275OBJEXT=$ac_cv_objext
5276ac_objext=$OBJEXT
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5278$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5279if ${ac_cv_c_compiler_gnu+:} false; then :
5280  $as_echo_n "(cached) " >&6
5281else
5282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283/* end confdefs.h.  */
5284
5285int
5286main ()
5287{
5288#ifndef __GNUC__
5289       choke me
5290#endif
5291
5292  ;
5293  return 0;
5294}
5295_ACEOF
5296if ac_fn_c_try_compile "$LINENO"; then :
5297  ac_compiler_gnu=yes
5298else
5299  ac_compiler_gnu=no
5300fi
5301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302ac_cv_c_compiler_gnu=$ac_compiler_gnu
5303
5304fi
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5306$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5307if test $ac_compiler_gnu = yes; then
5308  GCC=yes
5309else
5310  GCC=
5311fi
5312ac_test_CFLAGS=${CFLAGS+set}
5313ac_save_CFLAGS=$CFLAGS
5314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5315$as_echo_n "checking whether $CC accepts -g... " >&6; }
5316if ${ac_cv_prog_cc_g+:} false; then :
5317  $as_echo_n "(cached) " >&6
5318else
5319  ac_save_c_werror_flag=$ac_c_werror_flag
5320   ac_c_werror_flag=yes
5321   ac_cv_prog_cc_g=no
5322   CFLAGS="-g"
5323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324/* end confdefs.h.  */
5325
5326int
5327main ()
5328{
5329
5330  ;
5331  return 0;
5332}
5333_ACEOF
5334if ac_fn_c_try_compile "$LINENO"; then :
5335  ac_cv_prog_cc_g=yes
5336else
5337  CFLAGS=""
5338      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339/* end confdefs.h.  */
5340
5341int
5342main ()
5343{
5344
5345  ;
5346  return 0;
5347}
5348_ACEOF
5349if ac_fn_c_try_compile "$LINENO"; then :
5350
5351else
5352  ac_c_werror_flag=$ac_save_c_werror_flag
5353	 CFLAGS="-g"
5354	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355/* end confdefs.h.  */
5356
5357int
5358main ()
5359{
5360
5361  ;
5362  return 0;
5363}
5364_ACEOF
5365if ac_fn_c_try_compile "$LINENO"; then :
5366  ac_cv_prog_cc_g=yes
5367fi
5368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5369fi
5370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371fi
5372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373   ac_c_werror_flag=$ac_save_c_werror_flag
5374fi
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5376$as_echo "$ac_cv_prog_cc_g" >&6; }
5377if test "$ac_test_CFLAGS" = set; then
5378  CFLAGS=$ac_save_CFLAGS
5379elif test $ac_cv_prog_cc_g = yes; then
5380  if test "$GCC" = yes; then
5381    CFLAGS="-g -O2"
5382  else
5383    CFLAGS="-g"
5384  fi
5385else
5386  if test "$GCC" = yes; then
5387    CFLAGS="-O2"
5388  else
5389    CFLAGS=
5390  fi
5391fi
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5393$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5394if ${ac_cv_prog_cc_c89+:} false; then :
5395  $as_echo_n "(cached) " >&6
5396else
5397  ac_cv_prog_cc_c89=no
5398ac_save_CC=$CC
5399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400/* end confdefs.h.  */
5401#include <stdarg.h>
5402#include <stdio.h>
5403struct stat;
5404/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5405struct buf { int x; };
5406FILE * (*rcsopen) (struct buf *, struct stat *, int);
5407static char *e (p, i)
5408     char **p;
5409     int i;
5410{
5411  return p[i];
5412}
5413static char *f (char * (*g) (char **, int), char **p, ...)
5414{
5415  char *s;
5416  va_list v;
5417  va_start (v,p);
5418  s = g (p, va_arg (v,int));
5419  va_end (v);
5420  return s;
5421}
5422
5423/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5424   function prototypes and stuff, but not '\xHH' hex character constants.
5425   These don't provoke an error unfortunately, instead are silently treated
5426   as 'x'.  The following induces an error, until -std is added to get
5427   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5428   array size at least.  It's necessary to write '\x00'==0 to get something
5429   that's true only with -std.  */
5430int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5431
5432/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5433   inside strings and character constants.  */
5434#define FOO(x) 'x'
5435int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5436
5437int test (int i, double x);
5438struct s1 {int (*f) (int a);};
5439struct s2 {int (*f) (double a);};
5440int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5441int argc;
5442char **argv;
5443int
5444main ()
5445{
5446return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5447  ;
5448  return 0;
5449}
5450_ACEOF
5451for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5452	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5453do
5454  CC="$ac_save_CC $ac_arg"
5455  if ac_fn_c_try_compile "$LINENO"; then :
5456  ac_cv_prog_cc_c89=$ac_arg
5457fi
5458rm -f core conftest.err conftest.$ac_objext
5459  test "x$ac_cv_prog_cc_c89" != "xno" && break
5460done
5461rm -f conftest.$ac_ext
5462CC=$ac_save_CC
5463
5464fi
5465# AC_CACHE_VAL
5466case "x$ac_cv_prog_cc_c89" in
5467  x)
5468    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5469$as_echo "none needed" >&6; } ;;
5470  xno)
5471    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5472$as_echo "unsupported" >&6; } ;;
5473  *)
5474    CC="$CC $ac_cv_prog_cc_c89"
5475    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5476$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5477esac
5478if test "x$ac_cv_prog_cc_c89" != xno; then :
5479
5480fi
5481
5482ac_ext=c
5483ac_cpp='$CPP $CPPFLAGS'
5484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5486ac_compiler_gnu=$ac_cv_c_compiler_gnu
5487
5488ac_ext=c
5489ac_cpp='$CPP $CPPFLAGS'
5490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5492ac_compiler_gnu=$ac_cv_c_compiler_gnu
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5494$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5495if ${am_cv_prog_cc_c_o+:} false; then :
5496  $as_echo_n "(cached) " >&6
5497else
5498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499/* end confdefs.h.  */
5500
5501int
5502main ()
5503{
5504
5505  ;
5506  return 0;
5507}
5508_ACEOF
5509  # Make sure it works both with $CC and with simple cc.
5510  # Following AC_PROG_CC_C_O, we do the test twice because some
5511  # compilers refuse to overwrite an existing .o file with -o,
5512  # though they will create one.
5513  am_cv_prog_cc_c_o=yes
5514  for am_i in 1 2; do
5515    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5516   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5517   ac_status=$?
5518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519   (exit $ac_status); } \
5520         && test -f conftest2.$ac_objext; then
5521      : OK
5522    else
5523      am_cv_prog_cc_c_o=no
5524      break
5525    fi
5526  done
5527  rm -f core conftest*
5528  unset am_i
5529fi
5530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5531$as_echo "$am_cv_prog_cc_c_o" >&6; }
5532if test "$am_cv_prog_cc_c_o" != yes; then
5533   # Losing compiler, so override with the script.
5534   # FIXME: It is wrong to rewrite CC.
5535   # But if we don't then we get into trouble of one sort or another.
5536   # A longer-term fix would be to have automake use am__CC in this case,
5537   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5538   CC="$am_aux_dir/compile $CC"
5539fi
5540ac_ext=c
5541ac_cpp='$CPP $CPPFLAGS'
5542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5544ac_compiler_gnu=$ac_cv_c_compiler_gnu
5545
5546
5547depcc="$CC"   am_compiler_list=
5548
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5550$as_echo_n "checking dependency style of $depcc... " >&6; }
5551if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5552  $as_echo_n "(cached) " >&6
5553else
5554  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5555  # We make a subdir and do the tests there.  Otherwise we can end up
5556  # making bogus files that we don't know about and never remove.  For
5557  # instance it was reported that on HP-UX the gcc test will end up
5558  # making a dummy file named 'D' -- because '-MD' means "put the output
5559  # in D".
5560  rm -rf conftest.dir
5561  mkdir conftest.dir
5562  # Copy depcomp to subdir because otherwise we won't find it if we're
5563  # using a relative directory.
5564  cp "$am_depcomp" conftest.dir
5565  cd conftest.dir
5566  # We will build objects and dependencies in a subdirectory because
5567  # it helps to detect inapplicable dependency modes.  For instance
5568  # both Tru64's cc and ICC support -MD to output dependencies as a
5569  # side effect of compilation, but ICC will put the dependencies in
5570  # the current directory while Tru64 will put them in the object
5571  # directory.
5572  mkdir sub
5573
5574  am_cv_CC_dependencies_compiler_type=none
5575  if test "$am_compiler_list" = ""; then
5576     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5577  fi
5578  am__universal=false
5579  case " $depcc " in #(
5580     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5581     esac
5582
5583  for depmode in $am_compiler_list; do
5584    # Setup a source with many dependencies, because some compilers
5585    # like to wrap large dependency lists on column 80 (with \), and
5586    # we should not choose a depcomp mode which is confused by this.
5587    #
5588    # We need to recreate these files for each test, as the compiler may
5589    # overwrite some of them when testing with obscure command lines.
5590    # This happens at least with the AIX C compiler.
5591    : > sub/conftest.c
5592    for i in 1 2 3 4 5 6; do
5593      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5594      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5595      # Solaris 10 /bin/sh.
5596      echo '/* dummy */' > sub/conftst$i.h
5597    done
5598    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5599
5600    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5601    # mode.  It turns out that the SunPro C++ compiler does not properly
5602    # handle '-M -o', and we need to detect this.  Also, some Intel
5603    # versions had trouble with output in subdirs.
5604    am__obj=sub/conftest.${OBJEXT-o}
5605    am__minus_obj="-o $am__obj"
5606    case $depmode in
5607    gcc)
5608      # This depmode causes a compiler race in universal mode.
5609      test "$am__universal" = false || continue
5610      ;;
5611    nosideeffect)
5612      # After this tag, mechanisms are not by side-effect, so they'll
5613      # only be used when explicitly requested.
5614      if test "x$enable_dependency_tracking" = xyes; then
5615	continue
5616      else
5617	break
5618      fi
5619      ;;
5620    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5621      # This compiler won't grok '-c -o', but also, the minuso test has
5622      # not run yet.  These depmodes are late enough in the game, and
5623      # so weak that their functioning should not be impacted.
5624      am__obj=conftest.${OBJEXT-o}
5625      am__minus_obj=
5626      ;;
5627    none) break ;;
5628    esac
5629    if depmode=$depmode \
5630       source=sub/conftest.c object=$am__obj \
5631       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5632       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5633         >/dev/null 2>conftest.err &&
5634       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5635       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5636       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5637       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5638      # icc doesn't choke on unknown options, it will just issue warnings
5639      # or remarks (even with -Werror).  So we grep stderr for any message
5640      # that says an option was ignored or not supported.
5641      # When given -MP, icc 7.0 and 7.1 complain thusly:
5642      #   icc: Command line warning: ignoring option '-M'; no argument required
5643      # The diagnosis changed in icc 8.0:
5644      #   icc: Command line remark: option '-MP' not supported
5645      if (grep 'ignoring option' conftest.err ||
5646          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5647        am_cv_CC_dependencies_compiler_type=$depmode
5648        break
5649      fi
5650    fi
5651  done
5652
5653  cd ..
5654  rm -rf conftest.dir
5655else
5656  am_cv_CC_dependencies_compiler_type=none
5657fi
5658
5659fi
5660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5661$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5662CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5663
5664 if
5665  test "x$enable_dependency_tracking" != xno \
5666  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5667  am__fastdepCC_TRUE=
5668  am__fastdepCC_FALSE='#'
5669else
5670  am__fastdepCC_TRUE='#'
5671  am__fastdepCC_FALSE=
5672fi
5673
5674
5675
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_setopt in -lcurl" >&5
5677$as_echo_n "checking for curl_easy_setopt in -lcurl... " >&6; }
5678if ${ac_cv_lib_curl_curl_easy_setopt+:} false; then :
5679  $as_echo_n "(cached) " >&6
5680else
5681  ac_check_lib_save_LIBS=$LIBS
5682LIBS="-lcurl  $LIBS"
5683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684/* end confdefs.h.  */
5685
5686/* Override any GCC internal prototype to avoid an error.
5687   Use char because int might match the return type of a GCC
5688   builtin and then its argument prototype would still apply.  */
5689#ifdef __cplusplus
5690extern "C"
5691#endif
5692char curl_easy_setopt ();
5693int
5694main ()
5695{
5696return curl_easy_setopt ();
5697  ;
5698  return 0;
5699}
5700_ACEOF
5701if ac_fn_c_try_link "$LINENO"; then :
5702  ac_cv_lib_curl_curl_easy_setopt=yes
5703else
5704  ac_cv_lib_curl_curl_easy_setopt=no
5705fi
5706rm -f core conftest.err conftest.$ac_objext \
5707    conftest$ac_exeext conftest.$ac_ext
5708LIBS=$ac_check_lib_save_LIBS
5709fi
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_setopt" >&5
5711$as_echo "$ac_cv_lib_curl_curl_easy_setopt" >&6; }
5712if test "x$ac_cv_lib_curl_curl_easy_setopt" = xyes; then :
5713  found_curl=yes
5714else
5715  found_curl=no
5716fi
5717
5718if test "x$enable_dap" = "xyes" ; then
5719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing curl_easy_setopt" >&5
5720$as_echo_n "checking for library containing curl_easy_setopt... " >&6; }
5721if ${ac_cv_search_curl_easy_setopt+:} false; then :
5722  $as_echo_n "(cached) " >&6
5723else
5724  ac_func_search_save_LIBS=$LIBS
5725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726/* end confdefs.h.  */
5727
5728/* Override any GCC internal prototype to avoid an error.
5729   Use char because int might match the return type of a GCC
5730   builtin and then its argument prototype would still apply.  */
5731#ifdef __cplusplus
5732extern "C"
5733#endif
5734char curl_easy_setopt ();
5735int
5736main ()
5737{
5738return curl_easy_setopt ();
5739  ;
5740  return 0;
5741}
5742_ACEOF
5743for ac_lib in '' curl curl.dll; do
5744  if test -z "$ac_lib"; then
5745    ac_res="none required"
5746  else
5747    ac_res=-l$ac_lib
5748    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5749  fi
5750  if ac_fn_c_try_link "$LINENO"; then :
5751  ac_cv_search_curl_easy_setopt=$ac_res
5752fi
5753rm -f core conftest.err conftest.$ac_objext \
5754    conftest$ac_exeext
5755  if ${ac_cv_search_curl_easy_setopt+:} false; then :
5756  break
5757fi
5758done
5759if ${ac_cv_search_curl_easy_setopt+:} false; then :
5760
5761else
5762  ac_cv_search_curl_easy_setopt=no
5763fi
5764rm conftest.$ac_ext
5765LIBS=$ac_func_search_save_LIBS
5766fi
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_curl_easy_setopt" >&5
5768$as_echo "$ac_cv_search_curl_easy_setopt" >&6; }
5769ac_res=$ac_cv_search_curl_easy_setopt
5770if test "$ac_res" != no; then :
5771  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5772
5773else
5774  as_fn_error $? "curl required for remote access. Install curl or build with --disable-dap." "$LINENO" 5
5775fi
5776
5777fi
5778
5779# --enable-dap => enable-dap4
5780enable_dap4=$enable_dap
5781# Default is to do the short remote tests.
5782# Temporary: Change default to npt do these tests
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dap remote testing should be enabled (default on)" >&5
5784$as_echo_n "checking whether dap remote testing should be enabled (default on)... " >&6; }
5785# Check whether --enable-dap-remote-tests was given.
5786if test "${enable_dap_remote_tests+set}" = set; then :
5787  enableval=$enable_dap_remote_tests;
5788fi
5789
5790test "x$enable_dap_remote_tests" = xyes || enable_dap_remote_tests=no
5791if test "x$enable_dap" = "xno" ; then
5792  enable_dap_remote_tests=no
5793fi
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dap_remote_tests" >&5
5795$as_echo "$enable_dap_remote_tests" >&6; }
5796
5797# Default is not to do the remote authorization tests.
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dap remote authorization testing should be enabled (default off)" >&5
5799$as_echo_n "checking whether dap remote authorization testing should be enabled (default off)... " >&6; }
5800# Check whether --enable-dap-auth-tests was given.
5801if test "${enable_dap_auth_tests+set}" = set; then :
5802  enableval=$enable_dap_auth_tests;
5803fi
5804
5805test "x$enable_dap_auth_tests" = xyes || enable_dap_auth_tests=no
5806# dap must be enabled
5807if test "x$enable_dap" = "xno" ; then
5808  enable_dap_auth_tests=no
5809fi
5810# if remote tests are disabled, then so is this
5811if test "x$enable_dap_remote_tests" = "xno" ; then
5812  enable_dap_remote_tests=no
5813fi
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dap_auth_tests" >&5
5815$as_echo "$enable_dap_auth_tests" >&6; }
5816
5817# Did the user specify a list of test servers to try for remote tests?
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which remote test server(s) to use" >&5
5819$as_echo_n "checking which remote test server(s) to use... " >&6; }
5820
5821# Check whether --with-testservers was given.
5822if test "${with_testservers+set}" = set; then :
5823  withval=$with_testservers; REMOTETESTSERVERS=$with_testservers
5824else
5825  REMOTETESTSERVERS=no
5826fi
5827
5828msg="$REMOTETESTSERVERS"
5829if test "x$REMOTETESTSERVERS" = xno ; then
5830  svclist="remotetest.unidata.ucar.edu"
5831  REMOTETESTSERVERS="$svclist"
5832fi
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svclist" >&5
5834$as_echo "$svclist" >&6; }
5835
5836cat >>confdefs.h <<_ACEOF
5837#define REMOTETESTSERVERS "$REMOTETESTSERVERS"
5838_ACEOF
5839
5840
5841# Set the config.h flags
5842if test "x$enable_dap" = xyes; then
5843
5844$as_echo "#define USE_DAP 1" >>confdefs.h
5845
5846
5847$as_echo "#define ENABLE_DAP 1" >>confdefs.h
5848
5849fi
5850
5851if test "x$enable_dap_remote_tests" = xyes; then
5852
5853$as_echo "#define ENABLE_DAP_REMOTE_TESTS 1" >>confdefs.h
5854
5855fi
5856
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the time-consuming dap tests should be enabled (default off)" >&5
5858$as_echo_n "checking whether the time-consuming dap tests should be enabled (default off)... " >&6; }
5859# Check whether --enable-dap-long-tests was given.
5860if test "${enable_dap_long_tests+set}" = set; then :
5861  enableval=$enable_dap_long_tests;
5862fi
5863
5864test "x$enable_dap_long_tests" = xyes || enable_dap_long_tests=no
5865if test "x$enable_dap_remote_tests" = "xno" ; then
5866  enable_dap_long_tests=no
5867fi
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dap_long_tests" >&5
5869$as_echo "$enable_dap_long_tests" >&6; }
5870
5871 if test "x" = "x"; then
5872  INTERNAL_OCLIB_TRUE=
5873  INTERNAL_OCLIB_FALSE='#'
5874else
5875  INTERNAL_OCLIB_TRUE='#'
5876  INTERNAL_OCLIB_FALSE=
5877fi
5878
5879
5880# Check whether we want to enable strict null byte header padding.
5881# See https://github.com/Unidata/netcdf-c/issues/657 for more information.
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict null-byte header padding when reading (default off)" >&5
5883$as_echo_n "checking whether to enable strict null-byte header padding when reading (default off)... " >&6; }
5884# Check whether --enable-strict-null-byte-header-padding was given.
5885if test "${enable_strict_null_byte_header_padding+set}" = set; then :
5886  enableval=$enable_strict_null_byte_header_padding;
5887fi
5888
5889test "x$enable_strict_null_byte_header_padding" = xyes || enable_strict_null_byte_header_padding=no
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_strict_null_byte_header_padding" >&5
5891$as_echo "$enable_strict_null_byte_header_padding" >&6; }
5892
5893if test "x$enable_strict_null_byte_header_padding" = xyes; then
5894
5895$as_echo "#define USE_STRICT_NULL_BYTE_HEADER_PADDING 1" >>confdefs.h
5896
5897fi
5898
5899 if test x$enable_strict_null_byte_header_padding = xyes ; then
5900  USE_STRICT_NULL_BYTE_HEADER_PADDING_TRUE=
5901  USE_STRICT_NULL_BYTE_HEADER_PADDING_FALSE='#'
5902else
5903  USE_STRICT_NULL_BYTE_HEADER_PADDING_TRUE='#'
5904  USE_STRICT_NULL_BYTE_HEADER_PADDING_FALSE=
5905fi
5906
5907
5908# Does the user want to use the ffio module?
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FFIO will be used" >&5
5910$as_echo_n "checking whether FFIO will be used... " >&6; }
5911# Check whether --enable-ffio was given.
5912if test "${enable_ffio+set}" = set; then :
5913  enableval=$enable_ffio;
5914fi
5915
5916test "x$enable_ffio" = xyes || enable_ffio=no
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ffio" >&5
5918$as_echo "$enable_ffio" >&6; }
5919if test "x$enable_ffio" = xyes; then
5920
5921$as_echo "#define USE_FFIO 1" >>confdefs.h
5922
5923fi
5924 if test x$enable_ffio = xyes; then
5925  USE_FFIO_TRUE=
5926  USE_FFIO_FALSE='#'
5927else
5928  USE_FFIO_TRUE='#'
5929  USE_FFIO_FALSE=
5930fi
5931
5932
5933# Does the user want to use the stdio module?
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether STDIO will be used" >&5
5935$as_echo_n "checking whether STDIO will be used... " >&6; }
5936# Check whether --enable-stdio was given.
5937if test "${enable_stdio+set}" = set; then :
5938  enableval=$enable_stdio;
5939fi
5940
5941test "x$enable_stdio" = xyes || enable_stdio=no
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stdio" >&5
5943$as_echo "$enable_stdio" >&6; }
5944if test "x$enable_stdio" = xyes; then
5945
5946$as_echo "#define USE_STDIO 1" >>confdefs.h
5947
5948fi
5949 if test x$enable_stdio = xyes; then
5950  USE_STDIO_TRUE=
5951  USE_STDIO_FALSE='#'
5952else
5953  USE_STDIO_TRUE='#'
5954  USE_STDIO_FALSE=
5955fi
5956
5957
5958nc_build_c=yes
5959nc_build_v2=yes
5960nc_build_utilities=yes
5961nc_build_tests=yes
5962nc_build_examples=yes
5963
5964# Does the user want to build examples?
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether examples should be built" >&5
5966$as_echo_n "checking whether examples should be built... " >&6; }
5967# Check whether --enable-examples was given.
5968if test "${enable_examples+set}" = set; then :
5969  enableval=$enable_examples;
5970fi
5971
5972test "x$enable_examples" = xno && nc_build_examples=no
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc_build_examples" >&5
5974$as_echo "$nc_build_examples" >&6; }
5975 if test x$nc_build_examples = xyes; then
5976  BUILD_EXAMPLES_TRUE=
5977  BUILD_EXAMPLES_FALSE='#'
5978else
5979  BUILD_EXAMPLES_TRUE='#'
5980  BUILD_EXAMPLES_FALSE=
5981fi
5982
5983
5984# Does the user want to disable the V2 API?
5985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether v2 netCDF API should be built" >&5
5986$as_echo_n "checking whether v2 netCDF API should be built... " >&6; }
5987# Check whether --enable-v2 was given.
5988if test "${enable_v2+set}" = set; then :
5989  enableval=$enable_v2;
5990fi
5991
5992test "x$enable_v2" = xno && nc_build_v2=no
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc_build_v2" >&5
5994$as_echo "$nc_build_v2" >&6; }
5995 if test x$nc_build_v2 = xyes; then
5996  BUILD_V2_TRUE=
5997  BUILD_V2_FALSE='#'
5998else
5999  BUILD_V2_TRUE='#'
6000  BUILD_V2_FALSE=
6001fi
6002
6003if test "x$nc_build_v2" = xno; then
6004
6005cat >>confdefs.h <<_ACEOF
6006#define NO_NETCDF_2 1
6007_ACEOF
6008
6009else
6010
6011cat >>confdefs.h <<_ACEOF
6012#define USE_NETCDF_2 1
6013_ACEOF
6014
6015fi
6016
6017# Does the user want to disable ncgen/ncdump/nccopy?
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ncgen/ncdump/nccopy should be built" >&5
6019$as_echo_n "checking whether the ncgen/ncdump/nccopy should be built... " >&6; }
6020# Check whether --enable-utilities was given.
6021if test "${enable_utilities+set}" = set; then :
6022  enableval=$enable_utilities;
6023fi
6024
6025test "x$nc_build_c" = xno && enable_utilities=no
6026test "x$enable_utilities" = xno && nc_build_utilities=no
6027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc_build_utilities" >&5
6028$as_echo "$nc_build_utilities" >&6; }
6029 if test x$nc_build_utilities = xyes; then
6030  BUILD_UTILITIES_TRUE=
6031  BUILD_UTILITIES_FALSE='#'
6032else
6033  BUILD_UTILITIES_TRUE='#'
6034  BUILD_UTILITIES_FALSE=
6035fi
6036
6037
6038# Does the user want to disable all tests?
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether test should be built and run" >&5
6040$as_echo_n "checking whether test should be built and run... " >&6; }
6041# Check whether --enable-testsets was given.
6042if test "${enable_testsets+set}" = set; then :
6043  enableval=$enable_testsets;
6044fi
6045
6046test "x$enable_testsets" = xno || enable_testsets=yes
6047nc_build_tests=$enable_testsets
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc_build_tests" >&5
6049$as_echo "$nc_build_tests" >&6; }
6050 if test x$nc_build_tests = xyes; then
6051  BUILD_TESTSETS_TRUE=
6052  BUILD_TESTSETS_FALSE='#'
6053else
6054  BUILD_TESTSETS_TRUE='#'
6055  BUILD_TESTSETS_FALSE=
6056fi
6057
6058
6059# Does the user want to run tests for large files (> 2GiB)?
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether large file (> 2GB) tests should be run" >&5
6061$as_echo_n "checking whether large file (> 2GB) tests should be run... " >&6; }
6062# Check whether --enable-large-file-tests was given.
6063if test "${enable_large_file_tests+set}" = set; then :
6064  enableval=$enable_large_file_tests;
6065fi
6066
6067test "x$enable_large_file_tests" = xyes || enable_large_file_tests=no
6068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_large_file_tests" >&5
6069$as_echo "$enable_large_file_tests" >&6; }
6070 if test x$enable_large_file_tests = xyes; then
6071  LARGE_FILE_TESTS_TRUE=
6072  LARGE_FILE_TESTS_FALSE='#'
6073else
6074  LARGE_FILE_TESTS_TRUE='#'
6075  LARGE_FILE_TESTS_FALSE=
6076fi
6077
6078if test "x$enable_large_file_tests" = xyes; then
6079
6080$as_echo "#define LARGE_FILE_TESTS 1" >>confdefs.h
6081
6082fi
6083
6084# Does the user want to run benchmarks?
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether benchmarks should be run" >&5
6086$as_echo_n "checking whether benchmarks should be run... " >&6; }
6087# Check whether --enable-benchmarks was given.
6088if test "${enable_benchmarks+set}" = set; then :
6089  enableval=$enable_benchmarks;
6090fi
6091
6092test "x$enable_benchmarks" = xyes || enable_benchmarks=no
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_benchmarks" >&5
6094$as_echo "$enable_benchmarks" >&6; }
6095if test "x$enable_netcdf4" = xno -a "x$enable_benchmarks" = xyes; then
6096as_fn_error $? "Can't use benchmarks if netCDF-4 is disabled." "$LINENO" 5
6097fi
6098 if test x$enable_benchmarks = xyes; then
6099  BUILD_BENCHMARKS_TRUE=
6100  BUILD_BENCHMARKS_FALSE='#'
6101else
6102  BUILD_BENCHMARKS_TRUE='#'
6103  BUILD_BENCHMARKS_FALSE=
6104fi
6105
6106
6107# Does the user want to use extreme numbers in testing.
6108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether extreme numbers should be used in tests" >&5
6109$as_echo_n "checking whether extreme numbers should be used in tests... " >&6; }
6110# Check whether --enable-extreme-numbers was given.
6111if test "${enable_extreme_numbers+set}" = set; then :
6112  enableval=$enable_extreme_numbers;
6113fi
6114
6115case "$host_cpu $host_os" in
6116     *386*solaris*)
6117        test "x$enable_extreme_numbers" = xyes || enable_extreme_numbers=no
6118        ;;
6119     *)
6120        test "x$enable_extreme_numbers" = xno || enable_extreme_numbers=yes
6121        ;;
6122esac
6123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_extreme_numbers" >&5
6124$as_echo "$enable_extreme_numbers" >&6; }
6125
6126if test "x$enable_extreme_numbers" = xyes; then
6127
6128$as_echo "#define USE_EXTREME_NUMBERS 1" >>confdefs.h
6129
6130fi
6131
6132# If the env. variable TEMP_LARGE is set, or if
6133# --with-temp-large=<directory>, use it as a place for the large
6134# (i.e. > 2 GiB) files created during the large file testing.
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to put large temp files if large file tests are run" >&5
6136$as_echo_n "checking where to put large temp files if large file tests are run... " >&6; }
6137
6138# Check whether --with-temp-large was given.
6139if test "${with_temp_large+set}" = set; then :
6140  withval=$with_temp_large; TEMP_LARGE=$with_temp_large
6141fi
6142
6143TEMP_LARGE=${TEMP_LARGE-.}
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEMP_LARGE" >&5
6145$as_echo "$TEMP_LARGE" >&6; }
6146#AC_SUBST(TEMP_LARGE)
6147
6148cat >>confdefs.h <<_ACEOF
6149#define TEMP_LARGE "$TEMP_LARGE"
6150_ACEOF
6151
6152
6153# Specify extra values to add to _NCProperties attribute
6154# --with-ncproperties-extra="<name>=<value>|...".
6155# Note: need to figure out a way to do this programmatically also
6156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Extra values for _NCProperties" >&5
6157$as_echo_n "checking Extra values for _NCProperties... " >&6; }
6158
6159# Check whether --with-ncproperties-extra was given.
6160if test "${with_ncproperties_extra+set}" = set; then :
6161  withval=$with_ncproperties_extra; NCPROPERTIES_EXTRA=$with_ncproperties_extra
6162else
6163  NCPROPERTIES_EXTRA=""
6164fi
6165
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NCPROPERTIES_EXTRA" >&5
6167$as_echo "$NCPROPERTIES_EXTRA" >&6; }
6168
6169cat >>confdefs.h <<_ACEOF
6170#define NCPROPERTIES_EXTRA "$NCPROPERTIES_EXTRA"
6171_ACEOF
6172
6173
6174# Did the user specify a user-defined format 0?
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether user-defined format 0 was specified" >&5
6176$as_echo_n "checking whether user-defined format 0 was specified... " >&6; }
6177
6178# Check whether --with-udf0 was given.
6179if test "${with_udf0+set}" = set; then :
6180  withval=$with_udf0; UDF0_DISPATCH=$with_udf0
6181fi
6182
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDF0_DISPATCH" >&5
6184$as_echo "$UDF0_DISPATCH" >&6; }
6185if test -n "$UDF0_DISPATCH"; then
6186
6187cat >>confdefs.h <<_ACEOF
6188#define UDF0_DISPATCH $UDF0_DISPATCH
6189_ACEOF
6190
6191
6192cat >>confdefs.h <<_ACEOF
6193#define UDF0_DISPATCH_FUNC get_$UDF0_DISPATCH()
6194_ACEOF
6195
6196
6197$as_echo "#define USE_UDF0 1" >>confdefs.h
6198
6199   as_ac_Lib=`$as_echo "ac_cv_lib_$UDF0_DISPATCH''_get_$UDF0_DISPATCH" | $as_tr_sh`
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for get_$UDF0_DISPATCH in -l$UDF0_DISPATCH" >&5
6201$as_echo_n "checking for get_$UDF0_DISPATCH in -l$UDF0_DISPATCH... " >&6; }
6202if eval \${$as_ac_Lib+:} false; then :
6203  $as_echo_n "(cached) " >&6
6204else
6205  ac_check_lib_save_LIBS=$LIBS
6206LIBS="-l$UDF0_DISPATCH  $LIBS"
6207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208/* end confdefs.h.  */
6209
6210/* Override any GCC internal prototype to avoid an error.
6211   Use char because int might match the return type of a GCC
6212   builtin and then its argument prototype would still apply.  */
6213#ifdef __cplusplus
6214extern "C"
6215#endif
6216char get_$UDF0_DISPATCH ();
6217int
6218main ()
6219{
6220return get_$UDF0_DISPATCH ();
6221  ;
6222  return 0;
6223}
6224_ACEOF
6225if ac_fn_c_try_link "$LINENO"; then :
6226  eval "$as_ac_Lib=yes"
6227else
6228  eval "$as_ac_Lib=no"
6229fi
6230rm -f core conftest.err conftest.$ac_objext \
6231    conftest$ac_exeext conftest.$ac_ext
6232LIBS=$ac_check_lib_save_LIBS
6233fi
6234eval ac_res=\$$as_ac_Lib
6235	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6236$as_echo "$ac_res" >&6; }
6237if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6238  cat >>confdefs.h <<_ACEOF
6239#define `$as_echo "HAVE_LIB$UDF0_DISPATCH" | $as_tr_cpp` 1
6240_ACEOF
6241
6242  LIBS="-l$UDF0_DISPATCH $LIBS"
6243
6244else
6245  as_fn_error $? "Can't find or link to the user-defined format 0 library." "$LINENO" 5
6246fi
6247
6248fi
6249
6250# Did the user specify a magic number for user-defined format 0?
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a magic number for user-defined format 0 was specified" >&5
6252$as_echo_n "checking whether a magic number for user-defined format 0 was specified... " >&6; }
6253
6254# Check whether --with-udf0-magic-number was given.
6255if test "${with_udf0_magic_number+set}" = set; then :
6256  withval=$with_udf0_magic_number; UDF0_MAGIC_NUMBER=$with_udf0_magic_number
6257fi
6258
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDF0_MAGIC_NUMBER" >&5
6260$as_echo "$UDF0_MAGIC_NUMBER" >&6; }
6261
6262# Did the user specify a user-defined format 1?
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether user-defined format 1 was specified" >&5
6264$as_echo_n "checking whether user-defined format 1 was specified... " >&6; }
6265
6266# Check whether --with-udf1 was given.
6267if test "${with_udf1+set}" = set; then :
6268  withval=$with_udf1; UDF1_DISPATCH=$with_udf1
6269fi
6270
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDF1_DISPATCH" >&5
6272$as_echo "$UDF1_DISPATCH" >&6; }
6273if test -n "$UDF1_DISPATCH"; then
6274
6275cat >>confdefs.h <<_ACEOF
6276#define UDF1_DISPATCH $UDF1_DISPATCH
6277_ACEOF
6278
6279
6280cat >>confdefs.h <<_ACEOF
6281#define UDF1_DISPATCH_FUNC get_$UDF1_DISPATCH()
6282_ACEOF
6283
6284
6285$as_echo "#define USE_UDF1 1" >>confdefs.h
6286
6287   as_ac_Lib=`$as_echo "ac_cv_lib_$UDF1_DISPATCH''_get_$UDF1_DISPATCH" | $as_tr_sh`
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for get_$UDF1_DISPATCH in -l$UDF1_DISPATCH" >&5
6289$as_echo_n "checking for get_$UDF1_DISPATCH in -l$UDF1_DISPATCH... " >&6; }
6290if eval \${$as_ac_Lib+:} false; then :
6291  $as_echo_n "(cached) " >&6
6292else
6293  ac_check_lib_save_LIBS=$LIBS
6294LIBS="-l$UDF1_DISPATCH  $LIBS"
6295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296/* end confdefs.h.  */
6297
6298/* Override any GCC internal prototype to avoid an error.
6299   Use char because int might match the return type of a GCC
6300   builtin and then its argument prototype would still apply.  */
6301#ifdef __cplusplus
6302extern "C"
6303#endif
6304char get_$UDF1_DISPATCH ();
6305int
6306main ()
6307{
6308return get_$UDF1_DISPATCH ();
6309  ;
6310  return 0;
6311}
6312_ACEOF
6313if ac_fn_c_try_link "$LINENO"; then :
6314  eval "$as_ac_Lib=yes"
6315else
6316  eval "$as_ac_Lib=no"
6317fi
6318rm -f core conftest.err conftest.$ac_objext \
6319    conftest$ac_exeext conftest.$ac_ext
6320LIBS=$ac_check_lib_save_LIBS
6321fi
6322eval ac_res=\$$as_ac_Lib
6323	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6324$as_echo "$ac_res" >&6; }
6325if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6326  cat >>confdefs.h <<_ACEOF
6327#define `$as_echo "HAVE_LIB$UDF1_DISPATCH" | $as_tr_cpp` 1
6328_ACEOF
6329
6330  LIBS="-l$UDF1_DISPATCH $LIBS"
6331
6332else
6333  as_fn_error $? "Can't find or link to the user-defined format 1 library." "$LINENO" 5
6334fi
6335
6336fi
6337
6338# Did the user specify a magic number for user-defined format 0?
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a magic number for user-defined format 1 was specified" >&5
6340$as_echo_n "checking whether a magic number for user-defined format 1 was specified... " >&6; }
6341
6342# Check whether --with-udf1-magic-number was given.
6343if test "${with_udf1_magic_number+set}" = set; then :
6344  withval=$with_udf1_magic_number; UDF1_MAGIC_NUMBER=$with_udf1_magic_number
6345fi
6346
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDF1_MAGIC_NUMBER" >&5
6348$as_echo "$UDF1_MAGIC_NUMBER" >&6; }
6349
6350# According to the autoconf mailing list gurus, we must test for
6351# compilers unconditionally. That is, we can't skip looking for the
6352# fortran compilers, just because the user doesn't want fortran. This
6353# is due to a limitation in autoconf.
6354
6355# Find the C compiler.
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: finding C compiler" >&5
6357$as_echo "$as_me: finding C compiler" >&6;}
6358
6359## Compiler with version information. This consists of the full path
6360## name of the compiler and the reported version number.
6361
6362## Strip anything that looks like a flag off of $CC
6363CC_NOFLAGS=`echo $CC | sed 's/ -.*//'`
6364
6365if `echo $CC_NOFLAGS | grep ^/ >/dev/null 2>&1`; then
6366  CC_VERSION="$CC"
6367else
6368  CC_VERSION="$CC";
6369  for x in `echo $PATH | sed -e 's/:/ /g'`; do
6370    if test -x $x/$CC_NOFLAGS; then
6371      CC_VERSION="$x/$CC"
6372      break
6373    fi
6374  done
6375fi
6376if test -n "$cc_version_info"; then
6377  CC_VERSION="$CC_VERSION ( $cc_version_info)"
6378fi
6379
6380
6381ac_ext=c
6382ac_cpp='$CPP $CPPFLAGS'
6383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6385ac_compiler_gnu=$ac_cv_c_compiler_gnu
6386if test -n "$ac_tool_prefix"; then
6387  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6388set dummy ${ac_tool_prefix}gcc; ac_word=$2
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390$as_echo_n "checking for $ac_word... " >&6; }
6391if ${ac_cv_prog_CC+:} false; then :
6392  $as_echo_n "(cached) " >&6
6393else
6394  if test -n "$CC"; then
6395  ac_cv_prog_CC="$CC" # Let the user override the test.
6396else
6397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398for as_dir in $PATH
6399do
6400  IFS=$as_save_IFS
6401  test -z "$as_dir" && as_dir=.
6402    for ac_exec_ext in '' $ac_executable_extensions; do
6403  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6404    ac_cv_prog_CC="${ac_tool_prefix}gcc"
6405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406    break 2
6407  fi
6408done
6409  done
6410IFS=$as_save_IFS
6411
6412fi
6413fi
6414CC=$ac_cv_prog_CC
6415if test -n "$CC"; then
6416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6417$as_echo "$CC" >&6; }
6418else
6419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420$as_echo "no" >&6; }
6421fi
6422
6423
6424fi
6425if test -z "$ac_cv_prog_CC"; then
6426  ac_ct_CC=$CC
6427  # Extract the first word of "gcc", so it can be a program name with args.
6428set dummy gcc; ac_word=$2
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430$as_echo_n "checking for $ac_word... " >&6; }
6431if ${ac_cv_prog_ac_ct_CC+:} false; then :
6432  $as_echo_n "(cached) " >&6
6433else
6434  if test -n "$ac_ct_CC"; then
6435  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6436else
6437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438for as_dir in $PATH
6439do
6440  IFS=$as_save_IFS
6441  test -z "$as_dir" && as_dir=.
6442    for ac_exec_ext in '' $ac_executable_extensions; do
6443  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444    ac_cv_prog_ac_ct_CC="gcc"
6445    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446    break 2
6447  fi
6448done
6449  done
6450IFS=$as_save_IFS
6451
6452fi
6453fi
6454ac_ct_CC=$ac_cv_prog_ac_ct_CC
6455if test -n "$ac_ct_CC"; then
6456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6457$as_echo "$ac_ct_CC" >&6; }
6458else
6459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460$as_echo "no" >&6; }
6461fi
6462
6463  if test "x$ac_ct_CC" = x; then
6464    CC=""
6465  else
6466    case $cross_compiling:$ac_tool_warned in
6467yes:)
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6470ac_tool_warned=yes ;;
6471esac
6472    CC=$ac_ct_CC
6473  fi
6474else
6475  CC="$ac_cv_prog_CC"
6476fi
6477
6478if test -z "$CC"; then
6479          if test -n "$ac_tool_prefix"; then
6480    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6481set dummy ${ac_tool_prefix}cc; ac_word=$2
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483$as_echo_n "checking for $ac_word... " >&6; }
6484if ${ac_cv_prog_CC+:} false; then :
6485  $as_echo_n "(cached) " >&6
6486else
6487  if test -n "$CC"; then
6488  ac_cv_prog_CC="$CC" # Let the user override the test.
6489else
6490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491for as_dir in $PATH
6492do
6493  IFS=$as_save_IFS
6494  test -z "$as_dir" && as_dir=.
6495    for ac_exec_ext in '' $ac_executable_extensions; do
6496  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6497    ac_cv_prog_CC="${ac_tool_prefix}cc"
6498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499    break 2
6500  fi
6501done
6502  done
6503IFS=$as_save_IFS
6504
6505fi
6506fi
6507CC=$ac_cv_prog_CC
6508if test -n "$CC"; then
6509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6510$as_echo "$CC" >&6; }
6511else
6512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513$as_echo "no" >&6; }
6514fi
6515
6516
6517  fi
6518fi
6519if test -z "$CC"; then
6520  # Extract the first word of "cc", so it can be a program name with args.
6521set dummy cc; ac_word=$2
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523$as_echo_n "checking for $ac_word... " >&6; }
6524if ${ac_cv_prog_CC+:} false; then :
6525  $as_echo_n "(cached) " >&6
6526else
6527  if test -n "$CC"; then
6528  ac_cv_prog_CC="$CC" # Let the user override the test.
6529else
6530  ac_prog_rejected=no
6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532for as_dir in $PATH
6533do
6534  IFS=$as_save_IFS
6535  test -z "$as_dir" && as_dir=.
6536    for ac_exec_ext in '' $ac_executable_extensions; do
6537  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6538    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6539       ac_prog_rejected=yes
6540       continue
6541     fi
6542    ac_cv_prog_CC="cc"
6543    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544    break 2
6545  fi
6546done
6547  done
6548IFS=$as_save_IFS
6549
6550if test $ac_prog_rejected = yes; then
6551  # We found a bogon in the path, so make sure we never use it.
6552  set dummy $ac_cv_prog_CC
6553  shift
6554  if test $# != 0; then
6555    # We chose a different compiler from the bogus one.
6556    # However, it has the same basename, so the bogon will be chosen
6557    # first if we set CC to just the basename; use the full file name.
6558    shift
6559    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6560  fi
6561fi
6562fi
6563fi
6564CC=$ac_cv_prog_CC
6565if test -n "$CC"; then
6566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6567$as_echo "$CC" >&6; }
6568else
6569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570$as_echo "no" >&6; }
6571fi
6572
6573
6574fi
6575if test -z "$CC"; then
6576  if test -n "$ac_tool_prefix"; then
6577  for ac_prog in cl.exe
6578  do
6579    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6580set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582$as_echo_n "checking for $ac_word... " >&6; }
6583if ${ac_cv_prog_CC+:} false; then :
6584  $as_echo_n "(cached) " >&6
6585else
6586  if test -n "$CC"; then
6587  ac_cv_prog_CC="$CC" # Let the user override the test.
6588else
6589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590for as_dir in $PATH
6591do
6592  IFS=$as_save_IFS
6593  test -z "$as_dir" && as_dir=.
6594    for ac_exec_ext in '' $ac_executable_extensions; do
6595  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6596    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598    break 2
6599  fi
6600done
6601  done
6602IFS=$as_save_IFS
6603
6604fi
6605fi
6606CC=$ac_cv_prog_CC
6607if test -n "$CC"; then
6608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6609$as_echo "$CC" >&6; }
6610else
6611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612$as_echo "no" >&6; }
6613fi
6614
6615
6616    test -n "$CC" && break
6617  done
6618fi
6619if test -z "$CC"; then
6620  ac_ct_CC=$CC
6621  for ac_prog in cl.exe
6622do
6623  # Extract the first word of "$ac_prog", so it can be a program name with args.
6624set dummy $ac_prog; ac_word=$2
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626$as_echo_n "checking for $ac_word... " >&6; }
6627if ${ac_cv_prog_ac_ct_CC+:} false; then :
6628  $as_echo_n "(cached) " >&6
6629else
6630  if test -n "$ac_ct_CC"; then
6631  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6632else
6633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634for as_dir in $PATH
6635do
6636  IFS=$as_save_IFS
6637  test -z "$as_dir" && as_dir=.
6638    for ac_exec_ext in '' $ac_executable_extensions; do
6639  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6640    ac_cv_prog_ac_ct_CC="$ac_prog"
6641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642    break 2
6643  fi
6644done
6645  done
6646IFS=$as_save_IFS
6647
6648fi
6649fi
6650ac_ct_CC=$ac_cv_prog_ac_ct_CC
6651if test -n "$ac_ct_CC"; then
6652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6653$as_echo "$ac_ct_CC" >&6; }
6654else
6655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656$as_echo "no" >&6; }
6657fi
6658
6659
6660  test -n "$ac_ct_CC" && break
6661done
6662
6663  if test "x$ac_ct_CC" = x; then
6664    CC=""
6665  else
6666    case $cross_compiling:$ac_tool_warned in
6667yes:)
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6670ac_tool_warned=yes ;;
6671esac
6672    CC=$ac_ct_CC
6673  fi
6674fi
6675
6676fi
6677
6678
6679test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6681as_fn_error $? "no acceptable C compiler found in \$PATH
6682See \`config.log' for more details" "$LINENO" 5; }
6683
6684# Provide some information about the compiler.
6685$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6686set X $ac_compile
6687ac_compiler=$2
6688for ac_option in --version -v -V -qversion; do
6689  { { ac_try="$ac_compiler $ac_option >&5"
6690case "(($ac_try" in
6691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692  *) ac_try_echo=$ac_try;;
6693esac
6694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6695$as_echo "$ac_try_echo"; } >&5
6696  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6697  ac_status=$?
6698  if test -s conftest.err; then
6699    sed '10a\
6700... rest of stderr output deleted ...
6701         10q' conftest.err >conftest.er1
6702    cat conftest.er1 >&5
6703  fi
6704  rm -f conftest.er1 conftest.err
6705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6706  test $ac_status = 0; }
6707done
6708
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6710$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6711if ${ac_cv_c_compiler_gnu+:} false; then :
6712  $as_echo_n "(cached) " >&6
6713else
6714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715/* end confdefs.h.  */
6716
6717int
6718main ()
6719{
6720#ifndef __GNUC__
6721       choke me
6722#endif
6723
6724  ;
6725  return 0;
6726}
6727_ACEOF
6728if ac_fn_c_try_compile "$LINENO"; then :
6729  ac_compiler_gnu=yes
6730else
6731  ac_compiler_gnu=no
6732fi
6733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734ac_cv_c_compiler_gnu=$ac_compiler_gnu
6735
6736fi
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6738$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6739if test $ac_compiler_gnu = yes; then
6740  GCC=yes
6741else
6742  GCC=
6743fi
6744ac_test_CFLAGS=${CFLAGS+set}
6745ac_save_CFLAGS=$CFLAGS
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6747$as_echo_n "checking whether $CC accepts -g... " >&6; }
6748if ${ac_cv_prog_cc_g+:} false; then :
6749  $as_echo_n "(cached) " >&6
6750else
6751  ac_save_c_werror_flag=$ac_c_werror_flag
6752   ac_c_werror_flag=yes
6753   ac_cv_prog_cc_g=no
6754   CFLAGS="-g"
6755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756/* end confdefs.h.  */
6757
6758int
6759main ()
6760{
6761
6762  ;
6763  return 0;
6764}
6765_ACEOF
6766if ac_fn_c_try_compile "$LINENO"; then :
6767  ac_cv_prog_cc_g=yes
6768else
6769  CFLAGS=""
6770      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6771/* end confdefs.h.  */
6772
6773int
6774main ()
6775{
6776
6777  ;
6778  return 0;
6779}
6780_ACEOF
6781if ac_fn_c_try_compile "$LINENO"; then :
6782
6783else
6784  ac_c_werror_flag=$ac_save_c_werror_flag
6785	 CFLAGS="-g"
6786	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787/* end confdefs.h.  */
6788
6789int
6790main ()
6791{
6792
6793  ;
6794  return 0;
6795}
6796_ACEOF
6797if ac_fn_c_try_compile "$LINENO"; then :
6798  ac_cv_prog_cc_g=yes
6799fi
6800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6801fi
6802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803fi
6804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805   ac_c_werror_flag=$ac_save_c_werror_flag
6806fi
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6808$as_echo "$ac_cv_prog_cc_g" >&6; }
6809if test "$ac_test_CFLAGS" = set; then
6810  CFLAGS=$ac_save_CFLAGS
6811elif test $ac_cv_prog_cc_g = yes; then
6812  if test "$GCC" = yes; then
6813    CFLAGS="-g -O2"
6814  else
6815    CFLAGS="-g"
6816  fi
6817else
6818  if test "$GCC" = yes; then
6819    CFLAGS="-O2"
6820  else
6821    CFLAGS=
6822  fi
6823fi
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6825$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6826if ${ac_cv_prog_cc_c89+:} false; then :
6827  $as_echo_n "(cached) " >&6
6828else
6829  ac_cv_prog_cc_c89=no
6830ac_save_CC=$CC
6831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832/* end confdefs.h.  */
6833#include <stdarg.h>
6834#include <stdio.h>
6835struct stat;
6836/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6837struct buf { int x; };
6838FILE * (*rcsopen) (struct buf *, struct stat *, int);
6839static char *e (p, i)
6840     char **p;
6841     int i;
6842{
6843  return p[i];
6844}
6845static char *f (char * (*g) (char **, int), char **p, ...)
6846{
6847  char *s;
6848  va_list v;
6849  va_start (v,p);
6850  s = g (p, va_arg (v,int));
6851  va_end (v);
6852  return s;
6853}
6854
6855/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6856   function prototypes and stuff, but not '\xHH' hex character constants.
6857   These don't provoke an error unfortunately, instead are silently treated
6858   as 'x'.  The following induces an error, until -std is added to get
6859   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6860   array size at least.  It's necessary to write '\x00'==0 to get something
6861   that's true only with -std.  */
6862int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6863
6864/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6865   inside strings and character constants.  */
6866#define FOO(x) 'x'
6867int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6868
6869int test (int i, double x);
6870struct s1 {int (*f) (int a);};
6871struct s2 {int (*f) (double a);};
6872int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6873int argc;
6874char **argv;
6875int
6876main ()
6877{
6878return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6879  ;
6880  return 0;
6881}
6882_ACEOF
6883for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6884	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6885do
6886  CC="$ac_save_CC $ac_arg"
6887  if ac_fn_c_try_compile "$LINENO"; then :
6888  ac_cv_prog_cc_c89=$ac_arg
6889fi
6890rm -f core conftest.err conftest.$ac_objext
6891  test "x$ac_cv_prog_cc_c89" != "xno" && break
6892done
6893rm -f conftest.$ac_ext
6894CC=$ac_save_CC
6895
6896fi
6897# AC_CACHE_VAL
6898case "x$ac_cv_prog_cc_c89" in
6899  x)
6900    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6901$as_echo "none needed" >&6; } ;;
6902  xno)
6903    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6904$as_echo "unsupported" >&6; } ;;
6905  *)
6906    CC="$CC $ac_cv_prog_cc_c89"
6907    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6908$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6909esac
6910if test "x$ac_cv_prog_cc_c89" != xno; then :
6911
6912fi
6913
6914ac_ext=c
6915ac_cpp='$CPP $CPPFLAGS'
6916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6918ac_compiler_gnu=$ac_cv_c_compiler_gnu
6919
6920ac_ext=c
6921ac_cpp='$CPP $CPPFLAGS'
6922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6924ac_compiler_gnu=$ac_cv_c_compiler_gnu
6925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6926$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6927if ${am_cv_prog_cc_c_o+:} false; then :
6928  $as_echo_n "(cached) " >&6
6929else
6930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931/* end confdefs.h.  */
6932
6933int
6934main ()
6935{
6936
6937  ;
6938  return 0;
6939}
6940_ACEOF
6941  # Make sure it works both with $CC and with simple cc.
6942  # Following AC_PROG_CC_C_O, we do the test twice because some
6943  # compilers refuse to overwrite an existing .o file with -o,
6944  # though they will create one.
6945  am_cv_prog_cc_c_o=yes
6946  for am_i in 1 2; do
6947    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6948   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6949   ac_status=$?
6950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951   (exit $ac_status); } \
6952         && test -f conftest2.$ac_objext; then
6953      : OK
6954    else
6955      am_cv_prog_cc_c_o=no
6956      break
6957    fi
6958  done
6959  rm -f core conftest*
6960  unset am_i
6961fi
6962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6963$as_echo "$am_cv_prog_cc_c_o" >&6; }
6964if test "$am_cv_prog_cc_c_o" != yes; then
6965   # Losing compiler, so override with the script.
6966   # FIXME: It is wrong to rewrite CC.
6967   # But if we don't then we get into trouble of one sort or another.
6968   # A longer-term fix would be to have automake use am__CC in this case,
6969   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6970   CC="$am_aux_dir/compile $CC"
6971fi
6972ac_ext=c
6973ac_cpp='$CPP $CPPFLAGS'
6974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6976ac_compiler_gnu=$ac_cv_c_compiler_gnu
6977
6978
6979depcc="$CC"   am_compiler_list=
6980
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6982$as_echo_n "checking dependency style of $depcc... " >&6; }
6983if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6984  $as_echo_n "(cached) " >&6
6985else
6986  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6987  # We make a subdir and do the tests there.  Otherwise we can end up
6988  # making bogus files that we don't know about and never remove.  For
6989  # instance it was reported that on HP-UX the gcc test will end up
6990  # making a dummy file named 'D' -- because '-MD' means "put the output
6991  # in D".
6992  rm -rf conftest.dir
6993  mkdir conftest.dir
6994  # Copy depcomp to subdir because otherwise we won't find it if we're
6995  # using a relative directory.
6996  cp "$am_depcomp" conftest.dir
6997  cd conftest.dir
6998  # We will build objects and dependencies in a subdirectory because
6999  # it helps to detect inapplicable dependency modes.  For instance
7000  # both Tru64's cc and ICC support -MD to output dependencies as a
7001  # side effect of compilation, but ICC will put the dependencies in
7002  # the current directory while Tru64 will put them in the object
7003  # directory.
7004  mkdir sub
7005
7006  am_cv_CC_dependencies_compiler_type=none
7007  if test "$am_compiler_list" = ""; then
7008     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7009  fi
7010  am__universal=false
7011  case " $depcc " in #(
7012     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7013     esac
7014
7015  for depmode in $am_compiler_list; do
7016    # Setup a source with many dependencies, because some compilers
7017    # like to wrap large dependency lists on column 80 (with \), and
7018    # we should not choose a depcomp mode which is confused by this.
7019    #
7020    # We need to recreate these files for each test, as the compiler may
7021    # overwrite some of them when testing with obscure command lines.
7022    # This happens at least with the AIX C compiler.
7023    : > sub/conftest.c
7024    for i in 1 2 3 4 5 6; do
7025      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7026      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7027      # Solaris 10 /bin/sh.
7028      echo '/* dummy */' > sub/conftst$i.h
7029    done
7030    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7031
7032    # We check with '-c' and '-o' for the sake of the "dashmstdout"
7033    # mode.  It turns out that the SunPro C++ compiler does not properly
7034    # handle '-M -o', and we need to detect this.  Also, some Intel
7035    # versions had trouble with output in subdirs.
7036    am__obj=sub/conftest.${OBJEXT-o}
7037    am__minus_obj="-o $am__obj"
7038    case $depmode in
7039    gcc)
7040      # This depmode causes a compiler race in universal mode.
7041      test "$am__universal" = false || continue
7042      ;;
7043    nosideeffect)
7044      # After this tag, mechanisms are not by side-effect, so they'll
7045      # only be used when explicitly requested.
7046      if test "x$enable_dependency_tracking" = xyes; then
7047	continue
7048      else
7049	break
7050      fi
7051      ;;
7052    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7053      # This compiler won't grok '-c -o', but also, the minuso test has
7054      # not run yet.  These depmodes are late enough in the game, and
7055      # so weak that their functioning should not be impacted.
7056      am__obj=conftest.${OBJEXT-o}
7057      am__minus_obj=
7058      ;;
7059    none) break ;;
7060    esac
7061    if depmode=$depmode \
7062       source=sub/conftest.c object=$am__obj \
7063       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7064       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7065         >/dev/null 2>conftest.err &&
7066       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7067       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7068       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7069       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7070      # icc doesn't choke on unknown options, it will just issue warnings
7071      # or remarks (even with -Werror).  So we grep stderr for any message
7072      # that says an option was ignored or not supported.
7073      # When given -MP, icc 7.0 and 7.1 complain thusly:
7074      #   icc: Command line warning: ignoring option '-M'; no argument required
7075      # The diagnosis changed in icc 8.0:
7076      #   icc: Command line remark: option '-MP' not supported
7077      if (grep 'ignoring option' conftest.err ||
7078          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7079        am_cv_CC_dependencies_compiler_type=$depmode
7080        break
7081      fi
7082    fi
7083  done
7084
7085  cd ..
7086  rm -rf conftest.dir
7087else
7088  am_cv_CC_dependencies_compiler_type=none
7089fi
7090
7091fi
7092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7093$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7094CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7095
7096 if
7097  test "x$enable_dependency_tracking" != xno \
7098  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7099  am__fastdepCC_TRUE=
7100  am__fastdepCC_FALSE='#'
7101else
7102  am__fastdepCC_TRUE='#'
7103  am__fastdepCC_FALSE=
7104fi
7105
7106
7107
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7109$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7110if ${ac_cv_c_const+:} false; then :
7111  $as_echo_n "(cached) " >&6
7112else
7113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114/* end confdefs.h.  */
7115
7116int
7117main ()
7118{
7119
7120#ifndef __cplusplus
7121  /* Ultrix mips cc rejects this sort of thing.  */
7122  typedef int charset[2];
7123  const charset cs = { 0, 0 };
7124  /* SunOS 4.1.1 cc rejects this.  */
7125  char const *const *pcpcc;
7126  char **ppc;
7127  /* NEC SVR4.0.2 mips cc rejects this.  */
7128  struct point {int x, y;};
7129  static struct point const zero = {0,0};
7130  /* AIX XL C 1.02.0.0 rejects this.
7131     It does not let you subtract one const X* pointer from another in
7132     an arm of an if-expression whose if-part is not a constant
7133     expression */
7134  const char *g = "string";
7135  pcpcc = &g + (g ? g-g : 0);
7136  /* HPUX 7.0 cc rejects these. */
7137  ++pcpcc;
7138  ppc = (char**) pcpcc;
7139  pcpcc = (char const *const *) ppc;
7140  { /* SCO 3.2v4 cc rejects this sort of thing.  */
7141    char tx;
7142    char *t = &tx;
7143    char const *s = 0 ? (char *) 0 : (char const *) 0;
7144
7145    *t++ = 0;
7146    if (s) return 0;
7147  }
7148  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7149    int x[] = {25, 17};
7150    const int *foo = &x[0];
7151    ++foo;
7152  }
7153  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7154    typedef const int *iptr;
7155    iptr p = 0;
7156    ++p;
7157  }
7158  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7159       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7160    struct s { int j; const int *ap[3]; } bx;
7161    struct s *b = &bx; b->j = 5;
7162  }
7163  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7164    const int foo = 10;
7165    if (!foo) return 0;
7166  }
7167  return !cs[0] && !zero.x;
7168#endif
7169
7170  ;
7171  return 0;
7172}
7173_ACEOF
7174if ac_fn_c_try_compile "$LINENO"; then :
7175  ac_cv_c_const=yes
7176else
7177  ac_cv_c_const=no
7178fi
7179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7180fi
7181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7182$as_echo "$ac_cv_c_const" >&6; }
7183if test $ac_cv_c_const = no; then
7184
7185$as_echo "#define const /**/" >>confdefs.h
7186
7187fi
7188
7189
7190# CURLOPT_USERNAME is not defined until curl version 7.19.1
7191# CURLOPT_PASSWORD is not defined until curl version 7.19.1
7192# CURLOPT_KEYPASSWD is not defined until curl version 7.16.4
7193# CURLINFO_RESPONSE_CODE is not defined until curl version 7.10.7
7194# CURLOPT_CHUNK_BGN_FUNCTION is not defined until curl version 7.21.0
7195# CURL_MAX_READ_SIZE is not defined until 7.59
7196
7197# Save/restore CFLAGS
7198SAVECFLAGS="$CFLAGS"
7199CFLAGS="${curl_cflags}"
7200
7201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202/* end confdefs.h.  */
7203#include "curl/curl.h"
7204int
7205main ()
7206{
7207int x = CURLOPT_USERNAME;
7208  ;
7209  return 0;
7210}
7211_ACEOF
7212if ac_fn_c_try_compile "$LINENO"; then :
7213  haveusername=yes
7214else
7215  haveusername=no
7216fi
7217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CURLOPT_USERNAME is defined" >&5
7219$as_echo_n "checking whether CURLOPT_USERNAME is defined... " >&6; }
7220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${haveusername}" >&5
7221$as_echo "${haveusername}" >&6; }
7222if test $haveusername = yes; then
7223
7224$as_echo "#define HAVE_CURLOPT_USERNAME 1" >>confdefs.h
7225
7226fi
7227
7228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229/* end confdefs.h.  */
7230#include "curl/curl.h"
7231int
7232main ()
7233{
7234int x = CURLOPT_PASSWORD;
7235  ;
7236  return 0;
7237}
7238_ACEOF
7239if ac_fn_c_try_compile "$LINENO"; then :
7240  havepassword=yes
7241else
7242  havepassword=no
7243fi
7244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CURLOPT_PASSWORD is defined" >&5
7246$as_echo_n "checking whether CURLOPT_PASSWORD is defined... " >&6; }
7247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${havepassword}" >&5
7248$as_echo "${havepassword}" >&6; }
7249if test $havepassword = yes; then
7250
7251$as_echo "#define HAVE_CURLOPT_PASSWORD 1" >>confdefs.h
7252
7253fi
7254
7255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256/* end confdefs.h.  */
7257#include "curl/curl.h"
7258int
7259main ()
7260{
7261int x = CURLOPT_KEYPASSWD;
7262  ;
7263  return 0;
7264}
7265_ACEOF
7266if ac_fn_c_try_compile "$LINENO"; then :
7267  havekeypassword=yes
7268else
7269  havekeypassword=no
7270fi
7271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CURLOPT_KEYPASSWD is defined" >&5
7273$as_echo_n "checking whether CURLOPT_KEYPASSWD is defined... " >&6; }
7274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${havekeypassword}" >&5
7275$as_echo "${havekeypassword}" >&6; }
7276if test $havekeypassword = yes; then
7277
7278$as_echo "#define HAVE_CURLOPT_KEYPASSWD 1" >>confdefs.h
7279
7280fi
7281
7282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283/* end confdefs.h.  */
7284#include "curl/curl.h"
7285int
7286main ()
7287{
7288int x = CURLINFO_RESPONSE_CODE;
7289  ;
7290  return 0;
7291}
7292_ACEOF
7293if ac_fn_c_try_compile "$LINENO"; then :
7294  haveresponsecode=yes
7295else
7296  haveresponsecode=no
7297fi
7298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CURLINFO_RESPONSE_CODE is defined" >&5
7300$as_echo_n "checking whether CURLINFO_RESPONSE_CODE is defined... " >&6; }
7301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${haveresponsecode}" >&5
7302$as_echo "${haveresponsecode}" >&6; }
7303if test $haveresponsecode = yes; then
7304
7305$as_echo "#define HAVE_CURLINFO_RESPONSE_CODE 1" >>confdefs.h
7306
7307fi
7308
7309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310/* end confdefs.h.  */
7311#include "curl/curl.h"
7312int
7313main ()
7314{
7315int x = CURLOPT_BUFFERSIZE;
7316  ;
7317  return 0;
7318}
7319_ACEOF
7320if ac_fn_c_try_compile "$LINENO"; then :
7321  havecurloption=yes
7322else
7323  havecurloption=no
7324fi
7325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CURLOPT_BUFFERSIZE is defined" >&5
7327$as_echo_n "checking whether CURLOPT_BUFFERSIZE is defined... " >&6; }
7328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${havecurloption}" >&5
7329$as_echo "${havecurloption}" >&6; }
7330if test $havecurloption = yes; then
7331
7332$as_echo "#define HAVE_CURLOPT_BUFFERSIZE 1" >>confdefs.h
7333
7334fi
7335
7336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7337/* end confdefs.h.  */
7338#include "curl/curl.h"
7339int
7340main ()
7341{
7342int x = CURLOPT_TCP_KEEPALIVE;
7343  ;
7344  return 0;
7345}
7346_ACEOF
7347if ac_fn_c_try_compile "$LINENO"; then :
7348  havecurloption=yes
7349else
7350  havecurloption=no
7351fi
7352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CURLOPT_TCP_KEEPALIVE is defined" >&5
7354$as_echo_n "checking whether CURLOPT_TCP_KEEPALIVE is defined... " >&6; }
7355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${havecurloption}" >&5
7356$as_echo "${havecurloption}" >&6; }
7357if test $havecurloption = yes; then
7358
7359$as_echo "#define HAVE_CURLOPT_KEEPALIVE 1" >>confdefs.h
7360
7361fi
7362
7363CFLAGS="$SAVECFLAGS"
7364
7365# Set up libtool.
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: setting up libtool" >&5
7367$as_echo "$as_me: setting up libtool" >&6;}
7368
7369case `pwd` in
7370  *\ * | *\	*)
7371    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7372$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7373esac
7374
7375
7376
7377macro_version='2.4.6'
7378macro_revision='2.4.6'
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392ltmain=$ac_aux_dir/ltmain.sh
7393
7394# Backslashify metacharacters that are still active within
7395# double-quoted strings.
7396sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7397
7398# Same as above, but do not quote variable references.
7399double_quote_subst='s/\(["`\\]\)/\\\1/g'
7400
7401# Sed substitution to delay expansion of an escaped shell variable in a
7402# double_quote_subst'ed string.
7403delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7404
7405# Sed substitution to delay expansion of an escaped single quote.
7406delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7407
7408# Sed substitution to avoid accidental globbing in evaled expressions
7409no_glob_subst='s/\*/\\\*/g'
7410
7411ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7412ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7413ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7414
7415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7416$as_echo_n "checking how to print strings... " >&6; }
7417# Test print first, because it will be a builtin if present.
7418if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7419   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7420  ECHO='print -r --'
7421elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7422  ECHO='printf %s\n'
7423else
7424  # Use this function as a fallback that always works.
7425  func_fallback_echo ()
7426  {
7427    eval 'cat <<_LTECHO_EOF
7428$1
7429_LTECHO_EOF'
7430  }
7431  ECHO='func_fallback_echo'
7432fi
7433
7434# func_echo_all arg...
7435# Invoke $ECHO with all args, space-separated.
7436func_echo_all ()
7437{
7438    $ECHO ""
7439}
7440
7441case $ECHO in
7442  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7443$as_echo "printf" >&6; } ;;
7444  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7445$as_echo "print -r" >&6; } ;;
7446  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7447$as_echo "cat" >&6; } ;;
7448esac
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7464$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7465if ${ac_cv_path_SED+:} false; then :
7466  $as_echo_n "(cached) " >&6
7467else
7468            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7469     for ac_i in 1 2 3 4 5 6 7; do
7470       ac_script="$ac_script$as_nl$ac_script"
7471     done
7472     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7473     { ac_script=; unset ac_script;}
7474     if test -z "$SED"; then
7475  ac_path_SED_found=false
7476  # Loop through the user's path and test for each of PROGNAME-LIST
7477  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478for as_dir in $PATH
7479do
7480  IFS=$as_save_IFS
7481  test -z "$as_dir" && as_dir=.
7482    for ac_prog in sed gsed; do
7483    for ac_exec_ext in '' $ac_executable_extensions; do
7484      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7485      as_fn_executable_p "$ac_path_SED" || continue
7486# Check for GNU ac_path_SED and select it if it is found.
7487  # Check for GNU $ac_path_SED
7488case `"$ac_path_SED" --version 2>&1` in
7489*GNU*)
7490  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7491*)
7492  ac_count=0
7493  $as_echo_n 0123456789 >"conftest.in"
7494  while :
7495  do
7496    cat "conftest.in" "conftest.in" >"conftest.tmp"
7497    mv "conftest.tmp" "conftest.in"
7498    cp "conftest.in" "conftest.nl"
7499    $as_echo '' >> "conftest.nl"
7500    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7501    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7502    as_fn_arith $ac_count + 1 && ac_count=$as_val
7503    if test $ac_count -gt ${ac_path_SED_max-0}; then
7504      # Best one so far, save it but keep looking for a better one
7505      ac_cv_path_SED="$ac_path_SED"
7506      ac_path_SED_max=$ac_count
7507    fi
7508    # 10*(2^10) chars as input seems more than enough
7509    test $ac_count -gt 10 && break
7510  done
7511  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7512esac
7513
7514      $ac_path_SED_found && break 3
7515    done
7516  done
7517  done
7518IFS=$as_save_IFS
7519  if test -z "$ac_cv_path_SED"; then
7520    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7521  fi
7522else
7523  ac_cv_path_SED=$SED
7524fi
7525
7526fi
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7528$as_echo "$ac_cv_path_SED" >&6; }
7529 SED="$ac_cv_path_SED"
7530  rm -f conftest.sed
7531
7532test -z "$SED" && SED=sed
7533Xsed="$SED -e 1s/^X//"
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7546$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7547if ${ac_cv_path_GREP+:} false; then :
7548  $as_echo_n "(cached) " >&6
7549else
7550  if test -z "$GREP"; then
7551  ac_path_GREP_found=false
7552  # Loop through the user's path and test for each of PROGNAME-LIST
7553  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7555do
7556  IFS=$as_save_IFS
7557  test -z "$as_dir" && as_dir=.
7558    for ac_prog in grep ggrep; do
7559    for ac_exec_ext in '' $ac_executable_extensions; do
7560      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7561      as_fn_executable_p "$ac_path_GREP" || continue
7562# Check for GNU ac_path_GREP and select it if it is found.
7563  # Check for GNU $ac_path_GREP
7564case `"$ac_path_GREP" --version 2>&1` in
7565*GNU*)
7566  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7567*)
7568  ac_count=0
7569  $as_echo_n 0123456789 >"conftest.in"
7570  while :
7571  do
7572    cat "conftest.in" "conftest.in" >"conftest.tmp"
7573    mv "conftest.tmp" "conftest.in"
7574    cp "conftest.in" "conftest.nl"
7575    $as_echo 'GREP' >> "conftest.nl"
7576    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7577    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7578    as_fn_arith $ac_count + 1 && ac_count=$as_val
7579    if test $ac_count -gt ${ac_path_GREP_max-0}; then
7580      # Best one so far, save it but keep looking for a better one
7581      ac_cv_path_GREP="$ac_path_GREP"
7582      ac_path_GREP_max=$ac_count
7583    fi
7584    # 10*(2^10) chars as input seems more than enough
7585    test $ac_count -gt 10 && break
7586  done
7587  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7588esac
7589
7590      $ac_path_GREP_found && break 3
7591    done
7592  done
7593  done
7594IFS=$as_save_IFS
7595  if test -z "$ac_cv_path_GREP"; then
7596    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7597  fi
7598else
7599  ac_cv_path_GREP=$GREP
7600fi
7601
7602fi
7603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7604$as_echo "$ac_cv_path_GREP" >&6; }
7605 GREP="$ac_cv_path_GREP"
7606
7607
7608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7609$as_echo_n "checking for egrep... " >&6; }
7610if ${ac_cv_path_EGREP+:} false; then :
7611  $as_echo_n "(cached) " >&6
7612else
7613  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7614   then ac_cv_path_EGREP="$GREP -E"
7615   else
7616     if test -z "$EGREP"; then
7617  ac_path_EGREP_found=false
7618  # Loop through the user's path and test for each of PROGNAME-LIST
7619  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7621do
7622  IFS=$as_save_IFS
7623  test -z "$as_dir" && as_dir=.
7624    for ac_prog in egrep; do
7625    for ac_exec_ext in '' $ac_executable_extensions; do
7626      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7627      as_fn_executable_p "$ac_path_EGREP" || continue
7628# Check for GNU ac_path_EGREP and select it if it is found.
7629  # Check for GNU $ac_path_EGREP
7630case `"$ac_path_EGREP" --version 2>&1` in
7631*GNU*)
7632  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7633*)
7634  ac_count=0
7635  $as_echo_n 0123456789 >"conftest.in"
7636  while :
7637  do
7638    cat "conftest.in" "conftest.in" >"conftest.tmp"
7639    mv "conftest.tmp" "conftest.in"
7640    cp "conftest.in" "conftest.nl"
7641    $as_echo 'EGREP' >> "conftest.nl"
7642    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7643    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7644    as_fn_arith $ac_count + 1 && ac_count=$as_val
7645    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7646      # Best one so far, save it but keep looking for a better one
7647      ac_cv_path_EGREP="$ac_path_EGREP"
7648      ac_path_EGREP_max=$ac_count
7649    fi
7650    # 10*(2^10) chars as input seems more than enough
7651    test $ac_count -gt 10 && break
7652  done
7653  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7654esac
7655
7656      $ac_path_EGREP_found && break 3
7657    done
7658  done
7659  done
7660IFS=$as_save_IFS
7661  if test -z "$ac_cv_path_EGREP"; then
7662    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7663  fi
7664else
7665  ac_cv_path_EGREP=$EGREP
7666fi
7667
7668   fi
7669fi
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7671$as_echo "$ac_cv_path_EGREP" >&6; }
7672 EGREP="$ac_cv_path_EGREP"
7673
7674
7675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7676$as_echo_n "checking for fgrep... " >&6; }
7677if ${ac_cv_path_FGREP+:} false; then :
7678  $as_echo_n "(cached) " >&6
7679else
7680  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7681   then ac_cv_path_FGREP="$GREP -F"
7682   else
7683     if test -z "$FGREP"; then
7684  ac_path_FGREP_found=false
7685  # Loop through the user's path and test for each of PROGNAME-LIST
7686  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7688do
7689  IFS=$as_save_IFS
7690  test -z "$as_dir" && as_dir=.
7691    for ac_prog in fgrep; do
7692    for ac_exec_ext in '' $ac_executable_extensions; do
7693      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7694      as_fn_executable_p "$ac_path_FGREP" || continue
7695# Check for GNU ac_path_FGREP and select it if it is found.
7696  # Check for GNU $ac_path_FGREP
7697case `"$ac_path_FGREP" --version 2>&1` in
7698*GNU*)
7699  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7700*)
7701  ac_count=0
7702  $as_echo_n 0123456789 >"conftest.in"
7703  while :
7704  do
7705    cat "conftest.in" "conftest.in" >"conftest.tmp"
7706    mv "conftest.tmp" "conftest.in"
7707    cp "conftest.in" "conftest.nl"
7708    $as_echo 'FGREP' >> "conftest.nl"
7709    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7710    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7711    as_fn_arith $ac_count + 1 && ac_count=$as_val
7712    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7713      # Best one so far, save it but keep looking for a better one
7714      ac_cv_path_FGREP="$ac_path_FGREP"
7715      ac_path_FGREP_max=$ac_count
7716    fi
7717    # 10*(2^10) chars as input seems more than enough
7718    test $ac_count -gt 10 && break
7719  done
7720  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7721esac
7722
7723      $ac_path_FGREP_found && break 3
7724    done
7725  done
7726  done
7727IFS=$as_save_IFS
7728  if test -z "$ac_cv_path_FGREP"; then
7729    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7730  fi
7731else
7732  ac_cv_path_FGREP=$FGREP
7733fi
7734
7735   fi
7736fi
7737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7738$as_echo "$ac_cv_path_FGREP" >&6; }
7739 FGREP="$ac_cv_path_FGREP"
7740
7741
7742test -z "$GREP" && GREP=grep
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762# Check whether --with-gnu-ld was given.
7763if test "${with_gnu_ld+set}" = set; then :
7764  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7765else
7766  with_gnu_ld=no
7767fi
7768
7769ac_prog=ld
7770if test yes = "$GCC"; then
7771  # Check if gcc -print-prog-name=ld gives a path.
7772  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7773$as_echo_n "checking for ld used by $CC... " >&6; }
7774  case $host in
7775  *-*-mingw*)
7776    # gcc leaves a trailing carriage return, which upsets mingw
7777    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7778  *)
7779    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7780  esac
7781  case $ac_prog in
7782    # Accept absolute paths.
7783    [\\/]* | ?:[\\/]*)
7784      re_direlt='/[^/][^/]*/\.\./'
7785      # Canonicalize the pathname of ld
7786      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7787      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7788	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7789      done
7790      test -z "$LD" && LD=$ac_prog
7791      ;;
7792  "")
7793    # If it fails, then pretend we aren't using GCC.
7794    ac_prog=ld
7795    ;;
7796  *)
7797    # If it is relative, then search for the first ld in PATH.
7798    with_gnu_ld=unknown
7799    ;;
7800  esac
7801elif test yes = "$with_gnu_ld"; then
7802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7803$as_echo_n "checking for GNU ld... " >&6; }
7804else
7805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7806$as_echo_n "checking for non-GNU ld... " >&6; }
7807fi
7808if ${lt_cv_path_LD+:} false; then :
7809  $as_echo_n "(cached) " >&6
7810else
7811  if test -z "$LD"; then
7812  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7813  for ac_dir in $PATH; do
7814    IFS=$lt_save_ifs
7815    test -z "$ac_dir" && ac_dir=.
7816    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7817      lt_cv_path_LD=$ac_dir/$ac_prog
7818      # Check to see if the program is GNU ld.  I'd rather use --version,
7819      # but apparently some variants of GNU ld only accept -v.
7820      # Break only if it was the GNU/non-GNU ld that we prefer.
7821      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7822      *GNU* | *'with BFD'*)
7823	test no != "$with_gnu_ld" && break
7824	;;
7825      *)
7826	test yes != "$with_gnu_ld" && break
7827	;;
7828      esac
7829    fi
7830  done
7831  IFS=$lt_save_ifs
7832else
7833  lt_cv_path_LD=$LD # Let the user override the test with a path.
7834fi
7835fi
7836
7837LD=$lt_cv_path_LD
7838if test -n "$LD"; then
7839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7840$as_echo "$LD" >&6; }
7841else
7842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843$as_echo "no" >&6; }
7844fi
7845test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7847$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7848if ${lt_cv_prog_gnu_ld+:} false; then :
7849  $as_echo_n "(cached) " >&6
7850else
7851  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7852case `$LD -v 2>&1 </dev/null` in
7853*GNU* | *'with BFD'*)
7854  lt_cv_prog_gnu_ld=yes
7855  ;;
7856*)
7857  lt_cv_prog_gnu_ld=no
7858  ;;
7859esac
7860fi
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7862$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7863with_gnu_ld=$lt_cv_prog_gnu_ld
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7874$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7875if ${lt_cv_path_NM+:} false; then :
7876  $as_echo_n "(cached) " >&6
7877else
7878  if test -n "$NM"; then
7879  # Let the user override the test.
7880  lt_cv_path_NM=$NM
7881else
7882  lt_nm_to_check=${ac_tool_prefix}nm
7883  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7884    lt_nm_to_check="$lt_nm_to_check nm"
7885  fi
7886  for lt_tmp_nm in $lt_nm_to_check; do
7887    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7888    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7889      IFS=$lt_save_ifs
7890      test -z "$ac_dir" && ac_dir=.
7891      tmp_nm=$ac_dir/$lt_tmp_nm
7892      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7893	# Check to see if the nm accepts a BSD-compat flag.
7894	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7895	#   nm: unknown option "B" ignored
7896	# Tru64's nm complains that /dev/null is an invalid object file
7897	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7898	case $build_os in
7899	mingw*) lt_bad_file=conftest.nm/nofile ;;
7900	*) lt_bad_file=/dev/null ;;
7901	esac
7902	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7903	*$lt_bad_file* | *'Invalid file or object type'*)
7904	  lt_cv_path_NM="$tmp_nm -B"
7905	  break 2
7906	  ;;
7907	*)
7908	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7909	  */dev/null*)
7910	    lt_cv_path_NM="$tmp_nm -p"
7911	    break 2
7912	    ;;
7913	  *)
7914	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7915	    continue # so that we can try to find one that supports BSD flags
7916	    ;;
7917	  esac
7918	  ;;
7919	esac
7920      fi
7921    done
7922    IFS=$lt_save_ifs
7923  done
7924  : ${lt_cv_path_NM=no}
7925fi
7926fi
7927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7928$as_echo "$lt_cv_path_NM" >&6; }
7929if test no != "$lt_cv_path_NM"; then
7930  NM=$lt_cv_path_NM
7931else
7932  # Didn't find any BSD compatible name lister, look for dumpbin.
7933  if test -n "$DUMPBIN"; then :
7934    # Let the user override the test.
7935  else
7936    if test -n "$ac_tool_prefix"; then
7937  for ac_prog in dumpbin "link -dump"
7938  do
7939    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7940set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942$as_echo_n "checking for $ac_word... " >&6; }
7943if ${ac_cv_prog_DUMPBIN+:} false; then :
7944  $as_echo_n "(cached) " >&6
7945else
7946  if test -n "$DUMPBIN"; then
7947  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7948else
7949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950for as_dir in $PATH
7951do
7952  IFS=$as_save_IFS
7953  test -z "$as_dir" && as_dir=.
7954    for ac_exec_ext in '' $ac_executable_extensions; do
7955  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7956    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958    break 2
7959  fi
7960done
7961  done
7962IFS=$as_save_IFS
7963
7964fi
7965fi
7966DUMPBIN=$ac_cv_prog_DUMPBIN
7967if test -n "$DUMPBIN"; then
7968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7969$as_echo "$DUMPBIN" >&6; }
7970else
7971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972$as_echo "no" >&6; }
7973fi
7974
7975
7976    test -n "$DUMPBIN" && break
7977  done
7978fi
7979if test -z "$DUMPBIN"; then
7980  ac_ct_DUMPBIN=$DUMPBIN
7981  for ac_prog in dumpbin "link -dump"
7982do
7983  # Extract the first word of "$ac_prog", so it can be a program name with args.
7984set dummy $ac_prog; ac_word=$2
7985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986$as_echo_n "checking for $ac_word... " >&6; }
7987if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7988  $as_echo_n "(cached) " >&6
7989else
7990  if test -n "$ac_ct_DUMPBIN"; then
7991  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7992else
7993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994for as_dir in $PATH
7995do
7996  IFS=$as_save_IFS
7997  test -z "$as_dir" && as_dir=.
7998    for ac_exec_ext in '' $ac_executable_extensions; do
7999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8000    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8002    break 2
8003  fi
8004done
8005  done
8006IFS=$as_save_IFS
8007
8008fi
8009fi
8010ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8011if test -n "$ac_ct_DUMPBIN"; then
8012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8013$as_echo "$ac_ct_DUMPBIN" >&6; }
8014else
8015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016$as_echo "no" >&6; }
8017fi
8018
8019
8020  test -n "$ac_ct_DUMPBIN" && break
8021done
8022
8023  if test "x$ac_ct_DUMPBIN" = x; then
8024    DUMPBIN=":"
8025  else
8026    case $cross_compiling:$ac_tool_warned in
8027yes:)
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8030ac_tool_warned=yes ;;
8031esac
8032    DUMPBIN=$ac_ct_DUMPBIN
8033  fi
8034fi
8035
8036    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8037    *COFF*)
8038      DUMPBIN="$DUMPBIN -symbols -headers"
8039      ;;
8040    *)
8041      DUMPBIN=:
8042      ;;
8043    esac
8044  fi
8045
8046  if test : != "$DUMPBIN"; then
8047    NM=$DUMPBIN
8048  fi
8049fi
8050test -z "$NM" && NM=nm
8051
8052
8053
8054
8055
8056
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8058$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8059if ${lt_cv_nm_interface+:} false; then :
8060  $as_echo_n "(cached) " >&6
8061else
8062  lt_cv_nm_interface="BSD nm"
8063  echo "int some_variable = 0;" > conftest.$ac_ext
8064  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8065  (eval "$ac_compile" 2>conftest.err)
8066  cat conftest.err >&5
8067  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8068  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8069  cat conftest.err >&5
8070  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8071  cat conftest.out >&5
8072  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8073    lt_cv_nm_interface="MS dumpbin"
8074  fi
8075  rm -f conftest*
8076fi
8077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8078$as_echo "$lt_cv_nm_interface" >&6; }
8079
8080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8081$as_echo_n "checking whether ln -s works... " >&6; }
8082LN_S=$as_ln_s
8083if test "$LN_S" = "ln -s"; then
8084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8085$as_echo "yes" >&6; }
8086else
8087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8088$as_echo "no, using $LN_S" >&6; }
8089fi
8090
8091# find the maximum length of command line arguments
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8093$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8094if ${lt_cv_sys_max_cmd_len+:} false; then :
8095  $as_echo_n "(cached) " >&6
8096else
8097    i=0
8098  teststring=ABCD
8099
8100  case $build_os in
8101  msdosdjgpp*)
8102    # On DJGPP, this test can blow up pretty badly due to problems in libc
8103    # (any single argument exceeding 2000 bytes causes a buffer overrun
8104    # during glob expansion).  Even if it were fixed, the result of this
8105    # check would be larger than it should be.
8106    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8107    ;;
8108
8109  gnu*)
8110    # Under GNU Hurd, this test is not required because there is
8111    # no limit to the length of command line arguments.
8112    # Libtool will interpret -1 as no limit whatsoever
8113    lt_cv_sys_max_cmd_len=-1;
8114    ;;
8115
8116  cygwin* | mingw* | cegcc*)
8117    # On Win9x/ME, this test blows up -- it succeeds, but takes
8118    # about 5 minutes as the teststring grows exponentially.
8119    # Worse, since 9x/ME are not pre-emptively multitasking,
8120    # you end up with a "frozen" computer, even though with patience
8121    # the test eventually succeeds (with a max line length of 256k).
8122    # Instead, let's just punt: use the minimum linelength reported by
8123    # all of the supported platforms: 8192 (on NT/2K/XP).
8124    lt_cv_sys_max_cmd_len=8192;
8125    ;;
8126
8127  mint*)
8128    # On MiNT this can take a long time and run out of memory.
8129    lt_cv_sys_max_cmd_len=8192;
8130    ;;
8131
8132  amigaos*)
8133    # On AmigaOS with pdksh, this test takes hours, literally.
8134    # So we just punt and use a minimum line length of 8192.
8135    lt_cv_sys_max_cmd_len=8192;
8136    ;;
8137
8138  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8139    # This has been around since 386BSD, at least.  Likely further.
8140    if test -x /sbin/sysctl; then
8141      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8142    elif test -x /usr/sbin/sysctl; then
8143      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8144    else
8145      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8146    fi
8147    # And add a safety zone
8148    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8149    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8150    ;;
8151
8152  interix*)
8153    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8154    lt_cv_sys_max_cmd_len=196608
8155    ;;
8156
8157  os2*)
8158    # The test takes a long time on OS/2.
8159    lt_cv_sys_max_cmd_len=8192
8160    ;;
8161
8162  osf*)
8163    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8164    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8165    # nice to cause kernel panics so lets avoid the loop below.
8166    # First set a reasonable default.
8167    lt_cv_sys_max_cmd_len=16384
8168    #
8169    if test -x /sbin/sysconfig; then
8170      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8171        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8172      esac
8173    fi
8174    ;;
8175  sco3.2v5*)
8176    lt_cv_sys_max_cmd_len=102400
8177    ;;
8178  sysv5* | sco5v6* | sysv4.2uw2*)
8179    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8180    if test -n "$kargmax"; then
8181      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8182    else
8183      lt_cv_sys_max_cmd_len=32768
8184    fi
8185    ;;
8186  *)
8187    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8188    if test -n "$lt_cv_sys_max_cmd_len" && \
8189       test undefined != "$lt_cv_sys_max_cmd_len"; then
8190      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8191      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8192    else
8193      # Make teststring a little bigger before we do anything with it.
8194      # a 1K string should be a reasonable start.
8195      for i in 1 2 3 4 5 6 7 8; do
8196        teststring=$teststring$teststring
8197      done
8198      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8199      # If test is not a shell built-in, we'll probably end up computing a
8200      # maximum length that is only half of the actual maximum length, but
8201      # we can't tell.
8202      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8203	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8204	      test 17 != "$i" # 1/2 MB should be enough
8205      do
8206        i=`expr $i + 1`
8207        teststring=$teststring$teststring
8208      done
8209      # Only check the string length outside the loop.
8210      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8211      teststring=
8212      # Add a significant safety factor because C++ compilers can tack on
8213      # massive amounts of additional arguments before passing them to the
8214      # linker.  It appears as though 1/2 is a usable value.
8215      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8216    fi
8217    ;;
8218  esac
8219
8220fi
8221
8222if test -n "$lt_cv_sys_max_cmd_len"; then
8223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8224$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8225else
8226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8227$as_echo "none" >&6; }
8228fi
8229max_cmd_len=$lt_cv_sys_max_cmd_len
8230
8231
8232
8233
8234
8235
8236: ${CP="cp -f"}
8237: ${MV="mv -f"}
8238: ${RM="rm -f"}
8239
8240if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8241  lt_unset=unset
8242else
8243  lt_unset=false
8244fi
8245
8246
8247
8248
8249
8250# test EBCDIC or ASCII
8251case `echo X|tr X '\101'` in
8252 A) # ASCII based system
8253    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8254  lt_SP2NL='tr \040 \012'
8255  lt_NL2SP='tr \015\012 \040\040'
8256  ;;
8257 *) # EBCDIC based system
8258  lt_SP2NL='tr \100 \n'
8259  lt_NL2SP='tr \r\n \100\100'
8260  ;;
8261esac
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8272$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8273if ${lt_cv_to_host_file_cmd+:} false; then :
8274  $as_echo_n "(cached) " >&6
8275else
8276  case $host in
8277  *-*-mingw* )
8278    case $build in
8279      *-*-mingw* ) # actually msys
8280        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8281        ;;
8282      *-*-cygwin* )
8283        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8284        ;;
8285      * ) # otherwise, assume *nix
8286        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8287        ;;
8288    esac
8289    ;;
8290  *-*-cygwin* )
8291    case $build in
8292      *-*-mingw* ) # actually msys
8293        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8294        ;;
8295      *-*-cygwin* )
8296        lt_cv_to_host_file_cmd=func_convert_file_noop
8297        ;;
8298      * ) # otherwise, assume *nix
8299        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8300        ;;
8301    esac
8302    ;;
8303  * ) # unhandled hosts (and "normal" native builds)
8304    lt_cv_to_host_file_cmd=func_convert_file_noop
8305    ;;
8306esac
8307
8308fi
8309
8310to_host_file_cmd=$lt_cv_to_host_file_cmd
8311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8312$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8313
8314
8315
8316
8317
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8319$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8320if ${lt_cv_to_tool_file_cmd+:} false; then :
8321  $as_echo_n "(cached) " >&6
8322else
8323  #assume ordinary cross tools, or native build.
8324lt_cv_to_tool_file_cmd=func_convert_file_noop
8325case $host in
8326  *-*-mingw* )
8327    case $build in
8328      *-*-mingw* ) # actually msys
8329        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8330        ;;
8331    esac
8332    ;;
8333esac
8334
8335fi
8336
8337to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8339$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8340
8341
8342
8343
8344
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8346$as_echo_n "checking for $LD option to reload object files... " >&6; }
8347if ${lt_cv_ld_reload_flag+:} false; then :
8348  $as_echo_n "(cached) " >&6
8349else
8350  lt_cv_ld_reload_flag='-r'
8351fi
8352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8353$as_echo "$lt_cv_ld_reload_flag" >&6; }
8354reload_flag=$lt_cv_ld_reload_flag
8355case $reload_flag in
8356"" | " "*) ;;
8357*) reload_flag=" $reload_flag" ;;
8358esac
8359reload_cmds='$LD$reload_flag -o $output$reload_objs'
8360case $host_os in
8361  cygwin* | mingw* | pw32* | cegcc*)
8362    if test yes != "$GCC"; then
8363      reload_cmds=false
8364    fi
8365    ;;
8366  darwin*)
8367    if test yes = "$GCC"; then
8368      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8369    else
8370      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8371    fi
8372    ;;
8373esac
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383if test -n "$ac_tool_prefix"; then
8384  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8385set dummy ${ac_tool_prefix}objdump; ac_word=$2
8386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387$as_echo_n "checking for $ac_word... " >&6; }
8388if ${ac_cv_prog_OBJDUMP+:} false; then :
8389  $as_echo_n "(cached) " >&6
8390else
8391  if test -n "$OBJDUMP"; then
8392  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8393else
8394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395for as_dir in $PATH
8396do
8397  IFS=$as_save_IFS
8398  test -z "$as_dir" && as_dir=.
8399    for ac_exec_ext in '' $ac_executable_extensions; do
8400  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8401    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8403    break 2
8404  fi
8405done
8406  done
8407IFS=$as_save_IFS
8408
8409fi
8410fi
8411OBJDUMP=$ac_cv_prog_OBJDUMP
8412if test -n "$OBJDUMP"; then
8413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8414$as_echo "$OBJDUMP" >&6; }
8415else
8416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417$as_echo "no" >&6; }
8418fi
8419
8420
8421fi
8422if test -z "$ac_cv_prog_OBJDUMP"; then
8423  ac_ct_OBJDUMP=$OBJDUMP
8424  # Extract the first word of "objdump", so it can be a program name with args.
8425set dummy objdump; ac_word=$2
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8427$as_echo_n "checking for $ac_word... " >&6; }
8428if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8429  $as_echo_n "(cached) " >&6
8430else
8431  if test -n "$ac_ct_OBJDUMP"; then
8432  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8433else
8434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435for as_dir in $PATH
8436do
8437  IFS=$as_save_IFS
8438  test -z "$as_dir" && as_dir=.
8439    for ac_exec_ext in '' $ac_executable_extensions; do
8440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8441    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8443    break 2
8444  fi
8445done
8446  done
8447IFS=$as_save_IFS
8448
8449fi
8450fi
8451ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8452if test -n "$ac_ct_OBJDUMP"; then
8453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8454$as_echo "$ac_ct_OBJDUMP" >&6; }
8455else
8456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457$as_echo "no" >&6; }
8458fi
8459
8460  if test "x$ac_ct_OBJDUMP" = x; then
8461    OBJDUMP="false"
8462  else
8463    case $cross_compiling:$ac_tool_warned in
8464yes:)
8465{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8466$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8467ac_tool_warned=yes ;;
8468esac
8469    OBJDUMP=$ac_ct_OBJDUMP
8470  fi
8471else
8472  OBJDUMP="$ac_cv_prog_OBJDUMP"
8473fi
8474
8475test -z "$OBJDUMP" && OBJDUMP=objdump
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8486$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8487if ${lt_cv_deplibs_check_method+:} false; then :
8488  $as_echo_n "(cached) " >&6
8489else
8490  lt_cv_file_magic_cmd='$MAGIC_CMD'
8491lt_cv_file_magic_test_file=
8492lt_cv_deplibs_check_method='unknown'
8493# Need to set the preceding variable on all platforms that support
8494# interlibrary dependencies.
8495# 'none' -- dependencies not supported.
8496# 'unknown' -- same as none, but documents that we really don't know.
8497# 'pass_all' -- all dependencies passed with no checks.
8498# 'test_compile' -- check by making test program.
8499# 'file_magic [[regex]]' -- check by looking for files in library path
8500# that responds to the $file_magic_cmd with a given extended regex.
8501# If you have 'file' or equivalent on your system and you're not sure
8502# whether 'pass_all' will *always* work, you probably want this one.
8503
8504case $host_os in
8505aix[4-9]*)
8506  lt_cv_deplibs_check_method=pass_all
8507  ;;
8508
8509beos*)
8510  lt_cv_deplibs_check_method=pass_all
8511  ;;
8512
8513bsdi[45]*)
8514  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8515  lt_cv_file_magic_cmd='/usr/bin/file -L'
8516  lt_cv_file_magic_test_file=/shlib/libc.so
8517  ;;
8518
8519cygwin*)
8520  # func_win32_libid is a shell function defined in ltmain.sh
8521  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8522  lt_cv_file_magic_cmd='func_win32_libid'
8523  ;;
8524
8525mingw* | pw32*)
8526  # Base MSYS/MinGW do not provide the 'file' command needed by
8527  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8528  # unless we find 'file', for example because we are cross-compiling.
8529  if ( file / ) >/dev/null 2>&1; then
8530    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8531    lt_cv_file_magic_cmd='func_win32_libid'
8532  else
8533    # Keep this pattern in sync with the one in func_win32_libid.
8534    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8535    lt_cv_file_magic_cmd='$OBJDUMP -f'
8536  fi
8537  ;;
8538
8539cegcc*)
8540  # use the weaker test based on 'objdump'. See mingw*.
8541  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8542  lt_cv_file_magic_cmd='$OBJDUMP -f'
8543  ;;
8544
8545darwin* | rhapsody*)
8546  lt_cv_deplibs_check_method=pass_all
8547  ;;
8548
8549freebsd* | dragonfly*)
8550  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8551    case $host_cpu in
8552    i*86 )
8553      # Not sure whether the presence of OpenBSD here was a mistake.
8554      # Let's accept both of them until this is cleared up.
8555      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8556      lt_cv_file_magic_cmd=/usr/bin/file
8557      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8558      ;;
8559    esac
8560  else
8561    lt_cv_deplibs_check_method=pass_all
8562  fi
8563  ;;
8564
8565haiku*)
8566  lt_cv_deplibs_check_method=pass_all
8567  ;;
8568
8569hpux10.20* | hpux11*)
8570  lt_cv_file_magic_cmd=/usr/bin/file
8571  case $host_cpu in
8572  ia64*)
8573    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8574    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8575    ;;
8576  hppa*64*)
8577    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]'
8578    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8579    ;;
8580  *)
8581    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8582    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8583    ;;
8584  esac
8585  ;;
8586
8587interix[3-9]*)
8588  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8589  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8590  ;;
8591
8592irix5* | irix6* | nonstopux*)
8593  case $LD in
8594  *-32|*"-32 ") libmagic=32-bit;;
8595  *-n32|*"-n32 ") libmagic=N32;;
8596  *-64|*"-64 ") libmagic=64-bit;;
8597  *) libmagic=never-match;;
8598  esac
8599  lt_cv_deplibs_check_method=pass_all
8600  ;;
8601
8602# This must be glibc/ELF.
8603linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8604  lt_cv_deplibs_check_method=pass_all
8605  ;;
8606
8607netbsd*)
8608  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8609    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8610  else
8611    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8612  fi
8613  ;;
8614
8615newos6*)
8616  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8617  lt_cv_file_magic_cmd=/usr/bin/file
8618  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8619  ;;
8620
8621*nto* | *qnx*)
8622  lt_cv_deplibs_check_method=pass_all
8623  ;;
8624
8625openbsd* | bitrig*)
8626  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8627    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8628  else
8629    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8630  fi
8631  ;;
8632
8633osf3* | osf4* | osf5*)
8634  lt_cv_deplibs_check_method=pass_all
8635  ;;
8636
8637rdos*)
8638  lt_cv_deplibs_check_method=pass_all
8639  ;;
8640
8641solaris*)
8642  lt_cv_deplibs_check_method=pass_all
8643  ;;
8644
8645sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8646  lt_cv_deplibs_check_method=pass_all
8647  ;;
8648
8649sysv4 | sysv4.3*)
8650  case $host_vendor in
8651  motorola)
8652    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]'
8653    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8654    ;;
8655  ncr)
8656    lt_cv_deplibs_check_method=pass_all
8657    ;;
8658  sequent)
8659    lt_cv_file_magic_cmd='/bin/file'
8660    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8661    ;;
8662  sni)
8663    lt_cv_file_magic_cmd='/bin/file'
8664    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8665    lt_cv_file_magic_test_file=/lib/libc.so
8666    ;;
8667  siemens)
8668    lt_cv_deplibs_check_method=pass_all
8669    ;;
8670  pc)
8671    lt_cv_deplibs_check_method=pass_all
8672    ;;
8673  esac
8674  ;;
8675
8676tpf*)
8677  lt_cv_deplibs_check_method=pass_all
8678  ;;
8679os2*)
8680  lt_cv_deplibs_check_method=pass_all
8681  ;;
8682esac
8683
8684fi
8685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8686$as_echo "$lt_cv_deplibs_check_method" >&6; }
8687
8688file_magic_glob=
8689want_nocaseglob=no
8690if test "$build" = "$host"; then
8691  case $host_os in
8692  mingw* | pw32*)
8693    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8694      want_nocaseglob=yes
8695    else
8696      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8697    fi
8698    ;;
8699  esac
8700fi
8701
8702file_magic_cmd=$lt_cv_file_magic_cmd
8703deplibs_check_method=$lt_cv_deplibs_check_method
8704test -z "$deplibs_check_method" && deplibs_check_method=unknown
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727if test -n "$ac_tool_prefix"; then
8728  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8729set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8731$as_echo_n "checking for $ac_word... " >&6; }
8732if ${ac_cv_prog_DLLTOOL+:} false; then :
8733  $as_echo_n "(cached) " >&6
8734else
8735  if test -n "$DLLTOOL"; then
8736  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8737else
8738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739for as_dir in $PATH
8740do
8741  IFS=$as_save_IFS
8742  test -z "$as_dir" && as_dir=.
8743    for ac_exec_ext in '' $ac_executable_extensions; do
8744  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8745    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8747    break 2
8748  fi
8749done
8750  done
8751IFS=$as_save_IFS
8752
8753fi
8754fi
8755DLLTOOL=$ac_cv_prog_DLLTOOL
8756if test -n "$DLLTOOL"; then
8757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8758$as_echo "$DLLTOOL" >&6; }
8759else
8760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8761$as_echo "no" >&6; }
8762fi
8763
8764
8765fi
8766if test -z "$ac_cv_prog_DLLTOOL"; then
8767  ac_ct_DLLTOOL=$DLLTOOL
8768  # Extract the first word of "dlltool", so it can be a program name with args.
8769set dummy dlltool; ac_word=$2
8770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8771$as_echo_n "checking for $ac_word... " >&6; }
8772if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8773  $as_echo_n "(cached) " >&6
8774else
8775  if test -n "$ac_ct_DLLTOOL"; then
8776  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8777else
8778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779for as_dir in $PATH
8780do
8781  IFS=$as_save_IFS
8782  test -z "$as_dir" && as_dir=.
8783    for ac_exec_ext in '' $ac_executable_extensions; do
8784  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8785    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8787    break 2
8788  fi
8789done
8790  done
8791IFS=$as_save_IFS
8792
8793fi
8794fi
8795ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8796if test -n "$ac_ct_DLLTOOL"; then
8797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8798$as_echo "$ac_ct_DLLTOOL" >&6; }
8799else
8800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801$as_echo "no" >&6; }
8802fi
8803
8804  if test "x$ac_ct_DLLTOOL" = x; then
8805    DLLTOOL="false"
8806  else
8807    case $cross_compiling:$ac_tool_warned in
8808yes:)
8809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8811ac_tool_warned=yes ;;
8812esac
8813    DLLTOOL=$ac_ct_DLLTOOL
8814  fi
8815else
8816  DLLTOOL="$ac_cv_prog_DLLTOOL"
8817fi
8818
8819test -z "$DLLTOOL" && DLLTOOL=dlltool
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8831$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8832if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8833  $as_echo_n "(cached) " >&6
8834else
8835  lt_cv_sharedlib_from_linklib_cmd='unknown'
8836
8837case $host_os in
8838cygwin* | mingw* | pw32* | cegcc*)
8839  # two different shell functions defined in ltmain.sh;
8840  # decide which one to use based on capabilities of $DLLTOOL
8841  case `$DLLTOOL --help 2>&1` in
8842  *--identify-strict*)
8843    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8844    ;;
8845  *)
8846    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8847    ;;
8848  esac
8849  ;;
8850*)
8851  # fallback: assume linklib IS sharedlib
8852  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8853  ;;
8854esac
8855
8856fi
8857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8858$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8859sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8860test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8861
8862
8863
8864
8865
8866
8867
8868if test -n "$ac_tool_prefix"; then
8869  for ac_prog in ar
8870  do
8871    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8872set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874$as_echo_n "checking for $ac_word... " >&6; }
8875if ${ac_cv_prog_AR+:} false; then :
8876  $as_echo_n "(cached) " >&6
8877else
8878  if test -n "$AR"; then
8879  ac_cv_prog_AR="$AR" # Let the user override the test.
8880else
8881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882for as_dir in $PATH
8883do
8884  IFS=$as_save_IFS
8885  test -z "$as_dir" && as_dir=.
8886    for ac_exec_ext in '' $ac_executable_extensions; do
8887  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8888    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8889    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890    break 2
8891  fi
8892done
8893  done
8894IFS=$as_save_IFS
8895
8896fi
8897fi
8898AR=$ac_cv_prog_AR
8899if test -n "$AR"; then
8900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8901$as_echo "$AR" >&6; }
8902else
8903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904$as_echo "no" >&6; }
8905fi
8906
8907
8908    test -n "$AR" && break
8909  done
8910fi
8911if test -z "$AR"; then
8912  ac_ct_AR=$AR
8913  for ac_prog in ar
8914do
8915  # Extract the first word of "$ac_prog", so it can be a program name with args.
8916set dummy $ac_prog; ac_word=$2
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8918$as_echo_n "checking for $ac_word... " >&6; }
8919if ${ac_cv_prog_ac_ct_AR+:} false; then :
8920  $as_echo_n "(cached) " >&6
8921else
8922  if test -n "$ac_ct_AR"; then
8923  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8924else
8925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8926for as_dir in $PATH
8927do
8928  IFS=$as_save_IFS
8929  test -z "$as_dir" && as_dir=.
8930    for ac_exec_ext in '' $ac_executable_extensions; do
8931  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8932    ac_cv_prog_ac_ct_AR="$ac_prog"
8933    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8934    break 2
8935  fi
8936done
8937  done
8938IFS=$as_save_IFS
8939
8940fi
8941fi
8942ac_ct_AR=$ac_cv_prog_ac_ct_AR
8943if test -n "$ac_ct_AR"; then
8944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8945$as_echo "$ac_ct_AR" >&6; }
8946else
8947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8948$as_echo "no" >&6; }
8949fi
8950
8951
8952  test -n "$ac_ct_AR" && break
8953done
8954
8955  if test "x$ac_ct_AR" = x; then
8956    AR="false"
8957  else
8958    case $cross_compiling:$ac_tool_warned in
8959yes:)
8960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8962ac_tool_warned=yes ;;
8963esac
8964    AR=$ac_ct_AR
8965  fi
8966fi
8967
8968: ${AR=ar}
8969: ${AR_FLAGS=cru}
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8982$as_echo_n "checking for archiver @FILE support... " >&6; }
8983if ${lt_cv_ar_at_file+:} false; then :
8984  $as_echo_n "(cached) " >&6
8985else
8986  lt_cv_ar_at_file=no
8987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988/* end confdefs.h.  */
8989
8990int
8991main ()
8992{
8993
8994  ;
8995  return 0;
8996}
8997_ACEOF
8998if ac_fn_c_try_compile "$LINENO"; then :
8999  echo conftest.$ac_objext > conftest.lst
9000      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9001      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9002  (eval $lt_ar_try) 2>&5
9003  ac_status=$?
9004  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9005  test $ac_status = 0; }
9006      if test 0 -eq "$ac_status"; then
9007	# Ensure the archiver fails upon bogus file names.
9008	rm -f conftest.$ac_objext libconftest.a
9009	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9010  (eval $lt_ar_try) 2>&5
9011  ac_status=$?
9012  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9013  test $ac_status = 0; }
9014	if test 0 -ne "$ac_status"; then
9015          lt_cv_ar_at_file=@
9016        fi
9017      fi
9018      rm -f conftest.* libconftest.a
9019
9020fi
9021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9022
9023fi
9024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9025$as_echo "$lt_cv_ar_at_file" >&6; }
9026
9027if test no = "$lt_cv_ar_at_file"; then
9028  archiver_list_spec=
9029else
9030  archiver_list_spec=$lt_cv_ar_at_file
9031fi
9032
9033
9034
9035
9036
9037
9038
9039if test -n "$ac_tool_prefix"; then
9040  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9041set dummy ${ac_tool_prefix}strip; ac_word=$2
9042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043$as_echo_n "checking for $ac_word... " >&6; }
9044if ${ac_cv_prog_STRIP+:} false; then :
9045  $as_echo_n "(cached) " >&6
9046else
9047  if test -n "$STRIP"; then
9048  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9049else
9050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9051for as_dir in $PATH
9052do
9053  IFS=$as_save_IFS
9054  test -z "$as_dir" && as_dir=.
9055    for ac_exec_ext in '' $ac_executable_extensions; do
9056  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9057    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9059    break 2
9060  fi
9061done
9062  done
9063IFS=$as_save_IFS
9064
9065fi
9066fi
9067STRIP=$ac_cv_prog_STRIP
9068if test -n "$STRIP"; then
9069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9070$as_echo "$STRIP" >&6; }
9071else
9072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073$as_echo "no" >&6; }
9074fi
9075
9076
9077fi
9078if test -z "$ac_cv_prog_STRIP"; then
9079  ac_ct_STRIP=$STRIP
9080  # Extract the first word of "strip", so it can be a program name with args.
9081set dummy strip; ac_word=$2
9082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9083$as_echo_n "checking for $ac_word... " >&6; }
9084if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9085  $as_echo_n "(cached) " >&6
9086else
9087  if test -n "$ac_ct_STRIP"; then
9088  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9089else
9090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9091for as_dir in $PATH
9092do
9093  IFS=$as_save_IFS
9094  test -z "$as_dir" && as_dir=.
9095    for ac_exec_ext in '' $ac_executable_extensions; do
9096  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9097    ac_cv_prog_ac_ct_STRIP="strip"
9098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9099    break 2
9100  fi
9101done
9102  done
9103IFS=$as_save_IFS
9104
9105fi
9106fi
9107ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9108if test -n "$ac_ct_STRIP"; then
9109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9110$as_echo "$ac_ct_STRIP" >&6; }
9111else
9112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113$as_echo "no" >&6; }
9114fi
9115
9116  if test "x$ac_ct_STRIP" = x; then
9117    STRIP=":"
9118  else
9119    case $cross_compiling:$ac_tool_warned in
9120yes:)
9121{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9123ac_tool_warned=yes ;;
9124esac
9125    STRIP=$ac_ct_STRIP
9126  fi
9127else
9128  STRIP="$ac_cv_prog_STRIP"
9129fi
9130
9131test -z "$STRIP" && STRIP=:
9132
9133
9134
9135
9136
9137
9138if test -n "$ac_tool_prefix"; then
9139  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9140set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9142$as_echo_n "checking for $ac_word... " >&6; }
9143if ${ac_cv_prog_RANLIB+:} false; then :
9144  $as_echo_n "(cached) " >&6
9145else
9146  if test -n "$RANLIB"; then
9147  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9148else
9149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9150for as_dir in $PATH
9151do
9152  IFS=$as_save_IFS
9153  test -z "$as_dir" && as_dir=.
9154    for ac_exec_ext in '' $ac_executable_extensions; do
9155  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9156    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9158    break 2
9159  fi
9160done
9161  done
9162IFS=$as_save_IFS
9163
9164fi
9165fi
9166RANLIB=$ac_cv_prog_RANLIB
9167if test -n "$RANLIB"; then
9168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9169$as_echo "$RANLIB" >&6; }
9170else
9171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9172$as_echo "no" >&6; }
9173fi
9174
9175
9176fi
9177if test -z "$ac_cv_prog_RANLIB"; then
9178  ac_ct_RANLIB=$RANLIB
9179  # Extract the first word of "ranlib", so it can be a program name with args.
9180set dummy ranlib; ac_word=$2
9181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9182$as_echo_n "checking for $ac_word... " >&6; }
9183if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9184  $as_echo_n "(cached) " >&6
9185else
9186  if test -n "$ac_ct_RANLIB"; then
9187  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9188else
9189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9190for as_dir in $PATH
9191do
9192  IFS=$as_save_IFS
9193  test -z "$as_dir" && as_dir=.
9194    for ac_exec_ext in '' $ac_executable_extensions; do
9195  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9196    ac_cv_prog_ac_ct_RANLIB="ranlib"
9197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9198    break 2
9199  fi
9200done
9201  done
9202IFS=$as_save_IFS
9203
9204fi
9205fi
9206ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9207if test -n "$ac_ct_RANLIB"; then
9208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9209$as_echo "$ac_ct_RANLIB" >&6; }
9210else
9211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212$as_echo "no" >&6; }
9213fi
9214
9215  if test "x$ac_ct_RANLIB" = x; then
9216    RANLIB=":"
9217  else
9218    case $cross_compiling:$ac_tool_warned in
9219yes:)
9220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9222ac_tool_warned=yes ;;
9223esac
9224    RANLIB=$ac_ct_RANLIB
9225  fi
9226else
9227  RANLIB="$ac_cv_prog_RANLIB"
9228fi
9229
9230test -z "$RANLIB" && RANLIB=:
9231
9232
9233
9234
9235
9236
9237# Determine commands to create old-style static archives.
9238old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9239old_postinstall_cmds='chmod 644 $oldlib'
9240old_postuninstall_cmds=
9241
9242if test -n "$RANLIB"; then
9243  case $host_os in
9244  bitrig* | openbsd*)
9245    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9246    ;;
9247  *)
9248    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9249    ;;
9250  esac
9251  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9252fi
9253
9254case $host_os in
9255  darwin*)
9256    lock_old_archive_extraction=yes ;;
9257  *)
9258    lock_old_archive_extraction=no ;;
9259esac
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299# If no C compiler was specified, use CC.
9300LTCC=${LTCC-"$CC"}
9301
9302# If no C compiler flags were specified, use CFLAGS.
9303LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9304
9305# Allow CC to be a program name with arguments.
9306compiler=$CC
9307
9308
9309# Check for command to grab the raw symbol name followed by C symbol from nm.
9310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9311$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9312if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9313  $as_echo_n "(cached) " >&6
9314else
9315
9316# These are sane defaults that work on at least a few old systems.
9317# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9318
9319# Character class describing NM global symbol codes.
9320symcode='[BCDEGRST]'
9321
9322# Regexp to match symbols that can be accessed directly from C.
9323sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9324
9325# Define system-specific variables.
9326case $host_os in
9327aix*)
9328  symcode='[BCDT]'
9329  ;;
9330cygwin* | mingw* | pw32* | cegcc*)
9331  symcode='[ABCDGISTW]'
9332  ;;
9333hpux*)
9334  if test ia64 = "$host_cpu"; then
9335    symcode='[ABCDEGRST]'
9336  fi
9337  ;;
9338irix* | nonstopux*)
9339  symcode='[BCDEGRST]'
9340  ;;
9341osf*)
9342  symcode='[BCDEGQRST]'
9343  ;;
9344solaris*)
9345  symcode='[BDRT]'
9346  ;;
9347sco3.2v5*)
9348  symcode='[DT]'
9349  ;;
9350sysv4.2uw2*)
9351  symcode='[DT]'
9352  ;;
9353sysv5* | sco5v6* | unixware* | OpenUNIX*)
9354  symcode='[ABDT]'
9355  ;;
9356sysv4)
9357  symcode='[DFNSTU]'
9358  ;;
9359esac
9360
9361# If we're using GNU nm, then use its standard symbol codes.
9362case `$NM -V 2>&1` in
9363*GNU* | *'with BFD'*)
9364  symcode='[ABCDGIRSTW]' ;;
9365esac
9366
9367if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9368  # Gets list of data symbols to import.
9369  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9370  # Adjust the below global symbol transforms to fixup imported variables.
9371  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9372  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9373  lt_c_name_lib_hook="\
9374  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9375  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9376else
9377  # Disable hooks by default.
9378  lt_cv_sys_global_symbol_to_import=
9379  lt_cdecl_hook=
9380  lt_c_name_hook=
9381  lt_c_name_lib_hook=
9382fi
9383
9384# Transform an extracted symbol line into a proper C declaration.
9385# Some systems (esp. on ia64) link data and code symbols differently,
9386# so use this general approach.
9387lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9388$lt_cdecl_hook\
9389" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9390" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9391
9392# Transform an extracted symbol line into symbol name and symbol address
9393lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9394$lt_c_name_hook\
9395" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9396" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9397
9398# Transform an extracted symbol line into symbol name with lib prefix and
9399# symbol address.
9400lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9401$lt_c_name_lib_hook\
9402" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9403" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9404" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9405
9406# Handle CRLF in mingw tool chain
9407opt_cr=
9408case $build_os in
9409mingw*)
9410  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9411  ;;
9412esac
9413
9414# Try without a prefix underscore, then with it.
9415for ac_symprfx in "" "_"; do
9416
9417  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9418  symxfrm="\\1 $ac_symprfx\\2 \\2"
9419
9420  # Write the raw and C identifiers.
9421  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9422    # Fake it for dumpbin and say T for any non-static function,
9423    # D for any global variable and I for any imported variable.
9424    # Also find C++ and __fastcall symbols from MSVC++,
9425    # which start with @ or ?.
9426    lt_cv_sys_global_symbol_pipe="$AWK '"\
9427"     {last_section=section; section=\$ 3};"\
9428"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9429"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9430"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9431"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9432"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9433"     \$ 0!~/External *\|/{next};"\
9434"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9435"     {if(hide[section]) next};"\
9436"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9437"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9438"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9439"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9440"     ' prfx=^$ac_symprfx"
9441  else
9442    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9443  fi
9444  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9445
9446  # Check to see that the pipe works correctly.
9447  pipe_works=no
9448
9449  rm -f conftest*
9450  cat > conftest.$ac_ext <<_LT_EOF
9451#ifdef __cplusplus
9452extern "C" {
9453#endif
9454char nm_test_var;
9455void nm_test_func(void);
9456void nm_test_func(void){}
9457#ifdef __cplusplus
9458}
9459#endif
9460int main(){nm_test_var='a';nm_test_func();return(0);}
9461_LT_EOF
9462
9463  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9464  (eval $ac_compile) 2>&5
9465  ac_status=$?
9466  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9467  test $ac_status = 0; }; then
9468    # Now try to grab the symbols.
9469    nlist=conftest.nm
9470    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9471  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9472  ac_status=$?
9473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9474  test $ac_status = 0; } && test -s "$nlist"; then
9475      # Try sorting and uniquifying the output.
9476      if sort "$nlist" | uniq > "$nlist"T; then
9477	mv -f "$nlist"T "$nlist"
9478      else
9479	rm -f "$nlist"T
9480      fi
9481
9482      # Make sure that we snagged all the symbols we need.
9483      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9484	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9485	  cat <<_LT_EOF > conftest.$ac_ext
9486/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9487#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9488/* DATA imports from DLLs on WIN32 can't be const, because runtime
9489   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9490# define LT_DLSYM_CONST
9491#elif defined __osf__
9492/* This system does not cope well with relocations in const data.  */
9493# define LT_DLSYM_CONST
9494#else
9495# define LT_DLSYM_CONST const
9496#endif
9497
9498#ifdef __cplusplus
9499extern "C" {
9500#endif
9501
9502_LT_EOF
9503	  # Now generate the symbol file.
9504	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9505
9506	  cat <<_LT_EOF >> conftest.$ac_ext
9507
9508/* The mapping between symbol names and symbols.  */
9509LT_DLSYM_CONST struct {
9510  const char *name;
9511  void       *address;
9512}
9513lt__PROGRAM__LTX_preloaded_symbols[] =
9514{
9515  { "@PROGRAM@", (void *) 0 },
9516_LT_EOF
9517	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9518	  cat <<\_LT_EOF >> conftest.$ac_ext
9519  {0, (void *) 0}
9520};
9521
9522/* This works around a problem in FreeBSD linker */
9523#ifdef FREEBSD_WORKAROUND
9524static const void *lt_preloaded_setup() {
9525  return lt__PROGRAM__LTX_preloaded_symbols;
9526}
9527#endif
9528
9529#ifdef __cplusplus
9530}
9531#endif
9532_LT_EOF
9533	  # Now try linking the two files.
9534	  mv conftest.$ac_objext conftstm.$ac_objext
9535	  lt_globsym_save_LIBS=$LIBS
9536	  lt_globsym_save_CFLAGS=$CFLAGS
9537	  LIBS=conftstm.$ac_objext
9538	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9539	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9540  (eval $ac_link) 2>&5
9541  ac_status=$?
9542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9543  test $ac_status = 0; } && test -s conftest$ac_exeext; then
9544	    pipe_works=yes
9545	  fi
9546	  LIBS=$lt_globsym_save_LIBS
9547	  CFLAGS=$lt_globsym_save_CFLAGS
9548	else
9549	  echo "cannot find nm_test_func in $nlist" >&5
9550	fi
9551      else
9552	echo "cannot find nm_test_var in $nlist" >&5
9553      fi
9554    else
9555      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9556    fi
9557  else
9558    echo "$progname: failed program was:" >&5
9559    cat conftest.$ac_ext >&5
9560  fi
9561  rm -rf conftest* conftst*
9562
9563  # Do not use the global_symbol_pipe unless it works.
9564  if test yes = "$pipe_works"; then
9565    break
9566  else
9567    lt_cv_sys_global_symbol_pipe=
9568  fi
9569done
9570
9571fi
9572
9573if test -z "$lt_cv_sys_global_symbol_pipe"; then
9574  lt_cv_sys_global_symbol_to_cdecl=
9575fi
9576if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9578$as_echo "failed" >&6; }
9579else
9580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9581$as_echo "ok" >&6; }
9582fi
9583
9584# Response file support.
9585if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9586  nm_file_list_spec='@'
9587elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9588  nm_file_list_spec='@'
9589fi
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9628$as_echo_n "checking for sysroot... " >&6; }
9629
9630# Check whether --with-sysroot was given.
9631if test "${with_sysroot+set}" = set; then :
9632  withval=$with_sysroot;
9633else
9634  with_sysroot=no
9635fi
9636
9637
9638lt_sysroot=
9639case $with_sysroot in #(
9640 yes)
9641   if test yes = "$GCC"; then
9642     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9643   fi
9644   ;; #(
9645 /*)
9646   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9647   ;; #(
9648 no|'')
9649   ;; #(
9650 *)
9651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9652$as_echo "$with_sysroot" >&6; }
9653   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9654   ;;
9655esac
9656
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9658$as_echo "${lt_sysroot:-no}" >&6; }
9659
9660
9661
9662
9663
9664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9665$as_echo_n "checking for a working dd... " >&6; }
9666if ${ac_cv_path_lt_DD+:} false; then :
9667  $as_echo_n "(cached) " >&6
9668else
9669  printf 0123456789abcdef0123456789abcdef >conftest.i
9670cat conftest.i conftest.i >conftest2.i
9671: ${lt_DD:=$DD}
9672if test -z "$lt_DD"; then
9673  ac_path_lt_DD_found=false
9674  # Loop through the user's path and test for each of PROGNAME-LIST
9675  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9676for as_dir in $PATH
9677do
9678  IFS=$as_save_IFS
9679  test -z "$as_dir" && as_dir=.
9680    for ac_prog in dd; do
9681    for ac_exec_ext in '' $ac_executable_extensions; do
9682      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9683      as_fn_executable_p "$ac_path_lt_DD" || continue
9684if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9685  cmp -s conftest.i conftest.out \
9686  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9687fi
9688      $ac_path_lt_DD_found && break 3
9689    done
9690  done
9691  done
9692IFS=$as_save_IFS
9693  if test -z "$ac_cv_path_lt_DD"; then
9694    :
9695  fi
9696else
9697  ac_cv_path_lt_DD=$lt_DD
9698fi
9699
9700rm -f conftest.i conftest2.i conftest.out
9701fi
9702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9703$as_echo "$ac_cv_path_lt_DD" >&6; }
9704
9705
9706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9707$as_echo_n "checking how to truncate binary pipes... " >&6; }
9708if ${lt_cv_truncate_bin+:} false; then :
9709  $as_echo_n "(cached) " >&6
9710else
9711  printf 0123456789abcdef0123456789abcdef >conftest.i
9712cat conftest.i conftest.i >conftest2.i
9713lt_cv_truncate_bin=
9714if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9715  cmp -s conftest.i conftest.out \
9716  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9717fi
9718rm -f conftest.i conftest2.i conftest.out
9719test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9720fi
9721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9722$as_echo "$lt_cv_truncate_bin" >&6; }
9723
9724
9725
9726
9727
9728
9729
9730# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9731func_cc_basename ()
9732{
9733    for cc_temp in $*""; do
9734      case $cc_temp in
9735        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9736        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9737        \-*) ;;
9738        *) break;;
9739      esac
9740    done
9741    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9742}
9743
9744# Check whether --enable-libtool-lock was given.
9745if test "${enable_libtool_lock+set}" = set; then :
9746  enableval=$enable_libtool_lock;
9747fi
9748
9749test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9750
9751# Some flags need to be propagated to the compiler or linker for good
9752# libtool support.
9753case $host in
9754ia64-*-hpux*)
9755  # Find out what ABI is being produced by ac_compile, and set mode
9756  # options accordingly.
9757  echo 'int i;' > conftest.$ac_ext
9758  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9759  (eval $ac_compile) 2>&5
9760  ac_status=$?
9761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9762  test $ac_status = 0; }; then
9763    case `/usr/bin/file conftest.$ac_objext` in
9764      *ELF-32*)
9765	HPUX_IA64_MODE=32
9766	;;
9767      *ELF-64*)
9768	HPUX_IA64_MODE=64
9769	;;
9770    esac
9771  fi
9772  rm -rf conftest*
9773  ;;
9774*-*-irix6*)
9775  # Find out what ABI is being produced by ac_compile, and set linker
9776  # options accordingly.
9777  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9778  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9779  (eval $ac_compile) 2>&5
9780  ac_status=$?
9781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9782  test $ac_status = 0; }; then
9783    if test yes = "$lt_cv_prog_gnu_ld"; then
9784      case `/usr/bin/file conftest.$ac_objext` in
9785	*32-bit*)
9786	  LD="${LD-ld} -melf32bsmip"
9787	  ;;
9788	*N32*)
9789	  LD="${LD-ld} -melf32bmipn32"
9790	  ;;
9791	*64-bit*)
9792	  LD="${LD-ld} -melf64bmip"
9793	;;
9794      esac
9795    else
9796      case `/usr/bin/file conftest.$ac_objext` in
9797	*32-bit*)
9798	  LD="${LD-ld} -32"
9799	  ;;
9800	*N32*)
9801	  LD="${LD-ld} -n32"
9802	  ;;
9803	*64-bit*)
9804	  LD="${LD-ld} -64"
9805	  ;;
9806      esac
9807    fi
9808  fi
9809  rm -rf conftest*
9810  ;;
9811
9812mips64*-*linux*)
9813  # Find out what ABI is being produced by ac_compile, and set linker
9814  # options accordingly.
9815  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9816  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9817  (eval $ac_compile) 2>&5
9818  ac_status=$?
9819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9820  test $ac_status = 0; }; then
9821    emul=elf
9822    case `/usr/bin/file conftest.$ac_objext` in
9823      *32-bit*)
9824	emul="${emul}32"
9825	;;
9826      *64-bit*)
9827	emul="${emul}64"
9828	;;
9829    esac
9830    case `/usr/bin/file conftest.$ac_objext` in
9831      *MSB*)
9832	emul="${emul}btsmip"
9833	;;
9834      *LSB*)
9835	emul="${emul}ltsmip"
9836	;;
9837    esac
9838    case `/usr/bin/file conftest.$ac_objext` in
9839      *N32*)
9840	emul="${emul}n32"
9841	;;
9842    esac
9843    LD="${LD-ld} -m $emul"
9844  fi
9845  rm -rf conftest*
9846  ;;
9847
9848x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9849s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9850  # Find out what ABI is being produced by ac_compile, and set linker
9851  # options accordingly.  Note that the listed cases only cover the
9852  # situations where additional linker options are needed (such as when
9853  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9854  # vice versa); the common cases where no linker options are needed do
9855  # not appear in the list.
9856  echo 'int i;' > conftest.$ac_ext
9857  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9858  (eval $ac_compile) 2>&5
9859  ac_status=$?
9860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9861  test $ac_status = 0; }; then
9862    case `/usr/bin/file conftest.o` in
9863      *32-bit*)
9864	case $host in
9865	  x86_64-*kfreebsd*-gnu)
9866	    LD="${LD-ld} -m elf_i386_fbsd"
9867	    ;;
9868	  x86_64-*linux*)
9869	    case `/usr/bin/file conftest.o` in
9870	      *x86-64*)
9871		LD="${LD-ld} -m elf32_x86_64"
9872		;;
9873	      *)
9874		LD="${LD-ld} -m elf_i386"
9875		;;
9876	    esac
9877	    ;;
9878	  powerpc64le-*linux*)
9879	    LD="${LD-ld} -m elf32lppclinux"
9880	    ;;
9881	  powerpc64-*linux*)
9882	    LD="${LD-ld} -m elf32ppclinux"
9883	    ;;
9884	  s390x-*linux*)
9885	    LD="${LD-ld} -m elf_s390"
9886	    ;;
9887	  sparc64-*linux*)
9888	    LD="${LD-ld} -m elf32_sparc"
9889	    ;;
9890	esac
9891	;;
9892      *64-bit*)
9893	case $host in
9894	  x86_64-*kfreebsd*-gnu)
9895	    LD="${LD-ld} -m elf_x86_64_fbsd"
9896	    ;;
9897	  x86_64-*linux*)
9898	    LD="${LD-ld} -m elf_x86_64"
9899	    ;;
9900	  powerpcle-*linux*)
9901	    LD="${LD-ld} -m elf64lppc"
9902	    ;;
9903	  powerpc-*linux*)
9904	    LD="${LD-ld} -m elf64ppc"
9905	    ;;
9906	  s390*-*linux*|s390*-*tpf*)
9907	    LD="${LD-ld} -m elf64_s390"
9908	    ;;
9909	  sparc*-*linux*)
9910	    LD="${LD-ld} -m elf64_sparc"
9911	    ;;
9912	esac
9913	;;
9914    esac
9915  fi
9916  rm -rf conftest*
9917  ;;
9918
9919*-*-sco3.2v5*)
9920  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9921  SAVE_CFLAGS=$CFLAGS
9922  CFLAGS="$CFLAGS -belf"
9923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9924$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9925if ${lt_cv_cc_needs_belf+:} false; then :
9926  $as_echo_n "(cached) " >&6
9927else
9928  ac_ext=c
9929ac_cpp='$CPP $CPPFLAGS'
9930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9932ac_compiler_gnu=$ac_cv_c_compiler_gnu
9933
9934     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9935/* end confdefs.h.  */
9936
9937int
9938main ()
9939{
9940
9941  ;
9942  return 0;
9943}
9944_ACEOF
9945if ac_fn_c_try_link "$LINENO"; then :
9946  lt_cv_cc_needs_belf=yes
9947else
9948  lt_cv_cc_needs_belf=no
9949fi
9950rm -f core conftest.err conftest.$ac_objext \
9951    conftest$ac_exeext conftest.$ac_ext
9952     ac_ext=c
9953ac_cpp='$CPP $CPPFLAGS'
9954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9956ac_compiler_gnu=$ac_cv_c_compiler_gnu
9957
9958fi
9959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9960$as_echo "$lt_cv_cc_needs_belf" >&6; }
9961  if test yes != "$lt_cv_cc_needs_belf"; then
9962    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9963    CFLAGS=$SAVE_CFLAGS
9964  fi
9965  ;;
9966*-*solaris*)
9967  # Find out what ABI is being produced by ac_compile, and set linker
9968  # options accordingly.
9969  echo 'int i;' > conftest.$ac_ext
9970  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9971  (eval $ac_compile) 2>&5
9972  ac_status=$?
9973  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9974  test $ac_status = 0; }; then
9975    case `/usr/bin/file conftest.o` in
9976    *64-bit*)
9977      case $lt_cv_prog_gnu_ld in
9978      yes*)
9979        case $host in
9980        i?86-*-solaris*|x86_64-*-solaris*)
9981          LD="${LD-ld} -m elf_x86_64"
9982          ;;
9983        sparc*-*-solaris*)
9984          LD="${LD-ld} -m elf64_sparc"
9985          ;;
9986        esac
9987        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9988        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9989          LD=${LD-ld}_sol2
9990        fi
9991        ;;
9992      *)
9993	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9994	  LD="${LD-ld} -64"
9995	fi
9996	;;
9997      esac
9998      ;;
9999    esac
10000  fi
10001  rm -rf conftest*
10002  ;;
10003esac
10004
10005need_locks=$enable_libtool_lock
10006
10007if test -n "$ac_tool_prefix"; then
10008  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10009set dummy ${ac_tool_prefix}mt; ac_word=$2
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10011$as_echo_n "checking for $ac_word... " >&6; }
10012if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10013  $as_echo_n "(cached) " >&6
10014else
10015  if test -n "$MANIFEST_TOOL"; then
10016  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10017else
10018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019for as_dir in $PATH
10020do
10021  IFS=$as_save_IFS
10022  test -z "$as_dir" && as_dir=.
10023    for ac_exec_ext in '' $ac_executable_extensions; do
10024  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10025    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10027    break 2
10028  fi
10029done
10030  done
10031IFS=$as_save_IFS
10032
10033fi
10034fi
10035MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10036if test -n "$MANIFEST_TOOL"; then
10037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10038$as_echo "$MANIFEST_TOOL" >&6; }
10039else
10040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041$as_echo "no" >&6; }
10042fi
10043
10044
10045fi
10046if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10047  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10048  # Extract the first word of "mt", so it can be a program name with args.
10049set dummy mt; ac_word=$2
10050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10051$as_echo_n "checking for $ac_word... " >&6; }
10052if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10053  $as_echo_n "(cached) " >&6
10054else
10055  if test -n "$ac_ct_MANIFEST_TOOL"; then
10056  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10057else
10058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059for as_dir in $PATH
10060do
10061  IFS=$as_save_IFS
10062  test -z "$as_dir" && as_dir=.
10063    for ac_exec_ext in '' $ac_executable_extensions; do
10064  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10065    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10067    break 2
10068  fi
10069done
10070  done
10071IFS=$as_save_IFS
10072
10073fi
10074fi
10075ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10076if test -n "$ac_ct_MANIFEST_TOOL"; then
10077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10078$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10079else
10080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10081$as_echo "no" >&6; }
10082fi
10083
10084  if test "x$ac_ct_MANIFEST_TOOL" = x; then
10085    MANIFEST_TOOL=":"
10086  else
10087    case $cross_compiling:$ac_tool_warned in
10088yes:)
10089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10091ac_tool_warned=yes ;;
10092esac
10093    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10094  fi
10095else
10096  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10097fi
10098
10099test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10101$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10102if ${lt_cv_path_mainfest_tool+:} false; then :
10103  $as_echo_n "(cached) " >&6
10104else
10105  lt_cv_path_mainfest_tool=no
10106  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10107  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10108  cat conftest.err >&5
10109  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10110    lt_cv_path_mainfest_tool=yes
10111  fi
10112  rm -f conftest*
10113fi
10114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10115$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10116if test yes != "$lt_cv_path_mainfest_tool"; then
10117  MANIFEST_TOOL=:
10118fi
10119
10120
10121
10122
10123
10124
10125  case $host_os in
10126    rhapsody* | darwin*)
10127    if test -n "$ac_tool_prefix"; then
10128  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10129set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10131$as_echo_n "checking for $ac_word... " >&6; }
10132if ${ac_cv_prog_DSYMUTIL+:} false; then :
10133  $as_echo_n "(cached) " >&6
10134else
10135  if test -n "$DSYMUTIL"; then
10136  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10137else
10138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139for as_dir in $PATH
10140do
10141  IFS=$as_save_IFS
10142  test -z "$as_dir" && as_dir=.
10143    for ac_exec_ext in '' $ac_executable_extensions; do
10144  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10145    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10147    break 2
10148  fi
10149done
10150  done
10151IFS=$as_save_IFS
10152
10153fi
10154fi
10155DSYMUTIL=$ac_cv_prog_DSYMUTIL
10156if test -n "$DSYMUTIL"; then
10157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10158$as_echo "$DSYMUTIL" >&6; }
10159else
10160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161$as_echo "no" >&6; }
10162fi
10163
10164
10165fi
10166if test -z "$ac_cv_prog_DSYMUTIL"; then
10167  ac_ct_DSYMUTIL=$DSYMUTIL
10168  # Extract the first word of "dsymutil", so it can be a program name with args.
10169set dummy dsymutil; ac_word=$2
10170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10171$as_echo_n "checking for $ac_word... " >&6; }
10172if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10173  $as_echo_n "(cached) " >&6
10174else
10175  if test -n "$ac_ct_DSYMUTIL"; then
10176  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10177else
10178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10179for as_dir in $PATH
10180do
10181  IFS=$as_save_IFS
10182  test -z "$as_dir" && as_dir=.
10183    for ac_exec_ext in '' $ac_executable_extensions; do
10184  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10185    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10187    break 2
10188  fi
10189done
10190  done
10191IFS=$as_save_IFS
10192
10193fi
10194fi
10195ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10196if test -n "$ac_ct_DSYMUTIL"; then
10197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10198$as_echo "$ac_ct_DSYMUTIL" >&6; }
10199else
10200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10201$as_echo "no" >&6; }
10202fi
10203
10204  if test "x$ac_ct_DSYMUTIL" = x; then
10205    DSYMUTIL=":"
10206  else
10207    case $cross_compiling:$ac_tool_warned in
10208yes:)
10209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10211ac_tool_warned=yes ;;
10212esac
10213    DSYMUTIL=$ac_ct_DSYMUTIL
10214  fi
10215else
10216  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10217fi
10218
10219    if test -n "$ac_tool_prefix"; then
10220  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10221set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10223$as_echo_n "checking for $ac_word... " >&6; }
10224if ${ac_cv_prog_NMEDIT+:} false; then :
10225  $as_echo_n "(cached) " >&6
10226else
10227  if test -n "$NMEDIT"; then
10228  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10229else
10230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231for as_dir in $PATH
10232do
10233  IFS=$as_save_IFS
10234  test -z "$as_dir" && as_dir=.
10235    for ac_exec_ext in '' $ac_executable_extensions; do
10236  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10237    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10239    break 2
10240  fi
10241done
10242  done
10243IFS=$as_save_IFS
10244
10245fi
10246fi
10247NMEDIT=$ac_cv_prog_NMEDIT
10248if test -n "$NMEDIT"; then
10249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10250$as_echo "$NMEDIT" >&6; }
10251else
10252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253$as_echo "no" >&6; }
10254fi
10255
10256
10257fi
10258if test -z "$ac_cv_prog_NMEDIT"; then
10259  ac_ct_NMEDIT=$NMEDIT
10260  # Extract the first word of "nmedit", so it can be a program name with args.
10261set dummy nmedit; ac_word=$2
10262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10263$as_echo_n "checking for $ac_word... " >&6; }
10264if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10265  $as_echo_n "(cached) " >&6
10266else
10267  if test -n "$ac_ct_NMEDIT"; then
10268  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10269else
10270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10271for as_dir in $PATH
10272do
10273  IFS=$as_save_IFS
10274  test -z "$as_dir" && as_dir=.
10275    for ac_exec_ext in '' $ac_executable_extensions; do
10276  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10277    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10279    break 2
10280  fi
10281done
10282  done
10283IFS=$as_save_IFS
10284
10285fi
10286fi
10287ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10288if test -n "$ac_ct_NMEDIT"; then
10289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10290$as_echo "$ac_ct_NMEDIT" >&6; }
10291else
10292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10293$as_echo "no" >&6; }
10294fi
10295
10296  if test "x$ac_ct_NMEDIT" = x; then
10297    NMEDIT=":"
10298  else
10299    case $cross_compiling:$ac_tool_warned in
10300yes:)
10301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10303ac_tool_warned=yes ;;
10304esac
10305    NMEDIT=$ac_ct_NMEDIT
10306  fi
10307else
10308  NMEDIT="$ac_cv_prog_NMEDIT"
10309fi
10310
10311    if test -n "$ac_tool_prefix"; then
10312  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10313set dummy ${ac_tool_prefix}lipo; ac_word=$2
10314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10315$as_echo_n "checking for $ac_word... " >&6; }
10316if ${ac_cv_prog_LIPO+:} false; then :
10317  $as_echo_n "(cached) " >&6
10318else
10319  if test -n "$LIPO"; then
10320  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10321else
10322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10323for as_dir in $PATH
10324do
10325  IFS=$as_save_IFS
10326  test -z "$as_dir" && as_dir=.
10327    for ac_exec_ext in '' $ac_executable_extensions; do
10328  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10329    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10331    break 2
10332  fi
10333done
10334  done
10335IFS=$as_save_IFS
10336
10337fi
10338fi
10339LIPO=$ac_cv_prog_LIPO
10340if test -n "$LIPO"; then
10341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10342$as_echo "$LIPO" >&6; }
10343else
10344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345$as_echo "no" >&6; }
10346fi
10347
10348
10349fi
10350if test -z "$ac_cv_prog_LIPO"; then
10351  ac_ct_LIPO=$LIPO
10352  # Extract the first word of "lipo", so it can be a program name with args.
10353set dummy lipo; ac_word=$2
10354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10355$as_echo_n "checking for $ac_word... " >&6; }
10356if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10357  $as_echo_n "(cached) " >&6
10358else
10359  if test -n "$ac_ct_LIPO"; then
10360  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10361else
10362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363for as_dir in $PATH
10364do
10365  IFS=$as_save_IFS
10366  test -z "$as_dir" && as_dir=.
10367    for ac_exec_ext in '' $ac_executable_extensions; do
10368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10369    ac_cv_prog_ac_ct_LIPO="lipo"
10370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10371    break 2
10372  fi
10373done
10374  done
10375IFS=$as_save_IFS
10376
10377fi
10378fi
10379ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10380if test -n "$ac_ct_LIPO"; then
10381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10382$as_echo "$ac_ct_LIPO" >&6; }
10383else
10384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10385$as_echo "no" >&6; }
10386fi
10387
10388  if test "x$ac_ct_LIPO" = x; then
10389    LIPO=":"
10390  else
10391    case $cross_compiling:$ac_tool_warned in
10392yes:)
10393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10395ac_tool_warned=yes ;;
10396esac
10397    LIPO=$ac_ct_LIPO
10398  fi
10399else
10400  LIPO="$ac_cv_prog_LIPO"
10401fi
10402
10403    if test -n "$ac_tool_prefix"; then
10404  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10405set dummy ${ac_tool_prefix}otool; ac_word=$2
10406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10407$as_echo_n "checking for $ac_word... " >&6; }
10408if ${ac_cv_prog_OTOOL+:} false; then :
10409  $as_echo_n "(cached) " >&6
10410else
10411  if test -n "$OTOOL"; then
10412  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10413else
10414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415for as_dir in $PATH
10416do
10417  IFS=$as_save_IFS
10418  test -z "$as_dir" && as_dir=.
10419    for ac_exec_ext in '' $ac_executable_extensions; do
10420  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10421    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10422    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10423    break 2
10424  fi
10425done
10426  done
10427IFS=$as_save_IFS
10428
10429fi
10430fi
10431OTOOL=$ac_cv_prog_OTOOL
10432if test -n "$OTOOL"; then
10433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10434$as_echo "$OTOOL" >&6; }
10435else
10436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437$as_echo "no" >&6; }
10438fi
10439
10440
10441fi
10442if test -z "$ac_cv_prog_OTOOL"; then
10443  ac_ct_OTOOL=$OTOOL
10444  # Extract the first word of "otool", so it can be a program name with args.
10445set dummy otool; ac_word=$2
10446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10447$as_echo_n "checking for $ac_word... " >&6; }
10448if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10449  $as_echo_n "(cached) " >&6
10450else
10451  if test -n "$ac_ct_OTOOL"; then
10452  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10453else
10454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10455for as_dir in $PATH
10456do
10457  IFS=$as_save_IFS
10458  test -z "$as_dir" && as_dir=.
10459    for ac_exec_ext in '' $ac_executable_extensions; do
10460  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10461    ac_cv_prog_ac_ct_OTOOL="otool"
10462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10463    break 2
10464  fi
10465done
10466  done
10467IFS=$as_save_IFS
10468
10469fi
10470fi
10471ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10472if test -n "$ac_ct_OTOOL"; then
10473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10474$as_echo "$ac_ct_OTOOL" >&6; }
10475else
10476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10477$as_echo "no" >&6; }
10478fi
10479
10480  if test "x$ac_ct_OTOOL" = x; then
10481    OTOOL=":"
10482  else
10483    case $cross_compiling:$ac_tool_warned in
10484yes:)
10485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10487ac_tool_warned=yes ;;
10488esac
10489    OTOOL=$ac_ct_OTOOL
10490  fi
10491else
10492  OTOOL="$ac_cv_prog_OTOOL"
10493fi
10494
10495    if test -n "$ac_tool_prefix"; then
10496  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10497set dummy ${ac_tool_prefix}otool64; ac_word=$2
10498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10499$as_echo_n "checking for $ac_word... " >&6; }
10500if ${ac_cv_prog_OTOOL64+:} false; then :
10501  $as_echo_n "(cached) " >&6
10502else
10503  if test -n "$OTOOL64"; then
10504  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10505else
10506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10507for as_dir in $PATH
10508do
10509  IFS=$as_save_IFS
10510  test -z "$as_dir" && as_dir=.
10511    for ac_exec_ext in '' $ac_executable_extensions; do
10512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10513    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10515    break 2
10516  fi
10517done
10518  done
10519IFS=$as_save_IFS
10520
10521fi
10522fi
10523OTOOL64=$ac_cv_prog_OTOOL64
10524if test -n "$OTOOL64"; then
10525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10526$as_echo "$OTOOL64" >&6; }
10527else
10528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10529$as_echo "no" >&6; }
10530fi
10531
10532
10533fi
10534if test -z "$ac_cv_prog_OTOOL64"; then
10535  ac_ct_OTOOL64=$OTOOL64
10536  # Extract the first word of "otool64", so it can be a program name with args.
10537set dummy otool64; ac_word=$2
10538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10539$as_echo_n "checking for $ac_word... " >&6; }
10540if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10541  $as_echo_n "(cached) " >&6
10542else
10543  if test -n "$ac_ct_OTOOL64"; then
10544  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10545else
10546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10547for as_dir in $PATH
10548do
10549  IFS=$as_save_IFS
10550  test -z "$as_dir" && as_dir=.
10551    for ac_exec_ext in '' $ac_executable_extensions; do
10552  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10553    ac_cv_prog_ac_ct_OTOOL64="otool64"
10554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10555    break 2
10556  fi
10557done
10558  done
10559IFS=$as_save_IFS
10560
10561fi
10562fi
10563ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10564if test -n "$ac_ct_OTOOL64"; then
10565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10566$as_echo "$ac_ct_OTOOL64" >&6; }
10567else
10568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10569$as_echo "no" >&6; }
10570fi
10571
10572  if test "x$ac_ct_OTOOL64" = x; then
10573    OTOOL64=":"
10574  else
10575    case $cross_compiling:$ac_tool_warned in
10576yes:)
10577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10579ac_tool_warned=yes ;;
10580esac
10581    OTOOL64=$ac_ct_OTOOL64
10582  fi
10583else
10584  OTOOL64="$ac_cv_prog_OTOOL64"
10585fi
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10614$as_echo_n "checking for -single_module linker flag... " >&6; }
10615if ${lt_cv_apple_cc_single_mod+:} false; then :
10616  $as_echo_n "(cached) " >&6
10617else
10618  lt_cv_apple_cc_single_mod=no
10619      if test -z "$LT_MULTI_MODULE"; then
10620	# By default we will add the -single_module flag. You can override
10621	# by either setting the environment variable LT_MULTI_MODULE
10622	# non-empty at configure time, or by adding -multi_module to the
10623	# link flags.
10624	rm -rf libconftest.dylib*
10625	echo "int foo(void){return 1;}" > conftest.c
10626	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10627-dynamiclib -Wl,-single_module conftest.c" >&5
10628	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10629	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10630        _lt_result=$?
10631	# If there is a non-empty error log, and "single_module"
10632	# appears in it, assume the flag caused a linker warning
10633        if test -s conftest.err && $GREP single_module conftest.err; then
10634	  cat conftest.err >&5
10635	# Otherwise, if the output was created with a 0 exit code from
10636	# the compiler, it worked.
10637	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10638	  lt_cv_apple_cc_single_mod=yes
10639	else
10640	  cat conftest.err >&5
10641	fi
10642	rm -rf libconftest.dylib*
10643	rm -f conftest.*
10644      fi
10645fi
10646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10647$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10648
10649    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10650$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10651if ${lt_cv_ld_exported_symbols_list+:} false; then :
10652  $as_echo_n "(cached) " >&6
10653else
10654  lt_cv_ld_exported_symbols_list=no
10655      save_LDFLAGS=$LDFLAGS
10656      echo "_main" > conftest.sym
10657      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10658      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10659/* end confdefs.h.  */
10660
10661int
10662main ()
10663{
10664
10665  ;
10666  return 0;
10667}
10668_ACEOF
10669if ac_fn_c_try_link "$LINENO"; then :
10670  lt_cv_ld_exported_symbols_list=yes
10671else
10672  lt_cv_ld_exported_symbols_list=no
10673fi
10674rm -f core conftest.err conftest.$ac_objext \
10675    conftest$ac_exeext conftest.$ac_ext
10676	LDFLAGS=$save_LDFLAGS
10677
10678fi
10679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10680$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10681
10682    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10683$as_echo_n "checking for -force_load linker flag... " >&6; }
10684if ${lt_cv_ld_force_load+:} false; then :
10685  $as_echo_n "(cached) " >&6
10686else
10687  lt_cv_ld_force_load=no
10688      cat > conftest.c << _LT_EOF
10689int forced_loaded() { return 2;}
10690_LT_EOF
10691      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10692      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10693      echo "$AR cru libconftest.a conftest.o" >&5
10694      $AR cru libconftest.a conftest.o 2>&5
10695      echo "$RANLIB libconftest.a" >&5
10696      $RANLIB libconftest.a 2>&5
10697      cat > conftest.c << _LT_EOF
10698int main() { return 0;}
10699_LT_EOF
10700      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10701      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10702      _lt_result=$?
10703      if test -s conftest.err && $GREP force_load conftest.err; then
10704	cat conftest.err >&5
10705      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10706	lt_cv_ld_force_load=yes
10707      else
10708	cat conftest.err >&5
10709      fi
10710        rm -f conftest.err libconftest.a conftest conftest.c
10711        rm -rf conftest.dSYM
10712
10713fi
10714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10715$as_echo "$lt_cv_ld_force_load" >&6; }
10716    case $host_os in
10717    rhapsody* | darwin1.[012])
10718      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10719    darwin1.*)
10720      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10721    darwin*) # darwin 5.x on
10722      # if running on 10.5 or later, the deployment target defaults
10723      # to the OS version, if on x86, and 10.4, the deployment
10724      # target defaults to 10.4. Don't you love it?
10725      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10726	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10727	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10728	10.[012][,.]*)
10729	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10730	10.*)
10731	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10732      esac
10733    ;;
10734  esac
10735    if test yes = "$lt_cv_apple_cc_single_mod"; then
10736      _lt_dar_single_mod='$single_module'
10737    fi
10738    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10739      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10740    else
10741      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10742    fi
10743    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10744      _lt_dsymutil='~$DSYMUTIL $lib || :'
10745    else
10746      _lt_dsymutil=
10747    fi
10748    ;;
10749  esac
10750
10751# func_munge_path_list VARIABLE PATH
10752# -----------------------------------
10753# VARIABLE is name of variable containing _space_ separated list of
10754# directories to be munged by the contents of PATH, which is string
10755# having a format:
10756# "DIR[:DIR]:"
10757#       string "DIR[ DIR]" will be prepended to VARIABLE
10758# ":DIR[:DIR]"
10759#       string "DIR[ DIR]" will be appended to VARIABLE
10760# "DIRP[:DIRP]::[DIRA:]DIRA"
10761#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10762#       "DIRA[ DIRA]" will be appended to VARIABLE
10763# "DIR[:DIR]"
10764#       VARIABLE will be replaced by "DIR[ DIR]"
10765func_munge_path_list ()
10766{
10767    case x$2 in
10768    x)
10769        ;;
10770    *:)
10771        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10772        ;;
10773    x:*)
10774        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10775        ;;
10776    *::*)
10777        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10778        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10779        ;;
10780    *)
10781        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10782        ;;
10783    esac
10784}
10785
10786ac_ext=c
10787ac_cpp='$CPP $CPPFLAGS'
10788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10790ac_compiler_gnu=$ac_cv_c_compiler_gnu
10791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
10792$as_echo_n "checking how to run the C preprocessor... " >&6; }
10793# On Suns, sometimes $CPP names a directory.
10794if test -n "$CPP" && test -d "$CPP"; then
10795  CPP=
10796fi
10797if test -z "$CPP"; then
10798  if ${ac_cv_prog_CPP+:} false; then :
10799  $as_echo_n "(cached) " >&6
10800else
10801      # Double quotes because CPP needs to be expanded
10802    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10803    do
10804      ac_preproc_ok=false
10805for ac_c_preproc_warn_flag in '' yes
10806do
10807  # Use a header file that comes with gcc, so configuring glibc
10808  # with a fresh cross-compiler works.
10809  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10810  # <limits.h> exists even on freestanding compilers.
10811  # On the NeXT, cc -E runs the code through the compiler's parser,
10812  # not just through cpp. "Syntax error" is here to catch this case.
10813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814/* end confdefs.h.  */
10815#ifdef __STDC__
10816# include <limits.h>
10817#else
10818# include <assert.h>
10819#endif
10820		     Syntax error
10821_ACEOF
10822if ac_fn_c_try_cpp "$LINENO"; then :
10823
10824else
10825  # Broken: fails on valid input.
10826continue
10827fi
10828rm -f conftest.err conftest.i conftest.$ac_ext
10829
10830  # OK, works on sane cases.  Now check whether nonexistent headers
10831  # can be detected and how.
10832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833/* end confdefs.h.  */
10834#include <ac_nonexistent.h>
10835_ACEOF
10836if ac_fn_c_try_cpp "$LINENO"; then :
10837  # Broken: success on invalid input.
10838continue
10839else
10840  # Passes both tests.
10841ac_preproc_ok=:
10842break
10843fi
10844rm -f conftest.err conftest.i conftest.$ac_ext
10845
10846done
10847# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10848rm -f conftest.i conftest.err conftest.$ac_ext
10849if $ac_preproc_ok; then :
10850  break
10851fi
10852
10853    done
10854    ac_cv_prog_CPP=$CPP
10855
10856fi
10857  CPP=$ac_cv_prog_CPP
10858else
10859  ac_cv_prog_CPP=$CPP
10860fi
10861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
10862$as_echo "$CPP" >&6; }
10863ac_preproc_ok=false
10864for ac_c_preproc_warn_flag in '' yes
10865do
10866  # Use a header file that comes with gcc, so configuring glibc
10867  # with a fresh cross-compiler works.
10868  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10869  # <limits.h> exists even on freestanding compilers.
10870  # On the NeXT, cc -E runs the code through the compiler's parser,
10871  # not just through cpp. "Syntax error" is here to catch this case.
10872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873/* end confdefs.h.  */
10874#ifdef __STDC__
10875# include <limits.h>
10876#else
10877# include <assert.h>
10878#endif
10879		     Syntax error
10880_ACEOF
10881if ac_fn_c_try_cpp "$LINENO"; then :
10882
10883else
10884  # Broken: fails on valid input.
10885continue
10886fi
10887rm -f conftest.err conftest.i conftest.$ac_ext
10888
10889  # OK, works on sane cases.  Now check whether nonexistent headers
10890  # can be detected and how.
10891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892/* end confdefs.h.  */
10893#include <ac_nonexistent.h>
10894_ACEOF
10895if ac_fn_c_try_cpp "$LINENO"; then :
10896  # Broken: success on invalid input.
10897continue
10898else
10899  # Passes both tests.
10900ac_preproc_ok=:
10901break
10902fi
10903rm -f conftest.err conftest.i conftest.$ac_ext
10904
10905done
10906# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10907rm -f conftest.i conftest.err conftest.$ac_ext
10908if $ac_preproc_ok; then :
10909
10910else
10911  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10913as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
10914See \`config.log' for more details" "$LINENO" 5; }
10915fi
10916
10917ac_ext=c
10918ac_cpp='$CPP $CPPFLAGS'
10919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10921ac_compiler_gnu=$ac_cv_c_compiler_gnu
10922
10923
10924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10925$as_echo_n "checking for ANSI C header files... " >&6; }
10926if ${ac_cv_header_stdc+:} false; then :
10927  $as_echo_n "(cached) " >&6
10928else
10929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930/* end confdefs.h.  */
10931#include <stdlib.h>
10932#include <stdarg.h>
10933#include <string.h>
10934#include <float.h>
10935
10936int
10937main ()
10938{
10939
10940  ;
10941  return 0;
10942}
10943_ACEOF
10944if ac_fn_c_try_compile "$LINENO"; then :
10945  ac_cv_header_stdc=yes
10946else
10947  ac_cv_header_stdc=no
10948fi
10949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10950
10951if test $ac_cv_header_stdc = yes; then
10952  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954/* end confdefs.h.  */
10955#include <string.h>
10956
10957_ACEOF
10958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10959  $EGREP "memchr" >/dev/null 2>&1; then :
10960
10961else
10962  ac_cv_header_stdc=no
10963fi
10964rm -f conftest*
10965
10966fi
10967
10968if test $ac_cv_header_stdc = yes; then
10969  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10971/* end confdefs.h.  */
10972#include <stdlib.h>
10973
10974_ACEOF
10975if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10976  $EGREP "free" >/dev/null 2>&1; then :
10977
10978else
10979  ac_cv_header_stdc=no
10980fi
10981rm -f conftest*
10982
10983fi
10984
10985if test $ac_cv_header_stdc = yes; then
10986  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10987  if test "$cross_compiling" = yes; then :
10988  :
10989else
10990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991/* end confdefs.h.  */
10992#include <ctype.h>
10993#include <stdlib.h>
10994#if ((' ' & 0x0FF) == 0x020)
10995# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10996# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10997#else
10998# define ISLOWER(c) \
10999		   (('a' <= (c) && (c) <= 'i') \
11000		     || ('j' <= (c) && (c) <= 'r') \
11001		     || ('s' <= (c) && (c) <= 'z'))
11002# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11003#endif
11004
11005#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11006int
11007main ()
11008{
11009  int i;
11010  for (i = 0; i < 256; i++)
11011    if (XOR (islower (i), ISLOWER (i))
11012	|| toupper (i) != TOUPPER (i))
11013      return 2;
11014  return 0;
11015}
11016_ACEOF
11017if ac_fn_c_try_run "$LINENO"; then :
11018
11019else
11020  ac_cv_header_stdc=no
11021fi
11022rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11023  conftest.$ac_objext conftest.beam conftest.$ac_ext
11024fi
11025
11026fi
11027fi
11028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11029$as_echo "$ac_cv_header_stdc" >&6; }
11030if test $ac_cv_header_stdc = yes; then
11031
11032$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11033
11034fi
11035
11036# On IRIX 5.3, sys/types and inttypes.h are conflicting.
11037for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11038		  inttypes.h stdint.h unistd.h
11039do :
11040  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11041ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11042"
11043if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11044  cat >>confdefs.h <<_ACEOF
11045#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11046_ACEOF
11047
11048fi
11049
11050done
11051
11052
11053for ac_header in dlfcn.h
11054do :
11055  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11056"
11057if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11058  cat >>confdefs.h <<_ACEOF
11059#define HAVE_DLFCN_H 1
11060_ACEOF
11061
11062fi
11063
11064done
11065
11066
11067
11068
11069
11070# Set options
11071
11072
11073
11074        enable_dlopen=no
11075
11076
11077  enable_win32_dll=no
11078
11079
11080            # Check whether --enable-shared was given.
11081if test "${enable_shared+set}" = set; then :
11082  enableval=$enable_shared; p=${PACKAGE-default}
11083    case $enableval in
11084    yes) enable_shared=yes ;;
11085    no) enable_shared=no ;;
11086    *)
11087      enable_shared=no
11088      # Look at the argument we got.  We use all the common list separators.
11089      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11090      for pkg in $enableval; do
11091	IFS=$lt_save_ifs
11092	if test "X$pkg" = "X$p"; then
11093	  enable_shared=yes
11094	fi
11095      done
11096      IFS=$lt_save_ifs
11097      ;;
11098    esac
11099else
11100  enable_shared=yes
11101fi
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111  # Check whether --enable-static was given.
11112if test "${enable_static+set}" = set; then :
11113  enableval=$enable_static; p=${PACKAGE-default}
11114    case $enableval in
11115    yes) enable_static=yes ;;
11116    no) enable_static=no ;;
11117    *)
11118     enable_static=no
11119      # Look at the argument we got.  We use all the common list separators.
11120      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11121      for pkg in $enableval; do
11122	IFS=$lt_save_ifs
11123	if test "X$pkg" = "X$p"; then
11124	  enable_static=yes
11125	fi
11126      done
11127      IFS=$lt_save_ifs
11128      ;;
11129    esac
11130else
11131  enable_static=yes
11132fi
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143# Check whether --with-pic was given.
11144if test "${with_pic+set}" = set; then :
11145  withval=$with_pic; lt_p=${PACKAGE-default}
11146    case $withval in
11147    yes|no) pic_mode=$withval ;;
11148    *)
11149      pic_mode=default
11150      # Look at the argument we got.  We use all the common list separators.
11151      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11152      for lt_pkg in $withval; do
11153	IFS=$lt_save_ifs
11154	if test "X$lt_pkg" = "X$lt_p"; then
11155	  pic_mode=yes
11156	fi
11157      done
11158      IFS=$lt_save_ifs
11159      ;;
11160    esac
11161else
11162  pic_mode=default
11163fi
11164
11165
11166
11167
11168
11169
11170
11171
11172  # Check whether --enable-fast-install was given.
11173if test "${enable_fast_install+set}" = set; then :
11174  enableval=$enable_fast_install; p=${PACKAGE-default}
11175    case $enableval in
11176    yes) enable_fast_install=yes ;;
11177    no) enable_fast_install=no ;;
11178    *)
11179      enable_fast_install=no
11180      # Look at the argument we got.  We use all the common list separators.
11181      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11182      for pkg in $enableval; do
11183	IFS=$lt_save_ifs
11184	if test "X$pkg" = "X$p"; then
11185	  enable_fast_install=yes
11186	fi
11187      done
11188      IFS=$lt_save_ifs
11189      ;;
11190    esac
11191else
11192  enable_fast_install=yes
11193fi
11194
11195
11196
11197
11198
11199
11200
11201
11202  shared_archive_member_spec=
11203case $host,$enable_shared in
11204power*-*-aix[5-9]*,yes)
11205  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11206$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11207
11208# Check whether --with-aix-soname was given.
11209if test "${with_aix_soname+set}" = set; then :
11210  withval=$with_aix_soname; case $withval in
11211    aix|svr4|both)
11212      ;;
11213    *)
11214      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11215      ;;
11216    esac
11217    lt_cv_with_aix_soname=$with_aix_soname
11218else
11219  if ${lt_cv_with_aix_soname+:} false; then :
11220  $as_echo_n "(cached) " >&6
11221else
11222  lt_cv_with_aix_soname=aix
11223fi
11224
11225    with_aix_soname=$lt_cv_with_aix_soname
11226fi
11227
11228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11229$as_echo "$with_aix_soname" >&6; }
11230  if test aix != "$with_aix_soname"; then
11231    # For the AIX way of multilib, we name the shared archive member
11232    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11233    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11234    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11235    # the AIX toolchain works better with OBJECT_MODE set (default 32).
11236    if test 64 = "${OBJECT_MODE-32}"; then
11237      shared_archive_member_spec=shr_64
11238    else
11239      shared_archive_member_spec=shr
11240    fi
11241  fi
11242  ;;
11243*)
11244  with_aix_soname=aix
11245  ;;
11246esac
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257# This can be used to rebuild libtool when needed
11258LIBTOOL_DEPS=$ltmain
11259
11260# Always use our own libtool.
11261LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292test -z "$LN_S" && LN_S="ln -s"
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307if test -n "${ZSH_VERSION+set}"; then
11308   setopt NO_GLOB_SUBST
11309fi
11310
11311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11312$as_echo_n "checking for objdir... " >&6; }
11313if ${lt_cv_objdir+:} false; then :
11314  $as_echo_n "(cached) " >&6
11315else
11316  rm -f .libs 2>/dev/null
11317mkdir .libs 2>/dev/null
11318if test -d .libs; then
11319  lt_cv_objdir=.libs
11320else
11321  # MS-DOS does not allow filenames that begin with a dot.
11322  lt_cv_objdir=_libs
11323fi
11324rmdir .libs 2>/dev/null
11325fi
11326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11327$as_echo "$lt_cv_objdir" >&6; }
11328objdir=$lt_cv_objdir
11329
11330
11331
11332
11333
11334cat >>confdefs.h <<_ACEOF
11335#define LT_OBJDIR "$lt_cv_objdir/"
11336_ACEOF
11337
11338
11339
11340
11341case $host_os in
11342aix3*)
11343  # AIX sometimes has problems with the GCC collect2 program.  For some
11344  # reason, if we set the COLLECT_NAMES environment variable, the problems
11345  # vanish in a puff of smoke.
11346  if test set != "${COLLECT_NAMES+set}"; then
11347    COLLECT_NAMES=
11348    export COLLECT_NAMES
11349  fi
11350  ;;
11351esac
11352
11353# Global variables:
11354ofile=libtool
11355can_build_shared=yes
11356
11357# All known linkers require a '.a' archive for static linking (except MSVC,
11358# which needs '.lib').
11359libext=a
11360
11361with_gnu_ld=$lt_cv_prog_gnu_ld
11362
11363old_CC=$CC
11364old_CFLAGS=$CFLAGS
11365
11366# Set sane defaults for various variables
11367test -z "$CC" && CC=cc
11368test -z "$LTCC" && LTCC=$CC
11369test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11370test -z "$LD" && LD=ld
11371test -z "$ac_objext" && ac_objext=o
11372
11373func_cc_basename $compiler
11374cc_basename=$func_cc_basename_result
11375
11376
11377# Only perform the check for file, if the check method requires it
11378test -z "$MAGIC_CMD" && MAGIC_CMD=file
11379case $deplibs_check_method in
11380file_magic*)
11381  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11382    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11383$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11384if ${lt_cv_path_MAGIC_CMD+:} false; then :
11385  $as_echo_n "(cached) " >&6
11386else
11387  case $MAGIC_CMD in
11388[\\/*] |  ?:[\\/]*)
11389  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11390  ;;
11391*)
11392  lt_save_MAGIC_CMD=$MAGIC_CMD
11393  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11394  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11395  for ac_dir in $ac_dummy; do
11396    IFS=$lt_save_ifs
11397    test -z "$ac_dir" && ac_dir=.
11398    if test -f "$ac_dir/${ac_tool_prefix}file"; then
11399      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11400      if test -n "$file_magic_test_file"; then
11401	case $deplibs_check_method in
11402	"file_magic "*)
11403	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11404	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11405	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11406	    $EGREP "$file_magic_regex" > /dev/null; then
11407	    :
11408	  else
11409	    cat <<_LT_EOF 1>&2
11410
11411*** Warning: the command libtool uses to detect shared libraries,
11412*** $file_magic_cmd, produces output that libtool cannot recognize.
11413*** The result is that libtool may fail to recognize shared libraries
11414*** as such.  This will affect the creation of libtool libraries that
11415*** depend on shared libraries, but programs linked with such libtool
11416*** libraries will work regardless of this problem.  Nevertheless, you
11417*** may want to report the problem to your system manager and/or to
11418*** bug-libtool@gnu.org
11419
11420_LT_EOF
11421	  fi ;;
11422	esac
11423      fi
11424      break
11425    fi
11426  done
11427  IFS=$lt_save_ifs
11428  MAGIC_CMD=$lt_save_MAGIC_CMD
11429  ;;
11430esac
11431fi
11432
11433MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11434if test -n "$MAGIC_CMD"; then
11435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11436$as_echo "$MAGIC_CMD" >&6; }
11437else
11438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11439$as_echo "no" >&6; }
11440fi
11441
11442
11443
11444
11445
11446if test -z "$lt_cv_path_MAGIC_CMD"; then
11447  if test -n "$ac_tool_prefix"; then
11448    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11449$as_echo_n "checking for file... " >&6; }
11450if ${lt_cv_path_MAGIC_CMD+:} false; then :
11451  $as_echo_n "(cached) " >&6
11452else
11453  case $MAGIC_CMD in
11454[\\/*] |  ?:[\\/]*)
11455  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11456  ;;
11457*)
11458  lt_save_MAGIC_CMD=$MAGIC_CMD
11459  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11460  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11461  for ac_dir in $ac_dummy; do
11462    IFS=$lt_save_ifs
11463    test -z "$ac_dir" && ac_dir=.
11464    if test -f "$ac_dir/file"; then
11465      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11466      if test -n "$file_magic_test_file"; then
11467	case $deplibs_check_method in
11468	"file_magic "*)
11469	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11470	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11471	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11472	    $EGREP "$file_magic_regex" > /dev/null; then
11473	    :
11474	  else
11475	    cat <<_LT_EOF 1>&2
11476
11477*** Warning: the command libtool uses to detect shared libraries,
11478*** $file_magic_cmd, produces output that libtool cannot recognize.
11479*** The result is that libtool may fail to recognize shared libraries
11480*** as such.  This will affect the creation of libtool libraries that
11481*** depend on shared libraries, but programs linked with such libtool
11482*** libraries will work regardless of this problem.  Nevertheless, you
11483*** may want to report the problem to your system manager and/or to
11484*** bug-libtool@gnu.org
11485
11486_LT_EOF
11487	  fi ;;
11488	esac
11489      fi
11490      break
11491    fi
11492  done
11493  IFS=$lt_save_ifs
11494  MAGIC_CMD=$lt_save_MAGIC_CMD
11495  ;;
11496esac
11497fi
11498
11499MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11500if test -n "$MAGIC_CMD"; then
11501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11502$as_echo "$MAGIC_CMD" >&6; }
11503else
11504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505$as_echo "no" >&6; }
11506fi
11507
11508
11509  else
11510    MAGIC_CMD=:
11511  fi
11512fi
11513
11514  fi
11515  ;;
11516esac
11517
11518# Use C for the default configuration in the libtool script
11519
11520lt_save_CC=$CC
11521ac_ext=c
11522ac_cpp='$CPP $CPPFLAGS'
11523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11525ac_compiler_gnu=$ac_cv_c_compiler_gnu
11526
11527
11528# Source file extension for C test sources.
11529ac_ext=c
11530
11531# Object file extension for compiled C test sources.
11532objext=o
11533objext=$objext
11534
11535# Code to be used in simple compile tests
11536lt_simple_compile_test_code="int some_variable = 0;"
11537
11538# Code to be used in simple link tests
11539lt_simple_link_test_code='int main(){return(0);}'
11540
11541
11542
11543
11544
11545
11546
11547# If no C compiler was specified, use CC.
11548LTCC=${LTCC-"$CC"}
11549
11550# If no C compiler flags were specified, use CFLAGS.
11551LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11552
11553# Allow CC to be a program name with arguments.
11554compiler=$CC
11555
11556# Save the default compiler, since it gets overwritten when the other
11557# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11558compiler_DEFAULT=$CC
11559
11560# save warnings/boilerplate of simple test code
11561ac_outfile=conftest.$ac_objext
11562echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11563eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11564_lt_compiler_boilerplate=`cat conftest.err`
11565$RM conftest*
11566
11567ac_outfile=conftest.$ac_objext
11568echo "$lt_simple_link_test_code" >conftest.$ac_ext
11569eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11570_lt_linker_boilerplate=`cat conftest.err`
11571$RM -r conftest*
11572
11573
11574## CAVEAT EMPTOR:
11575## There is no encapsulation within the following macros, do not change
11576## the running order or otherwise move them around unless you know exactly
11577## what you are doing...
11578if test -n "$compiler"; then
11579
11580lt_prog_compiler_no_builtin_flag=
11581
11582if test yes = "$GCC"; then
11583  case $cc_basename in
11584  nvcc*)
11585    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11586  *)
11587    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11588  esac
11589
11590  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11591$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11592if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11593  $as_echo_n "(cached) " >&6
11594else
11595  lt_cv_prog_compiler_rtti_exceptions=no
11596   ac_outfile=conftest.$ac_objext
11597   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11598   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11599   # Insert the option either (1) after the last *FLAGS variable, or
11600   # (2) before a word containing "conftest.", or (3) at the end.
11601   # Note that $ac_compile itself does not contain backslashes and begins
11602   # with a dollar sign (not a hyphen), so the echo should work correctly.
11603   # The option is referenced via a variable to avoid confusing sed.
11604   lt_compile=`echo "$ac_compile" | $SED \
11605   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11606   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11607   -e 's:$: $lt_compiler_flag:'`
11608   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11609   (eval "$lt_compile" 2>conftest.err)
11610   ac_status=$?
11611   cat conftest.err >&5
11612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613   if (exit $ac_status) && test -s "$ac_outfile"; then
11614     # The compiler can only warn and ignore the option if not recognized
11615     # So say no if there are warnings other than the usual output.
11616     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11617     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11618     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11619       lt_cv_prog_compiler_rtti_exceptions=yes
11620     fi
11621   fi
11622   $RM conftest*
11623
11624fi
11625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11626$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11627
11628if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11629    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11630else
11631    :
11632fi
11633
11634fi
11635
11636
11637
11638
11639
11640
11641  lt_prog_compiler_wl=
11642lt_prog_compiler_pic=
11643lt_prog_compiler_static=
11644
11645
11646  if test yes = "$GCC"; then
11647    lt_prog_compiler_wl='-Wl,'
11648    lt_prog_compiler_static='-static'
11649
11650    case $host_os in
11651      aix*)
11652      # All AIX code is PIC.
11653      if test ia64 = "$host_cpu"; then
11654	# AIX 5 now supports IA64 processor
11655	lt_prog_compiler_static='-Bstatic'
11656      fi
11657      lt_prog_compiler_pic='-fPIC'
11658      ;;
11659
11660    amigaos*)
11661      case $host_cpu in
11662      powerpc)
11663            # see comment about AmigaOS4 .so support
11664            lt_prog_compiler_pic='-fPIC'
11665        ;;
11666      m68k)
11667            # FIXME: we need at least 68020 code to build shared libraries, but
11668            # adding the '-m68020' flag to GCC prevents building anything better,
11669            # like '-m68040'.
11670            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11671        ;;
11672      esac
11673      ;;
11674
11675    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11676      # PIC is the default for these OSes.
11677      ;;
11678
11679    mingw* | cygwin* | pw32* | os2* | cegcc*)
11680      # This hack is so that the source file can tell whether it is being
11681      # built for inclusion in a dll (and should export symbols for example).
11682      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11683      # (--disable-auto-import) libraries
11684      lt_prog_compiler_pic='-DDLL_EXPORT'
11685      case $host_os in
11686      os2*)
11687	lt_prog_compiler_static='$wl-static'
11688	;;
11689      esac
11690      ;;
11691
11692    darwin* | rhapsody*)
11693      # PIC is the default on this platform
11694      # Common symbols not allowed in MH_DYLIB files
11695      lt_prog_compiler_pic='-fno-common'
11696      ;;
11697
11698    haiku*)
11699      # PIC is the default for Haiku.
11700      # The "-static" flag exists, but is broken.
11701      lt_prog_compiler_static=
11702      ;;
11703
11704    hpux*)
11705      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11706      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11707      # sets the default TLS model and affects inlining.
11708      case $host_cpu in
11709      hppa*64*)
11710	# +Z the default
11711	;;
11712      *)
11713	lt_prog_compiler_pic='-fPIC'
11714	;;
11715      esac
11716      ;;
11717
11718    interix[3-9]*)
11719      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11720      # Instead, we relocate shared libraries at runtime.
11721      ;;
11722
11723    msdosdjgpp*)
11724      # Just because we use GCC doesn't mean we suddenly get shared libraries
11725      # on systems that don't support them.
11726      lt_prog_compiler_can_build_shared=no
11727      enable_shared=no
11728      ;;
11729
11730    *nto* | *qnx*)
11731      # QNX uses GNU C++, but need to define -shared option too, otherwise
11732      # it will coredump.
11733      lt_prog_compiler_pic='-fPIC -shared'
11734      ;;
11735
11736    sysv4*MP*)
11737      if test -d /usr/nec; then
11738	lt_prog_compiler_pic=-Kconform_pic
11739      fi
11740      ;;
11741
11742    *)
11743      lt_prog_compiler_pic='-fPIC'
11744      ;;
11745    esac
11746
11747    case $cc_basename in
11748    nvcc*) # Cuda Compiler Driver 2.2
11749      lt_prog_compiler_wl='-Xlinker '
11750      if test -n "$lt_prog_compiler_pic"; then
11751        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11752      fi
11753      ;;
11754    esac
11755  else
11756    # PORTME Check for flag to pass linker flags through the system compiler.
11757    case $host_os in
11758    aix*)
11759      lt_prog_compiler_wl='-Wl,'
11760      if test ia64 = "$host_cpu"; then
11761	# AIX 5 now supports IA64 processor
11762	lt_prog_compiler_static='-Bstatic'
11763      else
11764	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11765      fi
11766      ;;
11767
11768    darwin* | rhapsody*)
11769      # PIC is the default on this platform
11770      # Common symbols not allowed in MH_DYLIB files
11771      lt_prog_compiler_pic='-fno-common'
11772      case $cc_basename in
11773      nagfor*)
11774        # NAG Fortran compiler
11775        lt_prog_compiler_wl='-Wl,-Wl,,'
11776        lt_prog_compiler_pic='-PIC'
11777        lt_prog_compiler_static='-Bstatic'
11778        ;;
11779      esac
11780      ;;
11781
11782    mingw* | cygwin* | pw32* | os2* | cegcc*)
11783      # This hack is so that the source file can tell whether it is being
11784      # built for inclusion in a dll (and should export symbols for example).
11785      lt_prog_compiler_pic='-DDLL_EXPORT'
11786      case $host_os in
11787      os2*)
11788	lt_prog_compiler_static='$wl-static'
11789	;;
11790      esac
11791      ;;
11792
11793    hpux9* | hpux10* | hpux11*)
11794      lt_prog_compiler_wl='-Wl,'
11795      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11796      # not for PA HP-UX.
11797      case $host_cpu in
11798      hppa*64*|ia64*)
11799	# +Z the default
11800	;;
11801      *)
11802	lt_prog_compiler_pic='+Z'
11803	;;
11804      esac
11805      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11806      lt_prog_compiler_static='$wl-a ${wl}archive'
11807      ;;
11808
11809    irix5* | irix6* | nonstopux*)
11810      lt_prog_compiler_wl='-Wl,'
11811      # PIC (with -KPIC) is the default.
11812      lt_prog_compiler_static='-non_shared'
11813      ;;
11814
11815    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11816      case $cc_basename in
11817      # old Intel for x86_64, which still supported -KPIC.
11818      ecc*)
11819	lt_prog_compiler_wl='-Wl,'
11820	lt_prog_compiler_pic='-KPIC'
11821	lt_prog_compiler_static='-static'
11822        ;;
11823      # icc used to be incompatible with GCC.
11824      # ICC 10 doesn't accept -KPIC any more.
11825      icc* | ifort*)
11826	lt_prog_compiler_wl='-Wl,'
11827	lt_prog_compiler_pic='-fPIC'
11828	lt_prog_compiler_static='-static'
11829        ;;
11830      # Lahey Fortran 8.1.
11831      lf95*)
11832	lt_prog_compiler_wl='-Wl,'
11833	lt_prog_compiler_pic='--shared'
11834	lt_prog_compiler_static='--static'
11835	;;
11836      nagfor*)
11837	# NAG Fortran compiler
11838	lt_prog_compiler_wl='-Wl,-Wl,,'
11839	lt_prog_compiler_pic='-PIC'
11840	lt_prog_compiler_static='-Bstatic'
11841	;;
11842      tcc*)
11843	# Fabrice Bellard et al's Tiny C Compiler
11844	lt_prog_compiler_wl='-Wl,'
11845	lt_prog_compiler_pic='-fPIC'
11846	lt_prog_compiler_static='-static'
11847	;;
11848      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11849        # Portland Group compilers (*not* the Pentium gcc compiler,
11850	# which looks to be a dead project)
11851	lt_prog_compiler_wl='-Wl,'
11852	lt_prog_compiler_pic='-fpic'
11853	lt_prog_compiler_static='-Bstatic'
11854        ;;
11855      ccc*)
11856        lt_prog_compiler_wl='-Wl,'
11857        # All Alpha code is PIC.
11858        lt_prog_compiler_static='-non_shared'
11859        ;;
11860      xl* | bgxl* | bgf* | mpixl*)
11861	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11862	lt_prog_compiler_wl='-Wl,'
11863	lt_prog_compiler_pic='-qpic'
11864	lt_prog_compiler_static='-qstaticlink'
11865	;;
11866      *)
11867	case `$CC -V 2>&1 | sed 5q` in
11868	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11869	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11870	  lt_prog_compiler_pic='-KPIC'
11871	  lt_prog_compiler_static='-Bstatic'
11872	  lt_prog_compiler_wl=''
11873	  ;;
11874	*Sun\ F* | *Sun*Fortran*)
11875	  lt_prog_compiler_pic='-KPIC'
11876	  lt_prog_compiler_static='-Bstatic'
11877	  lt_prog_compiler_wl='-Qoption ld '
11878	  ;;
11879	*Sun\ C*)
11880	  # Sun C 5.9
11881	  lt_prog_compiler_pic='-KPIC'
11882	  lt_prog_compiler_static='-Bstatic'
11883	  lt_prog_compiler_wl='-Wl,'
11884	  ;;
11885        *Intel*\ [CF]*Compiler*)
11886	  lt_prog_compiler_wl='-Wl,'
11887	  lt_prog_compiler_pic='-fPIC'
11888	  lt_prog_compiler_static='-static'
11889	  ;;
11890	*Portland\ Group*)
11891	  lt_prog_compiler_wl='-Wl,'
11892	  lt_prog_compiler_pic='-fpic'
11893	  lt_prog_compiler_static='-Bstatic'
11894	  ;;
11895	esac
11896	;;
11897      esac
11898      ;;
11899
11900    newsos6)
11901      lt_prog_compiler_pic='-KPIC'
11902      lt_prog_compiler_static='-Bstatic'
11903      ;;
11904
11905    *nto* | *qnx*)
11906      # QNX uses GNU C++, but need to define -shared option too, otherwise
11907      # it will coredump.
11908      lt_prog_compiler_pic='-fPIC -shared'
11909      ;;
11910
11911    osf3* | osf4* | osf5*)
11912      lt_prog_compiler_wl='-Wl,'
11913      # All OSF/1 code is PIC.
11914      lt_prog_compiler_static='-non_shared'
11915      ;;
11916
11917    rdos*)
11918      lt_prog_compiler_static='-non_shared'
11919      ;;
11920
11921    solaris*)
11922      lt_prog_compiler_pic='-KPIC'
11923      lt_prog_compiler_static='-Bstatic'
11924      case $cc_basename in
11925      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11926	lt_prog_compiler_wl='-Qoption ld ';;
11927      *)
11928	lt_prog_compiler_wl='-Wl,';;
11929      esac
11930      ;;
11931
11932    sunos4*)
11933      lt_prog_compiler_wl='-Qoption ld '
11934      lt_prog_compiler_pic='-PIC'
11935      lt_prog_compiler_static='-Bstatic'
11936      ;;
11937
11938    sysv4 | sysv4.2uw2* | sysv4.3*)
11939      lt_prog_compiler_wl='-Wl,'
11940      lt_prog_compiler_pic='-KPIC'
11941      lt_prog_compiler_static='-Bstatic'
11942      ;;
11943
11944    sysv4*MP*)
11945      if test -d /usr/nec; then
11946	lt_prog_compiler_pic='-Kconform_pic'
11947	lt_prog_compiler_static='-Bstatic'
11948      fi
11949      ;;
11950
11951    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11952      lt_prog_compiler_wl='-Wl,'
11953      lt_prog_compiler_pic='-KPIC'
11954      lt_prog_compiler_static='-Bstatic'
11955      ;;
11956
11957    unicos*)
11958      lt_prog_compiler_wl='-Wl,'
11959      lt_prog_compiler_can_build_shared=no
11960      ;;
11961
11962    uts4*)
11963      lt_prog_compiler_pic='-pic'
11964      lt_prog_compiler_static='-Bstatic'
11965      ;;
11966
11967    *)
11968      lt_prog_compiler_can_build_shared=no
11969      ;;
11970    esac
11971  fi
11972
11973case $host_os in
11974  # For platforms that do not support PIC, -DPIC is meaningless:
11975  *djgpp*)
11976    lt_prog_compiler_pic=
11977    ;;
11978  *)
11979    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11980    ;;
11981esac
11982
11983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11984$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11985if ${lt_cv_prog_compiler_pic+:} false; then :
11986  $as_echo_n "(cached) " >&6
11987else
11988  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11989fi
11990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11991$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11992lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11993
11994#
11995# Check to make sure the PIC flag actually works.
11996#
11997if test -n "$lt_prog_compiler_pic"; then
11998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11999$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12000if ${lt_cv_prog_compiler_pic_works+:} false; then :
12001  $as_echo_n "(cached) " >&6
12002else
12003  lt_cv_prog_compiler_pic_works=no
12004   ac_outfile=conftest.$ac_objext
12005   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12006   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12007   # Insert the option either (1) after the last *FLAGS variable, or
12008   # (2) before a word containing "conftest.", or (3) at the end.
12009   # Note that $ac_compile itself does not contain backslashes and begins
12010   # with a dollar sign (not a hyphen), so the echo should work correctly.
12011   # The option is referenced via a variable to avoid confusing sed.
12012   lt_compile=`echo "$ac_compile" | $SED \
12013   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12014   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12015   -e 's:$: $lt_compiler_flag:'`
12016   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12017   (eval "$lt_compile" 2>conftest.err)
12018   ac_status=$?
12019   cat conftest.err >&5
12020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021   if (exit $ac_status) && test -s "$ac_outfile"; then
12022     # The compiler can only warn and ignore the option if not recognized
12023     # So say no if there are warnings other than the usual output.
12024     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12025     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12026     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12027       lt_cv_prog_compiler_pic_works=yes
12028     fi
12029   fi
12030   $RM conftest*
12031
12032fi
12033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12034$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12035
12036if test yes = "$lt_cv_prog_compiler_pic_works"; then
12037    case $lt_prog_compiler_pic in
12038     "" | " "*) ;;
12039     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12040     esac
12041else
12042    lt_prog_compiler_pic=
12043     lt_prog_compiler_can_build_shared=no
12044fi
12045
12046fi
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058#
12059# Check to make sure the static flag actually works.
12060#
12061wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12063$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12064if ${lt_cv_prog_compiler_static_works+:} false; then :
12065  $as_echo_n "(cached) " >&6
12066else
12067  lt_cv_prog_compiler_static_works=no
12068   save_LDFLAGS=$LDFLAGS
12069   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12070   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12071   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12072     # The linker can only warn and ignore the option if not recognized
12073     # So say no if there are warnings
12074     if test -s conftest.err; then
12075       # Append any errors to the config.log.
12076       cat conftest.err 1>&5
12077       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12078       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12079       if diff conftest.exp conftest.er2 >/dev/null; then
12080         lt_cv_prog_compiler_static_works=yes
12081       fi
12082     else
12083       lt_cv_prog_compiler_static_works=yes
12084     fi
12085   fi
12086   $RM -r conftest*
12087   LDFLAGS=$save_LDFLAGS
12088
12089fi
12090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12091$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12092
12093if test yes = "$lt_cv_prog_compiler_static_works"; then
12094    :
12095else
12096    lt_prog_compiler_static=
12097fi
12098
12099
12100
12101
12102
12103
12104
12105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12106$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12107if ${lt_cv_prog_compiler_c_o+:} false; then :
12108  $as_echo_n "(cached) " >&6
12109else
12110  lt_cv_prog_compiler_c_o=no
12111   $RM -r conftest 2>/dev/null
12112   mkdir conftest
12113   cd conftest
12114   mkdir out
12115   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12116
12117   lt_compiler_flag="-o out/conftest2.$ac_objext"
12118   # Insert the option either (1) after the last *FLAGS variable, or
12119   # (2) before a word containing "conftest.", or (3) at the end.
12120   # Note that $ac_compile itself does not contain backslashes and begins
12121   # with a dollar sign (not a hyphen), so the echo should work correctly.
12122   lt_compile=`echo "$ac_compile" | $SED \
12123   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12124   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12125   -e 's:$: $lt_compiler_flag:'`
12126   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12127   (eval "$lt_compile" 2>out/conftest.err)
12128   ac_status=$?
12129   cat out/conftest.err >&5
12130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12132   then
12133     # The compiler can only warn and ignore the option if not recognized
12134     # So say no if there are warnings
12135     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12136     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12137     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12138       lt_cv_prog_compiler_c_o=yes
12139     fi
12140   fi
12141   chmod u+w . 2>&5
12142   $RM conftest*
12143   # SGI C++ compiler will create directory out/ii_files/ for
12144   # template instantiation
12145   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12146   $RM out/* && rmdir out
12147   cd ..
12148   $RM -r conftest
12149   $RM conftest*
12150
12151fi
12152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12153$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12154
12155
12156
12157
12158
12159
12160  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12161$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12162if ${lt_cv_prog_compiler_c_o+:} false; then :
12163  $as_echo_n "(cached) " >&6
12164else
12165  lt_cv_prog_compiler_c_o=no
12166   $RM -r conftest 2>/dev/null
12167   mkdir conftest
12168   cd conftest
12169   mkdir out
12170   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12171
12172   lt_compiler_flag="-o out/conftest2.$ac_objext"
12173   # Insert the option either (1) after the last *FLAGS variable, or
12174   # (2) before a word containing "conftest.", or (3) at the end.
12175   # Note that $ac_compile itself does not contain backslashes and begins
12176   # with a dollar sign (not a hyphen), so the echo should work correctly.
12177   lt_compile=`echo "$ac_compile" | $SED \
12178   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12179   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12180   -e 's:$: $lt_compiler_flag:'`
12181   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12182   (eval "$lt_compile" 2>out/conftest.err)
12183   ac_status=$?
12184   cat out/conftest.err >&5
12185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12187   then
12188     # The compiler can only warn and ignore the option if not recognized
12189     # So say no if there are warnings
12190     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12191     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12192     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12193       lt_cv_prog_compiler_c_o=yes
12194     fi
12195   fi
12196   chmod u+w . 2>&5
12197   $RM conftest*
12198   # SGI C++ compiler will create directory out/ii_files/ for
12199   # template instantiation
12200   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12201   $RM out/* && rmdir out
12202   cd ..
12203   $RM -r conftest
12204   $RM conftest*
12205
12206fi
12207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12208$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12209
12210
12211
12212
12213hard_links=nottested
12214if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12215  # do not overwrite the value of need_locks provided by the user
12216  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12217$as_echo_n "checking if we can lock with hard links... " >&6; }
12218  hard_links=yes
12219  $RM conftest*
12220  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12221  touch conftest.a
12222  ln conftest.a conftest.b 2>&5 || hard_links=no
12223  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12225$as_echo "$hard_links" >&6; }
12226  if test no = "$hard_links"; then
12227    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12228$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12229    need_locks=warn
12230  fi
12231else
12232  need_locks=no
12233fi
12234
12235
12236
12237
12238
12239
12240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12241$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12242
12243  runpath_var=
12244  allow_undefined_flag=
12245  always_export_symbols=no
12246  archive_cmds=
12247  archive_expsym_cmds=
12248  compiler_needs_object=no
12249  enable_shared_with_static_runtimes=no
12250  export_dynamic_flag_spec=
12251  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12252  hardcode_automatic=no
12253  hardcode_direct=no
12254  hardcode_direct_absolute=no
12255  hardcode_libdir_flag_spec=
12256  hardcode_libdir_separator=
12257  hardcode_minus_L=no
12258  hardcode_shlibpath_var=unsupported
12259  inherit_rpath=no
12260  link_all_deplibs=unknown
12261  module_cmds=
12262  module_expsym_cmds=
12263  old_archive_from_new_cmds=
12264  old_archive_from_expsyms_cmds=
12265  thread_safe_flag_spec=
12266  whole_archive_flag_spec=
12267  # include_expsyms should be a list of space-separated symbols to be *always*
12268  # included in the symbol list
12269  include_expsyms=
12270  # exclude_expsyms can be an extended regexp of symbols to exclude
12271  # it will be wrapped by ' (' and ')$', so one must not match beginning or
12272  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12273  # as well as any symbol that contains 'd'.
12274  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12275  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12276  # platforms (ab)use it in PIC code, but their linkers get confused if
12277  # the symbol is explicitly referenced.  Since portable code cannot
12278  # rely on this symbol name, it's probably fine to never include it in
12279  # preloaded symbol tables.
12280  # Exclude shared library initialization/finalization symbols.
12281  extract_expsyms_cmds=
12282
12283  case $host_os in
12284  cygwin* | mingw* | pw32* | cegcc*)
12285    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12286    # When not using gcc, we currently assume that we are using
12287    # Microsoft Visual C++.
12288    if test yes != "$GCC"; then
12289      with_gnu_ld=no
12290    fi
12291    ;;
12292  interix*)
12293    # we just hope/assume this is gcc and not c89 (= MSVC++)
12294    with_gnu_ld=yes
12295    ;;
12296  openbsd* | bitrig*)
12297    with_gnu_ld=no
12298    ;;
12299  esac
12300
12301  ld_shlibs=yes
12302
12303  # On some targets, GNU ld is compatible enough with the native linker
12304  # that we're better off using the native interface for both.
12305  lt_use_gnu_ld_interface=no
12306  if test yes = "$with_gnu_ld"; then
12307    case $host_os in
12308      aix*)
12309	# The AIX port of GNU ld has always aspired to compatibility
12310	# with the native linker.  However, as the warning in the GNU ld
12311	# block says, versions before 2.19.5* couldn't really create working
12312	# shared libraries, regardless of the interface used.
12313	case `$LD -v 2>&1` in
12314	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12315	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12316	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12317	  *)
12318	    lt_use_gnu_ld_interface=yes
12319	    ;;
12320	esac
12321	;;
12322      *)
12323	lt_use_gnu_ld_interface=yes
12324	;;
12325    esac
12326  fi
12327
12328  if test yes = "$lt_use_gnu_ld_interface"; then
12329    # If archive_cmds runs LD, not CC, wlarc should be empty
12330    wlarc='$wl'
12331
12332    # Set some defaults for GNU ld with shared library support. These
12333    # are reset later if shared libraries are not supported. Putting them
12334    # here allows them to be overridden if necessary.
12335    runpath_var=LD_RUN_PATH
12336    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12337    export_dynamic_flag_spec='$wl--export-dynamic'
12338    # ancient GNU ld didn't support --whole-archive et. al.
12339    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12340      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12341    else
12342      whole_archive_flag_spec=
12343    fi
12344    supports_anon_versioning=no
12345    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12346      *GNU\ gold*) supports_anon_versioning=yes ;;
12347      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12348      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12349      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12350      *\ 2.11.*) ;; # other 2.11 versions
12351      *) supports_anon_versioning=yes ;;
12352    esac
12353
12354    # See if GNU ld supports shared libraries.
12355    case $host_os in
12356    aix[3-9]*)
12357      # On AIX/PPC, the GNU linker is very broken
12358      if test ia64 != "$host_cpu"; then
12359	ld_shlibs=no
12360	cat <<_LT_EOF 1>&2
12361
12362*** Warning: the GNU linker, at least up to release 2.19, is reported
12363*** to be unable to reliably create shared libraries on AIX.
12364*** Therefore, libtool is disabling shared libraries support.  If you
12365*** really care for shared libraries, you may want to install binutils
12366*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12367*** You will then need to restart the configuration process.
12368
12369_LT_EOF
12370      fi
12371      ;;
12372
12373    amigaos*)
12374      case $host_cpu in
12375      powerpc)
12376            # see comment about AmigaOS4 .so support
12377            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12378            archive_expsym_cmds=''
12379        ;;
12380      m68k)
12381            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)'
12382            hardcode_libdir_flag_spec='-L$libdir'
12383            hardcode_minus_L=yes
12384        ;;
12385      esac
12386      ;;
12387
12388    beos*)
12389      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12390	allow_undefined_flag=unsupported
12391	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12392	# support --undefined.  This deserves some investigation.  FIXME
12393	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12394      else
12395	ld_shlibs=no
12396      fi
12397      ;;
12398
12399    cygwin* | mingw* | pw32* | cegcc*)
12400      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12401      # as there is no search path for DLLs.
12402      hardcode_libdir_flag_spec='-L$libdir'
12403      export_dynamic_flag_spec='$wl--export-all-symbols'
12404      allow_undefined_flag=unsupported
12405      always_export_symbols=no
12406      enable_shared_with_static_runtimes=yes
12407      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'
12408      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12409
12410      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12411        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12412	# If the export-symbols file already is a .def file, use it as
12413	# is; otherwise, prepend EXPORTS...
12414	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12415          cp $export_symbols $output_objdir/$soname.def;
12416        else
12417          echo EXPORTS > $output_objdir/$soname.def;
12418          cat $export_symbols >> $output_objdir/$soname.def;
12419        fi~
12420        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12421      else
12422	ld_shlibs=no
12423      fi
12424      ;;
12425
12426    haiku*)
12427      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12428      link_all_deplibs=yes
12429      ;;
12430
12431    os2*)
12432      hardcode_libdir_flag_spec='-L$libdir'
12433      hardcode_minus_L=yes
12434      allow_undefined_flag=unsupported
12435      shrext_cmds=.dll
12436      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12437	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12438	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12439	$ECHO EXPORTS >> $output_objdir/$libname.def~
12440	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12441	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12442	emximp -o $lib $output_objdir/$libname.def'
12443      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12444	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12445	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12446	$ECHO EXPORTS >> $output_objdir/$libname.def~
12447	prefix_cmds="$SED"~
12448	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12449	  prefix_cmds="$prefix_cmds -e 1d";
12450	fi~
12451	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12452	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12453	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12454	emximp -o $lib $output_objdir/$libname.def'
12455      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12456      enable_shared_with_static_runtimes=yes
12457      ;;
12458
12459    interix[3-9]*)
12460      hardcode_direct=no
12461      hardcode_shlibpath_var=no
12462      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12463      export_dynamic_flag_spec='$wl-E'
12464      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12465      # Instead, shared libraries are loaded at an image base (0x10000000 by
12466      # default) and relocated if they conflict, which is a slow very memory
12467      # consuming and fragmenting process.  To avoid this, we pick a random,
12468      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12469      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12470      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12471      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'
12472      ;;
12473
12474    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12475      tmp_diet=no
12476      if test linux-dietlibc = "$host_os"; then
12477	case $cc_basename in
12478	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12479	esac
12480      fi
12481      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12482	 && test no = "$tmp_diet"
12483      then
12484	tmp_addflag=' $pic_flag'
12485	tmp_sharedflag='-shared'
12486	case $cc_basename,$host_cpu in
12487        pgcc*)				# Portland Group C compiler
12488	  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'
12489	  tmp_addflag=' $pic_flag'
12490	  ;;
12491	pgf77* | pgf90* | pgf95* | pgfortran*)
12492					# Portland Group f77 and f90 compilers
12493	  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'
12494	  tmp_addflag=' $pic_flag -Mnomain' ;;
12495	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12496	  tmp_addflag=' -i_dynamic' ;;
12497	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12498	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12499	ifc* | ifort*)			# Intel Fortran compiler
12500	  tmp_addflag=' -nofor_main' ;;
12501	lf95*)				# Lahey Fortran 8.1
12502	  whole_archive_flag_spec=
12503	  tmp_sharedflag='--shared' ;;
12504        nagfor*)                        # NAGFOR 5.3
12505          tmp_sharedflag='-Wl,-shared' ;;
12506	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12507	  tmp_sharedflag='-qmkshrobj'
12508	  tmp_addflag= ;;
12509	nvcc*)	# Cuda Compiler Driver 2.2
12510	  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'
12511	  compiler_needs_object=yes
12512	  ;;
12513	esac
12514	case `$CC -V 2>&1 | sed 5q` in
12515	*Sun\ C*)			# Sun C 5.9
12516	  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'
12517	  compiler_needs_object=yes
12518	  tmp_sharedflag='-G' ;;
12519	*Sun\ F*)			# Sun Fortran 8.3
12520	  tmp_sharedflag='-G' ;;
12521	esac
12522	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12523
12524        if test yes = "$supports_anon_versioning"; then
12525          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12526            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12527            echo "local: *; };" >> $output_objdir/$libname.ver~
12528            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12529        fi
12530
12531	case $cc_basename in
12532	tcc*)
12533	  export_dynamic_flag_spec='-rdynamic'
12534	  ;;
12535	xlf* | bgf* | bgxlf* | mpixlf*)
12536	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12537	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12538	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12539	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12540	  if test yes = "$supports_anon_versioning"; then
12541	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12542              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12543              echo "local: *; };" >> $output_objdir/$libname.ver~
12544              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12545	  fi
12546	  ;;
12547	esac
12548      else
12549        ld_shlibs=no
12550      fi
12551      ;;
12552
12553    netbsd*)
12554      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12555	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12556	wlarc=
12557      else
12558	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12559	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12560      fi
12561      ;;
12562
12563    solaris*)
12564      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12565	ld_shlibs=no
12566	cat <<_LT_EOF 1>&2
12567
12568*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12569*** create shared libraries on Solaris systems.  Therefore, libtool
12570*** is disabling shared libraries support.  We urge you to upgrade GNU
12571*** binutils to release 2.9.1 or newer.  Another option is to modify
12572*** your PATH or compiler configuration so that the native linker is
12573*** used, and then restart.
12574
12575_LT_EOF
12576      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12577	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12578	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12579      else
12580	ld_shlibs=no
12581      fi
12582      ;;
12583
12584    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12585      case `$LD -v 2>&1` in
12586        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12587	ld_shlibs=no
12588	cat <<_LT_EOF 1>&2
12589
12590*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12591*** reliably create shared libraries on SCO systems.  Therefore, libtool
12592*** is disabling shared libraries support.  We urge you to upgrade GNU
12593*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12594*** your PATH or compiler configuration so that the native linker is
12595*** used, and then restart.
12596
12597_LT_EOF
12598	;;
12599	*)
12600	  # For security reasons, it is highly recommended that you always
12601	  # use absolute paths for naming shared libraries, and exclude the
12602	  # DT_RUNPATH tag from executables and libraries.  But doing so
12603	  # requires that you compile everything twice, which is a pain.
12604	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12605	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12606	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12607	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12608	  else
12609	    ld_shlibs=no
12610	  fi
12611	;;
12612      esac
12613      ;;
12614
12615    sunos4*)
12616      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12617      wlarc=
12618      hardcode_direct=yes
12619      hardcode_shlibpath_var=no
12620      ;;
12621
12622    *)
12623      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12624	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12625	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12626      else
12627	ld_shlibs=no
12628      fi
12629      ;;
12630    esac
12631
12632    if test no = "$ld_shlibs"; then
12633      runpath_var=
12634      hardcode_libdir_flag_spec=
12635      export_dynamic_flag_spec=
12636      whole_archive_flag_spec=
12637    fi
12638  else
12639    # PORTME fill in a description of your system's linker (not GNU ld)
12640    case $host_os in
12641    aix3*)
12642      allow_undefined_flag=unsupported
12643      always_export_symbols=yes
12644      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'
12645      # Note: this linker hardcodes the directories in LIBPATH if there
12646      # are no directories specified by -L.
12647      hardcode_minus_L=yes
12648      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12649	# Neither direct hardcoding nor static linking is supported with a
12650	# broken collect2.
12651	hardcode_direct=unsupported
12652      fi
12653      ;;
12654
12655    aix[4-9]*)
12656      if test ia64 = "$host_cpu"; then
12657	# On IA64, the linker does run time linking by default, so we don't
12658	# have to do anything special.
12659	aix_use_runtimelinking=no
12660	exp_sym_flag='-Bexport'
12661	no_entry_flag=
12662      else
12663	# If we're using GNU nm, then we don't want the "-C" option.
12664	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
12665	# Without the "-l" option, or with the "-B" option, AIX nm treats
12666	# weak defined symbols like other global defined symbols, whereas
12667	# GNU nm marks them as "W".
12668	# While the 'weak' keyword is ignored in the Export File, we need
12669	# it in the Import File for the 'aix-soname' feature, so we have
12670	# to replace the "-B" option with "-P" for AIX nm.
12671	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12672	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12673	else
12674	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12675	fi
12676	aix_use_runtimelinking=no
12677
12678	# Test if we are trying to use run time linking or normal
12679	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12680	# have runtime linking enabled, and use it for executables.
12681	# For shared libraries, we enable/disable runtime linking
12682	# depending on the kind of the shared library created -
12683	# when "with_aix_soname,aix_use_runtimelinking" is:
12684	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12685	# "aix,yes"  lib.so          shared, rtl:yes, for executables
12686	#            lib.a           static archive
12687	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
12688	#            lib.a(lib.so.V) shared, rtl:no,  for executables
12689	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12690	#            lib.a(lib.so.V) shared, rtl:no
12691	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12692	#            lib.a           static archive
12693	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12694	  for ld_flag in $LDFLAGS; do
12695	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12696	    aix_use_runtimelinking=yes
12697	    break
12698	  fi
12699	  done
12700	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12701	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
12702	    # so we don't have lib.a shared libs to link our executables.
12703	    # We have to force runtime linking in this case.
12704	    aix_use_runtimelinking=yes
12705	    LDFLAGS="$LDFLAGS -Wl,-brtl"
12706	  fi
12707	  ;;
12708	esac
12709
12710	exp_sym_flag='-bexport'
12711	no_entry_flag='-bnoentry'
12712      fi
12713
12714      # When large executables or shared objects are built, AIX ld can
12715      # have problems creating the table of contents.  If linking a library
12716      # or program results in "error TOC overflow" add -mminimal-toc to
12717      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12718      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12719
12720      archive_cmds=''
12721      hardcode_direct=yes
12722      hardcode_direct_absolute=yes
12723      hardcode_libdir_separator=':'
12724      link_all_deplibs=yes
12725      file_list_spec='$wl-f,'
12726      case $with_aix_soname,$aix_use_runtimelinking in
12727      aix,*) ;; # traditional, no import file
12728      svr4,* | *,yes) # use import file
12729	# The Import File defines what to hardcode.
12730	hardcode_direct=no
12731	hardcode_direct_absolute=no
12732	;;
12733      esac
12734
12735      if test yes = "$GCC"; then
12736	case $host_os in aix4.[012]|aix4.[012].*)
12737	# We only want to do this on AIX 4.2 and lower, the check
12738	# below for broken collect2 doesn't work under 4.3+
12739	  collect2name=`$CC -print-prog-name=collect2`
12740	  if test -f "$collect2name" &&
12741	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12742	  then
12743	  # We have reworked collect2
12744	  :
12745	  else
12746	  # We have old collect2
12747	  hardcode_direct=unsupported
12748	  # It fails to find uninstalled libraries when the uninstalled
12749	  # path is not listed in the libpath.  Setting hardcode_minus_L
12750	  # to unsupported forces relinking
12751	  hardcode_minus_L=yes
12752	  hardcode_libdir_flag_spec='-L$libdir'
12753	  hardcode_libdir_separator=
12754	  fi
12755	  ;;
12756	esac
12757	shared_flag='-shared'
12758	if test yes = "$aix_use_runtimelinking"; then
12759	  shared_flag="$shared_flag "'$wl-G'
12760	fi
12761	# Need to ensure runtime linking is disabled for the traditional
12762	# shared library, or the linker may eventually find shared libraries
12763	# /with/ Import File - we do not want to mix them.
12764	shared_flag_aix='-shared'
12765	shared_flag_svr4='-shared $wl-G'
12766      else
12767	# not using gcc
12768	if test ia64 = "$host_cpu"; then
12769	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12770	# chokes on -Wl,-G. The following line is correct:
12771	  shared_flag='-G'
12772	else
12773	  if test yes = "$aix_use_runtimelinking"; then
12774	    shared_flag='$wl-G'
12775	  else
12776	    shared_flag='$wl-bM:SRE'
12777	  fi
12778	  shared_flag_aix='$wl-bM:SRE'
12779	  shared_flag_svr4='$wl-G'
12780	fi
12781      fi
12782
12783      export_dynamic_flag_spec='$wl-bexpall'
12784      # It seems that -bexpall does not export symbols beginning with
12785      # underscore (_), so it is better to generate a list of symbols to export.
12786      always_export_symbols=yes
12787      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12788	# Warning - without using the other runtime loading flags (-brtl),
12789	# -berok will link without error, but may produce a broken library.
12790	allow_undefined_flag='-berok'
12791        # Determine the default libpath from the value encoded in an
12792        # empty executable.
12793        if test set = "${lt_cv_aix_libpath+set}"; then
12794  aix_libpath=$lt_cv_aix_libpath
12795else
12796  if ${lt_cv_aix_libpath_+:} false; then :
12797  $as_echo_n "(cached) " >&6
12798else
12799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800/* end confdefs.h.  */
12801
12802int
12803main ()
12804{
12805
12806  ;
12807  return 0;
12808}
12809_ACEOF
12810if ac_fn_c_try_link "$LINENO"; then :
12811
12812  lt_aix_libpath_sed='
12813      /Import File Strings/,/^$/ {
12814	  /^0/ {
12815	      s/^0  *\([^ ]*\) *$/\1/
12816	      p
12817	  }
12818      }'
12819  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12820  # Check for a 64-bit object if we didn't find anything.
12821  if test -z "$lt_cv_aix_libpath_"; then
12822    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12823  fi
12824fi
12825rm -f core conftest.err conftest.$ac_objext \
12826    conftest$ac_exeext conftest.$ac_ext
12827  if test -z "$lt_cv_aix_libpath_"; then
12828    lt_cv_aix_libpath_=/usr/lib:/lib
12829  fi
12830
12831fi
12832
12833  aix_libpath=$lt_cv_aix_libpath_
12834fi
12835
12836        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12837        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12838      else
12839	if test ia64 = "$host_cpu"; then
12840	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12841	  allow_undefined_flag="-z nodefs"
12842	  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"
12843	else
12844	 # Determine the default libpath from the value encoded in an
12845	 # empty executable.
12846	 if test set = "${lt_cv_aix_libpath+set}"; then
12847  aix_libpath=$lt_cv_aix_libpath
12848else
12849  if ${lt_cv_aix_libpath_+:} false; then :
12850  $as_echo_n "(cached) " >&6
12851else
12852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853/* end confdefs.h.  */
12854
12855int
12856main ()
12857{
12858
12859  ;
12860  return 0;
12861}
12862_ACEOF
12863if ac_fn_c_try_link "$LINENO"; then :
12864
12865  lt_aix_libpath_sed='
12866      /Import File Strings/,/^$/ {
12867	  /^0/ {
12868	      s/^0  *\([^ ]*\) *$/\1/
12869	      p
12870	  }
12871      }'
12872  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12873  # Check for a 64-bit object if we didn't find anything.
12874  if test -z "$lt_cv_aix_libpath_"; then
12875    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12876  fi
12877fi
12878rm -f core conftest.err conftest.$ac_objext \
12879    conftest$ac_exeext conftest.$ac_ext
12880  if test -z "$lt_cv_aix_libpath_"; then
12881    lt_cv_aix_libpath_=/usr/lib:/lib
12882  fi
12883
12884fi
12885
12886  aix_libpath=$lt_cv_aix_libpath_
12887fi
12888
12889	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12890	  # Warning - without using the other run time loading flags,
12891	  # -berok will link without error, but may produce a broken library.
12892	  no_undefined_flag=' $wl-bernotok'
12893	  allow_undefined_flag=' $wl-berok'
12894	  if test yes = "$with_gnu_ld"; then
12895	    # We only use this code for GNU lds that support --whole-archive.
12896	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12897	  else
12898	    # Exported symbols can be pulled into shared objects from archives
12899	    whole_archive_flag_spec='$convenience'
12900	  fi
12901	  archive_cmds_need_lc=yes
12902	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12903	  # -brtl affects multiple linker settings, -berok does not and is overridden later
12904	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12905	  if test svr4 != "$with_aix_soname"; then
12906	    # This is similar to how AIX traditionally builds its shared libraries.
12907	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12908	  fi
12909	  if test aix != "$with_aix_soname"; then
12910	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12911	  else
12912	    # used by -dlpreopen to get the symbols
12913	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12914	  fi
12915	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12916	fi
12917      fi
12918      ;;
12919
12920    amigaos*)
12921      case $host_cpu in
12922      powerpc)
12923            # see comment about AmigaOS4 .so support
12924            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12925            archive_expsym_cmds=''
12926        ;;
12927      m68k)
12928            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)'
12929            hardcode_libdir_flag_spec='-L$libdir'
12930            hardcode_minus_L=yes
12931        ;;
12932      esac
12933      ;;
12934
12935    bsdi[45]*)
12936      export_dynamic_flag_spec=-rdynamic
12937      ;;
12938
12939    cygwin* | mingw* | pw32* | cegcc*)
12940      # When not using gcc, we currently assume that we are using
12941      # Microsoft Visual C++.
12942      # hardcode_libdir_flag_spec is actually meaningless, as there is
12943      # no search path for DLLs.
12944      case $cc_basename in
12945      cl*)
12946	# Native MSVC
12947	hardcode_libdir_flag_spec=' '
12948	allow_undefined_flag=unsupported
12949	always_export_symbols=yes
12950	file_list_spec='@'
12951	# Tell ltmain to make .lib files, not .a files.
12952	libext=lib
12953	# Tell ltmain to make .dll files, not .so files.
12954	shrext_cmds=.dll
12955	# FIXME: Setting linknames here is a bad hack.
12956	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12957	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12958            cp "$export_symbols" "$output_objdir/$soname.def";
12959            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12960          else
12961            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12962          fi~
12963          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12964          linknames='
12965	# The linker will not automatically build a static lib if we build a DLL.
12966	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12967	enable_shared_with_static_runtimes=yes
12968	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12969	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12970	# Don't use ranlib
12971	old_postinstall_cmds='chmod 644 $oldlib'
12972	postlink_cmds='lt_outputfile="@OUTPUT@"~
12973          lt_tool_outputfile="@TOOL_OUTPUT@"~
12974          case $lt_outputfile in
12975            *.exe|*.EXE) ;;
12976            *)
12977              lt_outputfile=$lt_outputfile.exe
12978              lt_tool_outputfile=$lt_tool_outputfile.exe
12979              ;;
12980          esac~
12981          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12982            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12983            $RM "$lt_outputfile.manifest";
12984          fi'
12985	;;
12986      *)
12987	# Assume MSVC wrapper
12988	hardcode_libdir_flag_spec=' '
12989	allow_undefined_flag=unsupported
12990	# Tell ltmain to make .lib files, not .a files.
12991	libext=lib
12992	# Tell ltmain to make .dll files, not .so files.
12993	shrext_cmds=.dll
12994	# FIXME: Setting linknames here is a bad hack.
12995	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12996	# The linker will automatically build a .lib file if we build a DLL.
12997	old_archive_from_new_cmds='true'
12998	# FIXME: Should let the user specify the lib program.
12999	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13000	enable_shared_with_static_runtimes=yes
13001	;;
13002      esac
13003      ;;
13004
13005    darwin* | rhapsody*)
13006
13007
13008  archive_cmds_need_lc=no
13009  hardcode_direct=no
13010  hardcode_automatic=yes
13011  hardcode_shlibpath_var=unsupported
13012  if test yes = "$lt_cv_ld_force_load"; then
13013    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\"`'
13014
13015  else
13016    whole_archive_flag_spec=''
13017  fi
13018  link_all_deplibs=yes
13019  allow_undefined_flag=$_lt_dar_allow_undefined
13020  case $cc_basename in
13021     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13022     *) _lt_dar_can_shared=$GCC ;;
13023  esac
13024  if test yes = "$_lt_dar_can_shared"; then
13025    output_verbose_link_cmd=func_echo_all
13026    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13027    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13028    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"
13029    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"
13030
13031  else
13032  ld_shlibs=no
13033  fi
13034
13035      ;;
13036
13037    dgux*)
13038      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13039      hardcode_libdir_flag_spec='-L$libdir'
13040      hardcode_shlibpath_var=no
13041      ;;
13042
13043    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13044    # support.  Future versions do this automatically, but an explicit c++rt0.o
13045    # does not break anything, and helps significantly (at the cost of a little
13046    # extra space).
13047    freebsd2.2*)
13048      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13049      hardcode_libdir_flag_spec='-R$libdir'
13050      hardcode_direct=yes
13051      hardcode_shlibpath_var=no
13052      ;;
13053
13054    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13055    freebsd2.*)
13056      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13057      hardcode_direct=yes
13058      hardcode_minus_L=yes
13059      hardcode_shlibpath_var=no
13060      ;;
13061
13062    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13063    freebsd* | dragonfly*)
13064      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13065      hardcode_libdir_flag_spec='-R$libdir'
13066      hardcode_direct=yes
13067      hardcode_shlibpath_var=no
13068      ;;
13069
13070    hpux9*)
13071      if test yes = "$GCC"; then
13072	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13073      else
13074	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13075      fi
13076      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13077      hardcode_libdir_separator=:
13078      hardcode_direct=yes
13079
13080      # hardcode_minus_L: Not really in the search PATH,
13081      # but as the default location of the library.
13082      hardcode_minus_L=yes
13083      export_dynamic_flag_spec='$wl-E'
13084      ;;
13085
13086    hpux10*)
13087      if test yes,no = "$GCC,$with_gnu_ld"; then
13088	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13089      else
13090	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13091      fi
13092      if test no = "$with_gnu_ld"; then
13093	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13094	hardcode_libdir_separator=:
13095	hardcode_direct=yes
13096	hardcode_direct_absolute=yes
13097	export_dynamic_flag_spec='$wl-E'
13098	# hardcode_minus_L: Not really in the search PATH,
13099	# but as the default location of the library.
13100	hardcode_minus_L=yes
13101      fi
13102      ;;
13103
13104    hpux11*)
13105      if test yes,no = "$GCC,$with_gnu_ld"; then
13106	case $host_cpu in
13107	hppa*64*)
13108	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13109	  ;;
13110	ia64*)
13111	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13112	  ;;
13113	*)
13114	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13115	  ;;
13116	esac
13117      else
13118	case $host_cpu in
13119	hppa*64*)
13120	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13121	  ;;
13122	ia64*)
13123	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13124	  ;;
13125	*)
13126
13127	  # Older versions of the 11.00 compiler do not understand -b yet
13128	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13129	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13130$as_echo_n "checking if $CC understands -b... " >&6; }
13131if ${lt_cv_prog_compiler__b+:} false; then :
13132  $as_echo_n "(cached) " >&6
13133else
13134  lt_cv_prog_compiler__b=no
13135   save_LDFLAGS=$LDFLAGS
13136   LDFLAGS="$LDFLAGS -b"
13137   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13138   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13139     # The linker can only warn and ignore the option if not recognized
13140     # So say no if there are warnings
13141     if test -s conftest.err; then
13142       # Append any errors to the config.log.
13143       cat conftest.err 1>&5
13144       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13145       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13146       if diff conftest.exp conftest.er2 >/dev/null; then
13147         lt_cv_prog_compiler__b=yes
13148       fi
13149     else
13150       lt_cv_prog_compiler__b=yes
13151     fi
13152   fi
13153   $RM -r conftest*
13154   LDFLAGS=$save_LDFLAGS
13155
13156fi
13157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13158$as_echo "$lt_cv_prog_compiler__b" >&6; }
13159
13160if test yes = "$lt_cv_prog_compiler__b"; then
13161    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13162else
13163    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13164fi
13165
13166	  ;;
13167	esac
13168      fi
13169      if test no = "$with_gnu_ld"; then
13170	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13171	hardcode_libdir_separator=:
13172
13173	case $host_cpu in
13174	hppa*64*|ia64*)
13175	  hardcode_direct=no
13176	  hardcode_shlibpath_var=no
13177	  ;;
13178	*)
13179	  hardcode_direct=yes
13180	  hardcode_direct_absolute=yes
13181	  export_dynamic_flag_spec='$wl-E'
13182
13183	  # hardcode_minus_L: Not really in the search PATH,
13184	  # but as the default location of the library.
13185	  hardcode_minus_L=yes
13186	  ;;
13187	esac
13188      fi
13189      ;;
13190
13191    irix5* | irix6* | nonstopux*)
13192      if test yes = "$GCC"; then
13193	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'
13194	# Try to use the -exported_symbol ld option, if it does not
13195	# work, assume that -exports_file does not work either and
13196	# implicitly export all symbols.
13197	# This should be the same for all languages, so no per-tag cache variable.
13198	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13199$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13200if ${lt_cv_irix_exported_symbol+:} false; then :
13201  $as_echo_n "(cached) " >&6
13202else
13203  save_LDFLAGS=$LDFLAGS
13204	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13205	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206/* end confdefs.h.  */
13207int foo (void) { return 0; }
13208_ACEOF
13209if ac_fn_c_try_link "$LINENO"; then :
13210  lt_cv_irix_exported_symbol=yes
13211else
13212  lt_cv_irix_exported_symbol=no
13213fi
13214rm -f core conftest.err conftest.$ac_objext \
13215    conftest$ac_exeext conftest.$ac_ext
13216           LDFLAGS=$save_LDFLAGS
13217fi
13218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13219$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13220	if test yes = "$lt_cv_irix_exported_symbol"; then
13221          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'
13222	fi
13223      else
13224	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'
13225	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'
13226      fi
13227      archive_cmds_need_lc='no'
13228      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13229      hardcode_libdir_separator=:
13230      inherit_rpath=yes
13231      link_all_deplibs=yes
13232      ;;
13233
13234    linux*)
13235      case $cc_basename in
13236      tcc*)
13237	# Fabrice Bellard et al's Tiny C Compiler
13238	ld_shlibs=yes
13239	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13240	;;
13241      esac
13242      ;;
13243
13244    netbsd*)
13245      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13246	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13247      else
13248	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13249      fi
13250      hardcode_libdir_flag_spec='-R$libdir'
13251      hardcode_direct=yes
13252      hardcode_shlibpath_var=no
13253      ;;
13254
13255    newsos6)
13256      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13257      hardcode_direct=yes
13258      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13259      hardcode_libdir_separator=:
13260      hardcode_shlibpath_var=no
13261      ;;
13262
13263    *nto* | *qnx*)
13264      ;;
13265
13266    openbsd* | bitrig*)
13267      if test -f /usr/libexec/ld.so; then
13268	hardcode_direct=yes
13269	hardcode_shlibpath_var=no
13270	hardcode_direct_absolute=yes
13271	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13272	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13273	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13274	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13275	  export_dynamic_flag_spec='$wl-E'
13276	else
13277	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13278	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13279	fi
13280      else
13281	ld_shlibs=no
13282      fi
13283      ;;
13284
13285    os2*)
13286      hardcode_libdir_flag_spec='-L$libdir'
13287      hardcode_minus_L=yes
13288      allow_undefined_flag=unsupported
13289      shrext_cmds=.dll
13290      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13291	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13292	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13293	$ECHO EXPORTS >> $output_objdir/$libname.def~
13294	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13295	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13296	emximp -o $lib $output_objdir/$libname.def'
13297      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13298	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13299	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13300	$ECHO EXPORTS >> $output_objdir/$libname.def~
13301	prefix_cmds="$SED"~
13302	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13303	  prefix_cmds="$prefix_cmds -e 1d";
13304	fi~
13305	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13306	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13307	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13308	emximp -o $lib $output_objdir/$libname.def'
13309      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13310      enable_shared_with_static_runtimes=yes
13311      ;;
13312
13313    osf3*)
13314      if test yes = "$GCC"; then
13315	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13316	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'
13317      else
13318	allow_undefined_flag=' -expect_unresolved \*'
13319	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'
13320      fi
13321      archive_cmds_need_lc='no'
13322      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13323      hardcode_libdir_separator=:
13324      ;;
13325
13326    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13327      if test yes = "$GCC"; then
13328	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13329	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'
13330	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13331      else
13332	allow_undefined_flag=' -expect_unresolved \*'
13333	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'
13334	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~
13335          $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'
13336
13337	# Both c and cxx compiler support -rpath directly
13338	hardcode_libdir_flag_spec='-rpath $libdir'
13339      fi
13340      archive_cmds_need_lc='no'
13341      hardcode_libdir_separator=:
13342      ;;
13343
13344    solaris*)
13345      no_undefined_flag=' -z defs'
13346      if test yes = "$GCC"; then
13347	wlarc='$wl'
13348	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13349	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13350          $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'
13351      else
13352	case `$CC -V 2>&1` in
13353	*"Compilers 5.0"*)
13354	  wlarc=''
13355	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13356	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13357            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13358	  ;;
13359	*)
13360	  wlarc='$wl'
13361	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13362	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13363            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13364	  ;;
13365	esac
13366      fi
13367      hardcode_libdir_flag_spec='-R$libdir'
13368      hardcode_shlibpath_var=no
13369      case $host_os in
13370      solaris2.[0-5] | solaris2.[0-5].*) ;;
13371      *)
13372	# The compiler driver will combine and reorder linker options,
13373	# but understands '-z linker_flag'.  GCC discards it without '$wl',
13374	# but is careful enough not to reorder.
13375	# Supported since Solaris 2.6 (maybe 2.5.1?)
13376	if test yes = "$GCC"; then
13377	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13378	else
13379	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13380	fi
13381	;;
13382      esac
13383      link_all_deplibs=yes
13384      ;;
13385
13386    sunos4*)
13387      if test sequent = "$host_vendor"; then
13388	# Use $CC to link under sequent, because it throws in some extra .o
13389	# files that make .init and .fini sections work.
13390	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13391      else
13392	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13393      fi
13394      hardcode_libdir_flag_spec='-L$libdir'
13395      hardcode_direct=yes
13396      hardcode_minus_L=yes
13397      hardcode_shlibpath_var=no
13398      ;;
13399
13400    sysv4)
13401      case $host_vendor in
13402	sni)
13403	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13404	  hardcode_direct=yes # is this really true???
13405	;;
13406	siemens)
13407	  ## LD is ld it makes a PLAMLIB
13408	  ## CC just makes a GrossModule.
13409	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13410	  reload_cmds='$CC -r -o $output$reload_objs'
13411	  hardcode_direct=no
13412        ;;
13413	motorola)
13414	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13415	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13416	;;
13417      esac
13418      runpath_var='LD_RUN_PATH'
13419      hardcode_shlibpath_var=no
13420      ;;
13421
13422    sysv4.3*)
13423      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13424      hardcode_shlibpath_var=no
13425      export_dynamic_flag_spec='-Bexport'
13426      ;;
13427
13428    sysv4*MP*)
13429      if test -d /usr/nec; then
13430	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13431	hardcode_shlibpath_var=no
13432	runpath_var=LD_RUN_PATH
13433	hardcode_runpath_var=yes
13434	ld_shlibs=yes
13435      fi
13436      ;;
13437
13438    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13439      no_undefined_flag='$wl-z,text'
13440      archive_cmds_need_lc=no
13441      hardcode_shlibpath_var=no
13442      runpath_var='LD_RUN_PATH'
13443
13444      if test yes = "$GCC"; then
13445	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13446	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13447      else
13448	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13449	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13450      fi
13451      ;;
13452
13453    sysv5* | sco3.2v5* | sco5v6*)
13454      # Note: We CANNOT use -z defs as we might desire, because we do not
13455      # link with -lc, and that would cause any symbols used from libc to
13456      # always be unresolved, which means just about no library would
13457      # ever link correctly.  If we're not using GNU ld we use -z text
13458      # though, which does catch some bad symbols but isn't as heavy-handed
13459      # as -z defs.
13460      no_undefined_flag='$wl-z,text'
13461      allow_undefined_flag='$wl-z,nodefs'
13462      archive_cmds_need_lc=no
13463      hardcode_shlibpath_var=no
13464      hardcode_libdir_flag_spec='$wl-R,$libdir'
13465      hardcode_libdir_separator=':'
13466      link_all_deplibs=yes
13467      export_dynamic_flag_spec='$wl-Bexport'
13468      runpath_var='LD_RUN_PATH'
13469
13470      if test yes = "$GCC"; then
13471	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13472	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13473      else
13474	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13475	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13476      fi
13477      ;;
13478
13479    uts4*)
13480      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13481      hardcode_libdir_flag_spec='-L$libdir'
13482      hardcode_shlibpath_var=no
13483      ;;
13484
13485    *)
13486      ld_shlibs=no
13487      ;;
13488    esac
13489
13490    if test sni = "$host_vendor"; then
13491      case $host in
13492      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13493	export_dynamic_flag_spec='$wl-Blargedynsym'
13494	;;
13495      esac
13496    fi
13497  fi
13498
13499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13500$as_echo "$ld_shlibs" >&6; }
13501test no = "$ld_shlibs" && can_build_shared=no
13502
13503with_gnu_ld=$with_gnu_ld
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519#
13520# Do we need to explicitly link libc?
13521#
13522case "x$archive_cmds_need_lc" in
13523x|xyes)
13524  # Assume -lc should be added
13525  archive_cmds_need_lc=yes
13526
13527  if test yes,yes = "$GCC,$enable_shared"; then
13528    case $archive_cmds in
13529    *'~'*)
13530      # FIXME: we may have to deal with multi-command sequences.
13531      ;;
13532    '$CC '*)
13533      # Test whether the compiler implicitly links with -lc since on some
13534      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13535      # to ld, don't add -lc before -lgcc.
13536      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13537$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13538if ${lt_cv_archive_cmds_need_lc+:} false; then :
13539  $as_echo_n "(cached) " >&6
13540else
13541  $RM conftest*
13542	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13543
13544	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13545  (eval $ac_compile) 2>&5
13546  ac_status=$?
13547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13548  test $ac_status = 0; } 2>conftest.err; then
13549	  soname=conftest
13550	  lib=conftest
13551	  libobjs=conftest.$ac_objext
13552	  deplibs=
13553	  wl=$lt_prog_compiler_wl
13554	  pic_flag=$lt_prog_compiler_pic
13555	  compiler_flags=-v
13556	  linker_flags=-v
13557	  verstring=
13558	  output_objdir=.
13559	  libname=conftest
13560	  lt_save_allow_undefined_flag=$allow_undefined_flag
13561	  allow_undefined_flag=
13562	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13563  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13564  ac_status=$?
13565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13566  test $ac_status = 0; }
13567	  then
13568	    lt_cv_archive_cmds_need_lc=no
13569	  else
13570	    lt_cv_archive_cmds_need_lc=yes
13571	  fi
13572	  allow_undefined_flag=$lt_save_allow_undefined_flag
13573	else
13574	  cat conftest.err 1>&5
13575	fi
13576	$RM conftest*
13577
13578fi
13579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13580$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13581      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13582      ;;
13583    esac
13584  fi
13585  ;;
13586esac
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13740$as_echo_n "checking dynamic linker characteristics... " >&6; }
13741
13742if test yes = "$GCC"; then
13743  case $host_os in
13744    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13745    *) lt_awk_arg='/^libraries:/' ;;
13746  esac
13747  case $host_os in
13748    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13749    *) lt_sed_strip_eq='s|=/|/|g' ;;
13750  esac
13751  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13752  case $lt_search_path_spec in
13753  *\;*)
13754    # if the path contains ";" then we assume it to be the separator
13755    # otherwise default to the standard path separator (i.e. ":") - it is
13756    # assumed that no part of a normal pathname contains ";" but that should
13757    # okay in the real world where ";" in dirpaths is itself problematic.
13758    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13759    ;;
13760  *)
13761    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13762    ;;
13763  esac
13764  # Ok, now we have the path, separated by spaces, we can step through it
13765  # and add multilib dir if necessary...
13766  lt_tmp_lt_search_path_spec=
13767  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13768  # ...but if some path component already ends with the multilib dir we assume
13769  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13770  case "$lt_multi_os_dir; $lt_search_path_spec " in
13771  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13772    lt_multi_os_dir=
13773    ;;
13774  esac
13775  for lt_sys_path in $lt_search_path_spec; do
13776    if test -d "$lt_sys_path$lt_multi_os_dir"; then
13777      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13778    elif test -n "$lt_multi_os_dir"; then
13779      test -d "$lt_sys_path" && \
13780	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13781    fi
13782  done
13783  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13784BEGIN {RS = " "; FS = "/|\n";} {
13785  lt_foo = "";
13786  lt_count = 0;
13787  for (lt_i = NF; lt_i > 0; lt_i--) {
13788    if ($lt_i != "" && $lt_i != ".") {
13789      if ($lt_i == "..") {
13790        lt_count++;
13791      } else {
13792        if (lt_count == 0) {
13793          lt_foo = "/" $lt_i lt_foo;
13794        } else {
13795          lt_count--;
13796        }
13797      }
13798    }
13799  }
13800  if (lt_foo != "") { lt_freq[lt_foo]++; }
13801  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13802}'`
13803  # AWK program above erroneously prepends '/' to C:/dos/paths
13804  # for these hosts.
13805  case $host_os in
13806    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13807      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13808  esac
13809  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13810else
13811  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13812fi
13813library_names_spec=
13814libname_spec='lib$name'
13815soname_spec=
13816shrext_cmds=.so
13817postinstall_cmds=
13818postuninstall_cmds=
13819finish_cmds=
13820finish_eval=
13821shlibpath_var=
13822shlibpath_overrides_runpath=unknown
13823version_type=none
13824dynamic_linker="$host_os ld.so"
13825sys_lib_dlsearch_path_spec="/lib /usr/lib"
13826need_lib_prefix=unknown
13827hardcode_into_libs=no
13828
13829# when you set need_version to no, make sure it does not cause -set_version
13830# flags to be left without arguments
13831need_version=unknown
13832
13833
13834
13835case $host_os in
13836aix3*)
13837  version_type=linux # correct to gnu/linux during the next big refactor
13838  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13839  shlibpath_var=LIBPATH
13840
13841  # AIX 3 has no versioning support, so we append a major version to the name.
13842  soname_spec='$libname$release$shared_ext$major'
13843  ;;
13844
13845aix[4-9]*)
13846  version_type=linux # correct to gnu/linux during the next big refactor
13847  need_lib_prefix=no
13848  need_version=no
13849  hardcode_into_libs=yes
13850  if test ia64 = "$host_cpu"; then
13851    # AIX 5 supports IA64
13852    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13853    shlibpath_var=LD_LIBRARY_PATH
13854  else
13855    # With GCC up to 2.95.x, collect2 would create an import file
13856    # for dependence libraries.  The import file would start with
13857    # the line '#! .'.  This would cause the generated library to
13858    # depend on '.', always an invalid library.  This was fixed in
13859    # development snapshots of GCC prior to 3.0.
13860    case $host_os in
13861      aix4 | aix4.[01] | aix4.[01].*)
13862      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13863	   echo ' yes '
13864	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13865	:
13866      else
13867	can_build_shared=no
13868      fi
13869      ;;
13870    esac
13871    # Using Import Files as archive members, it is possible to support
13872    # filename-based versioning of shared library archives on AIX. While
13873    # this would work for both with and without runtime linking, it will
13874    # prevent static linking of such archives. So we do filename-based
13875    # shared library versioning with .so extension only, which is used
13876    # when both runtime linking and shared linking is enabled.
13877    # Unfortunately, runtime linking may impact performance, so we do
13878    # not want this to be the default eventually. Also, we use the
13879    # versioned .so libs for executables only if there is the -brtl
13880    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13881    # To allow for filename-based versioning support, we need to create
13882    # libNAME.so.V as an archive file, containing:
13883    # *) an Import File, referring to the versioned filename of the
13884    #    archive as well as the shared archive member, telling the
13885    #    bitwidth (32 or 64) of that shared object, and providing the
13886    #    list of exported symbols of that shared object, eventually
13887    #    decorated with the 'weak' keyword
13888    # *) the shared object with the F_LOADONLY flag set, to really avoid
13889    #    it being seen by the linker.
13890    # At run time we better use the real file rather than another symlink,
13891    # but for link time we create the symlink libNAME.so -> libNAME.so.V
13892
13893    case $with_aix_soname,$aix_use_runtimelinking in
13894    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13895    # soname into executable. Probably we can add versioning support to
13896    # collect2, so additional links can be useful in future.
13897    aix,yes) # traditional libtool
13898      dynamic_linker='AIX unversionable lib.so'
13899      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13900      # instead of lib<name>.a to let people know that these are not
13901      # typical AIX shared libraries.
13902      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13903      ;;
13904    aix,no) # traditional AIX only
13905      dynamic_linker='AIX lib.a(lib.so.V)'
13906      # We preserve .a as extension for shared libraries through AIX4.2
13907      # and later when we are not doing run time linking.
13908      library_names_spec='$libname$release.a $libname.a'
13909      soname_spec='$libname$release$shared_ext$major'
13910      ;;
13911    svr4,*) # full svr4 only
13912      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13913      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13914      # We do not specify a path in Import Files, so LIBPATH fires.
13915      shlibpath_overrides_runpath=yes
13916      ;;
13917    *,yes) # both, prefer svr4
13918      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13919      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13920      # unpreferred sharedlib libNAME.a needs extra handling
13921      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13922      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13923      # We do not specify a path in Import Files, so LIBPATH fires.
13924      shlibpath_overrides_runpath=yes
13925      ;;
13926    *,no) # both, prefer aix
13927      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13928      library_names_spec='$libname$release.a $libname.a'
13929      soname_spec='$libname$release$shared_ext$major'
13930      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13931      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13932      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13933      ;;
13934    esac
13935    shlibpath_var=LIBPATH
13936  fi
13937  ;;
13938
13939amigaos*)
13940  case $host_cpu in
13941  powerpc)
13942    # Since July 2007 AmigaOS4 officially supports .so libraries.
13943    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13944    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13945    ;;
13946  m68k)
13947    library_names_spec='$libname.ixlibrary $libname.a'
13948    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13949    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
13950    ;;
13951  esac
13952  ;;
13953
13954beos*)
13955  library_names_spec='$libname$shared_ext'
13956  dynamic_linker="$host_os ld.so"
13957  shlibpath_var=LIBRARY_PATH
13958  ;;
13959
13960bsdi[45]*)
13961  version_type=linux # correct to gnu/linux during the next big refactor
13962  need_version=no
13963  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13964  soname_spec='$libname$release$shared_ext$major'
13965  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13966  shlibpath_var=LD_LIBRARY_PATH
13967  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13968  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13969  # the default ld.so.conf also contains /usr/contrib/lib and
13970  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13971  # libtool to hard-code these into programs
13972  ;;
13973
13974cygwin* | mingw* | pw32* | cegcc*)
13975  version_type=windows
13976  shrext_cmds=.dll
13977  need_version=no
13978  need_lib_prefix=no
13979
13980  case $GCC,$cc_basename in
13981  yes,*)
13982    # gcc
13983    library_names_spec='$libname.dll.a'
13984    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13985    postinstall_cmds='base_file=`basename \$file`~
13986      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13987      dldir=$destdir/`dirname \$dlpath`~
13988      test -d \$dldir || mkdir -p \$dldir~
13989      $install_prog $dir/$dlname \$dldir/$dlname~
13990      chmod a+x \$dldir/$dlname~
13991      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13992        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13993      fi'
13994    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13995      dlpath=$dir/\$dldll~
13996       $RM \$dlpath'
13997    shlibpath_overrides_runpath=yes
13998
13999    case $host_os in
14000    cygwin*)
14001      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14002      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14003
14004      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14005      ;;
14006    mingw* | cegcc*)
14007      # MinGW DLLs use traditional 'lib' prefix
14008      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14009      ;;
14010    pw32*)
14011      # pw32 DLLs use 'pw' prefix rather than 'lib'
14012      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14013      ;;
14014    esac
14015    dynamic_linker='Win32 ld.exe'
14016    ;;
14017
14018  *,cl*)
14019    # Native MSVC
14020    libname_spec='$name'
14021    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14022    library_names_spec='$libname.dll.lib'
14023
14024    case $build_os in
14025    mingw*)
14026      sys_lib_search_path_spec=
14027      lt_save_ifs=$IFS
14028      IFS=';'
14029      for lt_path in $LIB
14030      do
14031        IFS=$lt_save_ifs
14032        # Let DOS variable expansion print the short 8.3 style file name.
14033        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14034        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14035      done
14036      IFS=$lt_save_ifs
14037      # Convert to MSYS style.
14038      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14039      ;;
14040    cygwin*)
14041      # Convert to unix form, then to dos form, then back to unix form
14042      # but this time dos style (no spaces!) so that the unix form looks
14043      # like /cygdrive/c/PROGRA~1:/cygdr...
14044      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14045      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14046      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14047      ;;
14048    *)
14049      sys_lib_search_path_spec=$LIB
14050      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14051        # It is most probably a Windows format PATH.
14052        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14053      else
14054        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14055      fi
14056      # FIXME: find the short name or the path components, as spaces are
14057      # common. (e.g. "Program Files" -> "PROGRA~1")
14058      ;;
14059    esac
14060
14061    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14062    postinstall_cmds='base_file=`basename \$file`~
14063      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14064      dldir=$destdir/`dirname \$dlpath`~
14065      test -d \$dldir || mkdir -p \$dldir~
14066      $install_prog $dir/$dlname \$dldir/$dlname'
14067    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14068      dlpath=$dir/\$dldll~
14069       $RM \$dlpath'
14070    shlibpath_overrides_runpath=yes
14071    dynamic_linker='Win32 link.exe'
14072    ;;
14073
14074  *)
14075    # Assume MSVC wrapper
14076    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14077    dynamic_linker='Win32 ld.exe'
14078    ;;
14079  esac
14080  # FIXME: first we should search . and the directory the executable is in
14081  shlibpath_var=PATH
14082  ;;
14083
14084darwin* | rhapsody*)
14085  dynamic_linker="$host_os dyld"
14086  version_type=darwin
14087  need_lib_prefix=no
14088  need_version=no
14089  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14090  soname_spec='$libname$release$major$shared_ext'
14091  shlibpath_overrides_runpath=yes
14092  shlibpath_var=DYLD_LIBRARY_PATH
14093  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14094
14095  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14096  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14097  ;;
14098
14099dgux*)
14100  version_type=linux # correct to gnu/linux during the next big refactor
14101  need_lib_prefix=no
14102  need_version=no
14103  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14104  soname_spec='$libname$release$shared_ext$major'
14105  shlibpath_var=LD_LIBRARY_PATH
14106  ;;
14107
14108freebsd* | dragonfly*)
14109  # DragonFly does not have aout.  When/if they implement a new
14110  # versioning mechanism, adjust this.
14111  if test -x /usr/bin/objformat; then
14112    objformat=`/usr/bin/objformat`
14113  else
14114    case $host_os in
14115    freebsd[23].*) objformat=aout ;;
14116    *) objformat=elf ;;
14117    esac
14118  fi
14119  version_type=freebsd-$objformat
14120  case $version_type in
14121    freebsd-elf*)
14122      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14123      soname_spec='$libname$release$shared_ext$major'
14124      need_version=no
14125      need_lib_prefix=no
14126      ;;
14127    freebsd-*)
14128      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14129      need_version=yes
14130      ;;
14131  esac
14132  shlibpath_var=LD_LIBRARY_PATH
14133  case $host_os in
14134  freebsd2.*)
14135    shlibpath_overrides_runpath=yes
14136    ;;
14137  freebsd3.[01]* | freebsdelf3.[01]*)
14138    shlibpath_overrides_runpath=yes
14139    hardcode_into_libs=yes
14140    ;;
14141  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14142  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14143    shlibpath_overrides_runpath=no
14144    hardcode_into_libs=yes
14145    ;;
14146  *) # from 4.6 on, and DragonFly
14147    shlibpath_overrides_runpath=yes
14148    hardcode_into_libs=yes
14149    ;;
14150  esac
14151  ;;
14152
14153haiku*)
14154  version_type=linux # correct to gnu/linux during the next big refactor
14155  need_lib_prefix=no
14156  need_version=no
14157  dynamic_linker="$host_os runtime_loader"
14158  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14159  soname_spec='$libname$release$shared_ext$major'
14160  shlibpath_var=LIBRARY_PATH
14161  shlibpath_overrides_runpath=no
14162  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14163  hardcode_into_libs=yes
14164  ;;
14165
14166hpux9* | hpux10* | hpux11*)
14167  # Give a soname corresponding to the major version so that dld.sl refuses to
14168  # link against other versions.
14169  version_type=sunos
14170  need_lib_prefix=no
14171  need_version=no
14172  case $host_cpu in
14173  ia64*)
14174    shrext_cmds='.so'
14175    hardcode_into_libs=yes
14176    dynamic_linker="$host_os dld.so"
14177    shlibpath_var=LD_LIBRARY_PATH
14178    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14179    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14180    soname_spec='$libname$release$shared_ext$major'
14181    if test 32 = "$HPUX_IA64_MODE"; then
14182      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14183      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14184    else
14185      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14186      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14187    fi
14188    ;;
14189  hppa*64*)
14190    shrext_cmds='.sl'
14191    hardcode_into_libs=yes
14192    dynamic_linker="$host_os dld.sl"
14193    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14194    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14195    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14196    soname_spec='$libname$release$shared_ext$major'
14197    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14198    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14199    ;;
14200  *)
14201    shrext_cmds='.sl'
14202    dynamic_linker="$host_os dld.sl"
14203    shlibpath_var=SHLIB_PATH
14204    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14205    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14206    soname_spec='$libname$release$shared_ext$major'
14207    ;;
14208  esac
14209  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14210  postinstall_cmds='chmod 555 $lib'
14211  # or fails outright, so override atomically:
14212  install_override_mode=555
14213  ;;
14214
14215interix[3-9]*)
14216  version_type=linux # correct to gnu/linux during the next big refactor
14217  need_lib_prefix=no
14218  need_version=no
14219  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14220  soname_spec='$libname$release$shared_ext$major'
14221  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14222  shlibpath_var=LD_LIBRARY_PATH
14223  shlibpath_overrides_runpath=no
14224  hardcode_into_libs=yes
14225  ;;
14226
14227irix5* | irix6* | nonstopux*)
14228  case $host_os in
14229    nonstopux*) version_type=nonstopux ;;
14230    *)
14231	if test yes = "$lt_cv_prog_gnu_ld"; then
14232		version_type=linux # correct to gnu/linux during the next big refactor
14233	else
14234		version_type=irix
14235	fi ;;
14236  esac
14237  need_lib_prefix=no
14238  need_version=no
14239  soname_spec='$libname$release$shared_ext$major'
14240  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14241  case $host_os in
14242  irix5* | nonstopux*)
14243    libsuff= shlibsuff=
14244    ;;
14245  *)
14246    case $LD in # libtool.m4 will add one of these switches to LD
14247    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14248      libsuff= shlibsuff= libmagic=32-bit;;
14249    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14250      libsuff=32 shlibsuff=N32 libmagic=N32;;
14251    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14252      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14253    *) libsuff= shlibsuff= libmagic=never-match;;
14254    esac
14255    ;;
14256  esac
14257  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14258  shlibpath_overrides_runpath=no
14259  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14260  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14261  hardcode_into_libs=yes
14262  ;;
14263
14264# No shared lib support for Linux oldld, aout, or coff.
14265linux*oldld* | linux*aout* | linux*coff*)
14266  dynamic_linker=no
14267  ;;
14268
14269linux*android*)
14270  version_type=none # Android doesn't support versioned libraries.
14271  need_lib_prefix=no
14272  need_version=no
14273  library_names_spec='$libname$release$shared_ext'
14274  soname_spec='$libname$release$shared_ext'
14275  finish_cmds=
14276  shlibpath_var=LD_LIBRARY_PATH
14277  shlibpath_overrides_runpath=yes
14278
14279  # This implies no fast_install, which is unacceptable.
14280  # Some rework will be needed to allow for fast_install
14281  # before this can be enabled.
14282  hardcode_into_libs=yes
14283
14284  dynamic_linker='Android linker'
14285  # Don't embed -rpath directories since the linker doesn't support them.
14286  hardcode_libdir_flag_spec='-L$libdir'
14287  ;;
14288
14289# This must be glibc/ELF.
14290linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14291  version_type=linux # correct to gnu/linux during the next big refactor
14292  need_lib_prefix=no
14293  need_version=no
14294  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14295  soname_spec='$libname$release$shared_ext$major'
14296  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14297  shlibpath_var=LD_LIBRARY_PATH
14298  shlibpath_overrides_runpath=no
14299
14300  # Some binutils ld are patched to set DT_RUNPATH
14301  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14302  $as_echo_n "(cached) " >&6
14303else
14304  lt_cv_shlibpath_overrides_runpath=no
14305    save_LDFLAGS=$LDFLAGS
14306    save_libdir=$libdir
14307    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14308	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14309    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310/* end confdefs.h.  */
14311
14312int
14313main ()
14314{
14315
14316  ;
14317  return 0;
14318}
14319_ACEOF
14320if ac_fn_c_try_link "$LINENO"; then :
14321  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14322  lt_cv_shlibpath_overrides_runpath=yes
14323fi
14324fi
14325rm -f core conftest.err conftest.$ac_objext \
14326    conftest$ac_exeext conftest.$ac_ext
14327    LDFLAGS=$save_LDFLAGS
14328    libdir=$save_libdir
14329
14330fi
14331
14332  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14333
14334  # This implies no fast_install, which is unacceptable.
14335  # Some rework will be needed to allow for fast_install
14336  # before this can be enabled.
14337  hardcode_into_libs=yes
14338
14339  # Ideally, we could use ldconfig to report *all* directores which are
14340  # searched for libraries, however this is still not possible.  Aside from not
14341  # being certain /sbin/ldconfig is available, command
14342  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14343  # even though it is searched at run-time.  Try to do the best guess by
14344  # appending ld.so.conf contents (and includes) to the search path.
14345  if test -f /etc/ld.so.conf; then
14346    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' ' '`
14347    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14348  fi
14349
14350  # We used to test for /lib/ld.so.1 and disable shared libraries on
14351  # powerpc, because MkLinux only supported shared libraries with the
14352  # GNU dynamic linker.  Since this was broken with cross compilers,
14353  # most powerpc-linux boxes support dynamic linking these days and
14354  # people can always --disable-shared, the test was removed, and we
14355  # assume the GNU/Linux dynamic linker is in use.
14356  dynamic_linker='GNU/Linux ld.so'
14357  ;;
14358
14359netbsd*)
14360  version_type=sunos
14361  need_lib_prefix=no
14362  need_version=no
14363  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14364    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14365    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14366    dynamic_linker='NetBSD (a.out) ld.so'
14367  else
14368    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14369    soname_spec='$libname$release$shared_ext$major'
14370    dynamic_linker='NetBSD ld.elf_so'
14371  fi
14372  shlibpath_var=LD_LIBRARY_PATH
14373  shlibpath_overrides_runpath=yes
14374  hardcode_into_libs=yes
14375  ;;
14376
14377newsos6)
14378  version_type=linux # correct to gnu/linux during the next big refactor
14379  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14380  shlibpath_var=LD_LIBRARY_PATH
14381  shlibpath_overrides_runpath=yes
14382  ;;
14383
14384*nto* | *qnx*)
14385  version_type=qnx
14386  need_lib_prefix=no
14387  need_version=no
14388  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14389  soname_spec='$libname$release$shared_ext$major'
14390  shlibpath_var=LD_LIBRARY_PATH
14391  shlibpath_overrides_runpath=no
14392  hardcode_into_libs=yes
14393  dynamic_linker='ldqnx.so'
14394  ;;
14395
14396openbsd* | bitrig*)
14397  version_type=sunos
14398  sys_lib_dlsearch_path_spec=/usr/lib
14399  need_lib_prefix=no
14400  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14401    need_version=no
14402  else
14403    need_version=yes
14404  fi
14405  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14406  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14407  shlibpath_var=LD_LIBRARY_PATH
14408  shlibpath_overrides_runpath=yes
14409  ;;
14410
14411os2*)
14412  libname_spec='$name'
14413  version_type=windows
14414  shrext_cmds=.dll
14415  need_version=no
14416  need_lib_prefix=no
14417  # OS/2 can only load a DLL with a base name of 8 characters or less.
14418  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14419    v=$($ECHO $release$versuffix | tr -d .-);
14420    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14421    $ECHO $n$v`$shared_ext'
14422  library_names_spec='${libname}_dll.$libext'
14423  dynamic_linker='OS/2 ld.exe'
14424  shlibpath_var=BEGINLIBPATH
14425  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14426  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14427  postinstall_cmds='base_file=`basename \$file`~
14428    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14429    dldir=$destdir/`dirname \$dlpath`~
14430    test -d \$dldir || mkdir -p \$dldir~
14431    $install_prog $dir/$dlname \$dldir/$dlname~
14432    chmod a+x \$dldir/$dlname~
14433    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14434      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14435    fi'
14436  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14437    dlpath=$dir/\$dldll~
14438    $RM \$dlpath'
14439  ;;
14440
14441osf3* | osf4* | osf5*)
14442  version_type=osf
14443  need_lib_prefix=no
14444  need_version=no
14445  soname_spec='$libname$release$shared_ext$major'
14446  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14447  shlibpath_var=LD_LIBRARY_PATH
14448  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14449  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14450  ;;
14451
14452rdos*)
14453  dynamic_linker=no
14454  ;;
14455
14456solaris*)
14457  version_type=linux # correct to gnu/linux during the next big refactor
14458  need_lib_prefix=no
14459  need_version=no
14460  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14461  soname_spec='$libname$release$shared_ext$major'
14462  shlibpath_var=LD_LIBRARY_PATH
14463  shlibpath_overrides_runpath=yes
14464  hardcode_into_libs=yes
14465  # ldd complains unless libraries are executable
14466  postinstall_cmds='chmod +x $lib'
14467  ;;
14468
14469sunos4*)
14470  version_type=sunos
14471  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14472  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14473  shlibpath_var=LD_LIBRARY_PATH
14474  shlibpath_overrides_runpath=yes
14475  if test yes = "$with_gnu_ld"; then
14476    need_lib_prefix=no
14477  fi
14478  need_version=yes
14479  ;;
14480
14481sysv4 | sysv4.3*)
14482  version_type=linux # correct to gnu/linux during the next big refactor
14483  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14484  soname_spec='$libname$release$shared_ext$major'
14485  shlibpath_var=LD_LIBRARY_PATH
14486  case $host_vendor in
14487    sni)
14488      shlibpath_overrides_runpath=no
14489      need_lib_prefix=no
14490      runpath_var=LD_RUN_PATH
14491      ;;
14492    siemens)
14493      need_lib_prefix=no
14494      ;;
14495    motorola)
14496      need_lib_prefix=no
14497      need_version=no
14498      shlibpath_overrides_runpath=no
14499      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14500      ;;
14501  esac
14502  ;;
14503
14504sysv4*MP*)
14505  if test -d /usr/nec; then
14506    version_type=linux # correct to gnu/linux during the next big refactor
14507    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14508    soname_spec='$libname$shared_ext.$major'
14509    shlibpath_var=LD_LIBRARY_PATH
14510  fi
14511  ;;
14512
14513sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14514  version_type=sco
14515  need_lib_prefix=no
14516  need_version=no
14517  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14518  soname_spec='$libname$release$shared_ext$major'
14519  shlibpath_var=LD_LIBRARY_PATH
14520  shlibpath_overrides_runpath=yes
14521  hardcode_into_libs=yes
14522  if test yes = "$with_gnu_ld"; then
14523    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14524  else
14525    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14526    case $host_os in
14527      sco3.2v5*)
14528        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14529	;;
14530    esac
14531  fi
14532  sys_lib_dlsearch_path_spec='/usr/lib'
14533  ;;
14534
14535tpf*)
14536  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14537  version_type=linux # correct to gnu/linux during the next big refactor
14538  need_lib_prefix=no
14539  need_version=no
14540  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14541  shlibpath_var=LD_LIBRARY_PATH
14542  shlibpath_overrides_runpath=no
14543  hardcode_into_libs=yes
14544  ;;
14545
14546uts4*)
14547  version_type=linux # correct to gnu/linux during the next big refactor
14548  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14549  soname_spec='$libname$release$shared_ext$major'
14550  shlibpath_var=LD_LIBRARY_PATH
14551  ;;
14552
14553*)
14554  dynamic_linker=no
14555  ;;
14556esac
14557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14558$as_echo "$dynamic_linker" >&6; }
14559test no = "$dynamic_linker" && can_build_shared=no
14560
14561variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14562if test yes = "$GCC"; then
14563  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14564fi
14565
14566if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14567  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14568fi
14569
14570if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14571  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14572fi
14573
14574# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14575configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14576
14577# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14578func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14579
14580# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14581configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14680$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14681hardcode_action=
14682if test -n "$hardcode_libdir_flag_spec" ||
14683   test -n "$runpath_var" ||
14684   test yes = "$hardcode_automatic"; then
14685
14686  # We can hardcode non-existent directories.
14687  if test no != "$hardcode_direct" &&
14688     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14689     # have to relink, otherwise we might link with an installed library
14690     # when we should be linking with a yet-to-be-installed one
14691     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14692     test no != "$hardcode_minus_L"; then
14693    # Linking always hardcodes the temporary library directory.
14694    hardcode_action=relink
14695  else
14696    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14697    hardcode_action=immediate
14698  fi
14699else
14700  # We cannot hardcode anything, or else we can only hardcode existing
14701  # directories.
14702  hardcode_action=unsupported
14703fi
14704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14705$as_echo "$hardcode_action" >&6; }
14706
14707if test relink = "$hardcode_action" ||
14708   test yes = "$inherit_rpath"; then
14709  # Fast installation is not supported
14710  enable_fast_install=no
14711elif test yes = "$shlibpath_overrides_runpath" ||
14712     test no = "$enable_shared"; then
14713  # Fast installation is not necessary
14714  enable_fast_install=needless
14715fi
14716
14717
14718
14719
14720
14721
14722  if test yes != "$enable_dlopen"; then
14723  enable_dlopen=unknown
14724  enable_dlopen_self=unknown
14725  enable_dlopen_self_static=unknown
14726else
14727  lt_cv_dlopen=no
14728  lt_cv_dlopen_libs=
14729
14730  case $host_os in
14731  beos*)
14732    lt_cv_dlopen=load_add_on
14733    lt_cv_dlopen_libs=
14734    lt_cv_dlopen_self=yes
14735    ;;
14736
14737  mingw* | pw32* | cegcc*)
14738    lt_cv_dlopen=LoadLibrary
14739    lt_cv_dlopen_libs=
14740    ;;
14741
14742  cygwin*)
14743    lt_cv_dlopen=dlopen
14744    lt_cv_dlopen_libs=
14745    ;;
14746
14747  darwin*)
14748    # if libdl is installed we need to link against it
14749    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14750$as_echo_n "checking for dlopen in -ldl... " >&6; }
14751if ${ac_cv_lib_dl_dlopen+:} false; then :
14752  $as_echo_n "(cached) " >&6
14753else
14754  ac_check_lib_save_LIBS=$LIBS
14755LIBS=" $LIBS"
14756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757/* end confdefs.h.  */
14758
14759/* Override any GCC internal prototype to avoid an error.
14760   Use char because int might match the return type of a GCC
14761   builtin and then its argument prototype would still apply.  */
14762#ifdef __cplusplus
14763extern "C"
14764#endif
14765char dlopen ();
14766int
14767main ()
14768{
14769return dlopen ();
14770  ;
14771  return 0;
14772}
14773_ACEOF
14774if ac_fn_c_try_link "$LINENO"; then :
14775  ac_cv_lib_dl_dlopen=yes
14776else
14777  ac_cv_lib_dl_dlopen=no
14778fi
14779rm -f core conftest.err conftest.$ac_objext \
14780    conftest$ac_exeext conftest.$ac_ext
14781LIBS=$ac_check_lib_save_LIBS
14782fi
14783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14784$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14785if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14786  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14787else
14788
14789    lt_cv_dlopen=dyld
14790    lt_cv_dlopen_libs=
14791    lt_cv_dlopen_self=yes
14792
14793fi
14794
14795    ;;
14796
14797  tpf*)
14798    # Don't try to run any link tests for TPF.  We know it's impossible
14799    # because TPF is a cross-compiler, and we know how we open DSOs.
14800    lt_cv_dlopen=dlopen
14801    lt_cv_dlopen_libs=
14802    lt_cv_dlopen_self=no
14803    ;;
14804
14805  *)
14806    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14807if test "x$ac_cv_func_shl_load" = xyes; then :
14808  lt_cv_dlopen=shl_load
14809else
14810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14811$as_echo_n "checking for shl_load in -ldld... " >&6; }
14812if ${ac_cv_lib_dld_shl_load+:} false; then :
14813  $as_echo_n "(cached) " >&6
14814else
14815  ac_check_lib_save_LIBS=$LIBS
14816LIBS="-ldld  $LIBS"
14817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14818/* end confdefs.h.  */
14819
14820/* Override any GCC internal prototype to avoid an error.
14821   Use char because int might match the return type of a GCC
14822   builtin and then its argument prototype would still apply.  */
14823#ifdef __cplusplus
14824extern "C"
14825#endif
14826char shl_load ();
14827int
14828main ()
14829{
14830return shl_load ();
14831  ;
14832  return 0;
14833}
14834_ACEOF
14835if ac_fn_c_try_link "$LINENO"; then :
14836  ac_cv_lib_dld_shl_load=yes
14837else
14838  ac_cv_lib_dld_shl_load=no
14839fi
14840rm -f core conftest.err conftest.$ac_objext \
14841    conftest$ac_exeext conftest.$ac_ext
14842LIBS=$ac_check_lib_save_LIBS
14843fi
14844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14845$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14846if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14847  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14848else
14849  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14850if test "x$ac_cv_func_dlopen" = xyes; then :
14851  lt_cv_dlopen=dlopen
14852else
14853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14854$as_echo_n "checking for dlopen in -ldl... " >&6; }
14855if ${ac_cv_lib_dl_dlopen+:} false; then :
14856  $as_echo_n "(cached) " >&6
14857else
14858  ac_check_lib_save_LIBS=$LIBS
14859LIBS=" $LIBS"
14860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14861/* end confdefs.h.  */
14862
14863/* Override any GCC internal prototype to avoid an error.
14864   Use char because int might match the return type of a GCC
14865   builtin and then its argument prototype would still apply.  */
14866#ifdef __cplusplus
14867extern "C"
14868#endif
14869char dlopen ();
14870int
14871main ()
14872{
14873return dlopen ();
14874  ;
14875  return 0;
14876}
14877_ACEOF
14878if ac_fn_c_try_link "$LINENO"; then :
14879  ac_cv_lib_dl_dlopen=yes
14880else
14881  ac_cv_lib_dl_dlopen=no
14882fi
14883rm -f core conftest.err conftest.$ac_objext \
14884    conftest$ac_exeext conftest.$ac_ext
14885LIBS=$ac_check_lib_save_LIBS
14886fi
14887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14888$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14889if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14890  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14891else
14892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14893$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14894if ${ac_cv_lib_svld_dlopen+:} false; then :
14895  $as_echo_n "(cached) " >&6
14896else
14897  ac_check_lib_save_LIBS=$LIBS
14898LIBS="-lsvld  $LIBS"
14899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900/* end confdefs.h.  */
14901
14902/* Override any GCC internal prototype to avoid an error.
14903   Use char because int might match the return type of a GCC
14904   builtin and then its argument prototype would still apply.  */
14905#ifdef __cplusplus
14906extern "C"
14907#endif
14908char dlopen ();
14909int
14910main ()
14911{
14912return dlopen ();
14913  ;
14914  return 0;
14915}
14916_ACEOF
14917if ac_fn_c_try_link "$LINENO"; then :
14918  ac_cv_lib_svld_dlopen=yes
14919else
14920  ac_cv_lib_svld_dlopen=no
14921fi
14922rm -f core conftest.err conftest.$ac_objext \
14923    conftest$ac_exeext conftest.$ac_ext
14924LIBS=$ac_check_lib_save_LIBS
14925fi
14926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14927$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14928if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14929  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14930else
14931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14932$as_echo_n "checking for dld_link in -ldld... " >&6; }
14933if ${ac_cv_lib_dld_dld_link+:} false; then :
14934  $as_echo_n "(cached) " >&6
14935else
14936  ac_check_lib_save_LIBS=$LIBS
14937LIBS="-ldld  $LIBS"
14938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14939/* end confdefs.h.  */
14940
14941/* Override any GCC internal prototype to avoid an error.
14942   Use char because int might match the return type of a GCC
14943   builtin and then its argument prototype would still apply.  */
14944#ifdef __cplusplus
14945extern "C"
14946#endif
14947char dld_link ();
14948int
14949main ()
14950{
14951return dld_link ();
14952  ;
14953  return 0;
14954}
14955_ACEOF
14956if ac_fn_c_try_link "$LINENO"; then :
14957  ac_cv_lib_dld_dld_link=yes
14958else
14959  ac_cv_lib_dld_dld_link=no
14960fi
14961rm -f core conftest.err conftest.$ac_objext \
14962    conftest$ac_exeext conftest.$ac_ext
14963LIBS=$ac_check_lib_save_LIBS
14964fi
14965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14966$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14967if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14968  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14969fi
14970
14971
14972fi
14973
14974
14975fi
14976
14977
14978fi
14979
14980
14981fi
14982
14983
14984fi
14985
14986    ;;
14987  esac
14988
14989  if test no = "$lt_cv_dlopen"; then
14990    enable_dlopen=no
14991  else
14992    enable_dlopen=yes
14993  fi
14994
14995  case $lt_cv_dlopen in
14996  dlopen)
14997    save_CPPFLAGS=$CPPFLAGS
14998    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14999
15000    save_LDFLAGS=$LDFLAGS
15001    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15002
15003    save_LIBS=$LIBS
15004    LIBS="$lt_cv_dlopen_libs $LIBS"
15005
15006    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15007$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15008if ${lt_cv_dlopen_self+:} false; then :
15009  $as_echo_n "(cached) " >&6
15010else
15011  	  if test yes = "$cross_compiling"; then :
15012  lt_cv_dlopen_self=cross
15013else
15014  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15015  lt_status=$lt_dlunknown
15016  cat > conftest.$ac_ext <<_LT_EOF
15017#line $LINENO "configure"
15018#include "confdefs.h"
15019
15020#if HAVE_DLFCN_H
15021#include <dlfcn.h>
15022#endif
15023
15024#include <stdio.h>
15025
15026#ifdef RTLD_GLOBAL
15027#  define LT_DLGLOBAL		RTLD_GLOBAL
15028#else
15029#  ifdef DL_GLOBAL
15030#    define LT_DLGLOBAL		DL_GLOBAL
15031#  else
15032#    define LT_DLGLOBAL		0
15033#  endif
15034#endif
15035
15036/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15037   find out it does not work in some platform. */
15038#ifndef LT_DLLAZY_OR_NOW
15039#  ifdef RTLD_LAZY
15040#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15041#  else
15042#    ifdef DL_LAZY
15043#      define LT_DLLAZY_OR_NOW		DL_LAZY
15044#    else
15045#      ifdef RTLD_NOW
15046#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15047#      else
15048#        ifdef DL_NOW
15049#          define LT_DLLAZY_OR_NOW	DL_NOW
15050#        else
15051#          define LT_DLLAZY_OR_NOW	0
15052#        endif
15053#      endif
15054#    endif
15055#  endif
15056#endif
15057
15058/* When -fvisibility=hidden is used, assume the code has been annotated
15059   correspondingly for the symbols needed.  */
15060#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15061int fnord () __attribute__((visibility("default")));
15062#endif
15063
15064int fnord () { return 42; }
15065int main ()
15066{
15067  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15068  int status = $lt_dlunknown;
15069
15070  if (self)
15071    {
15072      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15073      else
15074        {
15075	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15076          else puts (dlerror ());
15077	}
15078      /* dlclose (self); */
15079    }
15080  else
15081    puts (dlerror ());
15082
15083  return status;
15084}
15085_LT_EOF
15086  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15087  (eval $ac_link) 2>&5
15088  ac_status=$?
15089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15090  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15091    (./conftest; exit; ) >&5 2>/dev/null
15092    lt_status=$?
15093    case x$lt_status in
15094      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15095      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15096      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15097    esac
15098  else :
15099    # compilation failed
15100    lt_cv_dlopen_self=no
15101  fi
15102fi
15103rm -fr conftest*
15104
15105
15106fi
15107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15108$as_echo "$lt_cv_dlopen_self" >&6; }
15109
15110    if test yes = "$lt_cv_dlopen_self"; then
15111      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15112      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15113$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15114if ${lt_cv_dlopen_self_static+:} false; then :
15115  $as_echo_n "(cached) " >&6
15116else
15117  	  if test yes = "$cross_compiling"; then :
15118  lt_cv_dlopen_self_static=cross
15119else
15120  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15121  lt_status=$lt_dlunknown
15122  cat > conftest.$ac_ext <<_LT_EOF
15123#line $LINENO "configure"
15124#include "confdefs.h"
15125
15126#if HAVE_DLFCN_H
15127#include <dlfcn.h>
15128#endif
15129
15130#include <stdio.h>
15131
15132#ifdef RTLD_GLOBAL
15133#  define LT_DLGLOBAL		RTLD_GLOBAL
15134#else
15135#  ifdef DL_GLOBAL
15136#    define LT_DLGLOBAL		DL_GLOBAL
15137#  else
15138#    define LT_DLGLOBAL		0
15139#  endif
15140#endif
15141
15142/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15143   find out it does not work in some platform. */
15144#ifndef LT_DLLAZY_OR_NOW
15145#  ifdef RTLD_LAZY
15146#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15147#  else
15148#    ifdef DL_LAZY
15149#      define LT_DLLAZY_OR_NOW		DL_LAZY
15150#    else
15151#      ifdef RTLD_NOW
15152#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15153#      else
15154#        ifdef DL_NOW
15155#          define LT_DLLAZY_OR_NOW	DL_NOW
15156#        else
15157#          define LT_DLLAZY_OR_NOW	0
15158#        endif
15159#      endif
15160#    endif
15161#  endif
15162#endif
15163
15164/* When -fvisibility=hidden is used, assume the code has been annotated
15165   correspondingly for the symbols needed.  */
15166#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15167int fnord () __attribute__((visibility("default")));
15168#endif
15169
15170int fnord () { return 42; }
15171int main ()
15172{
15173  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15174  int status = $lt_dlunknown;
15175
15176  if (self)
15177    {
15178      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15179      else
15180        {
15181	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15182          else puts (dlerror ());
15183	}
15184      /* dlclose (self); */
15185    }
15186  else
15187    puts (dlerror ());
15188
15189  return status;
15190}
15191_LT_EOF
15192  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15193  (eval $ac_link) 2>&5
15194  ac_status=$?
15195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15196  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15197    (./conftest; exit; ) >&5 2>/dev/null
15198    lt_status=$?
15199    case x$lt_status in
15200      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15201      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15202      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15203    esac
15204  else :
15205    # compilation failed
15206    lt_cv_dlopen_self_static=no
15207  fi
15208fi
15209rm -fr conftest*
15210
15211
15212fi
15213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15214$as_echo "$lt_cv_dlopen_self_static" >&6; }
15215    fi
15216
15217    CPPFLAGS=$save_CPPFLAGS
15218    LDFLAGS=$save_LDFLAGS
15219    LIBS=$save_LIBS
15220    ;;
15221  esac
15222
15223  case $lt_cv_dlopen_self in
15224  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15225  *) enable_dlopen_self=unknown ;;
15226  esac
15227
15228  case $lt_cv_dlopen_self_static in
15229  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15230  *) enable_dlopen_self_static=unknown ;;
15231  esac
15232fi
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250striplib=
15251old_striplib=
15252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15253$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15254if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15255  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15256  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15258$as_echo "yes" >&6; }
15259else
15260# FIXME - insert some real tests, host_os isn't really good enough
15261  case $host_os in
15262  darwin*)
15263    if test -n "$STRIP"; then
15264      striplib="$STRIP -x"
15265      old_striplib="$STRIP -S"
15266      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15267$as_echo "yes" >&6; }
15268    else
15269      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15270$as_echo "no" >&6; }
15271    fi
15272    ;;
15273  *)
15274    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15275$as_echo "no" >&6; }
15276    ;;
15277  esac
15278fi
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291  # Report what library types will actually be built
15292  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15293$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15295$as_echo "$can_build_shared" >&6; }
15296
15297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15298$as_echo_n "checking whether to build shared libraries... " >&6; }
15299  test no = "$can_build_shared" && enable_shared=no
15300
15301  # On AIX, shared libraries and static libraries use the same namespace, and
15302  # are all built from PIC.
15303  case $host_os in
15304  aix3*)
15305    test yes = "$enable_shared" && enable_static=no
15306    if test -n "$RANLIB"; then
15307      archive_cmds="$archive_cmds~\$RANLIB \$lib"
15308      postinstall_cmds='$RANLIB $lib'
15309    fi
15310    ;;
15311
15312  aix[4-9]*)
15313    if test ia64 != "$host_cpu"; then
15314      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15315      yes,aix,yes) ;;			# shared object as lib.so file only
15316      yes,svr4,*) ;;			# shared object as lib.so archive member only
15317      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
15318      esac
15319    fi
15320    ;;
15321  esac
15322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15323$as_echo "$enable_shared" >&6; }
15324
15325  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15326$as_echo_n "checking whether to build static libraries... " >&6; }
15327  # Make sure either enable_shared or enable_static is yes.
15328  test yes = "$enable_shared" || enable_static=yes
15329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15330$as_echo "$enable_static" >&6; }
15331
15332
15333
15334
15335fi
15336ac_ext=c
15337ac_cpp='$CPP $CPPFLAGS'
15338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15340ac_compiler_gnu=$ac_cv_c_compiler_gnu
15341
15342CC=$lt_save_CC
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358        ac_config_commands="$ac_config_commands libtool"
15359
15360
15361
15362
15363# Only expand once:
15364
15365
15366
15367{ $as_echo "$as_me:${as_lineno-$LINENO}: finding other utilities" >&5
15368$as_echo "$as_me: finding other utilities" >&6;}
15369
15370# Is m4 installed? If not, bail.
15371for ac_prog in m4
15372do
15373  # Extract the first word of "$ac_prog", so it can be a program name with args.
15374set dummy $ac_prog; ac_word=$2
15375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15376$as_echo_n "checking for $ac_word... " >&6; }
15377if ${ac_cv_prog_NC_M4+:} false; then :
15378  $as_echo_n "(cached) " >&6
15379else
15380  if test -n "$NC_M4"; then
15381  ac_cv_prog_NC_M4="$NC_M4" # Let the user override the test.
15382else
15383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15384for as_dir in $PATH
15385do
15386  IFS=$as_save_IFS
15387  test -z "$as_dir" && as_dir=.
15388    for ac_exec_ext in '' $ac_executable_extensions; do
15389  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15390    ac_cv_prog_NC_M4="$ac_prog"
15391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15392    break 2
15393  fi
15394done
15395  done
15396IFS=$as_save_IFS
15397
15398fi
15399fi
15400NC_M4=$ac_cv_prog_NC_M4
15401if test -n "$NC_M4"; then
15402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NC_M4" >&5
15403$as_echo "$NC_M4" >&6; }
15404else
15405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15406$as_echo "no" >&6; }
15407fi
15408
15409
15410  test -n "$NC_M4" && break
15411done
15412
15413if test -z "$NC_M4"; then
15414   as_fn_error $? "Cannot find m4 utility. Install m4 and try again." "$LINENO" 5
15415fi
15416
15417# Is doxygen installed? If so, have configure construct the Doxyfile.
15418for ac_prog in doxygen
15419do
15420  # Extract the first word of "$ac_prog", so it can be a program name with args.
15421set dummy $ac_prog; ac_word=$2
15422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15423$as_echo_n "checking for $ac_word... " >&6; }
15424if ${ac_cv_prog_DOXYGEN+:} false; then :
15425  $as_echo_n "(cached) " >&6
15426else
15427  if test -n "$DOXYGEN"; then
15428  ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
15429else
15430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15431for as_dir in $PATH
15432do
15433  IFS=$as_save_IFS
15434  test -z "$as_dir" && as_dir=.
15435    for ac_exec_ext in '' $ac_executable_extensions; do
15436  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15437    ac_cv_prog_DOXYGEN="$ac_prog"
15438    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15439    break 2
15440  fi
15441done
15442  done
15443IFS=$as_save_IFS
15444
15445fi
15446fi
15447DOXYGEN=$ac_cv_prog_DOXYGEN
15448if test -n "$DOXYGEN"; then
15449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
15450$as_echo "$DOXYGEN" >&6; }
15451else
15452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15453$as_echo "no" >&6; }
15454fi
15455
15456
15457  test -n "$DOXYGEN" && break
15458done
15459
15460if test -z "$DOXYGEN"; then
15461   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen not found - documentation will not be built" >&5
15462$as_echo "$as_me: WARNING: Doxygen not found - documentation will not be built" >&2;}
15463fi
15464
15465# Is graphviz/dot installed? If so, we'll use dot to create
15466# graphs in the documentation.
15467for ac_prog in dot
15468do
15469  # Extract the first word of "$ac_prog", so it can be a program name with args.
15470set dummy $ac_prog; ac_word=$2
15471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15472$as_echo_n "checking for $ac_word... " >&6; }
15473if ${ac_cv_prog_DOT+:} false; then :
15474  $as_echo_n "(cached) " >&6
15475else
15476  if test -n "$DOT"; then
15477  ac_cv_prog_DOT="$DOT" # Let the user override the test.
15478else
15479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15480for as_dir in $PATH
15481do
15482  IFS=$as_save_IFS
15483  test -z "$as_dir" && as_dir=.
15484    for ac_exec_ext in '' $ac_executable_extensions; do
15485  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15486    ac_cv_prog_DOT="$ac_prog"
15487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15488    break 2
15489  fi
15490done
15491  done
15492IFS=$as_save_IFS
15493
15494fi
15495fi
15496DOT=$ac_cv_prog_DOT
15497if test -n "$DOT"; then
15498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
15499$as_echo "$DOT" >&6; }
15500else
15501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15502$as_echo "no" >&6; }
15503fi
15504
15505
15506  test -n "$DOT" && break
15507done
15508
15509if test -z "$DOT"; then
15510   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will use simple charts in documentation" >&5
15511$as_echo "$as_me: WARNING: dot not found - will use simple charts in documentation" >&2;}
15512   HAVE_DOT=NO
15513elif test "x$enable_dot" = xno; then
15514   HAVE_DOT=NO
15515else
15516   HAVE_DOT=YES
15517fi
15518# If we have doxygen, and it's enabled, then process the file.
15519if test "x$enable_doxygen" != xno; then
15520   if test -n "$DOXYGEN"; then
15521
15522        ac_config_files="$ac_config_files docs/Doxyfile"
15523
15524   fi
15525# Note: the list of files to input to doxygen
15526# has been moved to docs/Doxyfile.in so
15527# that make distcheck works correctly.
15528# Any new inputs should be inserted into
15529# docs/Doxyfile.in and possibley docs/Makefile.am
15530fi
15531
15532# Find the install program.
15533
15534
15535# Check to see if any macros must be set to enable large (>2GB) files.
15536# Check whether --enable-largefile was given.
15537if test "${enable_largefile+set}" = set; then :
15538  enableval=$enable_largefile;
15539fi
15540
15541if test "$enable_largefile" != no; then
15542
15543  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15544$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15545if ${ac_cv_sys_largefile_CC+:} false; then :
15546  $as_echo_n "(cached) " >&6
15547else
15548  ac_cv_sys_largefile_CC=no
15549     if test "$GCC" != yes; then
15550       ac_save_CC=$CC
15551       while :; do
15552	 # IRIX 6.2 and later do not support large files by default,
15553	 # so use the C compiler's -n32 option if that helps.
15554	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15555/* end confdefs.h.  */
15556#include <sys/types.h>
15557 /* Check that off_t can represent 2**63 - 1 correctly.
15558    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15559    since some C++ compilers masquerading as C compilers
15560    incorrectly reject 9223372036854775807.  */
15561#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15562  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15563		       && LARGE_OFF_T % 2147483647 == 1)
15564		      ? 1 : -1];
15565int
15566main ()
15567{
15568
15569  ;
15570  return 0;
15571}
15572_ACEOF
15573	 if ac_fn_c_try_compile "$LINENO"; then :
15574  break
15575fi
15576rm -f core conftest.err conftest.$ac_objext
15577	 CC="$CC -n32"
15578	 if ac_fn_c_try_compile "$LINENO"; then :
15579  ac_cv_sys_largefile_CC=' -n32'; break
15580fi
15581rm -f core conftest.err conftest.$ac_objext
15582	 break
15583       done
15584       CC=$ac_save_CC
15585       rm -f conftest.$ac_ext
15586    fi
15587fi
15588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15589$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15590  if test "$ac_cv_sys_largefile_CC" != no; then
15591    CC=$CC$ac_cv_sys_largefile_CC
15592  fi
15593
15594  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15595$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15596if ${ac_cv_sys_file_offset_bits+:} false; then :
15597  $as_echo_n "(cached) " >&6
15598else
15599  while :; do
15600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15601/* end confdefs.h.  */
15602#include <sys/types.h>
15603 /* Check that off_t can represent 2**63 - 1 correctly.
15604    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15605    since some C++ compilers masquerading as C compilers
15606    incorrectly reject 9223372036854775807.  */
15607#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15608  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15609		       && LARGE_OFF_T % 2147483647 == 1)
15610		      ? 1 : -1];
15611int
15612main ()
15613{
15614
15615  ;
15616  return 0;
15617}
15618_ACEOF
15619if ac_fn_c_try_compile "$LINENO"; then :
15620  ac_cv_sys_file_offset_bits=no; break
15621fi
15622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15624/* end confdefs.h.  */
15625#define _FILE_OFFSET_BITS 64
15626#include <sys/types.h>
15627 /* Check that off_t can represent 2**63 - 1 correctly.
15628    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15629    since some C++ compilers masquerading as C compilers
15630    incorrectly reject 9223372036854775807.  */
15631#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15632  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15633		       && LARGE_OFF_T % 2147483647 == 1)
15634		      ? 1 : -1];
15635int
15636main ()
15637{
15638
15639  ;
15640  return 0;
15641}
15642_ACEOF
15643if ac_fn_c_try_compile "$LINENO"; then :
15644  ac_cv_sys_file_offset_bits=64; break
15645fi
15646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15647  ac_cv_sys_file_offset_bits=unknown
15648  break
15649done
15650fi
15651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15652$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15653case $ac_cv_sys_file_offset_bits in #(
15654  no | unknown) ;;
15655  *)
15656cat >>confdefs.h <<_ACEOF
15657#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15658_ACEOF
15659;;
15660esac
15661rm -rf conftest*
15662  if test $ac_cv_sys_file_offset_bits = unknown; then
15663    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15664$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15665if ${ac_cv_sys_large_files+:} false; then :
15666  $as_echo_n "(cached) " >&6
15667else
15668  while :; do
15669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670/* end confdefs.h.  */
15671#include <sys/types.h>
15672 /* Check that off_t can represent 2**63 - 1 correctly.
15673    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15674    since some C++ compilers masquerading as C compilers
15675    incorrectly reject 9223372036854775807.  */
15676#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15677  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15678		       && LARGE_OFF_T % 2147483647 == 1)
15679		      ? 1 : -1];
15680int
15681main ()
15682{
15683
15684  ;
15685  return 0;
15686}
15687_ACEOF
15688if ac_fn_c_try_compile "$LINENO"; then :
15689  ac_cv_sys_large_files=no; break
15690fi
15691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15693/* end confdefs.h.  */
15694#define _LARGE_FILES 1
15695#include <sys/types.h>
15696 /* Check that off_t can represent 2**63 - 1 correctly.
15697    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15698    since some C++ compilers masquerading as C compilers
15699    incorrectly reject 9223372036854775807.  */
15700#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15701  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15702		       && LARGE_OFF_T % 2147483647 == 1)
15703		      ? 1 : -1];
15704int
15705main ()
15706{
15707
15708  ;
15709  return 0;
15710}
15711_ACEOF
15712if ac_fn_c_try_compile "$LINENO"; then :
15713  ac_cv_sys_large_files=1; break
15714fi
15715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15716  ac_cv_sys_large_files=unknown
15717  break
15718done
15719fi
15720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15721$as_echo "$ac_cv_sys_large_files" >&6; }
15722case $ac_cv_sys_large_files in #(
15723  no | unknown) ;;
15724  *)
15725cat >>confdefs.h <<_ACEOF
15726#define _LARGE_FILES $ac_cv_sys_large_files
15727_ACEOF
15728;;
15729esac
15730rm -rf conftest*
15731  fi
15732
15733
15734fi
15735
15736
15737{ $as_echo "$as_me:${as_lineno-$LINENO}: displaying some results" >&5
15738$as_echo "$as_me: displaying some results" >&6;}
15739
15740## This next macro just prints some results for debugging
15741## support issues.
15742
15743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CPPFLAGS" >&5
15744$as_echo_n "checking CPPFLAGS... " >&6; }
15745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPFLAGS" >&5
15746$as_echo "$CPPFLAGS" >&6; }
15747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CC CFLAGS" >&5
15748$as_echo_n "checking CC CFLAGS... " >&6; }
15749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC $CFLAGS" >&5
15750$as_echo "$CC $CFLAGS" >&6; }
15751ud_type_cc=`type $CC`
15752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type $CC" >&5
15753$as_echo_n "checking type $CC... " >&6; }
15754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ud_type_cc" >&5
15755$as_echo "$ud_type_cc" >&6; }
15756
15757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXX" >&5
15758$as_echo_n "checking CXX... " >&6; }
15759if test -n "$CXX"; then
15760	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
15761$as_echo "$CXX" >&6; }
15762	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS" >&5
15763$as_echo_n "checking CXXFLAGS... " >&6; }
15764	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXFLAGS" >&5
15765$as_echo "$CXXFLAGS" >&6; }
15766	ud_type_CXX=`type $CXX`
15767	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type $CXX" >&5
15768$as_echo_n "checking type $CXX... " >&6; }
15769	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ud_type_CXX" >&5
15770$as_echo "$ud_type_CXX" >&6; }
15771else
15772	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unset" >&5
15773$as_echo "unset" >&6; }
15774fi
15775
15776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking FC" >&5
15777$as_echo_n "checking FC... " >&6; }
15778if test -n "$FC"; then
15779	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
15780$as_echo "$FC" >&6; }
15781	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking FFLAGS" >&5
15782$as_echo_n "checking FFLAGS... " >&6; }
15783	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFLAGS" >&5
15784$as_echo "$FFLAGS" >&6; }
15785	ud_type_fc=`type $FC`
15786	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type $FC" >&5
15787$as_echo_n "checking type $FC... " >&6; }
15788	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ud_type_fc" >&5
15789$as_echo "$ud_type_fc" >&6; }
15790else
15791	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unset" >&5
15792$as_echo "unset" >&6; }
15793fi
15794
15795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking F90" >&5
15796$as_echo_n "checking F90... " >&6; }
15797if test -n "$F90"; then
15798	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $F90" >&5
15799$as_echo "$F90" >&6; }
15800	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking FCFLAGS" >&5
15801$as_echo_n "checking FCFLAGS... " >&6; }
15802	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FCFLAGS" >&5
15803$as_echo "$FCFLAGS" >&6; }
15804	ud_type_F90=`type $F90`
15805	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type $F90" >&5
15806$as_echo_n "checking type $F90... " >&6; }
15807	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ud_type_F90" >&5
15808$as_echo "$ud_type_F90" >&6; }
15809else
15810	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unset" >&5
15811$as_echo "unset" >&6; }
15812fi
15813
15814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking AR" >&5
15815$as_echo_n "checking AR... " >&6; }
15816if test -n "$AR"; then
15817	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
15818$as_echo "$AR" >&6; }
15819	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking AR_FLAGS" >&5
15820$as_echo_n "checking AR_FLAGS... " >&6; }
15821	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FLAGS" >&5
15822$as_echo "$AR_FLAGS" >&6; }
15823	ud_type_AR=`type $AR`
15824	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type $AR" >&5
15825$as_echo_n "checking type $AR... " >&6; }
15826	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ud_type_AR" >&5
15827$as_echo "$ud_type_AR" >&6; }
15828else
15829	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unset" >&5
15830$as_echo "unset" >&6; }
15831fi
15832
15833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking NM" >&5
15834$as_echo_n "checking NM... " >&6; }
15835if test -n "$NM"; then
15836	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
15837$as_echo "$NM" >&6; }
15838	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking NMFLAGS" >&5
15839$as_echo_n "checking NMFLAGS... " >&6; }
15840	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMFLAGS" >&5
15841$as_echo "$NMFLAGS" >&6; }
15842#	ud_type_NM=`type $NM`
15843#	AC_MSG_CHECKING(type $NM)
15844#	AC_MSG_RESULT($ud_type_NM)
15845else
15846	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unset" >&5
15847$as_echo "unset" >&6; }
15848fi
15849
15850
15851
15852# For nightly build testing, output CC, FC, etc.
15853echo "CPPFLAGS=$CPPFLAGS CC=$CC CFLAGS=$CFLAGS LDFLAGS=$LDFLAGS LIBS=$LIBS" >> comps.txt
15854
15855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types, headers, and functions" >&5
15856$as_echo "$as_me: checking types, headers, and functions" >&6;}
15857
15858for ac_header in sys/param.h
15859do :
15860  ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15861if test "x$ac_cv_header_sys_param_h" = xyes; then :
15862  cat >>confdefs.h <<_ACEOF
15863#define HAVE_SYS_PARAM_H 1
15864_ACEOF
15865
15866fi
15867
15868done
15869
15870for ac_header in libgen.h
15871do :
15872  ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
15873if test "x$ac_cv_header_libgen_h" = xyes; then :
15874  cat >>confdefs.h <<_ACEOF
15875#define HAVE_LIBGEN_H 1
15876_ACEOF
15877
15878fi
15879
15880done
15881
15882#AC_CHECK_HEADERS([locale.h])
15883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15884$as_echo_n "checking for ANSI C header files... " >&6; }
15885if ${ac_cv_header_stdc+:} false; then :
15886  $as_echo_n "(cached) " >&6
15887else
15888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15889/* end confdefs.h.  */
15890#include <stdlib.h>
15891#include <stdarg.h>
15892#include <string.h>
15893#include <float.h>
15894
15895int
15896main ()
15897{
15898
15899  ;
15900  return 0;
15901}
15902_ACEOF
15903if ac_fn_c_try_compile "$LINENO"; then :
15904  ac_cv_header_stdc=yes
15905else
15906  ac_cv_header_stdc=no
15907fi
15908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15909
15910if test $ac_cv_header_stdc = yes; then
15911  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913/* end confdefs.h.  */
15914#include <string.h>
15915
15916_ACEOF
15917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15918  $EGREP "memchr" >/dev/null 2>&1; then :
15919
15920else
15921  ac_cv_header_stdc=no
15922fi
15923rm -f conftest*
15924
15925fi
15926
15927if test $ac_cv_header_stdc = yes; then
15928  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15930/* end confdefs.h.  */
15931#include <stdlib.h>
15932
15933_ACEOF
15934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15935  $EGREP "free" >/dev/null 2>&1; then :
15936
15937else
15938  ac_cv_header_stdc=no
15939fi
15940rm -f conftest*
15941
15942fi
15943
15944if test $ac_cv_header_stdc = yes; then
15945  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15946  if test "$cross_compiling" = yes; then :
15947  :
15948else
15949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950/* end confdefs.h.  */
15951#include <ctype.h>
15952#include <stdlib.h>
15953#if ((' ' & 0x0FF) == 0x020)
15954# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15955# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15956#else
15957# define ISLOWER(c) \
15958		   (('a' <= (c) && (c) <= 'i') \
15959		     || ('j' <= (c) && (c) <= 'r') \
15960		     || ('s' <= (c) && (c) <= 'z'))
15961# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15962#endif
15963
15964#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15965int
15966main ()
15967{
15968  int i;
15969  for (i = 0; i < 256; i++)
15970    if (XOR (islower (i), ISLOWER (i))
15971	|| toupper (i) != TOUPPER (i))
15972      return 2;
15973  return 0;
15974}
15975_ACEOF
15976if ac_fn_c_try_run "$LINENO"; then :
15977
15978else
15979  ac_cv_header_stdc=no
15980fi
15981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15982  conftest.$ac_objext conftest.beam conftest.$ac_ext
15983fi
15984
15985fi
15986fi
15987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15988$as_echo "$ac_cv_header_stdc" >&6; }
15989if test $ac_cv_header_stdc = yes; then
15990
15991$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15992
15993fi
15994
15995for ac_header in locale.h stdio.h stdarg.h fcntl.h malloc.h stdlib.h string.h strings.h unistd.h sys/stat.h getopt.h sys/time.h sys/types.h
15996do :
15997  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15998ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15999if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16000  cat >>confdefs.h <<_ACEOF
16001#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16002_ACEOF
16003
16004fi
16005
16006done
16007
16008
16009# Do sys/resource.h separately
16010#AC_CHECK_HEADERS([sys/resource.h],[havesysresource=1],[havesysresource=0])
16011#if test "x$enable_dll" != xyes ; then
16012for ac_header in sys/resource.h
16013do :
16014  ac_fn_c_check_header_mongrel "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
16015if test "x$ac_cv_header_sys_resource_h" = xyes; then :
16016  cat >>confdefs.h <<_ACEOF
16017#define HAVE_SYS_RESOURCE_H 1
16018_ACEOF
16019
16020fi
16021
16022done
16023
16024#fi
16025
16026# See if we have ftw.h to walk directory trees
16027for ac_header in ftw.h
16028do :
16029  ac_fn_c_check_header_mongrel "$LINENO" "ftw.h" "ac_cv_header_ftw_h" "$ac_includes_default"
16030if test "x$ac_cv_header_ftw_h" = xyes; then :
16031  cat >>confdefs.h <<_ACEOF
16032#define HAVE_FTW_H 1
16033_ACEOF
16034
16035fi
16036
16037done
16038
16039
16040# Check for these functions...
16041for ac_func in strlcat snprintf strcasecmp fileno \
16042                strdup strtoll strtoull \
16043		mkstemp mktemp random \
16044		getrlimit gettimeofday fsync MPI_Comm_f2c MPI_Info_f2c
16045do :
16046  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16047ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16048if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16049  cat >>confdefs.h <<_ACEOF
16050#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16051_ACEOF
16052
16053fi
16054done
16055
16056
16057# disable dap4 if netcdf-4 is disabled
16058#if test "x$enable_netcdf_4" = "xno" ; then
16059if test "x$enable_hdf5" = "xno" ; then
16060    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: netcdf-4 not enabled; disabling DAP4" >&5
16061$as_echo "$as_me: WARNING: netcdf-4 not enabled; disabling DAP4" >&2;}
16062    enable_dap4=no
16063fi
16064
16065if test "x$enable_dap4" = xyes; then
16066
16067$as_echo "#define ENABLE_DAP4 1" >>confdefs.h
16068
16069fi
16070
16071# check for useful, but not essential, memio support
16072for ac_func in memmove getpagesize sysconf
16073do :
16074  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16075ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16076if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16077  cat >>confdefs.h <<_ACEOF
16078#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16079_ACEOF
16080
16081fi
16082done
16083
16084
16085# Does the user want to allow use of mmap for NC_DISKLESS?
16086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap is enabled for in-memory files" >&5
16087$as_echo_n "checking whether mmap is enabled for in-memory files... " >&6; }
16088# Check whether --enable-mmap was given.
16089if test "${enable_mmap+set}" = set; then :
16090  enableval=$enable_mmap;
16091fi
16092
16093test "x$enable_mmap" = xyes || enable_mmap=no
16094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mmap" >&5
16095$as_echo "$enable_mmap" >&6; }
16096
16097# check for mmap availability before committing to use mmap
16098have_mmap="$enable_mmap"
16099for ac_func in mmap
16100do :
16101  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16102if test "x$ac_cv_func_mmap" = xyes; then :
16103  cat >>confdefs.h <<_ACEOF
16104#define HAVE_MMAP 1
16105_ACEOF
16106 havemmapfcn=yes
16107else
16108  havemmapfcn=no
16109fi
16110done
16111
16112if test "x$havemmapfcn" = xno ; then
16113have_mmap=no
16114fi
16115
16116# check for mremap availability; not strictly needed
16117for ac_func in mremap
16118do :
16119  ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap"
16120if test "x$ac_cv_func_mremap" = xyes; then :
16121  cat >>confdefs.h <<_ACEOF
16122#define HAVE_MREMAP 1
16123_ACEOF
16124 havemremapfcn=yes
16125else
16126  havemmapfcn=no
16127fi
16128done
16129
16130
16131# Check for MAP_ANONYMOUS
16132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16133/* end confdefs.h.  */
16134#include <sys/mman.h>
16135int
16136main ()
16137{
16138int x = MAP_ANONYMOUS;
16139  ;
16140  return 0;
16141}
16142_ACEOF
16143if ac_fn_c_try_compile "$LINENO"; then :
16144  havemapanon=yes
16145else
16146  havemapanon=no
16147fi
16148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MAP_ANONYMOUS is defined" >&5
16150$as_echo_n "checking whether MAP_ANONYMOUS is defined... " >&6; }
16151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${havemapanon}" >&5
16152$as_echo "${havemapanon}" >&6; }
16153if test "x$havemapanon" != xyes ; then
16154  have_mmap=no
16155fi
16156
16157if test "x$have_mmap" != xyes ; then
16158  echo "mmap functionality is not available: disabling mmap"
16159  enable_mmap=no
16160fi
16161
16162if test "x$enable_mmap" = xyes; then
16163
16164$as_echo "#define USE_MMAP 1" >>confdefs.h
16165
16166fi
16167
16168# Does the user want to allow reading of remote data via range headers?
16169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte range support is enabled" >&5
16170$as_echo_n "checking whether byte range support is enabled... " >&6; }
16171# Check whether --enable-byterange was given.
16172if test "${enable_byterange+set}" = set; then :
16173  enableval=$enable_byterange;
16174fi
16175
16176test "x$enable_byterange" = xyes || enable_byterange=no
16177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_byterange" >&5
16178$as_echo "$enable_byterange" >&6; }
16179# Need curl for byte ranges
16180if test "x$found_curl" = xno && test "x$enable_byterange" = xyes ; then
16181  as_fn_error $? "curl required for byte range support. Install curl or build without --enable-byterange." "$LINENO" 5
16182  enable_byterange=no
16183fi
16184
16185if test "x$enable_byterange" = xyes; then
16186
16187$as_echo "#define ENABLE_BYTERANGE 1" >>confdefs.h
16188
16189fi
16190
16191ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16192if test "x$ac_cv_type_size_t" = xyes; then :
16193
16194else
16195
16196cat >>confdefs.h <<_ACEOF
16197#define size_t unsigned int
16198_ACEOF
16199
16200fi
16201
16202# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16203# for constant arguments.  Useless!
16204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16205$as_echo_n "checking for working alloca.h... " >&6; }
16206if ${ac_cv_working_alloca_h+:} false; then :
16207  $as_echo_n "(cached) " >&6
16208else
16209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16210/* end confdefs.h.  */
16211#include <alloca.h>
16212int
16213main ()
16214{
16215char *p = (char *) alloca (2 * sizeof (int));
16216			  if (p) return 0;
16217  ;
16218  return 0;
16219}
16220_ACEOF
16221if ac_fn_c_try_link "$LINENO"; then :
16222  ac_cv_working_alloca_h=yes
16223else
16224  ac_cv_working_alloca_h=no
16225fi
16226rm -f core conftest.err conftest.$ac_objext \
16227    conftest$ac_exeext conftest.$ac_ext
16228fi
16229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16230$as_echo "$ac_cv_working_alloca_h" >&6; }
16231if test $ac_cv_working_alloca_h = yes; then
16232
16233$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16234
16235fi
16236
16237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16238$as_echo_n "checking for alloca... " >&6; }
16239if ${ac_cv_func_alloca_works+:} false; then :
16240  $as_echo_n "(cached) " >&6
16241else
16242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16243/* end confdefs.h.  */
16244#ifdef __GNUC__
16245# define alloca __builtin_alloca
16246#else
16247# ifdef _MSC_VER
16248#  include <malloc.h>
16249#  define alloca _alloca
16250# else
16251#  ifdef HAVE_ALLOCA_H
16252#   include <alloca.h>
16253#  else
16254#   ifdef _AIX
16255 #pragma alloca
16256#   else
16257#    ifndef alloca /* predefined by HP cc +Olibcalls */
16258void *alloca (size_t);
16259#    endif
16260#   endif
16261#  endif
16262# endif
16263#endif
16264
16265int
16266main ()
16267{
16268char *p = (char *) alloca (1);
16269				    if (p) return 0;
16270  ;
16271  return 0;
16272}
16273_ACEOF
16274if ac_fn_c_try_link "$LINENO"; then :
16275  ac_cv_func_alloca_works=yes
16276else
16277  ac_cv_func_alloca_works=no
16278fi
16279rm -f core conftest.err conftest.$ac_objext \
16280    conftest$ac_exeext conftest.$ac_ext
16281fi
16282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16283$as_echo "$ac_cv_func_alloca_works" >&6; }
16284
16285if test $ac_cv_func_alloca_works = yes; then
16286
16287$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16288
16289else
16290  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16291# that cause trouble.  Some versions do not even contain alloca or
16292# contain a buggy version.  If you still want to use their alloca,
16293# use ar to extract alloca.o from them instead of compiling alloca.c.
16294
16295ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16296
16297$as_echo "#define C_ALLOCA 1" >>confdefs.h
16298
16299
16300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16301$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16302if ${ac_cv_os_cray+:} false; then :
16303  $as_echo_n "(cached) " >&6
16304else
16305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306/* end confdefs.h.  */
16307#if defined CRAY && ! defined CRAY2
16308webecray
16309#else
16310wenotbecray
16311#endif
16312
16313_ACEOF
16314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16315  $EGREP "webecray" >/dev/null 2>&1; then :
16316  ac_cv_os_cray=yes
16317else
16318  ac_cv_os_cray=no
16319fi
16320rm -f conftest*
16321
16322fi
16323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16324$as_echo "$ac_cv_os_cray" >&6; }
16325if test $ac_cv_os_cray = yes; then
16326  for ac_func in _getb67 GETB67 getb67; do
16327    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16328ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16329if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16330
16331cat >>confdefs.h <<_ACEOF
16332#define CRAY_STACKSEG_END $ac_func
16333_ACEOF
16334
16335    break
16336fi
16337
16338  done
16339fi
16340
16341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16342$as_echo_n "checking stack direction for C alloca... " >&6; }
16343if ${ac_cv_c_stack_direction+:} false; then :
16344  $as_echo_n "(cached) " >&6
16345else
16346  if test "$cross_compiling" = yes; then :
16347  ac_cv_c_stack_direction=0
16348else
16349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350/* end confdefs.h.  */
16351$ac_includes_default
16352int
16353find_stack_direction (int *addr, int depth)
16354{
16355  int dir, dummy = 0;
16356  if (! addr)
16357    addr = &dummy;
16358  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16359  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16360  return dir + dummy;
16361}
16362
16363int
16364main (int argc, char **argv)
16365{
16366  return find_stack_direction (0, argc + !argv + 20) < 0;
16367}
16368_ACEOF
16369if ac_fn_c_try_run "$LINENO"; then :
16370  ac_cv_c_stack_direction=1
16371else
16372  ac_cv_c_stack_direction=-1
16373fi
16374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16375  conftest.$ac_objext conftest.beam conftest.$ac_ext
16376fi
16377
16378fi
16379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16380$as_echo "$ac_cv_c_stack_direction" >&6; }
16381cat >>confdefs.h <<_ACEOF
16382#define STACK_DIRECTION $ac_cv_c_stack_direction
16383_ACEOF
16384
16385
16386fi
16387
16388ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
16389"
16390if test "x$ac_cv_have_decl_isnan" = xyes; then :
16391  ac_have_decl=1
16392else
16393  ac_have_decl=0
16394fi
16395
16396cat >>confdefs.h <<_ACEOF
16397#define HAVE_DECL_ISNAN $ac_have_decl
16398_ACEOF
16399ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
16400"
16401if test "x$ac_cv_have_decl_isinf" = xyes; then :
16402  ac_have_decl=1
16403else
16404  ac_have_decl=0
16405fi
16406
16407cat >>confdefs.h <<_ACEOF
16408#define HAVE_DECL_ISINF $ac_have_decl
16409_ACEOF
16410ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h>
16411"
16412if test "x$ac_cv_have_decl_isfinite" = xyes; then :
16413  ac_have_decl=1
16414else
16415  ac_have_decl=0
16416fi
16417
16418cat >>confdefs.h <<_ACEOF
16419#define HAVE_DECL_ISFINITE $ac_have_decl
16420_ACEOF
16421
16422ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16423if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
16424
16425cat >>confdefs.h <<_ACEOF
16426#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16427_ACEOF
16428
16429
16430$as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
16431
16432fi
16433
16434
16435
16436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IEEE floating point format" >&5
16437$as_echo_n "checking for IEEE floating point format... " >&6; }
16438if test "$cross_compiling" = yes; then :
16439  :
16440else
16441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16442/* end confdefs.h.  */
16443#ifndef NO_FLOAT_H
16444#include <float.h>
16445#endif
16446
16447#define EXIT_NOTIEEE	1
16448#define EXIT_MAYBEIEEE	0
16449
16450int
16451main()
16452{
16453#if	defined(FLT_RADIX)	&& FLT_RADIX != 2
16454		return EXIT_NOTIEEE;
16455#elif	defined(DBL_MAX_EXP)	&& DBL_MAX_EXP != 1024
16456		return EXIT_NOTIEEE;
16457#elif	defined(DBL_MANT_DIG)	&& DBL_MANT_DIG != 53
16458		return EXIT_NOTIEEE;
16459#elif 	defined(FLT_MAX_EXP)	&& !(FLT_MAX_EXP == 1024 || FLT_MAX_EXP == 128)
16460		return EXIT_NOTIEEE;
16461#elif	defined(FLT_MANT_DIG)	&& !(FLT_MANT_DIG == 53 || FLT_MANT_DIG == 24)
16462		return EXIT_NOTIEEE;
16463#else
16464	/* (assuming eight bit char) */
16465	if(sizeof(double) != 8)
16466		return EXIT_NOTIEEE;
16467	if(!(sizeof(float) == 4 || sizeof(float) == 8))
16468		return EXIT_NOTIEEE;
16469
16470	return EXIT_MAYBEIEEE;
16471#endif
16472}
16473_ACEOF
16474if ac_fn_c_try_run "$LINENO"; then :
16475  ac_cv_c_ieeefloat=yes
16476else
16477  ac_cv_c_ieeefloat=no
16478fi
16479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16480  conftest.$ac_objext conftest.beam conftest.$ac_ext
16481fi
16482
16483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ieeefloat" >&5
16484$as_echo "$ac_cv_c_ieeefloat" >&6; }
16485if test "$ac_cv_c_ieeefloat" = no; then
16486
16487$as_echo "#define NO_IEEE_FLOAT /**/" >>confdefs.h
16488
16489fi
16490
16491ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16492if test "x$ac_cv_type_size_t" = xyes; then :
16493
16494cat >>confdefs.h <<_ACEOF
16495#define HAVE_SIZE_T 1
16496_ACEOF
16497
16498
16499fi
16500ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
16501if test "x$ac_cv_type_ssize_t" = xyes; then :
16502
16503cat >>confdefs.h <<_ACEOF
16504#define HAVE_SSIZE_T 1
16505_ACEOF
16506
16507
16508fi
16509ac_fn_c_check_type "$LINENO" "schar" "ac_cv_type_schar" "$ac_includes_default"
16510if test "x$ac_cv_type_schar" = xyes; then :
16511
16512cat >>confdefs.h <<_ACEOF
16513#define HAVE_SCHAR 1
16514_ACEOF
16515
16516
16517fi
16518ac_fn_c_check_type "$LINENO" "uchar" "ac_cv_type_uchar" "$ac_includes_default"
16519if test "x$ac_cv_type_uchar" = xyes; then :
16520
16521cat >>confdefs.h <<_ACEOF
16522#define HAVE_UCHAR 1
16523_ACEOF
16524
16525
16526fi
16527ac_fn_c_check_type "$LINENO" "longlong" "ac_cv_type_longlong" "$ac_includes_default"
16528if test "x$ac_cv_type_longlong" = xyes; then :
16529
16530cat >>confdefs.h <<_ACEOF
16531#define HAVE_LONGLONG 1
16532_ACEOF
16533
16534
16535fi
16536ac_fn_c_check_type "$LINENO" "ushort" "ac_cv_type_ushort" "$ac_includes_default"
16537if test "x$ac_cv_type_ushort" = xyes; then :
16538
16539cat >>confdefs.h <<_ACEOF
16540#define HAVE_USHORT 1
16541_ACEOF
16542
16543
16544fi
16545ac_fn_c_check_type "$LINENO" "uint" "ac_cv_type_uint" "$ac_includes_default"
16546if test "x$ac_cv_type_uint" = xyes; then :
16547
16548cat >>confdefs.h <<_ACEOF
16549#define HAVE_UINT 1
16550_ACEOF
16551
16552
16553fi
16554ac_fn_c_check_type "$LINENO" "int64" "ac_cv_type_int64" "$ac_includes_default"
16555if test "x$ac_cv_type_int64" = xyes; then :
16556
16557cat >>confdefs.h <<_ACEOF
16558#define HAVE_INT64 1
16559_ACEOF
16560
16561
16562fi
16563ac_fn_c_check_type "$LINENO" "uint64" "ac_cv_type_uint64" "$ac_includes_default"
16564if test "x$ac_cv_type_uint64" = xyes; then :
16565
16566cat >>confdefs.h <<_ACEOF
16567#define HAVE_UINT64 1
16568_ACEOF
16569
16570
16571fi
16572
16573ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16574if test "x$ac_cv_type_off_t" = xyes; then :
16575
16576else
16577
16578cat >>confdefs.h <<_ACEOF
16579#define off_t long int
16580_ACEOF
16581
16582fi
16583
16584
16585  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16586if test "x$ac_cv_type_uintptr_t" = xyes; then :
16587
16588$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16589
16590else
16591  for ac_type in 'unsigned int' 'unsigned long int' \
16592	'unsigned long long int'; do
16593       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16594/* end confdefs.h.  */
16595$ac_includes_default
16596int
16597main ()
16598{
16599static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16600test_array [0] = 0;
16601return test_array [0];
16602
16603  ;
16604  return 0;
16605}
16606_ACEOF
16607if ac_fn_c_try_compile "$LINENO"; then :
16608
16609cat >>confdefs.h <<_ACEOF
16610#define uintptr_t $ac_type
16611_ACEOF
16612
16613	  ac_type=
16614fi
16615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16616       test -z "$ac_type" && break
16617     done
16618fi
16619
16620
16621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
16622$as_echo_n "checking whether char is unsigned... " >&6; }
16623if ${ac_cv_c_char_unsigned+:} false; then :
16624  $as_echo_n "(cached) " >&6
16625else
16626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16627/* end confdefs.h.  */
16628$ac_includes_default
16629int
16630main ()
16631{
16632static int test_array [1 - 2 * !(((char) -1) < 0)];
16633test_array [0] = 0;
16634return test_array [0];
16635
16636  ;
16637  return 0;
16638}
16639_ACEOF
16640if ac_fn_c_try_compile "$LINENO"; then :
16641  ac_cv_c_char_unsigned=no
16642else
16643  ac_cv_c_char_unsigned=yes
16644fi
16645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16646fi
16647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
16648$as_echo "$ac_cv_c_char_unsigned" >&6; }
16649if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
16650  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
16651
16652fi
16653
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16655$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16656if ${ac_cv_c_bigendian+:} false; then :
16657  $as_echo_n "(cached) " >&6
16658else
16659  ac_cv_c_bigendian=unknown
16660    # See if we're dealing with a universal compiler.
16661    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662/* end confdefs.h.  */
16663#ifndef __APPLE_CC__
16664	       not a universal capable compiler
16665	     #endif
16666	     typedef int dummy;
16667
16668_ACEOF
16669if ac_fn_c_try_compile "$LINENO"; then :
16670
16671	# Check for potential -arch flags.  It is not universal unless
16672	# there are at least two -arch flags with different values.
16673	ac_arch=
16674	ac_prev=
16675	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16676	 if test -n "$ac_prev"; then
16677	   case $ac_word in
16678	     i?86 | x86_64 | ppc | ppc64)
16679	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16680		 ac_arch=$ac_word
16681	       else
16682		 ac_cv_c_bigendian=universal
16683		 break
16684	       fi
16685	       ;;
16686	   esac
16687	   ac_prev=
16688	 elif test "x$ac_word" = "x-arch"; then
16689	   ac_prev=arch
16690	 fi
16691       done
16692fi
16693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16694    if test $ac_cv_c_bigendian = unknown; then
16695      # See if sys/param.h defines the BYTE_ORDER macro.
16696      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16697/* end confdefs.h.  */
16698#include <sys/types.h>
16699	     #include <sys/param.h>
16700
16701int
16702main ()
16703{
16704#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16705		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16706		     && LITTLE_ENDIAN)
16707	      bogus endian macros
16708	     #endif
16709
16710  ;
16711  return 0;
16712}
16713_ACEOF
16714if ac_fn_c_try_compile "$LINENO"; then :
16715  # It does; now see whether it defined to BIG_ENDIAN or not.
16716	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16717/* end confdefs.h.  */
16718#include <sys/types.h>
16719		#include <sys/param.h>
16720
16721int
16722main ()
16723{
16724#if BYTE_ORDER != BIG_ENDIAN
16725		 not big endian
16726		#endif
16727
16728  ;
16729  return 0;
16730}
16731_ACEOF
16732if ac_fn_c_try_compile "$LINENO"; then :
16733  ac_cv_c_bigendian=yes
16734else
16735  ac_cv_c_bigendian=no
16736fi
16737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16738fi
16739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16740    fi
16741    if test $ac_cv_c_bigendian = unknown; then
16742      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16743      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16744/* end confdefs.h.  */
16745#include <limits.h>
16746
16747int
16748main ()
16749{
16750#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16751	      bogus endian macros
16752	     #endif
16753
16754  ;
16755  return 0;
16756}
16757_ACEOF
16758if ac_fn_c_try_compile "$LINENO"; then :
16759  # It does; now see whether it defined to _BIG_ENDIAN or not.
16760	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16761/* end confdefs.h.  */
16762#include <limits.h>
16763
16764int
16765main ()
16766{
16767#ifndef _BIG_ENDIAN
16768		 not big endian
16769		#endif
16770
16771  ;
16772  return 0;
16773}
16774_ACEOF
16775if ac_fn_c_try_compile "$LINENO"; then :
16776  ac_cv_c_bigendian=yes
16777else
16778  ac_cv_c_bigendian=no
16779fi
16780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16781fi
16782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16783    fi
16784    if test $ac_cv_c_bigendian = unknown; then
16785      # Compile a test program.
16786      if test "$cross_compiling" = yes; then :
16787  # Try to guess by grepping values from an object file.
16788	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16789/* end confdefs.h.  */
16790short int ascii_mm[] =
16791		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16792		short int ascii_ii[] =
16793		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16794		int use_ascii (int i) {
16795		  return ascii_mm[i] + ascii_ii[i];
16796		}
16797		short int ebcdic_ii[] =
16798		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16799		short int ebcdic_mm[] =
16800		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16801		int use_ebcdic (int i) {
16802		  return ebcdic_mm[i] + ebcdic_ii[i];
16803		}
16804		extern int foo;
16805
16806int
16807main ()
16808{
16809return use_ascii (foo) == use_ebcdic (foo);
16810  ;
16811  return 0;
16812}
16813_ACEOF
16814if ac_fn_c_try_compile "$LINENO"; then :
16815  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16816	      ac_cv_c_bigendian=yes
16817	    fi
16818	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16819	      if test "$ac_cv_c_bigendian" = unknown; then
16820		ac_cv_c_bigendian=no
16821	      else
16822		# finding both strings is unlikely to happen, but who knows?
16823		ac_cv_c_bigendian=unknown
16824	      fi
16825	    fi
16826fi
16827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16828else
16829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16830/* end confdefs.h.  */
16831$ac_includes_default
16832int
16833main ()
16834{
16835
16836	     /* Are we little or big endian?  From Harbison&Steele.  */
16837	     union
16838	     {
16839	       long int l;
16840	       char c[sizeof (long int)];
16841	     } u;
16842	     u.l = 1;
16843	     return u.c[sizeof (long int) - 1] == 1;
16844
16845  ;
16846  return 0;
16847}
16848_ACEOF
16849if ac_fn_c_try_run "$LINENO"; then :
16850  ac_cv_c_bigendian=no
16851else
16852  ac_cv_c_bigendian=yes
16853fi
16854rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16855  conftest.$ac_objext conftest.beam conftest.$ac_ext
16856fi
16857
16858    fi
16859fi
16860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16861$as_echo "$ac_cv_c_bigendian" >&6; }
16862 case $ac_cv_c_bigendian in #(
16863   yes)
16864     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16865;; #(
16866   no)
16867      ;; #(
16868   universal)
16869
16870$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16871
16872     ;; #(
16873   *)
16874     as_fn_error $? "unknown endianness
16875 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16876 esac
16877
16878
16879###
16880# Crude hack to work around an issue
16881# in Cygwin.
16882###
16883SLEEPCMD=""
16884PLTFORMOUT="$(uname | cut -d '_' -f 1)"
16885if test "$PLTFORMOUT" = "CYGWIN"; then
16886   ISCYGWIN=yes
16887   SLEEPCMD="sleep 5"
16888   { $as_echo "$as_me:${as_lineno-$LINENO}: Pausing between sizeof() checks to mitigate a Cygwin issue." >&5
16889$as_echo "$as_me: Pausing between sizeof() checks to mitigate a Cygwin issue." >&6;}
16890fi
16891 if test "x$ISCYGWIN" = xyes; then
16892  ISCYGWIN_TRUE=
16893  ISCYGWIN_FALSE='#'
16894else
16895  ISCYGWIN_TRUE='#'
16896  ISCYGWIN_FALSE=
16897fi
16898
16899
16900$SLEEPCMD
16901# The cast to long int works around a bug in the HP C Compiler
16902# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16903# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16904# This bug is HP SR number 8606223364.
16905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16906$as_echo_n "checking size of short... " >&6; }
16907if ${ac_cv_sizeof_short+:} false; then :
16908  $as_echo_n "(cached) " >&6
16909else
16910  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
16911
16912else
16913  if test "$ac_cv_type_short" = yes; then
16914     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16915$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16916as_fn_error 77 "cannot compute sizeof (short)
16917See \`config.log' for more details" "$LINENO" 5; }
16918   else
16919     ac_cv_sizeof_short=0
16920   fi
16921fi
16922
16923fi
16924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16925$as_echo "$ac_cv_sizeof_short" >&6; }
16926
16927
16928
16929cat >>confdefs.h <<_ACEOF
16930#define SIZEOF_SHORT $ac_cv_sizeof_short
16931_ACEOF
16932
16933
16934$SLEEPCMD
16935# The cast to long int works around a bug in the HP C Compiler
16936# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16937# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16938# This bug is HP SR number 8606223364.
16939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16940$as_echo_n "checking size of int... " >&6; }
16941if ${ac_cv_sizeof_int+:} false; then :
16942  $as_echo_n "(cached) " >&6
16943else
16944  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
16945
16946else
16947  if test "$ac_cv_type_int" = yes; then
16948     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16949$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16950as_fn_error 77 "cannot compute sizeof (int)
16951See \`config.log' for more details" "$LINENO" 5; }
16952   else
16953     ac_cv_sizeof_int=0
16954   fi
16955fi
16956
16957fi
16958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16959$as_echo "$ac_cv_sizeof_int" >&6; }
16960
16961
16962
16963cat >>confdefs.h <<_ACEOF
16964#define SIZEOF_INT $ac_cv_sizeof_int
16965_ACEOF
16966
16967
16968$SLEEPCMD
16969# The cast to long int works around a bug in the HP C Compiler
16970# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16971# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16972# This bug is HP SR number 8606223364.
16973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16974$as_echo_n "checking size of long... " >&6; }
16975if ${ac_cv_sizeof_long+:} false; then :
16976  $as_echo_n "(cached) " >&6
16977else
16978  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
16979
16980else
16981  if test "$ac_cv_type_long" = yes; then
16982     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16984as_fn_error 77 "cannot compute sizeof (long)
16985See \`config.log' for more details" "$LINENO" 5; }
16986   else
16987     ac_cv_sizeof_long=0
16988   fi
16989fi
16990
16991fi
16992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16993$as_echo "$ac_cv_sizeof_long" >&6; }
16994
16995
16996
16997cat >>confdefs.h <<_ACEOF
16998#define SIZEOF_LONG $ac_cv_sizeof_long
16999_ACEOF
17000
17001
17002$SLEEPCMD
17003# The cast to long int works around a bug in the HP C Compiler
17004# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17005# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17006# This bug is HP SR number 8606223364.
17007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
17008$as_echo_n "checking size of long long... " >&6; }
17009if ${ac_cv_sizeof_long_long+:} false; then :
17010  $as_echo_n "(cached) " >&6
17011else
17012  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
17013
17014else
17015  if test "$ac_cv_type_long_long" = yes; then
17016     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17018as_fn_error 77 "cannot compute sizeof (long long)
17019See \`config.log' for more details" "$LINENO" 5; }
17020   else
17021     ac_cv_sizeof_long_long=0
17022   fi
17023fi
17024
17025fi
17026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
17027$as_echo "$ac_cv_sizeof_long_long" >&6; }
17028
17029
17030
17031cat >>confdefs.h <<_ACEOF
17032#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17033_ACEOF
17034
17035
17036$SLEEPCMD
17037# The cast to long int works around a bug in the HP C Compiler
17038# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17039# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17040# This bug is HP SR number 8606223364.
17041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
17042$as_echo_n "checking size of float... " >&6; }
17043if ${ac_cv_sizeof_float+:} false; then :
17044  $as_echo_n "(cached) " >&6
17045else
17046  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
17047
17048else
17049  if test "$ac_cv_type_float" = yes; then
17050     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17052as_fn_error 77 "cannot compute sizeof (float)
17053See \`config.log' for more details" "$LINENO" 5; }
17054   else
17055     ac_cv_sizeof_float=0
17056   fi
17057fi
17058
17059fi
17060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
17061$as_echo "$ac_cv_sizeof_float" >&6; }
17062
17063
17064
17065cat >>confdefs.h <<_ACEOF
17066#define SIZEOF_FLOAT $ac_cv_sizeof_float
17067_ACEOF
17068
17069
17070$SLEEPCMD
17071# The cast to long int works around a bug in the HP C Compiler
17072# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17073# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17074# This bug is HP SR number 8606223364.
17075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
17076$as_echo_n "checking size of double... " >&6; }
17077if ${ac_cv_sizeof_double+:} false; then :
17078  $as_echo_n "(cached) " >&6
17079else
17080  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
17081
17082else
17083  if test "$ac_cv_type_double" = yes; then
17084     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17085$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17086as_fn_error 77 "cannot compute sizeof (double)
17087See \`config.log' for more details" "$LINENO" 5; }
17088   else
17089     ac_cv_sizeof_double=0
17090   fi
17091fi
17092
17093fi
17094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
17095$as_echo "$ac_cv_sizeof_double" >&6; }
17096
17097
17098
17099cat >>confdefs.h <<_ACEOF
17100#define SIZEOF_DOUBLE $ac_cv_sizeof_double
17101_ACEOF
17102
17103
17104$SLEEPCMD
17105# The cast to long int works around a bug in the HP C Compiler
17106# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17107# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17108# This bug is HP SR number 8606223364.
17109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
17110$as_echo_n "checking size of off_t... " >&6; }
17111if ${ac_cv_sizeof_off_t+:} false; then :
17112  $as_echo_n "(cached) " >&6
17113else
17114  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
17115
17116else
17117  if test "$ac_cv_type_off_t" = yes; then
17118     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17120as_fn_error 77 "cannot compute sizeof (off_t)
17121See \`config.log' for more details" "$LINENO" 5; }
17122   else
17123     ac_cv_sizeof_off_t=0
17124   fi
17125fi
17126
17127fi
17128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
17129$as_echo "$ac_cv_sizeof_off_t" >&6; }
17130
17131
17132
17133cat >>confdefs.h <<_ACEOF
17134#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
17135_ACEOF
17136
17137
17138$SLEEPCMD
17139# The cast to long int works around a bug in the HP C Compiler
17140# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17141# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17142# This bug is HP SR number 8606223364.
17143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
17144$as_echo_n "checking size of size_t... " >&6; }
17145if ${ac_cv_sizeof_size_t+:} false; then :
17146  $as_echo_n "(cached) " >&6
17147else
17148  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
17149
17150else
17151  if test "$ac_cv_type_size_t" = yes; then
17152     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17154as_fn_error 77 "cannot compute sizeof (size_t)
17155See \`config.log' for more details" "$LINENO" 5; }
17156   else
17157     ac_cv_sizeof_size_t=0
17158   fi
17159fi
17160
17161fi
17162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
17163$as_echo "$ac_cv_sizeof_size_t" >&6; }
17164
17165
17166
17167cat >>confdefs.h <<_ACEOF
17168#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17169_ACEOF
17170
17171
17172$SLEEPCMD
17173# The cast to long int works around a bug in the HP C Compiler
17174# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17175# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17176# This bug is HP SR number 8606223364.
17177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
17178$as_echo_n "checking size of unsigned long long... " >&6; }
17179if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
17180  $as_echo_n "(cached) " >&6
17181else
17182  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
17183
17184else
17185  if test "$ac_cv_type_unsigned_long_long" = yes; then
17186     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17188as_fn_error 77 "cannot compute sizeof (unsigned long long)
17189See \`config.log' for more details" "$LINENO" 5; }
17190   else
17191     ac_cv_sizeof_unsigned_long_long=0
17192   fi
17193fi
17194
17195fi
17196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
17197$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
17198
17199
17200
17201cat >>confdefs.h <<_ACEOF
17202#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
17203_ACEOF
17204
17205
17206
17207# Check whether we want to enable CDF5 support.
17208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CDF5 support should be disabled" >&5
17209$as_echo_n "checking whether CDF5 support should be disabled... " >&6; }
17210# Check whether --enable-cdf5 was given.
17211if test "${enable_cdf5+set}" = set; then :
17212  enableval=$enable_cdf5; enable_cdf5=${enableval}
17213else
17214  enable_cdf5=auto
17215
17216fi
17217
17218if test "$ac_cv_sizeof_size_t" -lt "8" ; then
17219   if test "x${enable_cdf5}" = xyes ; then
17220            as_fn_error $? "Unable to support CDF5 feature because size_t is less than 8 bytes" "$LINENO" 5
17221   fi
17222   enable_cdf5=no
17223else
17224   if test "x${enable_cdf5}" != xno ; then
17225      enable_cdf5=yes
17226   fi
17227fi
17228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cdf5" >&5
17229$as_echo "$enable_cdf5" >&6; }
17230
17231if test "x${enable_cdf5}" = xyes; then
17232
17233$as_echo "#define ENABLE_CDF5 1" >>confdefs.h
17234
17235fi
17236 if test x$enable_cdf5 = xyes ; then
17237  ENABLE_CDF5_TRUE=
17238  ENABLE_CDF5_FALSE='#'
17239else
17240  ENABLE_CDF5_TRUE='#'
17241  ENABLE_CDF5_FALSE=
17242fi
17243
17244
17245$SLEEPCMD
17246if test "$ac_cv_type_uchar" = yes ; then
17247   # The cast to long int works around a bug in the HP C Compiler
17248# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17249# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17250# This bug is HP SR number 8606223364.
17251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uchar" >&5
17252$as_echo_n "checking size of uchar... " >&6; }
17253if ${ac_cv_sizeof_uchar+:} false; then :
17254  $as_echo_n "(cached) " >&6
17255else
17256  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uchar))" "ac_cv_sizeof_uchar"        "$ac_includes_default"; then :
17257
17258else
17259  if test "$ac_cv_type_uchar" = yes; then
17260     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17262as_fn_error 77 "cannot compute sizeof (uchar)
17263See \`config.log' for more details" "$LINENO" 5; }
17264   else
17265     ac_cv_sizeof_uchar=0
17266   fi
17267fi
17268
17269fi
17270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uchar" >&5
17271$as_echo "$ac_cv_sizeof_uchar" >&6; }
17272
17273
17274
17275cat >>confdefs.h <<_ACEOF
17276#define SIZEOF_UCHAR $ac_cv_sizeof_uchar
17277_ACEOF
17278
17279
17280else
17281   # The cast to long int works around a bug in the HP C Compiler
17282# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17283# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17284# This bug is HP SR number 8606223364.
17285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char" >&5
17286$as_echo_n "checking size of unsigned char... " >&6; }
17287if ${ac_cv_sizeof_unsigned_char+:} false; then :
17288  $as_echo_n "(cached) " >&6
17289else
17290  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char))" "ac_cv_sizeof_unsigned_char"        "$ac_includes_default"; then :
17291
17292else
17293  if test "$ac_cv_type_unsigned_char" = yes; then
17294     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17296as_fn_error 77 "cannot compute sizeof (unsigned char)
17297See \`config.log' for more details" "$LINENO" 5; }
17298   else
17299     ac_cv_sizeof_unsigned_char=0
17300   fi
17301fi
17302
17303fi
17304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char" >&5
17305$as_echo "$ac_cv_sizeof_unsigned_char" >&6; }
17306
17307
17308
17309cat >>confdefs.h <<_ACEOF
17310#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
17311_ACEOF
17312
17313
17314fi
17315
17316$SLEEPCMD
17317if test "$ac_cv_type_ushort" = yes ; then
17318   # The cast to long int works around a bug in the HP C Compiler
17319# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17320# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17321# This bug is HP SR number 8606223364.
17322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ushort" >&5
17323$as_echo_n "checking size of ushort... " >&6; }
17324if ${ac_cv_sizeof_ushort+:} false; then :
17325  $as_echo_n "(cached) " >&6
17326else
17327  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ushort))" "ac_cv_sizeof_ushort"        "$ac_includes_default"; then :
17328
17329else
17330  if test "$ac_cv_type_ushort" = yes; then
17331     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17333as_fn_error 77 "cannot compute sizeof (ushort)
17334See \`config.log' for more details" "$LINENO" 5; }
17335   else
17336     ac_cv_sizeof_ushort=0
17337   fi
17338fi
17339
17340fi
17341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ushort" >&5
17342$as_echo "$ac_cv_sizeof_ushort" >&6; }
17343
17344
17345
17346cat >>confdefs.h <<_ACEOF
17347#define SIZEOF_USHORT $ac_cv_sizeof_ushort
17348_ACEOF
17349
17350
17351else
17352   # The cast to long int works around a bug in the HP C Compiler
17353# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17354# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17355# This bug is HP SR number 8606223364.
17356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short int" >&5
17357$as_echo_n "checking size of unsigned short int... " >&6; }
17358if ${ac_cv_sizeof_unsigned_short_int+:} false; then :
17359  $as_echo_n "(cached) " >&6
17360else
17361  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short int))" "ac_cv_sizeof_unsigned_short_int"        "$ac_includes_default"; then :
17362
17363else
17364  if test "$ac_cv_type_unsigned_short_int" = yes; then
17365     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17367as_fn_error 77 "cannot compute sizeof (unsigned short int)
17368See \`config.log' for more details" "$LINENO" 5; }
17369   else
17370     ac_cv_sizeof_unsigned_short_int=0
17371   fi
17372fi
17373
17374fi
17375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short_int" >&5
17376$as_echo "$ac_cv_sizeof_unsigned_short_int" >&6; }
17377
17378
17379
17380cat >>confdefs.h <<_ACEOF
17381#define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
17382_ACEOF
17383
17384
17385fi
17386
17387$SLEEPCMD
17388if test "$ac_cv_type_uint" = yes ; then
17389   # The cast to long int works around a bug in the HP C Compiler
17390# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17391# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17392# This bug is HP SR number 8606223364.
17393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint" >&5
17394$as_echo_n "checking size of uint... " >&6; }
17395if ${ac_cv_sizeof_uint+:} false; then :
17396  $as_echo_n "(cached) " >&6
17397else
17398  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint))" "ac_cv_sizeof_uint"        "$ac_includes_default"; then :
17399
17400else
17401  if test "$ac_cv_type_uint" = yes; then
17402     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17404as_fn_error 77 "cannot compute sizeof (uint)
17405See \`config.log' for more details" "$LINENO" 5; }
17406   else
17407     ac_cv_sizeof_uint=0
17408   fi
17409fi
17410
17411fi
17412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint" >&5
17413$as_echo "$ac_cv_sizeof_uint" >&6; }
17414
17415
17416
17417cat >>confdefs.h <<_ACEOF
17418#define SIZEOF_UINT $ac_cv_sizeof_uint
17419_ACEOF
17420
17421
17422else
17423   # The cast to long int works around a bug in the HP C Compiler
17424# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17425# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17426# This bug is HP SR number 8606223364.
17427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
17428$as_echo_n "checking size of unsigned int... " >&6; }
17429if ${ac_cv_sizeof_unsigned_int+:} false; then :
17430  $as_echo_n "(cached) " >&6
17431else
17432  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
17433
17434else
17435  if test "$ac_cv_type_unsigned_int" = yes; then
17436     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17438as_fn_error 77 "cannot compute sizeof (unsigned int)
17439See \`config.log' for more details" "$LINENO" 5; }
17440   else
17441     ac_cv_sizeof_unsigned_int=0
17442   fi
17443fi
17444
17445fi
17446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
17447$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
17448
17449
17450
17451cat >>confdefs.h <<_ACEOF
17452#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
17453_ACEOF
17454
17455
17456fi
17457$SLEEPCMD
17458if test "$ac_cv_type_ushort" = yes ; then
17459   # The cast to long int works around a bug in the HP C Compiler
17460# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17461# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17462# This bug is HP SR number 8606223364.
17463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ushort" >&5
17464$as_echo_n "checking size of ushort... " >&6; }
17465if ${ac_cv_sizeof_ushort+:} false; then :
17466  $as_echo_n "(cached) " >&6
17467else
17468  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ushort))" "ac_cv_sizeof_ushort"        "$ac_includes_default"; then :
17469
17470else
17471  if test "$ac_cv_type_ushort" = yes; then
17472     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17474as_fn_error 77 "cannot compute sizeof (ushort)
17475See \`config.log' for more details" "$LINENO" 5; }
17476   else
17477     ac_cv_sizeof_ushort=0
17478   fi
17479fi
17480
17481fi
17482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ushort" >&5
17483$as_echo "$ac_cv_sizeof_ushort" >&6; }
17484
17485
17486
17487cat >>confdefs.h <<_ACEOF
17488#define SIZEOF_USHORT $ac_cv_sizeof_ushort
17489_ACEOF
17490
17491
17492else
17493   # The cast to long int works around a bug in the HP C Compiler
17494# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17495# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17496# This bug is HP SR number 8606223364.
17497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short int" >&5
17498$as_echo_n "checking size of unsigned short int... " >&6; }
17499if ${ac_cv_sizeof_unsigned_short_int+:} false; then :
17500  $as_echo_n "(cached) " >&6
17501else
17502  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short int))" "ac_cv_sizeof_unsigned_short_int"        "$ac_includes_default"; then :
17503
17504else
17505  if test "$ac_cv_type_unsigned_short_int" = yes; then
17506     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17508as_fn_error 77 "cannot compute sizeof (unsigned short int)
17509See \`config.log' for more details" "$LINENO" 5; }
17510   else
17511     ac_cv_sizeof_unsigned_short_int=0
17512   fi
17513fi
17514
17515fi
17516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short_int" >&5
17517$as_echo "$ac_cv_sizeof_unsigned_short_int" >&6; }
17518
17519
17520
17521cat >>confdefs.h <<_ACEOF
17522#define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
17523_ACEOF
17524
17525
17526fi
17527$SLEEPCMD
17528if test "$ac_cv_type_uint" = yes ; then
17529   # The cast to long int works around a bug in the HP C Compiler
17530# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17531# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17532# This bug is HP SR number 8606223364.
17533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint" >&5
17534$as_echo_n "checking size of uint... " >&6; }
17535if ${ac_cv_sizeof_uint+:} false; then :
17536  $as_echo_n "(cached) " >&6
17537else
17538  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint))" "ac_cv_sizeof_uint"        "$ac_includes_default"; then :
17539
17540else
17541  if test "$ac_cv_type_uint" = yes; then
17542     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17544as_fn_error 77 "cannot compute sizeof (uint)
17545See \`config.log' for more details" "$LINENO" 5; }
17546   else
17547     ac_cv_sizeof_uint=0
17548   fi
17549fi
17550
17551fi
17552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint" >&5
17553$as_echo "$ac_cv_sizeof_uint" >&6; }
17554
17555
17556
17557cat >>confdefs.h <<_ACEOF
17558#define SIZEOF_UINT $ac_cv_sizeof_uint
17559_ACEOF
17560
17561
17562else
17563   # The cast to long int works around a bug in the HP C Compiler
17564# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17565# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17566# This bug is HP SR number 8606223364.
17567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
17568$as_echo_n "checking size of unsigned int... " >&6; }
17569if ${ac_cv_sizeof_unsigned_int+:} false; then :
17570  $as_echo_n "(cached) " >&6
17571else
17572  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
17573
17574else
17575  if test "$ac_cv_type_unsigned_int" = yes; then
17576     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17578as_fn_error 77 "cannot compute sizeof (unsigned int)
17579See \`config.log' for more details" "$LINENO" 5; }
17580   else
17581     ac_cv_sizeof_unsigned_int=0
17582   fi
17583fi
17584
17585fi
17586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
17587$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
17588
17589
17590
17591cat >>confdefs.h <<_ACEOF
17592#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
17593_ACEOF
17594
17595
17596fi
17597$SLEEPCMD
17598# The cast to long int works around a bug in the HP C Compiler
17599# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17600# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17601# This bug is HP SR number 8606223364.
17602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
17603$as_echo_n "checking size of ssize_t... " >&6; }
17604if ${ac_cv_sizeof_ssize_t+:} false; then :
17605  $as_echo_n "(cached) " >&6
17606else
17607  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
17608
17609else
17610  if test "$ac_cv_type_ssize_t" = yes; then
17611     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17613as_fn_error 77 "cannot compute sizeof (ssize_t)
17614See \`config.log' for more details" "$LINENO" 5; }
17615   else
17616     ac_cv_sizeof_ssize_t=0
17617   fi
17618fi
17619
17620fi
17621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
17622$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
17623
17624
17625
17626cat >>confdefs.h <<_ACEOF
17627#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
17628_ACEOF
17629
17630
17631$SLEEPCMD
17632# The cast to long int works around a bug in the HP C Compiler
17633# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17634# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17635# This bug is HP SR number 8606223364.
17636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
17637$as_echo_n "checking size of void*... " >&6; }
17638if ${ac_cv_sizeof_voidp+:} false; then :
17639  $as_echo_n "(cached) " >&6
17640else
17641  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
17642
17643else
17644  if test "$ac_cv_type_voidp" = yes; then
17645     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17647as_fn_error 77 "cannot compute sizeof (void*)
17648See \`config.log' for more details" "$LINENO" 5; }
17649   else
17650     ac_cv_sizeof_voidp=0
17651   fi
17652fi
17653
17654fi
17655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
17656$as_echo "$ac_cv_sizeof_voidp" >&6; }
17657
17658
17659
17660cat >>confdefs.h <<_ACEOF
17661#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
17662_ACEOF
17663
17664
17665
17666if test "x$enable_netcdf_4" = xyes || test "x$enable_dap" = xyes; then
17667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
17668$as_echo_n "checking for library containing deflate... " >&6; }
17669if ${ac_cv_search_deflate+:} false; then :
17670  $as_echo_n "(cached) " >&6
17671else
17672  ac_func_search_save_LIBS=$LIBS
17673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17674/* end confdefs.h.  */
17675
17676/* Override any GCC internal prototype to avoid an error.
17677   Use char because int might match the return type of a GCC
17678   builtin and then its argument prototype would still apply.  */
17679#ifdef __cplusplus
17680extern "C"
17681#endif
17682char deflate ();
17683int
17684main ()
17685{
17686return deflate ();
17687  ;
17688  return 0;
17689}
17690_ACEOF
17691for ac_lib in '' zlibwapi zlibstat zlib zlib1 z; do
17692  if test -z "$ac_lib"; then
17693    ac_res="none required"
17694  else
17695    ac_res=-l$ac_lib
17696    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17697  fi
17698  if ac_fn_c_try_link "$LINENO"; then :
17699  ac_cv_search_deflate=$ac_res
17700fi
17701rm -f core conftest.err conftest.$ac_objext \
17702    conftest$ac_exeext
17703  if ${ac_cv_search_deflate+:} false; then :
17704  break
17705fi
17706done
17707if ${ac_cv_search_deflate+:} false; then :
17708
17709else
17710  ac_cv_search_deflate=no
17711fi
17712rm conftest.$ac_ext
17713LIBS=$ac_func_search_save_LIBS
17714fi
17715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
17716$as_echo "$ac_cv_search_deflate" >&6; }
17717ac_res=$ac_cv_search_deflate
17718if test "$ac_res" != no; then :
17719  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17720
17721else
17722
17723     as_fn_error $? "Can't find or link to the z library. Turn off netCDF-4 and \
17724     DAP clients with --disable-netcdf-4 --disable-dap, or see config.log for errors." "$LINENO" 5
17725fi
17726
17727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17728$as_echo_n "checking for library containing dlopen... " >&6; }
17729if ${ac_cv_search_dlopen+:} false; then :
17730  $as_echo_n "(cached) " >&6
17731else
17732  ac_func_search_save_LIBS=$LIBS
17733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17734/* end confdefs.h.  */
17735
17736/* Override any GCC internal prototype to avoid an error.
17737   Use char because int might match the return type of a GCC
17738   builtin and then its argument prototype would still apply.  */
17739#ifdef __cplusplus
17740extern "C"
17741#endif
17742char dlopen ();
17743int
17744main ()
17745{
17746return dlopen ();
17747  ;
17748  return 0;
17749}
17750_ACEOF
17751for ac_lib in '' dl dld; do
17752  if test -z "$ac_lib"; then
17753    ac_res="none required"
17754  else
17755    ac_res=-l$ac_lib
17756    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17757  fi
17758  if ac_fn_c_try_link "$LINENO"; then :
17759  ac_cv_search_dlopen=$ac_res
17760fi
17761rm -f core conftest.err conftest.$ac_objext \
17762    conftest$ac_exeext
17763  if ${ac_cv_search_dlopen+:} false; then :
17764  break
17765fi
17766done
17767if ${ac_cv_search_dlopen+:} false; then :
17768
17769else
17770  ac_cv_search_dlopen=no
17771fi
17772rm conftest.$ac_ext
17773LIBS=$ac_func_search_save_LIBS
17774fi
17775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17776$as_echo "$ac_cv_search_dlopen" >&6; }
17777ac_res=$ac_cv_search_dlopen
17778if test "$ac_res" != no; then :
17779  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17780
17781fi
17782
17783fi
17784
17785# We need the math library
17786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
17787$as_echo_n "checking for floor in -lm... " >&6; }
17788if ${ac_cv_lib_m_floor+:} false; then :
17789  $as_echo_n "(cached) " >&6
17790else
17791  ac_check_lib_save_LIBS=$LIBS
17792LIBS="-lm  $LIBS"
17793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794/* end confdefs.h.  */
17795
17796/* Override any GCC internal prototype to avoid an error.
17797   Use char because int might match the return type of a GCC
17798   builtin and then its argument prototype would still apply.  */
17799#ifdef __cplusplus
17800extern "C"
17801#endif
17802char floor ();
17803int
17804main ()
17805{
17806return floor ();
17807  ;
17808  return 0;
17809}
17810_ACEOF
17811if ac_fn_c_try_link "$LINENO"; then :
17812  ac_cv_lib_m_floor=yes
17813else
17814  ac_cv_lib_m_floor=no
17815fi
17816rm -f core conftest.err conftest.$ac_objext \
17817    conftest$ac_exeext conftest.$ac_ext
17818LIBS=$ac_check_lib_save_LIBS
17819fi
17820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
17821$as_echo "$ac_cv_lib_m_floor" >&6; }
17822if test "x$ac_cv_lib_m_floor" = xyes; then :
17823  cat >>confdefs.h <<_ACEOF
17824#define HAVE_LIBM 1
17825_ACEOF
17826
17827  LIBS="-lm $LIBS"
17828
17829else
17830  as_fn_error $? "Can't find or link to the math library." "$LINENO" 5
17831fi
17832
17833
17834if test "x$enable_netcdf_4" = xyes; then
17835
17836$as_echo "#define USE_NETCDF4 1" >>confdefs.h
17837
17838fi
17839
17840# Set defaults
17841hdf5_parallel=no
17842hdf5_supports_par_filters=no
17843enable_szlib=no
17844
17845if test "x$enable_hdf5" = xyes; then
17846
17847
17848$as_echo "#define USE_HDF5 1" >>confdefs.h
17849
17850
17851$as_echo "#define H5_USE_16_API 1" >>confdefs.h
17852
17853
17854   # Check for the main hdf5 and hdf5_hl library.
17855
17856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing H5Fflush" >&5
17857$as_echo_n "checking for library containing H5Fflush... " >&6; }
17858if ${ac_cv_search_H5Fflush+:} false; then :
17859  $as_echo_n "(cached) " >&6
17860else
17861  ac_func_search_save_LIBS=$LIBS
17862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17863/* end confdefs.h.  */
17864
17865/* Override any GCC internal prototype to avoid an error.
17866   Use char because int might match the return type of a GCC
17867   builtin and then its argument prototype would still apply.  */
17868#ifdef __cplusplus
17869extern "C"
17870#endif
17871char H5Fflush ();
17872int
17873main ()
17874{
17875return H5Fflush ();
17876  ;
17877  return 0;
17878}
17879_ACEOF
17880for ac_lib in '' hdf5dll hdf5; do
17881  if test -z "$ac_lib"; then
17882    ac_res="none required"
17883  else
17884    ac_res=-l$ac_lib
17885    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17886  fi
17887  if ac_fn_c_try_link "$LINENO"; then :
17888  ac_cv_search_H5Fflush=$ac_res
17889fi
17890rm -f core conftest.err conftest.$ac_objext \
17891    conftest$ac_exeext
17892  if ${ac_cv_search_H5Fflush+:} false; then :
17893  break
17894fi
17895done
17896if ${ac_cv_search_H5Fflush+:} false; then :
17897
17898else
17899  ac_cv_search_H5Fflush=no
17900fi
17901rm conftest.$ac_ext
17902LIBS=$ac_func_search_save_LIBS
17903fi
17904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_H5Fflush" >&5
17905$as_echo "$ac_cv_search_H5Fflush" >&6; }
17906ac_res=$ac_cv_search_H5Fflush
17907if test "$ac_res" != no; then :
17908  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17909
17910else
17911  as_fn_error $? "Can't find or link to the hdf5 library. Use --disable-netcdf-4, or see config.log for errors." "$LINENO" 5
17912fi
17913
17914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing H5DSis_scale" >&5
17915$as_echo_n "checking for library containing H5DSis_scale... " >&6; }
17916if ${ac_cv_search_H5DSis_scale+:} false; then :
17917  $as_echo_n "(cached) " >&6
17918else
17919  ac_func_search_save_LIBS=$LIBS
17920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17921/* end confdefs.h.  */
17922
17923/* Override any GCC internal prototype to avoid an error.
17924   Use char because int might match the return type of a GCC
17925   builtin and then its argument prototype would still apply.  */
17926#ifdef __cplusplus
17927extern "C"
17928#endif
17929char H5DSis_scale ();
17930int
17931main ()
17932{
17933return H5DSis_scale ();
17934  ;
17935  return 0;
17936}
17937_ACEOF
17938for ac_lib in '' hdf5_hldll hdf5_hl; do
17939  if test -z "$ac_lib"; then
17940    ac_res="none required"
17941  else
17942    ac_res=-l$ac_lib
17943    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17944  fi
17945  if ac_fn_c_try_link "$LINENO"; then :
17946  ac_cv_search_H5DSis_scale=$ac_res
17947fi
17948rm -f core conftest.err conftest.$ac_objext \
17949    conftest$ac_exeext
17950  if ${ac_cv_search_H5DSis_scale+:} false; then :
17951  break
17952fi
17953done
17954if ${ac_cv_search_H5DSis_scale+:} false; then :
17955
17956else
17957  ac_cv_search_H5DSis_scale=no
17958fi
17959rm conftest.$ac_ext
17960LIBS=$ac_func_search_save_LIBS
17961fi
17962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_H5DSis_scale" >&5
17963$as_echo "$ac_cv_search_H5DSis_scale" >&6; }
17964ac_res=$ac_cv_search_H5DSis_scale
17965if test "$ac_res" != no; then :
17966  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17967
17968else
17969  as_fn_error $? "Can't find or link to the hdf5 high-level. Use --disable-netcdf-4, or see config.log for errors." "$LINENO" 5
17970fi
17971
17972
17973   for ac_header in hdf5.h
17974do :
17975  ac_fn_c_check_header_mongrel "$LINENO" "hdf5.h" "ac_cv_header_hdf5_h" "$ac_includes_default"
17976if test "x$ac_cv_header_hdf5_h" = xyes; then :
17977  cat >>confdefs.h <<_ACEOF
17978#define HAVE_HDF5_H 1
17979_ACEOF
17980
17981else
17982  as_fn_error $? "Compiling a test with HDF5 failed.  Either hdf5.h cannot be found, or config.log should be checked for other reason." "$LINENO" 5
17983fi
17984
17985done
17986
17987
17988   # Was HDF5 built with zlib as netCDF requires?
17989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17990/* end confdefs.h.  */
17991#include "H5pubconf.h"
17992int
17993main ()
17994{
17995#if !H5_HAVE_ZLIB_H
17996   # error
17997   #endif
17998
17999  ;
18000  return 0;
18001}
18002_ACEOF
18003if ac_fn_c_try_compile "$LINENO"; then :
18004
18005else
18006  as_fn_error $? "HDF5 was not built with zlib, which is required. Rebuild HDF5 with zlib." "$LINENO" 5
18007fi
18008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18009
18010   # H5Pset_fapl_mpiposix and H5Pget_fapl_mpiposix have been removed since HDF5 1.8.12.
18011   # Use H5Pset_fapl_mpio and H5Pget_fapl_mpio, instead.
18012   for ac_func in H5Pget_fapl_mpio H5Pset_deflate H5Z_SZIP H5free_memory H5resize_memory H5allocate_memory H5Pset_libver_bounds H5Pset_all_coll_metadata_ops H5Dread_chunk
18013do :
18014  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18015ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18016if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18017  cat >>confdefs.h <<_ACEOF
18018#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18019_ACEOF
18020
18021fi
18022done
18023
18024
18025   # Check to see if HDF5 library has collective metadata APIs, (HDF5 >= 1.10.0)
18026   if test "x$ac_cv_func_H5Pset_all_coll_metadata_ops" = xyes; then
18027
18028$as_echo "#define HDF5_HAS_COLL_METADATA_OPS 1" >>confdefs.h
18029
18030   fi
18031
18032   # If parallel is available in hdf5, enable it in the C code. Also add some stuff to netcdf.h.
18033   if test "x$ac_cv_func_H5Pget_fapl_mpio" = xyes -o "x$ac_cv_func_H5Pget_fapl_mpiposix" = xyes; then
18034      hdf5_parallel=yes
18035   fi
18036
18037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether parallel io is enabled in hdf5" >&5
18038$as_echo_n "checking whether parallel io is enabled in hdf5... " >&6; }
18039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hdf5_parallel" >&5
18040$as_echo "$hdf5_parallel" >&6; }
18041
18042   # Check to see if HDF5 library is 1.10.3 or greater. If so, allows
18043   # parallel I/O with filters. This allows zlib/szip compression to
18044   # be used with parallel I/O, which is very helpful to HPC users.
18045   if test "x$ac_cv_func_H5Dread_chunk" = xyes; then
18046
18047$as_echo "#define HDF5_SUPPORTS_PAR_FILTERS 1" >>confdefs.h
18048
18049      hdf5_supports_par_filters=yes
18050   fi
18051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HDF5 allows parallel filters" >&5
18052$as_echo_n "checking whether HDF5 allows parallel filters... " >&6; }
18053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_H5Dread_chunk" >&5
18054$as_echo "$ac_cv_func_H5Dread_chunk" >&6; }
18055
18056   # Check to see if user asked for parallel build, but HDF5 does not support it.
18057   if test "x$hdf5_parallel" = "xno"; then
18058      if test "x$enable_parallel_tests" = "xyes"; then
18059         as_fn_error $? "Parallel tests requested, but no parallel HDF5 installation detected." "$LINENO" 5
18060      fi
18061   fi
18062
18063   # Check whether HDF5 was built with the SZLIB library. If so we
18064   # must be able to link to szip library.
18065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether szlib was used when building HDF5" >&5
18066$as_echo_n "checking whether szlib was used when building HDF5... " >&6; }
18067   if test "x$ac_cv_func_H5Z_SZIP" = xyes; then
18068      enable_szlib=yes
18069
18070$as_echo "#define USE_SZIP 1" >>confdefs.h
18071
18072   fi
18073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_szlib" >&5
18074$as_echo "$enable_szlib" >&6; }
18075fi
18076
18077# If the user wants hdf4 built in, check it out.
18078if test "x$enable_hdf4" = xyes; then
18079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateCompress in -ljpeg" >&5
18080$as_echo_n "checking for jpeg_CreateCompress in -ljpeg... " >&6; }
18081if ${ac_cv_lib_jpeg_jpeg_CreateCompress+:} false; then :
18082  $as_echo_n "(cached) " >&6
18083else
18084  ac_check_lib_save_LIBS=$LIBS
18085LIBS="-ljpeg  $LIBS"
18086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18087/* end confdefs.h.  */
18088
18089/* Override any GCC internal prototype to avoid an error.
18090   Use char because int might match the return type of a GCC
18091   builtin and then its argument prototype would still apply.  */
18092#ifdef __cplusplus
18093extern "C"
18094#endif
18095char jpeg_CreateCompress ();
18096int
18097main ()
18098{
18099return jpeg_CreateCompress ();
18100  ;
18101  return 0;
18102}
18103_ACEOF
18104if ac_fn_c_try_link "$LINENO"; then :
18105  ac_cv_lib_jpeg_jpeg_CreateCompress=yes
18106else
18107  ac_cv_lib_jpeg_jpeg_CreateCompress=no
18108fi
18109rm -f core conftest.err conftest.$ac_objext \
18110    conftest$ac_exeext conftest.$ac_ext
18111LIBS=$ac_check_lib_save_LIBS
18112fi
18113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateCompress" >&5
18114$as_echo "$ac_cv_lib_jpeg_jpeg_CreateCompress" >&6; }
18115if test "x$ac_cv_lib_jpeg_jpeg_CreateCompress" = xyes; then :
18116  cat >>confdefs.h <<_ACEOF
18117#define HAVE_LIBJPEG 1
18118_ACEOF
18119
18120  LIBS="-ljpeg $LIBS"
18121
18122else
18123  as_fn_error $? "Jpeg library required for --enable-hdf4 builds." "$LINENO" 5
18124fi
18125
18126   for ac_header in mfhdf.h
18127do :
18128  ac_fn_c_check_header_mongrel "$LINENO" "mfhdf.h" "ac_cv_header_mfhdf_h" "$ac_includes_default"
18129if test "x$ac_cv_header_mfhdf_h" = xyes; then :
18130  cat >>confdefs.h <<_ACEOF
18131#define HAVE_MFHDF_H 1
18132_ACEOF
18133
18134else
18135  nc_mfhdf_h_missing=yes
18136fi
18137
18138done
18139
18140   if test "x$nc_mfhdf_h_missing" = xyes; then
18141      as_fn_error $? "Cannot find mfhdf.h, yet --enable-hdf4 was used." "$LINENO" 5
18142   fi
18143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Hclose in -ldf" >&5
18144$as_echo_n "checking for Hclose in -ldf... " >&6; }
18145if ${ac_cv_lib_df_Hclose+:} false; then :
18146  $as_echo_n "(cached) " >&6
18147else
18148  ac_check_lib_save_LIBS=$LIBS
18149LIBS="-ldf  $LIBS"
18150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18151/* end confdefs.h.  */
18152
18153/* Override any GCC internal prototype to avoid an error.
18154   Use char because int might match the return type of a GCC
18155   builtin and then its argument prototype would still apply.  */
18156#ifdef __cplusplus
18157extern "C"
18158#endif
18159char Hclose ();
18160int
18161main ()
18162{
18163return Hclose ();
18164  ;
18165  return 0;
18166}
18167_ACEOF
18168if ac_fn_c_try_link "$LINENO"; then :
18169  ac_cv_lib_df_Hclose=yes
18170else
18171  ac_cv_lib_df_Hclose=no
18172fi
18173rm -f core conftest.err conftest.$ac_objext \
18174    conftest$ac_exeext conftest.$ac_ext
18175LIBS=$ac_check_lib_save_LIBS
18176fi
18177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_df_Hclose" >&5
18178$as_echo "$ac_cv_lib_df_Hclose" >&6; }
18179if test "x$ac_cv_lib_df_Hclose" = xyes; then :
18180  cat >>confdefs.h <<_ACEOF
18181#define HAVE_LIBDF 1
18182_ACEOF
18183
18184  LIBS="-ldf $LIBS"
18185
18186else
18187  as_fn_error $? "Can't find or link to the hdf4 df library. See config.log for errors." "$LINENO" 5
18188fi
18189
18190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NC_arrayfill in -lmfhdf" >&5
18191$as_echo_n "checking for NC_arrayfill in -lmfhdf... " >&6; }
18192if ${ac_cv_lib_mfhdf_NC_arrayfill+:} false; then :
18193  $as_echo_n "(cached) " >&6
18194else
18195  ac_check_lib_save_LIBS=$LIBS
18196LIBS="-lmfhdf  $LIBS"
18197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18198/* end confdefs.h.  */
18199
18200/* Override any GCC internal prototype to avoid an error.
18201   Use char because int might match the return type of a GCC
18202   builtin and then its argument prototype would still apply.  */
18203#ifdef __cplusplus
18204extern "C"
18205#endif
18206char NC_arrayfill ();
18207int
18208main ()
18209{
18210return NC_arrayfill ();
18211  ;
18212  return 0;
18213}
18214_ACEOF
18215if ac_fn_c_try_link "$LINENO"; then :
18216  ac_cv_lib_mfhdf_NC_arrayfill=yes
18217else
18218  ac_cv_lib_mfhdf_NC_arrayfill=no
18219fi
18220rm -f core conftest.err conftest.$ac_objext \
18221    conftest$ac_exeext conftest.$ac_ext
18222LIBS=$ac_check_lib_save_LIBS
18223fi
18224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mfhdf_NC_arrayfill" >&5
18225$as_echo "$ac_cv_lib_mfhdf_NC_arrayfill" >&6; }
18226if test "x$ac_cv_lib_mfhdf_NC_arrayfill" = xyes; then :
18227  as_fn_error $? "HDF4 library must be built with --disable-netcdf." "$LINENO" 5
18228fi
18229
18230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDcreate in -lmfhdf" >&5
18231$as_echo_n "checking for SDcreate in -lmfhdf... " >&6; }
18232if ${ac_cv_lib_mfhdf_SDcreate+:} false; then :
18233  $as_echo_n "(cached) " >&6
18234else
18235  ac_check_lib_save_LIBS=$LIBS
18236LIBS="-lmfhdf  $LIBS"
18237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18238/* end confdefs.h.  */
18239
18240/* Override any GCC internal prototype to avoid an error.
18241   Use char because int might match the return type of a GCC
18242   builtin and then its argument prototype would still apply.  */
18243#ifdef __cplusplus
18244extern "C"
18245#endif
18246char SDcreate ();
18247int
18248main ()
18249{
18250return SDcreate ();
18251  ;
18252  return 0;
18253}
18254_ACEOF
18255if ac_fn_c_try_link "$LINENO"; then :
18256  ac_cv_lib_mfhdf_SDcreate=yes
18257else
18258  ac_cv_lib_mfhdf_SDcreate=no
18259fi
18260rm -f core conftest.err conftest.$ac_objext \
18261    conftest$ac_exeext conftest.$ac_ext
18262LIBS=$ac_check_lib_save_LIBS
18263fi
18264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mfhdf_SDcreate" >&5
18265$as_echo "$ac_cv_lib_mfhdf_SDcreate" >&6; }
18266if test "x$ac_cv_lib_mfhdf_SDcreate" = xyes; then :
18267  cat >>confdefs.h <<_ACEOF
18268#define HAVE_LIBMFHDF 1
18269_ACEOF
18270
18271  LIBS="-lmfhdf $LIBS"
18272
18273else
18274  as_fn_error $? "Can't find or link to the hdf4 mfhdf library. See config.log for errors." "$LINENO" 5
18275fi
18276
18277
18278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_set_quality in -ljpeg" >&5
18279$as_echo_n "checking for jpeg_set_quality in -ljpeg... " >&6; }
18280if ${ac_cv_lib_jpeg_jpeg_set_quality+:} false; then :
18281  $as_echo_n "(cached) " >&6
18282else
18283  ac_check_lib_save_LIBS=$LIBS
18284LIBS="-ljpeg  $LIBS"
18285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18286/* end confdefs.h.  */
18287
18288/* Override any GCC internal prototype to avoid an error.
18289   Use char because int might match the return type of a GCC
18290   builtin and then its argument prototype would still apply.  */
18291#ifdef __cplusplus
18292extern "C"
18293#endif
18294char jpeg_set_quality ();
18295int
18296main ()
18297{
18298return jpeg_set_quality ();
18299  ;
18300  return 0;
18301}
18302_ACEOF
18303if ac_fn_c_try_link "$LINENO"; then :
18304  ac_cv_lib_jpeg_jpeg_set_quality=yes
18305else
18306  ac_cv_lib_jpeg_jpeg_set_quality=no
18307fi
18308rm -f core conftest.err conftest.$ac_objext \
18309    conftest$ac_exeext conftest.$ac_ext
18310LIBS=$ac_check_lib_save_LIBS
18311fi
18312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_set_quality" >&5
18313$as_echo "$ac_cv_lib_jpeg_jpeg_set_quality" >&6; }
18314if test "x$ac_cv_lib_jpeg_jpeg_set_quality" = xyes; then :
18315  cat >>confdefs.h <<_ACEOF
18316#define HAVE_LIBJPEG 1
18317_ACEOF
18318
18319  LIBS="-ljpeg $LIBS"
18320
18321else
18322  as_fn_error $? "Can't find or link to the jpeg library (required by hdf4). See config.log for errors." "$LINENO" 5
18323fi
18324
18325
18326$as_echo "#define USE_HDF4 1" >>confdefs.h
18327
18328fi
18329
18330# There are several cases for parallelism:
18331# 1. PnetCDF enabled => we want to parallelism for CDF-1,CDF-2,and CDF-5
18332# 2. hdf5 has mpio enabled
18333#    a. do not want to use it for netcdf4
18334#    b. do want to use it for netcdf4
18335
18336# Should we provide parallel io for netcdf-4?
18337if test "x$enable_hdf5" = xyes ; then
18338   # Check whether --enable-parallel4 was given.
18339if test "${enable_parallel4+set}" = set; then :
18340  enableval=$enable_parallel4; user_set_parallel4=${enableval}2
18341fi
18342
18343   test "x$enable_parallel4" = xno || enable_parallel4=yes
18344
18345   # If user wants parallel IO for netCDF-4, make sure HDF5 can provide it.
18346   if test "x$enable_parallel4" = xyes; then
18347      if test "x$hdf5_parallel" = xno; then
18348      	 # If user specifically asked for parallel4, then error out.
18349	 if test "x$user_set_parallel4" = xyes; then
18350	    as_fn_error $? "Paralllel IO in netCDF-4 requested, but HDF5 does not provide parallel IO." "$LINENO" 5
18351	 fi
18352         # User didn't specify, so disable parallel4
18353	 enable_parallel4=no
18354	 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Parallel io disabled for netcdf-4 because hdf5 does not support" >&5
18355$as_echo "$as_me: WARNING: Parallel io disabled for netcdf-4 because hdf5 does not support" >&2;}
18356      fi
18357   fi
18358else
18359   enable_parallel4=no
18360fi
18361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether parallel I/O is enabled for netcdf-4" >&5
18362$as_echo_n "checking whether parallel I/O is enabled for netcdf-4... " >&6; }
18363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_parallel4" >&5
18364$as_echo "$enable_parallel4" >&6; }
18365
18366# We have already tested for parallel io in netcdf4
18367# parallel I/O for CDF-1, 2, and 5 files can also be done through PnetCDF
18368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether parallel I/O for classic files is to be enabled" >&5
18369$as_echo_n "checking whether parallel I/O for classic files is to be enabled... " >&6; }
18370# Check whether --enable-pnetcdf was given.
18371if test "${enable_pnetcdf+set}" = set; then :
18372  enableval=$enable_pnetcdf;
18373fi
18374
18375test "x$enable_pnetcdf" = xyes || enable_pnetcdf=no
18376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pnetcdf" >&5
18377$as_echo "$enable_pnetcdf" >&6; }
18378
18379# See if the PnetCDF lib is available and of the
18380# right version (1.6.0 or later)
18381if test "x$enable_pnetcdf" = xyes; then
18382  pnetcdf_conflict=no
18383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncmpi_create in -lpnetcdf" >&5
18384$as_echo_n "checking for ncmpi_create in -lpnetcdf... " >&6; }
18385if ${ac_cv_lib_pnetcdf_ncmpi_create+:} false; then :
18386  $as_echo_n "(cached) " >&6
18387else
18388  ac_check_lib_save_LIBS=$LIBS
18389LIBS="-lpnetcdf  $LIBS"
18390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18391/* end confdefs.h.  */
18392
18393/* Override any GCC internal prototype to avoid an error.
18394   Use char because int might match the return type of a GCC
18395   builtin and then its argument prototype would still apply.  */
18396#ifdef __cplusplus
18397extern "C"
18398#endif
18399char ncmpi_create ();
18400int
18401main ()
18402{
18403return ncmpi_create ();
18404  ;
18405  return 0;
18406}
18407_ACEOF
18408if ac_fn_c_try_link "$LINENO"; then :
18409  ac_cv_lib_pnetcdf_ncmpi_create=yes
18410else
18411  ac_cv_lib_pnetcdf_ncmpi_create=no
18412fi
18413rm -f core conftest.err conftest.$ac_objext \
18414    conftest$ac_exeext conftest.$ac_ext
18415LIBS=$ac_check_lib_save_LIBS
18416fi
18417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pnetcdf_ncmpi_create" >&5
18418$as_echo "$ac_cv_lib_pnetcdf_ncmpi_create" >&6; }
18419if test "x$ac_cv_lib_pnetcdf_ncmpi_create" = xyes; then :
18420  cat >>confdefs.h <<_ACEOF
18421#define HAVE_LIBPNETCDF 1
18422_ACEOF
18423
18424  LIBS="-lpnetcdf $LIBS"
18425
18426else
18427  pnetcdf_conflict=yes
18428fi
18429
18430
18431  if test "x$pnetcdf_conflict" = xyes ; then
18432     as_fn_error $? "Cannot link to PnetCDF library." "$LINENO" 5
18433  fi
18434
18435  # Pnetcdf did not support utf-8 until 1.6.0
18436
18437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking Is libpnetcdf version 1.6.0 or later?" >&5
18438$as_echo_n "checking Is libpnetcdf version 1.6.0 or later?... " >&6; }
18439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18440/* end confdefs.h.  */
18441
18442int
18443main ()
18444{
18445
18446#include <pnetcdf.h>
18447#if (PNETCDF_VERSION_MAJOR*1000 + PNETCDF_VERSION_MINOR < 1006)
18448      choke me
18449#endif
18450
18451  ;
18452  return 0;
18453}
18454_ACEOF
18455if ac_fn_c_try_compile "$LINENO"; then :
18456  pnetcdf16=yes
18457else
18458  pnetcdf16=no
18459fi
18460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pnetcdf16" >&5
18462$as_echo "$pnetcdf16" >&6; }
18463  if test x$pnetcdf16 = xno; then
18464    as_fn_error $? "--enable-pnetcdf requires version 1.6.0 or later" "$LINENO" 5
18465  fi
18466fi
18467
18468# Now, set enable_parallel if either enable_pnetcdf or enable_parallel4 is set
18469if test "x$enable_pnetcdf" = xyes -o "x$enable_parallel4" = xyes; then
18470  enable_parallel=yes
18471else
18472  enable_parallel=no
18473fi
18474 if test x$enable_parallel = xyes ; then
18475  ENABLE_PARALLEL_TRUE=
18476  ENABLE_PARALLEL_FALSE='#'
18477else
18478  ENABLE_PARALLEL_TRUE='#'
18479  ENABLE_PARALLEL_FALSE=
18480fi
18481
18482
18483if test "x$hdf5_parallel" = xyes; then
18484  # Provide more precise parallel control
18485
18486$as_echo "#define HDF5_PARALLEL 1" >>confdefs.h
18487
18488fi
18489
18490# Set config flags
18491if test "x$enable_parallel4" = xyes; then
18492  # Provide more precise parallel control
18493
18494$as_echo "#define USE_PARALLEL4 1" >>confdefs.h
18495
18496fi
18497
18498if test "x$enable_pnetcdf" = xyes; then
18499
18500$as_echo "#define USE_PNETCDF 1" >>confdefs.h
18501
18502fi
18503
18504# If enable_parallel is in use, enable it in the C code. Also add some stuff to netcdf.h.
18505if test "x$enable_parallel" = xyes; then
18506
18507$as_echo "#define USE_PARALLEL 1" >>confdefs.h
18508
18509fi
18510
18511# Check whether --enable-erange_fill was given.
18512if test "${enable_erange_fill+set}" = set; then :
18513  enableval=$enable_erange_fill; enable_erange_fill=${enableval}
18514else
18515  enable_erange_fill=auto
18516
18517fi
18518
18519
18520# check PnetCDF's settings on enable_erange_fill and relax_coord_bound
18521if test "x$enable_pnetcdf" = xyes; then
18522
18523        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for full path of header file pnetcdf.h" >&5
18524$as_echo_n "checking for full path of header file pnetcdf.h... " >&6; }
18525if ${ac_cv_header_path_pnetcdf_h+:} false; then :
18526  $as_echo_n "(cached) " >&6
18527else
18528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18529/* end confdefs.h.  */
18530#include <pnetcdf.h>
18531int
18532main ()
18533{
18534
18535  ;
18536  return 0;
18537}
18538_ACEOF
18539if ac_fn_c_try_cpp "$LINENO"; then :
18540  ac_cv_header_path_pnetcdf_h=`sed -n '/\.h"/s/.*"\(.*\)".*/\1/p' conftest.i | grep -m 1 pnetcdf.h`
18541else
18542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18543$as_echo "not found" >&6; }
18544
18545fi
18546rm -f conftest.err conftest.i conftest.$ac_ext
18547fi
18548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_path_pnetcdf_h" >&5
18549$as_echo "$ac_cv_header_path_pnetcdf_h" >&6; }
18550    if ${ac_cv_header_path_pnetcdf_h+:} false; then :
18551
18552fi
18553
18554
18555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if erange-fill is enabled in PnetCDF" >&5
18556$as_echo_n "checking if erange-fill is enabled in PnetCDF... " >&6; }
18557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18558/* end confdefs.h.  */
18559
18560int
18561main ()
18562{
18563
18564#include <pnetcdf.h>
18565#if !defined(PNETCDF_ERANGE_FILL) || PNETCDF_ERANGE_FILL == 0
18566      choke me
18567#endif
18568  ;
18569  return 0;
18570}
18571_ACEOF
18572if ac_fn_c_try_compile "$LINENO"; then :
18573  enable_erange_fill_pnetcdf=yes
18574else
18575  enable_erange_fill_pnetcdf=no
18576fi
18577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_erange_fill_pnetcdf" >&5
18579$as_echo "$enable_erange_fill_pnetcdf" >&6; }
18580   if test "x$enable_erange_fill" = xauto ; then
18581      enable_erange_fill=$enable_erange_fill_pnetcdf
18582   elif test "$enable_erange_fill" != "$enable_erange_fill_pnetcdf"; then
18583      if test "$enable_erange_fill" = yes; then
18584         as_fn_error $? "Enabling erange-fill conflicts with PnetCDF setting" "$LINENO" 5
18585      else
18586         as_fn_error $? "Disabling erange-fill conflicts with PnetCDF setting" "$LINENO" 5
18587      fi
18588   fi
18589
18590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if relax-coord-bound is enabled in PnetCDF" >&5
18591$as_echo_n "checking if relax-coord-bound is enabled in PnetCDF... " >&6; }
18592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18593/* end confdefs.h.  */
18594
18595int
18596main ()
18597{
18598
18599#include <pnetcdf.h>
18600#if !defined(PNETCDF_RELAX_COORD_BOUND) || PNETCDF_RELAX_COORD_BOUND == 0
18601      choke me
18602#endif
18603  ;
18604  return 0;
18605}
18606_ACEOF
18607if ac_fn_c_try_compile "$LINENO"; then :
18608  relax_coord_bound_pnetcdf=yes
18609else
18610  relax_coord_bound_pnetcdf=no
18611fi
18612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $relax_coord_bound_pnetcdf" >&5
18614$as_echo "$relax_coord_bound_pnetcdf" >&6; }
18615   if test x"$relax_coord_bound_pnetcdf" != xyes; then
18616      as_fn_error $? "PNetCDF must be built with relax-coord-bound" "$LINENO" 5
18617   fi
18618else
18619   if test "x$enable_erange_fill" = xauto; then
18620      # if --enable-erange-fill is not used, default setting is no
18621      enable_erange_fill=no
18622   fi
18623fi
18624
18625if test "x$enable_erange_fill" = xyes ; then
18626   if test "x$M4FLAGS" = x ; then
18627      M4FLAGS="-DERANGE_FILL"
18628   else
18629      M4FLAGS="$M4FLAGS -DERANGE_FILL"
18630   fi
18631
18632$as_echo "#define ERANGE_FILL 1" >>confdefs.h
18633
18634fi
18635
18636
18637# Check for downloading/building fortran via postinstall script.
18638if test "x$enable_remote_fortran_bootstrap" = xyes; then
18639
18640$as_echo "#define BUILD_FORTRAN 1" >>confdefs.h
18641
18642fi
18643
18644# No logging for netcdf-3.
18645if test "x$enable_netcdf_4" = xno; then
18646   enable_logging=no
18647fi
18648if test "x$enable_logging" = xyes; then
18649
18650$as_echo "#define LOGGING 1" >>confdefs.h
18651
18652fi
18653
18654# Automake conditionals need to be called, whether the answer is yes
18655# or no.
18656 if test x$enable_parallel = xyes; then
18657  BUILD_PARALLEL_TRUE=
18658  BUILD_PARALLEL_FALSE='#'
18659else
18660  BUILD_PARALLEL_TRUE='#'
18661  BUILD_PARALLEL_FALSE=
18662fi
18663
18664 if test "x$enable_parallel4" = xyes -a "x$enable_parallel_tests" = xyes; then
18665  TEST_PARALLEL4_TRUE=
18666  TEST_PARALLEL4_FALSE='#'
18667else
18668  TEST_PARALLEL4_TRUE='#'
18669  TEST_PARALLEL4_FALSE=
18670fi
18671
18672 if test "x$enable_dap" = xyes; then
18673  BUILD_DAP_TRUE=
18674  BUILD_DAP_FALSE='#'
18675else
18676  BUILD_DAP_TRUE='#'
18677  BUILD_DAP_FALSE=
18678fi
18679
18680 if test "x$enable_dap" = xyes; then
18681  USE_DAP_TRUE=
18682  USE_DAP_FALSE='#'
18683else
18684  USE_DAP_TRUE='#'
18685  USE_DAP_FALSE=
18686fi
18687 # Alias
18688# Provide protocol specific flags
18689 if test "x$enable_dap" = xyes; then
18690  ENABLE_DAP_TRUE=
18691  ENABLE_DAP_FALSE='#'
18692else
18693  ENABLE_DAP_TRUE='#'
18694  ENABLE_DAP_FALSE=
18695fi
18696
18697 if test "x$enable_dap4" = xyes; then
18698  ENABLE_DAP4_TRUE=
18699  ENABLE_DAP4_FALSE='#'
18700else
18701  ENABLE_DAP4_TRUE='#'
18702  ENABLE_DAP4_FALSE=
18703fi
18704
18705 if test x$enable_strict_null_byte_header_padding = xyes; then
18706  USE_STRICT_NULL_BYTE_HEADER_PADDING_TRUE=
18707  USE_STRICT_NULL_BYTE_HEADER_PADDING_FALSE='#'
18708else
18709  USE_STRICT_NULL_BYTE_HEADER_PADDING_TRUE='#'
18710  USE_STRICT_NULL_BYTE_HEADER_PADDING_FALSE=
18711fi
18712
18713 if test "x$enable_cdf5" = xyes; then
18714  ENABLE_CDF5_TRUE=
18715  ENABLE_CDF5_FALSE='#'
18716else
18717  ENABLE_CDF5_TRUE='#'
18718  ENABLE_CDF5_FALSE=
18719fi
18720
18721 if test "x$enable_dap_remote_tests" = xyes; then
18722  ENABLE_DAP_REMOTE_TESTS_TRUE=
18723  ENABLE_DAP_REMOTE_TESTS_FALSE='#'
18724else
18725  ENABLE_DAP_REMOTE_TESTS_TRUE='#'
18726  ENABLE_DAP_REMOTE_TESTS_FALSE=
18727fi
18728
18729 if test "x$enable_dap_auth_tests" = xyes; then
18730  ENABLE_DAP_AUTH_TESTS_TRUE=
18731  ENABLE_DAP_AUTH_TESTS_FALSE='#'
18732else
18733  ENABLE_DAP_AUTH_TESTS_TRUE='#'
18734  ENABLE_DAP_AUTH_TESTS_FALSE=
18735fi
18736
18737 if test "x$enable_dap_long_tests" = xyes; then
18738  ENABLE_DAP_LONG_TESTS_TRUE=
18739  ENABLE_DAP_LONG_TESTS_FALSE='#'
18740else
18741  ENABLE_DAP_LONG_TESTS_TRUE='#'
18742  ENABLE_DAP_LONG_TESTS_FALSE=
18743fi
18744
18745 if test "x$ac_cv_func_H5Z_SZIP" = xyes; then
18746  USE_SZIP_TRUE=
18747  USE_SZIP_FALSE='#'
18748else
18749  USE_SZIP_TRUE='#'
18750  USE_SZIP_FALSE=
18751fi
18752
18753 if test ! "x$PNETCDFDIR" = x; then
18754  USE_PNETCDF_DIR_TRUE=
18755  USE_PNETCDF_DIR_FALSE='#'
18756else
18757  USE_PNETCDF_DIR_TRUE='#'
18758  USE_PNETCDF_DIR_FALSE=
18759fi
18760
18761 if test "x$enable_logging" = xyes; then
18762  USE_LOGGING_TRUE=
18763  USE_LOGGING_FALSE='#'
18764else
18765  USE_LOGGING_TRUE='#'
18766  USE_LOGGING_FALSE=
18767fi
18768
18769 if test "x$cross_compiling" = xyes; then
18770  CROSS_COMPILING_TRUE=
18771  CROSS_COMPILING_FALSE='#'
18772else
18773  CROSS_COMPILING_TRUE='#'
18774  CROSS_COMPILING_FALSE=
18775fi
18776
18777 if test x$enable_netcdf_4 = xyes; then
18778  USE_NETCDF4_TRUE=
18779  USE_NETCDF4_FALSE='#'
18780else
18781  USE_NETCDF4_TRUE='#'
18782  USE_NETCDF4_FALSE=
18783fi
18784
18785 if test x$enable_hdf5 = xyes; then
18786  USE_HDF5_TRUE=
18787  USE_HDF5_FALSE='#'
18788else
18789  USE_HDF5_TRUE='#'
18790  USE_HDF5_FALSE=
18791fi
18792
18793 if test x$enable_hdf4 = xyes; then
18794  USE_HDF4_TRUE=
18795  USE_HDF4_FALSE='#'
18796else
18797  USE_HDF4_TRUE='#'
18798  USE_HDF4_FALSE=
18799fi
18800
18801 if test x$enable_hdf4_file_tests = xyes; then
18802  USE_HDF4_FILE_TESTS_TRUE=
18803  USE_HDF4_FILE_TESTS_FALSE='#'
18804else
18805  USE_HDF4_FILE_TESTS_TRUE='#'
18806  USE_HDF4_FILE_TESTS_FALSE=
18807fi
18808
18809 if test x$enable_netcdf_4 = xyes -o x$enable_dap = xyes; then
18810  USE_RENAMEV3_TRUE=
18811  USE_RENAMEV3_FALSE='#'
18812else
18813  USE_RENAMEV3_TRUE='#'
18814  USE_RENAMEV3_FALSE=
18815fi
18816
18817 if test x$enable_remote_fortran_bootstrap = xyes; then
18818  BUILD_FORTRAN_TRUE=
18819  BUILD_FORTRAN_FALSE='#'
18820else
18821  BUILD_FORTRAN_TRUE='#'
18822  BUILD_FORTRAN_FALSE=
18823fi
18824
18825 if test x$enable_pnetcdf = xyes; then
18826  USE_PNETCDF_TRUE=
18827  USE_PNETCDF_FALSE='#'
18828else
18829  USE_PNETCDF_TRUE='#'
18830  USE_PNETCDF_FALSE=
18831fi
18832
18833 if test x$enable_dispatch = xyes; then
18834  USE_DISPATCH_TRUE=
18835  USE_DISPATCH_FALSE='#'
18836else
18837  USE_DISPATCH_TRUE='#'
18838  USE_DISPATCH_FALSE=
18839fi
18840
18841 if test x$enable_mmap = xyes; then
18842  BUILD_MMAP_TRUE=
18843  BUILD_MMAP_FALSE='#'
18844else
18845  BUILD_MMAP_TRUE='#'
18846  BUILD_MMAP_FALSE=
18847fi
18848
18849 if test x$enable_doxygen = xyes; then
18850  BUILD_DOCS_TRUE=
18851  BUILD_DOCS_FALSE='#'
18852else
18853  BUILD_DOCS_TRUE='#'
18854  BUILD_DOCS_FALSE=
18855fi
18856
18857 if test x$enable_doxygen_tasks = xyes; then
18858  SHOW_DOXYGEN_TAG_LIST_TRUE=
18859  SHOW_DOXYGEN_TAG_LIST_FALSE='#'
18860else
18861  SHOW_DOXYGEN_TAG_LIST_TRUE='#'
18862  SHOW_DOXYGEN_TAG_LIST_FALSE=
18863fi
18864
18865 if test x$enable_metadata_perf = xyes; then
18866  ENABLE_METADATA_PERF_TRUE=
18867  ENABLE_METADATA_PERF_FALSE='#'
18868else
18869  ENABLE_METADATA_PERF_TRUE='#'
18870  ENABLE_METADATA_PERF_FALSE=
18871fi
18872
18873 if test "x$enable_byterange" = xyes; then
18874  ENABLE_BYTERANGE_TRUE=
18875  ENABLE_BYTERANGE_FALSE='#'
18876else
18877  ENABLE_BYTERANGE_TRUE='#'
18878  ENABLE_BYTERANGE_FALSE=
18879fi
18880
18881 if test "xyes" = xyes; then
18882  RELAX_COORD_BOUND_TRUE=
18883  RELAX_COORD_BOUND_FALSE='#'
18884else
18885  RELAX_COORD_BOUND_TRUE='#'
18886  RELAX_COORD_BOUND_FALSE=
18887fi
18888
18889 if test x$hdf5_supports_par_filters = xyes ; then
18890  HAS_PAR_FILTERS_TRUE=
18891  HAS_PAR_FILTERS_FALSE='#'
18892else
18893  HAS_PAR_FILTERS_TRUE='#'
18894  HAS_PAR_FILTERS_FALSE=
18895fi
18896
18897
18898# If the machine doesn't have a long long, and we want netCDF-4, then
18899# we've got problems!
18900if test "x$enable_netcdf_4" = xyes; then
18901
18902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18903$as_echo_n "checking for unsigned long long int... " >&6; }
18904if ${ac_cv_type_unsigned_long_long_int+:} false; then :
18905  $as_echo_n "(cached) " >&6
18906else
18907  ac_cv_type_unsigned_long_long_int=yes
18908     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18909       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18910/* end confdefs.h.  */
18911
18912  /* For now, do not test the preprocessor; as of 2007 there are too many
18913	 implementations with broken preprocessors.  Perhaps this can
18914	 be revisited in 2012.  In the meantime, code should not expect
18915	 #if to work with literals wider than 32 bits.  */
18916      /* Test literals.  */
18917      long long int ll = 9223372036854775807ll;
18918      long long int nll = -9223372036854775807LL;
18919      unsigned long long int ull = 18446744073709551615ULL;
18920      /* Test constant expressions.   */
18921      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18922		     ? 1 : -1)];
18923      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18924		     ? 1 : -1)];
18925      int i = 63;
18926int
18927main ()
18928{
18929/* Test availability of runtime routines for shift and division.  */
18930      long long int llmax = 9223372036854775807ll;
18931      unsigned long long int ullmax = 18446744073709551615ull;
18932      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18933	      | (llmax / ll) | (llmax % ll)
18934	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18935	      | (ullmax / ull) | (ullmax % ull));
18936  ;
18937  return 0;
18938}
18939
18940_ACEOF
18941if ac_fn_c_try_link "$LINENO"; then :
18942
18943else
18944  ac_cv_type_unsigned_long_long_int=no
18945fi
18946rm -f core conftest.err conftest.$ac_objext \
18947    conftest$ac_exeext conftest.$ac_ext
18948     fi
18949fi
18950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18951$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18952  if test $ac_cv_type_unsigned_long_long_int = yes; then
18953
18954$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18955
18956  fi
18957
18958
18959
18960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18961$as_echo_n "checking for long long int... " >&6; }
18962if ${ac_cv_type_long_long_int+:} false; then :
18963  $as_echo_n "(cached) " >&6
18964else
18965  ac_cv_type_long_long_int=yes
18966      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18967	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18968	if test $ac_cv_type_long_long_int = yes; then
18969	  	  	  	  if test "$cross_compiling" = yes; then :
18970  :
18971else
18972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18973/* end confdefs.h.  */
18974#include <limits.h>
18975		 #ifndef LLONG_MAX
18976		 # define HALF \
18977			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18978		 # define LLONG_MAX (HALF - 1 + HALF)
18979		 #endif
18980int
18981main ()
18982{
18983long long int n = 1;
18984		 int i;
18985		 for (i = 0; ; i++)
18986		   {
18987		     long long int m = n << i;
18988		     if (m >> i != n)
18989		       return 1;
18990		     if (LLONG_MAX / 2 < m)
18991		       break;
18992		   }
18993		 return 0;
18994  ;
18995  return 0;
18996}
18997_ACEOF
18998if ac_fn_c_try_run "$LINENO"; then :
18999
19000else
19001  ac_cv_type_long_long_int=no
19002fi
19003rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19004  conftest.$ac_objext conftest.beam conftest.$ac_ext
19005fi
19006
19007	fi
19008      fi
19009fi
19010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19011$as_echo "$ac_cv_type_long_long_int" >&6; }
19012  if test $ac_cv_type_long_long_int = yes; then
19013
19014$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19015
19016  fi
19017
19018
19019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
19020$as_echo_n "checking for unsigned long long int... " >&6; }
19021if ${ac_cv_type_unsigned_long_long_int+:} false; then :
19022  $as_echo_n "(cached) " >&6
19023else
19024  ac_cv_type_unsigned_long_long_int=yes
19025     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19026       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19027/* end confdefs.h.  */
19028
19029  /* For now, do not test the preprocessor; as of 2007 there are too many
19030	 implementations with broken preprocessors.  Perhaps this can
19031	 be revisited in 2012.  In the meantime, code should not expect
19032	 #if to work with literals wider than 32 bits.  */
19033      /* Test literals.  */
19034      long long int ll = 9223372036854775807ll;
19035      long long int nll = -9223372036854775807LL;
19036      unsigned long long int ull = 18446744073709551615ULL;
19037      /* Test constant expressions.   */
19038      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19039		     ? 1 : -1)];
19040      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19041		     ? 1 : -1)];
19042      int i = 63;
19043int
19044main ()
19045{
19046/* Test availability of runtime routines for shift and division.  */
19047      long long int llmax = 9223372036854775807ll;
19048      unsigned long long int ullmax = 18446744073709551615ull;
19049      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19050	      | (llmax / ll) | (llmax % ll)
19051	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19052	      | (ullmax / ull) | (ullmax % ull));
19053  ;
19054  return 0;
19055}
19056
19057_ACEOF
19058if ac_fn_c_try_link "$LINENO"; then :
19059
19060else
19061  ac_cv_type_unsigned_long_long_int=no
19062fi
19063rm -f core conftest.err conftest.$ac_objext \
19064    conftest$ac_exeext conftest.$ac_ext
19065     fi
19066fi
19067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
19068$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
19069  if test $ac_cv_type_unsigned_long_long_int = yes; then
19070
19071$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
19072
19073  fi
19074
19075fi
19076
19077# Create the file name for a "make ftpbin" which is used to generate a
19078# binary distribution. For each release we generate binary releases on
19079# the thousands of machines in Unidata's vast underground complex at
19080# an undisclosed location in the Rocky Mountains. The binary
19081# distributions, along with the 25-foot thick cement slabs and the
19082# giant springs, will help distribute netCDF even after a catastrophic
19083# meteor strike.
19084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to call the output of the ftpbin target" >&5
19085$as_echo_n "checking what to call the output of the ftpbin target... " >&6; }
19086BINFILE_NAME=binary-netcdf-$PACKAGE_VERSION
19087test "x$enable_netcdf_4" = xno && BINFILE_NAME=${BINFILE_NAME}_nc3
19088BINFILE_NAME=${BINFILE_NAME}.tar
19089
19090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BINFILE_NAME $FC $CXX" >&5
19091$as_echo "$BINFILE_NAME $FC $CXX" >&6; }
19092
19093##
19094# Bugfix for Cygwin.
19095##
19096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool needs -no-undefined flag to build shared libraries" >&5
19097$as_echo_n "checking if libtool needs -no-undefined flag to build shared libraries... " >&6; }
19098case "`uname`" in
19099     CYGWIN*|MINGW*|AIX*)
19100     ## Add in the -no-undefined flag to LDFLAGS for libtool.
19101     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19102$as_echo "yes" >&6; }
19103     NOUNDEFINED=" -no-undefined"
19104     ;;
19105     *)
19106     ## Don't add anything
19107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19108$as_echo "no" >&6; }
19109     ;;
19110esac
19111
19112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking value of LIBS" >&5
19113$as_echo_n "checking value of LIBS... " >&6; }
19114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
19115$as_echo "$LIBS" >&6; }
19116
19117# Flags for nc-config script; by design $prefix, $includir, $libdir,
19118# etc.  are left as shell variables in the script so as to facilitate
19119# relocation
19120if test "x$with_netcdf_c_lib" = x ; then
19121   NC_LIBS="-lnetcdf"
19122else
19123   NC_LIBS="$with_netcdf_c_lib"
19124fi
19125if test "x$enable_shared" != xyes; then
19126   NC_LIBS="$LDFLAGS $NC_LIBS $LIBS"
19127fi
19128
19129case "x$target_os" in
19130xsolaris*)
19131  NEWNCLIBS=""
19132  for x in $NC_LIBS ; do
19133    case "$x" in
19134    -L*) r=`echo "$x" | sed -e 's|^-L|-R|'`
19135	 NEWNCLIBS="$NEWNCLIBS $x $r"
19136	 ;;
19137    *)	 NEWNCLIBS="$NEWNCLIBS $x" ;;
19138    esac
19139  done
19140  NC_LIBS="$NEWNCLIBS"
19141  ;;
19142*);;
19143esac
19144
19145NC_FLIBS="-lnetcdff $NC_LIBS"
19146
19147# temporary to deal with a JNA problem
19148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking If compilation is for use with JNA" >&5
19149$as_echo_n "checking If compilation is for use with JNA... " >&6; }
19150# Check whether --enable-jna was given.
19151if test "${enable_jna+set}" = set; then :
19152  enableval=$enable_jna;
19153else
19154  enable_jna=no
19155fi
19156
19157test "x$enable_jna" = xno || enable_jna=yes
19158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_jna" >&5
19159$as_echo "$enable_jna" >&6; }
19160if test "x$enable_jna" = xyes ; then
19161
19162$as_echo "#define JNA 1" >>confdefs.h
19163
19164fi
19165
19166# Control filter test/example
19167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether filter testing should be run" >&5
19168$as_echo_n "checking whether filter testing should be run... " >&6; }
19169# Check whether --enable-filter-testing was given.
19170if test "${enable_filter_testing+set}" = set; then :
19171  enableval=$enable_filter_testing;
19172fi
19173
19174test "x$enable_filter_testing" = xno || enable_filter_testing=yes
19175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_filter_testing" >&5
19176$as_echo "$enable_filter_testing" >&6; }
19177
19178if test "x$enable_netcdf_4" = xno ; then
19179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: netCDF-4 disabled => --disable-filter-testing" >&5
19180$as_echo "$as_me: WARNING: netCDF-4 disabled => --disable-filter-testing" >&2;}
19181enable_filter_testing=no
19182fi
19183
19184if test "x$enable_hdf5" = xno ; then
19185{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HDF5 disabled => --disable-filter-testing" >&5
19186$as_echo "$as_me: WARNING: HDF5 disabled => --disable-filter-testing" >&2;}
19187enable_filter_testing=no
19188fi
19189
19190if test "x$enable_shared" = xno ; then
19191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Shared libraries are disabled => --disable-filter-testing" >&5
19192$as_echo "$as_me: WARNING: Shared libraries are disabled => --disable-filter-testing" >&2;}
19193enable_filter_testing=no
19194fi
19195 if test x$enable_filter_testing = xyes; then
19196  ENABLE_FILTER_TESTING_TRUE=
19197  ENABLE_FILTER_TESTING_FALSE='#'
19198else
19199  ENABLE_FILTER_TESTING_TRUE='#'
19200  ENABLE_FILTER_TESTING_FALSE=
19201fi
19202
19203
19204NC_LIBS=$NC_LIBS
19205
19206HAS_DAP=$enable_dap
19207
19208HAS_DAP2=$enable_dap
19209
19210HAS_DAP4=$enable_dap4
19211
19212HAS_NC2=$nc_build_v2
19213
19214HAS_NC4=$enable_netcdf_4
19215
19216HAS_CDF5=$enable_cdf5
19217
19218HAS_HDF4=$enable_hdf4
19219
19220HAS_HDF5=$enable_hdf5
19221
19222HAS_PNETCDF=$enable_pnetcdf
19223
19224HAS_LOGGING=$enable_logging
19225
19226HAS_SZLIB=$enable_szlib
19227
19228HAS_SZLIB_WRITE=$enable_szlib
19229
19230HAS_PARALLEL=$enable_parallel
19231
19232HAS_PARALLEL4=$enable_parallel4
19233
19234HAS_DISKLESS=yes
19235
19236HAS_MMAP=$enable_mmap
19237
19238HAS_JNA=$enable_jna
19239
19240HAS_ERANGE_FILL=$enable_erange_fill
19241
19242HAS_BYTERANGE=$enable_byterange
19243
19244RELAX_COORD_BOUND=yes
19245
19246HAS_PAR_FILTERS=$hdf5_supports_par_filters
19247
19248
19249# Include some specifics for netcdf on windows.
19250#AH_VERBATIM([_WIN32_STRICMP],
19251
19252
19253# Access netcdf specific version of config.h
19254
19255
19256##################################################
19257# Uncomment this to keep a copy of autoconf defines at this point, for
19258# debugging purposes.
19259# cp confdefs.h my_config.h
19260
19261#####
19262# Create output variables from various
19263# shell variables, for use in generating
19264# libnetcdf.settings.
19265#####
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276# Args:
19277# 1. netcdf_meta.h variable
19278# 2. conditional variable that is yes or no.
19279# 3. default condition
19280#
19281# example: AX_SET_META([NC_HAS_NC2],[$nc_build_v2],[]) # Because it checks for no.
19282#          AX_SET_META([NC_HAS_HDF4],[$enable_hdf4],[yes])
19283
19284
19285#####
19286# Define values used in include/netcdf_meta.h
19287#####
19288 NC_VERSION=$VERSION
19289
19290  if  test "x$nc_build_v2" = xyes ; then
19291      NC_HAS_NC2=1
19292  else
19293      NC_HAS_NC2=0
19294  fi
19295
19296
19297  if  test "x$enable_netcdf_4" = xyes ; then
19298      NC_HAS_NC4=1
19299  else
19300      NC_HAS_NC4=0
19301  fi
19302
19303
19304  if  test "x$enable_hdf4" = xyes ; then
19305      NC_HAS_HDF4=1
19306  else
19307      NC_HAS_HDF4=0
19308  fi
19309
19310
19311  if  test "x$enable_netcdf_4" = xyes ; then
19312      NC_HAS_HDF5=1
19313  else
19314      NC_HAS_HDF5=0
19315  fi
19316
19317
19318  if  test "x$ac_cv_func_H5Z_SZIP" = xyes ; then
19319      NC_HAS_SZIP=1
19320  else
19321      NC_HAS_SZIP=0
19322  fi
19323
19324
19325  if  test "x$enable_dap" = xyes ; then
19326      NC_HAS_DAP2=1
19327  else
19328      NC_HAS_DAP2=0
19329  fi
19330
19331
19332  if  test "x$enable_dap4" = xyes ; then
19333      NC_HAS_DAP4=1
19334  else
19335      NC_HAS_DAP4=0
19336  fi
19337
19338
19339  if  test "xyes" = xyes ; then
19340      NC_HAS_DISKLESS=1
19341  else
19342      NC_HAS_DISKLESS=0
19343  fi
19344
19345
19346  if  test "x$enable_mmap" = xyes ; then
19347      NC_HAS_MMAP=1
19348  else
19349      NC_HAS_MMAP=0
19350  fi
19351
19352
19353  if  test "x$enable_jna" = xyes ; then
19354      NC_HAS_JNA=1
19355  else
19356      NC_HAS_JNA=0
19357  fi
19358
19359
19360  if  test "x$enable_pnetcdf" = xyes ; then
19361      NC_HAS_PNETCDF=1
19362  else
19363      NC_HAS_PNETCDF=0
19364  fi
19365
19366
19367  if  test "x$enable_parallel" = xyes ; then
19368      NC_HAS_PARALLEL=1
19369  else
19370      NC_HAS_PARALLEL=0
19371  fi
19372
19373
19374  if  test "x$enable_parallel4" = xyes ; then
19375      NC_HAS_PARALLEL4=1
19376  else
19377      NC_HAS_PARALLEL4=0
19378  fi
19379
19380
19381  if  test "x$enable_cdf5" = xyes ; then
19382      NC_HAS_CDF5=1
19383  else
19384      NC_HAS_CDF5=0
19385  fi
19386
19387
19388  if  test "x$enable_erange_fill" = xyes ; then
19389      NC_HAS_ERANGE_FILL=1
19390  else
19391      NC_HAS_ERANGE_FILL=0
19392  fi
19393
19394
19395  if  test "x$hdf5_supports_par_filters" = xyes ; then
19396      NC_HAS_PAR_FILTERS=1
19397  else
19398      NC_HAS_PAR_FILTERS=0
19399  fi
19400
19401
19402  if  test "x$enable_byterange" = xyes ; then
19403      NC_HAS_BYTERANGE=1
19404  else
19405      NC_HAS_BYTERANGE=0
19406  fi
19407
19408NC_DISPATCH_VERSION=2
19409
19410#####
19411# End netcdf_meta.h definitions.
19412#####
19413
19414# This would be true for a cmake build.
19415
19416
19417# This would be true for a visual studio build.
19418
19419
19420{ $as_echo "$as_me:${as_lineno-$LINENO}: generating header files and makefiles" >&5
19421$as_echo "$as_me: generating header files and makefiles" >&6;}
19422ac_config_files="$ac_config_files test_common.sh:test_common.in"
19423
19424ac_config_files="$ac_config_files nc_test4/findplugin.sh:nc_test4/findplugin.in"
19425
19426ac_config_files="$ac_config_files examples/C/findplugin.sh:nc_test4/findplugin.in"
19427
19428ac_config_files="$ac_config_files ncdap_test/findtestserver.c:ncdap_test/findtestserver.c.in"
19429
19430ac_config_files="$ac_config_files dap4_test/findtestserver4.c:ncdap_test/findtestserver.c.in"
19431
19432ac_config_files="$ac_config_files dap4_test/pingurl4.c:ncdap_test/pingurl.c"
19433
19434ac_config_files="$ac_config_files h5_test/run_par_tests.sh"
19435
19436ac_config_files="$ac_config_files nc_test4/run_par_test.sh"
19437
19438ac_config_files="$ac_config_files nc_perf/run_par_bm_test.sh"
19439
19440ac_config_files="$ac_config_files examples/C/run_par_test.sh"
19441
19442ac_config_files="$ac_config_files nc-config"
19443
19444ac_config_files="$ac_config_files Makefile netcdf.pc libnetcdf.settings postinstall.sh include/netcdf_meta.h include/Makefile h5_test/Makefile hdf4_test/Makefile libsrc/Makefile libsrc4/Makefile libhdf5/Makefile libsrcp/Makefile ncdump/Makefile ncgen3/Makefile ncgen/Makefile examples/Makefile examples/C/Makefile examples/CDL/Makefile oc2/Makefile libdap2/Makefile libdap4/Makefile libhdf4/Makefile libdispatch/Makefile liblib/Makefile ncdump/cdl/Makefile ncdump/expected/Makefile docs/Makefile docs/images/Makefile unit_test/Makefile nctest/Makefile nc_test4/Makefile nc_perf/Makefile nc_test/Makefile ncdap_test/Makefile ncdap_test/testdata3/Makefile ncdap_test/expected3/Makefile ncdap_test/expectremote3/Makefile dap4_test/Makefile plugins/Makefile"
19445
19446cat >confcache <<\_ACEOF
19447# This file is a shell script that caches the results of configure
19448# tests run on this system so they can be shared between configure
19449# scripts and configure runs, see configure's option --config-cache.
19450# It is not useful on other systems.  If it contains results you don't
19451# want to keep, you may remove or edit it.
19452#
19453# config.status only pays attention to the cache file if you give it
19454# the --recheck option to rerun configure.
19455#
19456# `ac_cv_env_foo' variables (set or unset) will be overridden when
19457# loading this file, other *unset* `ac_cv_foo' will be assigned the
19458# following values.
19459
19460_ACEOF
19461
19462# The following way of writing the cache mishandles newlines in values,
19463# but we know of no workaround that is simple, portable, and efficient.
19464# So, we kill variables containing newlines.
19465# Ultrix sh set writes to stderr and can't be redirected directly,
19466# and sets the high bit in the cache file unless we assign to the vars.
19467(
19468  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19469    eval ac_val=\$$ac_var
19470    case $ac_val in #(
19471    *${as_nl}*)
19472      case $ac_var in #(
19473      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19474$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19475      esac
19476      case $ac_var in #(
19477      _ | IFS | as_nl) ;; #(
19478      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19479      *) { eval $ac_var=; unset $ac_var;} ;;
19480      esac ;;
19481    esac
19482  done
19483
19484  (set) 2>&1 |
19485    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19486    *${as_nl}ac_space=\ *)
19487      # `set' does not quote correctly, so add quotes: double-quote
19488      # substitution turns \\\\ into \\, and sed turns \\ into \.
19489      sed -n \
19490	"s/'/'\\\\''/g;
19491	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19492      ;; #(
19493    *)
19494      # `set' quotes correctly as required by POSIX, so do not add quotes.
19495      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19496      ;;
19497    esac |
19498    sort
19499) |
19500  sed '
19501     /^ac_cv_env_/b end
19502     t clear
19503     :clear
19504     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19505     t end
19506     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19507     :end' >>confcache
19508if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19509  if test -w "$cache_file"; then
19510    if test "x$cache_file" != "x/dev/null"; then
19511      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19512$as_echo "$as_me: updating cache $cache_file" >&6;}
19513      if test ! -f "$cache_file" || test -h "$cache_file"; then
19514	cat confcache >"$cache_file"
19515      else
19516        case $cache_file in #(
19517        */* | ?:*)
19518	  mv -f confcache "$cache_file"$$ &&
19519	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19520        *)
19521	  mv -f confcache "$cache_file" ;;
19522	esac
19523      fi
19524    fi
19525  else
19526    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19527$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19528  fi
19529fi
19530rm -f confcache
19531
19532test "x$prefix" = xNONE && prefix=$ac_default_prefix
19533# Let make expand exec_prefix.
19534test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19535
19536DEFS=-DHAVE_CONFIG_H
19537
19538ac_libobjs=
19539ac_ltlibobjs=
19540U=
19541for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19542  # 1. Remove the extension, and $U if already installed.
19543  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19544  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19545  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19546  #    will be set to the directory where LIBOBJS objects are built.
19547  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19548  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19549done
19550LIBOBJS=$ac_libobjs
19551
19552LTLIBOBJS=$ac_ltlibobjs
19553
19554
19555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19556$as_echo_n "checking that generated files are newer than configure... " >&6; }
19557   if test -n "$am_sleep_pid"; then
19558     # Hide warnings about reused PIDs.
19559     wait $am_sleep_pid 2>/dev/null
19560   fi
19561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19562$as_echo "done" >&6; }
19563 if test -n "$EXEEXT"; then
19564  am__EXEEXT_TRUE=
19565  am__EXEEXT_FALSE='#'
19566else
19567  am__EXEEXT_TRUE='#'
19568  am__EXEEXT_FALSE=
19569fi
19570
19571if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19572  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19573Usually this means the macro was only invoked conditionally." "$LINENO" 5
19574fi
19575if test -z "${VALGRIND_ENABLED_TRUE}" && test -z "${VALGRIND_ENABLED_FALSE}"; then
19576  as_fn_error $? "conditional \"VALGRIND_ENABLED\" was never defined.
19577Usually this means the macro was only invoked conditionally." "$LINENO" 5
19578fi
19579if test -z "${ENABLE_VALGRIND_TRUE}" && test -z "${ENABLE_VALGRIND_FALSE}"; then
19580  as_fn_error $? "conditional \"ENABLE_VALGRIND\" was never defined.
19581Usually this means the macro was only invoked conditionally." "$LINENO" 5
19582fi
19583if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
19584  as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
19585Usually this means the macro was only invoked conditionally." "$LINENO" 5
19586fi
19587if test -z "${SHOW_DOXYGEN_TAG_LIST_TRUE}" && test -z "${SHOW_DOXYGEN_TAG_LIST_FALSE}"; then
19588  as_fn_error $? "conditional \"SHOW_DOXYGEN_TAG_LIST\" was never defined.
19589Usually this means the macro was only invoked conditionally." "$LINENO" 5
19590fi
19591if test -z "${DOXYGEN_BUILD_RELEASE_DOCS_TRUE}" && test -z "${DOXYGEN_BUILD_RELEASE_DOCS_FALSE}"; then
19592  as_fn_error $? "conditional \"DOXYGEN_BUILD_RELEASE_DOCS\" was never defined.
19593Usually this means the macro was only invoked conditionally." "$LINENO" 5
19594fi
19595if test -z "${NC_ENABLE_DOXYGEN_PDF_OUTPUT_TRUE}" && test -z "${NC_ENABLE_DOXYGEN_PDF_OUTPUT_FALSE}"; then
19596  as_fn_error $? "conditional \"NC_ENABLE_DOXYGEN_PDF_OUTPUT\" was never defined.
19597Usually this means the macro was only invoked conditionally." "$LINENO" 5
19598fi
19599if test -z "${BUILD_UNIT_TESTS_TRUE}" && test -z "${BUILD_UNIT_TESTS_FALSE}"; then
19600  as_fn_error $? "conditional \"BUILD_UNIT_TESTS\" was never defined.
19601Usually this means the macro was only invoked conditionally." "$LINENO" 5
19602fi
19603if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19604  as_fn_error $? "conditional \"AMDEP\" was never defined.
19605Usually this means the macro was only invoked conditionally." "$LINENO" 5
19606fi
19607if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19608  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19609Usually this means the macro was only invoked conditionally." "$LINENO" 5
19610fi
19611if test -z "${INTERNAL_OCLIB_TRUE}" && test -z "${INTERNAL_OCLIB_FALSE}"; then
19612  as_fn_error $? "conditional \"INTERNAL_OCLIB\" was never defined.
19613Usually this means the macro was only invoked conditionally." "$LINENO" 5
19614fi
19615if test -z "${USE_STRICT_NULL_BYTE_HEADER_PADDING_TRUE}" && test -z "${USE_STRICT_NULL_BYTE_HEADER_PADDING_FALSE}"; then
19616  as_fn_error $? "conditional \"USE_STRICT_NULL_BYTE_HEADER_PADDING\" was never defined.
19617Usually this means the macro was only invoked conditionally." "$LINENO" 5
19618fi
19619if test -z "${USE_FFIO_TRUE}" && test -z "${USE_FFIO_FALSE}"; then
19620  as_fn_error $? "conditional \"USE_FFIO\" was never defined.
19621Usually this means the macro was only invoked conditionally." "$LINENO" 5
19622fi
19623if test -z "${USE_STDIO_TRUE}" && test -z "${USE_STDIO_FALSE}"; then
19624  as_fn_error $? "conditional \"USE_STDIO\" was never defined.
19625Usually this means the macro was only invoked conditionally." "$LINENO" 5
19626fi
19627if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
19628  as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
19629Usually this means the macro was only invoked conditionally." "$LINENO" 5
19630fi
19631if test -z "${BUILD_V2_TRUE}" && test -z "${BUILD_V2_FALSE}"; then
19632  as_fn_error $? "conditional \"BUILD_V2\" was never defined.
19633Usually this means the macro was only invoked conditionally." "$LINENO" 5
19634fi
19635if test -z "${BUILD_UTILITIES_TRUE}" && test -z "${BUILD_UTILITIES_FALSE}"; then
19636  as_fn_error $? "conditional \"BUILD_UTILITIES\" was never defined.
19637Usually this means the macro was only invoked conditionally." "$LINENO" 5
19638fi
19639if test -z "${BUILD_TESTSETS_TRUE}" && test -z "${BUILD_TESTSETS_FALSE}"; then
19640  as_fn_error $? "conditional \"BUILD_TESTSETS\" was never defined.
19641Usually this means the macro was only invoked conditionally." "$LINENO" 5
19642fi
19643if test -z "${LARGE_FILE_TESTS_TRUE}" && test -z "${LARGE_FILE_TESTS_FALSE}"; then
19644  as_fn_error $? "conditional \"LARGE_FILE_TESTS\" was never defined.
19645Usually this means the macro was only invoked conditionally." "$LINENO" 5
19646fi
19647if test -z "${BUILD_BENCHMARKS_TRUE}" && test -z "${BUILD_BENCHMARKS_FALSE}"; then
19648  as_fn_error $? "conditional \"BUILD_BENCHMARKS\" was never defined.
19649Usually this means the macro was only invoked conditionally." "$LINENO" 5
19650fi
19651if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19652  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19653Usually this means the macro was only invoked conditionally." "$LINENO" 5
19654fi
19655
19656if test -z "${ISCYGWIN_TRUE}" && test -z "${ISCYGWIN_FALSE}"; then
19657  as_fn_error $? "conditional \"ISCYGWIN\" was never defined.
19658Usually this means the macro was only invoked conditionally." "$LINENO" 5
19659fi
19660if test -z "${ENABLE_CDF5_TRUE}" && test -z "${ENABLE_CDF5_FALSE}"; then
19661  as_fn_error $? "conditional \"ENABLE_CDF5\" was never defined.
19662Usually this means the macro was only invoked conditionally." "$LINENO" 5
19663fi
19664if test -z "${ENABLE_PARALLEL_TRUE}" && test -z "${ENABLE_PARALLEL_FALSE}"; then
19665  as_fn_error $? "conditional \"ENABLE_PARALLEL\" was never defined.
19666Usually this means the macro was only invoked conditionally." "$LINENO" 5
19667fi
19668if test -z "${BUILD_PARALLEL_TRUE}" && test -z "${BUILD_PARALLEL_FALSE}"; then
19669  as_fn_error $? "conditional \"BUILD_PARALLEL\" was never defined.
19670Usually this means the macro was only invoked conditionally." "$LINENO" 5
19671fi
19672if test -z "${TEST_PARALLEL4_TRUE}" && test -z "${TEST_PARALLEL4_FALSE}"; then
19673  as_fn_error $? "conditional \"TEST_PARALLEL4\" was never defined.
19674Usually this means the macro was only invoked conditionally." "$LINENO" 5
19675fi
19676if test -z "${BUILD_DAP_TRUE}" && test -z "${BUILD_DAP_FALSE}"; then
19677  as_fn_error $? "conditional \"BUILD_DAP\" was never defined.
19678Usually this means the macro was only invoked conditionally." "$LINENO" 5
19679fi
19680if test -z "${USE_DAP_TRUE}" && test -z "${USE_DAP_FALSE}"; then
19681  as_fn_error $? "conditional \"USE_DAP\" was never defined.
19682Usually this means the macro was only invoked conditionally." "$LINENO" 5
19683fi
19684if test -z "${ENABLE_DAP_TRUE}" && test -z "${ENABLE_DAP_FALSE}"; then
19685  as_fn_error $? "conditional \"ENABLE_DAP\" was never defined.
19686Usually this means the macro was only invoked conditionally." "$LINENO" 5
19687fi
19688if test -z "${ENABLE_DAP4_TRUE}" && test -z "${ENABLE_DAP4_FALSE}"; then
19689  as_fn_error $? "conditional \"ENABLE_DAP4\" was never defined.
19690Usually this means the macro was only invoked conditionally." "$LINENO" 5
19691fi
19692if test -z "${USE_STRICT_NULL_BYTE_HEADER_PADDING_TRUE}" && test -z "${USE_STRICT_NULL_BYTE_HEADER_PADDING_FALSE}"; then
19693  as_fn_error $? "conditional \"USE_STRICT_NULL_BYTE_HEADER_PADDING\" was never defined.
19694Usually this means the macro was only invoked conditionally." "$LINENO" 5
19695fi
19696if test -z "${ENABLE_CDF5_TRUE}" && test -z "${ENABLE_CDF5_FALSE}"; then
19697  as_fn_error $? "conditional \"ENABLE_CDF5\" was never defined.
19698Usually this means the macro was only invoked conditionally." "$LINENO" 5
19699fi
19700if test -z "${ENABLE_DAP_REMOTE_TESTS_TRUE}" && test -z "${ENABLE_DAP_REMOTE_TESTS_FALSE}"; then
19701  as_fn_error $? "conditional \"ENABLE_DAP_REMOTE_TESTS\" was never defined.
19702Usually this means the macro was only invoked conditionally." "$LINENO" 5
19703fi
19704if test -z "${ENABLE_DAP_AUTH_TESTS_TRUE}" && test -z "${ENABLE_DAP_AUTH_TESTS_FALSE}"; then
19705  as_fn_error $? "conditional \"ENABLE_DAP_AUTH_TESTS\" was never defined.
19706Usually this means the macro was only invoked conditionally." "$LINENO" 5
19707fi
19708if test -z "${ENABLE_DAP_LONG_TESTS_TRUE}" && test -z "${ENABLE_DAP_LONG_TESTS_FALSE}"; then
19709  as_fn_error $? "conditional \"ENABLE_DAP_LONG_TESTS\" was never defined.
19710Usually this means the macro was only invoked conditionally." "$LINENO" 5
19711fi
19712if test -z "${USE_SZIP_TRUE}" && test -z "${USE_SZIP_FALSE}"; then
19713  as_fn_error $? "conditional \"USE_SZIP\" was never defined.
19714Usually this means the macro was only invoked conditionally." "$LINENO" 5
19715fi
19716if test -z "${USE_PNETCDF_DIR_TRUE}" && test -z "${USE_PNETCDF_DIR_FALSE}"; then
19717  as_fn_error $? "conditional \"USE_PNETCDF_DIR\" was never defined.
19718Usually this means the macro was only invoked conditionally." "$LINENO" 5
19719fi
19720if test -z "${USE_LOGGING_TRUE}" && test -z "${USE_LOGGING_FALSE}"; then
19721  as_fn_error $? "conditional \"USE_LOGGING\" was never defined.
19722Usually this means the macro was only invoked conditionally." "$LINENO" 5
19723fi
19724if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
19725  as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
19726Usually this means the macro was only invoked conditionally." "$LINENO" 5
19727fi
19728if test -z "${USE_NETCDF4_TRUE}" && test -z "${USE_NETCDF4_FALSE}"; then
19729  as_fn_error $? "conditional \"USE_NETCDF4\" was never defined.
19730Usually this means the macro was only invoked conditionally." "$LINENO" 5
19731fi
19732if test -z "${USE_HDF5_TRUE}" && test -z "${USE_HDF5_FALSE}"; then
19733  as_fn_error $? "conditional \"USE_HDF5\" was never defined.
19734Usually this means the macro was only invoked conditionally." "$LINENO" 5
19735fi
19736if test -z "${USE_HDF4_TRUE}" && test -z "${USE_HDF4_FALSE}"; then
19737  as_fn_error $? "conditional \"USE_HDF4\" was never defined.
19738Usually this means the macro was only invoked conditionally." "$LINENO" 5
19739fi
19740if test -z "${USE_HDF4_FILE_TESTS_TRUE}" && test -z "${USE_HDF4_FILE_TESTS_FALSE}"; then
19741  as_fn_error $? "conditional \"USE_HDF4_FILE_TESTS\" was never defined.
19742Usually this means the macro was only invoked conditionally." "$LINENO" 5
19743fi
19744if test -z "${USE_RENAMEV3_TRUE}" && test -z "${USE_RENAMEV3_FALSE}"; then
19745  as_fn_error $? "conditional \"USE_RENAMEV3\" was never defined.
19746Usually this means the macro was only invoked conditionally." "$LINENO" 5
19747fi
19748if test -z "${BUILD_FORTRAN_TRUE}" && test -z "${BUILD_FORTRAN_FALSE}"; then
19749  as_fn_error $? "conditional \"BUILD_FORTRAN\" was never defined.
19750Usually this means the macro was only invoked conditionally." "$LINENO" 5
19751fi
19752if test -z "${USE_PNETCDF_TRUE}" && test -z "${USE_PNETCDF_FALSE}"; then
19753  as_fn_error $? "conditional \"USE_PNETCDF\" was never defined.
19754Usually this means the macro was only invoked conditionally." "$LINENO" 5
19755fi
19756if test -z "${USE_DISPATCH_TRUE}" && test -z "${USE_DISPATCH_FALSE}"; then
19757  as_fn_error $? "conditional \"USE_DISPATCH\" was never defined.
19758Usually this means the macro was only invoked conditionally." "$LINENO" 5
19759fi
19760if test -z "${BUILD_MMAP_TRUE}" && test -z "${BUILD_MMAP_FALSE}"; then
19761  as_fn_error $? "conditional \"BUILD_MMAP\" was never defined.
19762Usually this means the macro was only invoked conditionally." "$LINENO" 5
19763fi
19764if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
19765  as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
19766Usually this means the macro was only invoked conditionally." "$LINENO" 5
19767fi
19768if test -z "${SHOW_DOXYGEN_TAG_LIST_TRUE}" && test -z "${SHOW_DOXYGEN_TAG_LIST_FALSE}"; then
19769  as_fn_error $? "conditional \"SHOW_DOXYGEN_TAG_LIST\" was never defined.
19770Usually this means the macro was only invoked conditionally." "$LINENO" 5
19771fi
19772if test -z "${ENABLE_METADATA_PERF_TRUE}" && test -z "${ENABLE_METADATA_PERF_FALSE}"; then
19773  as_fn_error $? "conditional \"ENABLE_METADATA_PERF\" was never defined.
19774Usually this means the macro was only invoked conditionally." "$LINENO" 5
19775fi
19776if test -z "${ENABLE_BYTERANGE_TRUE}" && test -z "${ENABLE_BYTERANGE_FALSE}"; then
19777  as_fn_error $? "conditional \"ENABLE_BYTERANGE\" was never defined.
19778Usually this means the macro was only invoked conditionally." "$LINENO" 5
19779fi
19780if test -z "${RELAX_COORD_BOUND_TRUE}" && test -z "${RELAX_COORD_BOUND_FALSE}"; then
19781  as_fn_error $? "conditional \"RELAX_COORD_BOUND\" was never defined.
19782Usually this means the macro was only invoked conditionally." "$LINENO" 5
19783fi
19784if test -z "${HAS_PAR_FILTERS_TRUE}" && test -z "${HAS_PAR_FILTERS_FALSE}"; then
19785  as_fn_error $? "conditional \"HAS_PAR_FILTERS\" was never defined.
19786Usually this means the macro was only invoked conditionally." "$LINENO" 5
19787fi
19788if test -z "${ENABLE_FILTER_TESTING_TRUE}" && test -z "${ENABLE_FILTER_TESTING_FALSE}"; then
19789  as_fn_error $? "conditional \"ENABLE_FILTER_TESTING\" was never defined.
19790Usually this means the macro was only invoked conditionally." "$LINENO" 5
19791fi
19792
19793: "${CONFIG_STATUS=./config.status}"
19794ac_write_fail=0
19795ac_clean_files_save=$ac_clean_files
19796ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19797{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19798$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19799as_write_fail=0
19800cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19801#! $SHELL
19802# Generated by $as_me.
19803# Run this file to recreate the current configuration.
19804# Compiler output produced by configure, useful for debugging
19805# configure, is in config.log if it exists.
19806
19807debug=false
19808ac_cs_recheck=false
19809ac_cs_silent=false
19810
19811SHELL=\${CONFIG_SHELL-$SHELL}
19812export SHELL
19813_ASEOF
19814cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19815## -------------------- ##
19816## M4sh Initialization. ##
19817## -------------------- ##
19818
19819# Be more Bourne compatible
19820DUALCASE=1; export DUALCASE # for MKS sh
19821if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19822  emulate sh
19823  NULLCMD=:
19824  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19825  # is contrary to our usage.  Disable this feature.
19826  alias -g '${1+"$@"}'='"$@"'
19827  setopt NO_GLOB_SUBST
19828else
19829  case `(set -o) 2>/dev/null` in #(
19830  *posix*) :
19831    set -o posix ;; #(
19832  *) :
19833     ;;
19834esac
19835fi
19836
19837
19838as_nl='
19839'
19840export as_nl
19841# Printing a long string crashes Solaris 7 /usr/bin/printf.
19842as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19843as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19844as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19845# Prefer a ksh shell builtin over an external printf program on Solaris,
19846# but without wasting forks for bash or zsh.
19847if test -z "$BASH_VERSION$ZSH_VERSION" \
19848    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19849  as_echo='print -r --'
19850  as_echo_n='print -rn --'
19851elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19852  as_echo='printf %s\n'
19853  as_echo_n='printf %s'
19854else
19855  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19856    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19857    as_echo_n='/usr/ucb/echo -n'
19858  else
19859    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19860    as_echo_n_body='eval
19861      arg=$1;
19862      case $arg in #(
19863      *"$as_nl"*)
19864	expr "X$arg" : "X\\(.*\\)$as_nl";
19865	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19866      esac;
19867      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19868    '
19869    export as_echo_n_body
19870    as_echo_n='sh -c $as_echo_n_body as_echo'
19871  fi
19872  export as_echo_body
19873  as_echo='sh -c $as_echo_body as_echo'
19874fi
19875
19876# The user is always right.
19877if test "${PATH_SEPARATOR+set}" != set; then
19878  PATH_SEPARATOR=:
19879  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19880    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19881      PATH_SEPARATOR=';'
19882  }
19883fi
19884
19885
19886# IFS
19887# We need space, tab and new line, in precisely that order.  Quoting is
19888# there to prevent editors from complaining about space-tab.
19889# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19890# splitting by setting IFS to empty value.)
19891IFS=" ""	$as_nl"
19892
19893# Find who we are.  Look in the path if we contain no directory separator.
19894as_myself=
19895case $0 in #((
19896  *[\\/]* ) as_myself=$0 ;;
19897  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19898for as_dir in $PATH
19899do
19900  IFS=$as_save_IFS
19901  test -z "$as_dir" && as_dir=.
19902    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19903  done
19904IFS=$as_save_IFS
19905
19906     ;;
19907esac
19908# We did not find ourselves, most probably we were run as `sh COMMAND'
19909# in which case we are not to be found in the path.
19910if test "x$as_myself" = x; then
19911  as_myself=$0
19912fi
19913if test ! -f "$as_myself"; then
19914  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19915  exit 1
19916fi
19917
19918# Unset variables that we do not need and which cause bugs (e.g. in
19919# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19920# suppresses any "Segmentation fault" message there.  '((' could
19921# trigger a bug in pdksh 5.2.14.
19922for as_var in BASH_ENV ENV MAIL MAILPATH
19923do eval test x\${$as_var+set} = xset \
19924  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19925done
19926PS1='$ '
19927PS2='> '
19928PS4='+ '
19929
19930# NLS nuisances.
19931LC_ALL=C
19932export LC_ALL
19933LANGUAGE=C
19934export LANGUAGE
19935
19936# CDPATH.
19937(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19938
19939
19940# as_fn_error STATUS ERROR [LINENO LOG_FD]
19941# ----------------------------------------
19942# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19943# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19944# script with STATUS, using 1 if that was 0.
19945as_fn_error ()
19946{
19947  as_status=$1; test $as_status -eq 0 && as_status=1
19948  if test "$4"; then
19949    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19950    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19951  fi
19952  $as_echo "$as_me: error: $2" >&2
19953  as_fn_exit $as_status
19954} # as_fn_error
19955
19956
19957# as_fn_set_status STATUS
19958# -----------------------
19959# Set $? to STATUS, without forking.
19960as_fn_set_status ()
19961{
19962  return $1
19963} # as_fn_set_status
19964
19965# as_fn_exit STATUS
19966# -----------------
19967# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19968as_fn_exit ()
19969{
19970  set +e
19971  as_fn_set_status $1
19972  exit $1
19973} # as_fn_exit
19974
19975# as_fn_unset VAR
19976# ---------------
19977# Portably unset VAR.
19978as_fn_unset ()
19979{
19980  { eval $1=; unset $1;}
19981}
19982as_unset=as_fn_unset
19983# as_fn_append VAR VALUE
19984# ----------------------
19985# Append the text in VALUE to the end of the definition contained in VAR. Take
19986# advantage of any shell optimizations that allow amortized linear growth over
19987# repeated appends, instead of the typical quadratic growth present in naive
19988# implementations.
19989if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19990  eval 'as_fn_append ()
19991  {
19992    eval $1+=\$2
19993  }'
19994else
19995  as_fn_append ()
19996  {
19997    eval $1=\$$1\$2
19998  }
19999fi # as_fn_append
20000
20001# as_fn_arith ARG...
20002# ------------------
20003# Perform arithmetic evaluation on the ARGs, and store the result in the
20004# global $as_val. Take advantage of shells that can avoid forks. The arguments
20005# must be portable across $(()) and expr.
20006if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20007  eval 'as_fn_arith ()
20008  {
20009    as_val=$(( $* ))
20010  }'
20011else
20012  as_fn_arith ()
20013  {
20014    as_val=`expr "$@" || test $? -eq 1`
20015  }
20016fi # as_fn_arith
20017
20018
20019if expr a : '\(a\)' >/dev/null 2>&1 &&
20020   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20021  as_expr=expr
20022else
20023  as_expr=false
20024fi
20025
20026if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20027  as_basename=basename
20028else
20029  as_basename=false
20030fi
20031
20032if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20033  as_dirname=dirname
20034else
20035  as_dirname=false
20036fi
20037
20038as_me=`$as_basename -- "$0" ||
20039$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20040	 X"$0" : 'X\(//\)$' \| \
20041	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20042$as_echo X/"$0" |
20043    sed '/^.*\/\([^/][^/]*\)\/*$/{
20044	    s//\1/
20045	    q
20046	  }
20047	  /^X\/\(\/\/\)$/{
20048	    s//\1/
20049	    q
20050	  }
20051	  /^X\/\(\/\).*/{
20052	    s//\1/
20053	    q
20054	  }
20055	  s/.*/./; q'`
20056
20057# Avoid depending upon Character Ranges.
20058as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20059as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20060as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20061as_cr_digits='0123456789'
20062as_cr_alnum=$as_cr_Letters$as_cr_digits
20063
20064ECHO_C= ECHO_N= ECHO_T=
20065case `echo -n x` in #(((((
20066-n*)
20067  case `echo 'xy\c'` in
20068  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20069  xy)  ECHO_C='\c';;
20070  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20071       ECHO_T='	';;
20072  esac;;
20073*)
20074  ECHO_N='-n';;
20075esac
20076
20077rm -f conf$$ conf$$.exe conf$$.file
20078if test -d conf$$.dir; then
20079  rm -f conf$$.dir/conf$$.file
20080else
20081  rm -f conf$$.dir
20082  mkdir conf$$.dir 2>/dev/null
20083fi
20084if (echo >conf$$.file) 2>/dev/null; then
20085  if ln -s conf$$.file conf$$ 2>/dev/null; then
20086    as_ln_s='ln -s'
20087    # ... but there are two gotchas:
20088    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20089    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20090    # In both cases, we have to default to `cp -pR'.
20091    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20092      as_ln_s='cp -pR'
20093  elif ln conf$$.file conf$$ 2>/dev/null; then
20094    as_ln_s=ln
20095  else
20096    as_ln_s='cp -pR'
20097  fi
20098else
20099  as_ln_s='cp -pR'
20100fi
20101rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20102rmdir conf$$.dir 2>/dev/null
20103
20104
20105# as_fn_mkdir_p
20106# -------------
20107# Create "$as_dir" as a directory, including parents if necessary.
20108as_fn_mkdir_p ()
20109{
20110
20111  case $as_dir in #(
20112  -*) as_dir=./$as_dir;;
20113  esac
20114  test -d "$as_dir" || eval $as_mkdir_p || {
20115    as_dirs=
20116    while :; do
20117      case $as_dir in #(
20118      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20119      *) as_qdir=$as_dir;;
20120      esac
20121      as_dirs="'$as_qdir' $as_dirs"
20122      as_dir=`$as_dirname -- "$as_dir" ||
20123$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20124	 X"$as_dir" : 'X\(//\)[^/]' \| \
20125	 X"$as_dir" : 'X\(//\)$' \| \
20126	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20127$as_echo X"$as_dir" |
20128    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20129	    s//\1/
20130	    q
20131	  }
20132	  /^X\(\/\/\)[^/].*/{
20133	    s//\1/
20134	    q
20135	  }
20136	  /^X\(\/\/\)$/{
20137	    s//\1/
20138	    q
20139	  }
20140	  /^X\(\/\).*/{
20141	    s//\1/
20142	    q
20143	  }
20144	  s/.*/./; q'`
20145      test -d "$as_dir" && break
20146    done
20147    test -z "$as_dirs" || eval "mkdir $as_dirs"
20148  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20149
20150
20151} # as_fn_mkdir_p
20152if mkdir -p . 2>/dev/null; then
20153  as_mkdir_p='mkdir -p "$as_dir"'
20154else
20155  test -d ./-p && rmdir ./-p
20156  as_mkdir_p=false
20157fi
20158
20159
20160# as_fn_executable_p FILE
20161# -----------------------
20162# Test if FILE is an executable regular file.
20163as_fn_executable_p ()
20164{
20165  test -f "$1" && test -x "$1"
20166} # as_fn_executable_p
20167as_test_x='test -x'
20168as_executable_p=as_fn_executable_p
20169
20170# Sed expression to map a string onto a valid CPP name.
20171as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20172
20173# Sed expression to map a string onto a valid variable name.
20174as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20175
20176
20177exec 6>&1
20178## ----------------------------------- ##
20179## Main body of $CONFIG_STATUS script. ##
20180## ----------------------------------- ##
20181_ASEOF
20182test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20183
20184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20185# Save the log message, to keep $0 and so on meaningful, and to
20186# report actual input values of CONFIG_FILES etc. instead of their
20187# values after options handling.
20188ac_log="
20189This file was extended by netCDF $as_me 4.7.4, which was
20190generated by GNU Autoconf 2.69.  Invocation command line was
20191
20192  CONFIG_FILES    = $CONFIG_FILES
20193  CONFIG_HEADERS  = $CONFIG_HEADERS
20194  CONFIG_LINKS    = $CONFIG_LINKS
20195  CONFIG_COMMANDS = $CONFIG_COMMANDS
20196  $ $0 $@
20197
20198on `(hostname || uname -n) 2>/dev/null | sed 1q`
20199"
20200
20201_ACEOF
20202
20203case $ac_config_files in *"
20204"*) set x $ac_config_files; shift; ac_config_files=$*;;
20205esac
20206
20207case $ac_config_headers in *"
20208"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20209esac
20210
20211
20212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20213# Files that config.status was made for.
20214config_files="$ac_config_files"
20215config_headers="$ac_config_headers"
20216config_links="$ac_config_links"
20217config_commands="$ac_config_commands"
20218
20219_ACEOF
20220
20221cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20222ac_cs_usage="\
20223\`$as_me' instantiates files and other configuration actions
20224from templates according to the current configuration.  Unless the files
20225and actions are specified as TAGs, all are instantiated by default.
20226
20227Usage: $0 [OPTION]... [TAG]...
20228
20229  -h, --help       print this help, then exit
20230  -V, --version    print version number and configuration settings, then exit
20231      --config     print configuration, then exit
20232  -q, --quiet, --silent
20233                   do not print progress messages
20234  -d, --debug      don't remove temporary files
20235      --recheck    update $as_me by reconfiguring in the same conditions
20236      --file=FILE[:TEMPLATE]
20237                   instantiate the configuration file FILE
20238      --header=FILE[:TEMPLATE]
20239                   instantiate the configuration header FILE
20240
20241Configuration files:
20242$config_files
20243
20244Configuration headers:
20245$config_headers
20246
20247Configuration links:
20248$config_links
20249
20250Configuration commands:
20251$config_commands
20252
20253Report bugs to <support-netcdf@unidata.ucar.edu>."
20254
20255_ACEOF
20256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20257ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20258ac_cs_version="\\
20259netCDF config.status 4.7.4
20260configured by $0, generated by GNU Autoconf 2.69,
20261  with options \\"\$ac_cs_config\\"
20262
20263Copyright (C) 2012 Free Software Foundation, Inc.
20264This config.status script is free software; the Free Software Foundation
20265gives unlimited permission to copy, distribute and modify it."
20266
20267ac_pwd='$ac_pwd'
20268srcdir='$srcdir'
20269INSTALL='$INSTALL'
20270MKDIR_P='$MKDIR_P'
20271AWK='$AWK'
20272test -n "\$AWK" || AWK=awk
20273_ACEOF
20274
20275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20276# The default lists apply if the user does not specify any file.
20277ac_need_defaults=:
20278while test $# != 0
20279do
20280  case $1 in
20281  --*=?*)
20282    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20283    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20284    ac_shift=:
20285    ;;
20286  --*=)
20287    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20288    ac_optarg=
20289    ac_shift=:
20290    ;;
20291  *)
20292    ac_option=$1
20293    ac_optarg=$2
20294    ac_shift=shift
20295    ;;
20296  esac
20297
20298  case $ac_option in
20299  # Handling of the options.
20300  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20301    ac_cs_recheck=: ;;
20302  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20303    $as_echo "$ac_cs_version"; exit ;;
20304  --config | --confi | --conf | --con | --co | --c )
20305    $as_echo "$ac_cs_config"; exit ;;
20306  --debug | --debu | --deb | --de | --d | -d )
20307    debug=: ;;
20308  --file | --fil | --fi | --f )
20309    $ac_shift
20310    case $ac_optarg in
20311    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20312    '') as_fn_error $? "missing file argument" ;;
20313    esac
20314    as_fn_append CONFIG_FILES " '$ac_optarg'"
20315    ac_need_defaults=false;;
20316  --header | --heade | --head | --hea )
20317    $ac_shift
20318    case $ac_optarg in
20319    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20320    esac
20321    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20322    ac_need_defaults=false;;
20323  --he | --h)
20324    # Conflict between --help and --header
20325    as_fn_error $? "ambiguous option: \`$1'
20326Try \`$0 --help' for more information.";;
20327  --help | --hel | -h )
20328    $as_echo "$ac_cs_usage"; exit ;;
20329  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20330  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20331    ac_cs_silent=: ;;
20332
20333  # This is an error.
20334  -*) as_fn_error $? "unrecognized option: \`$1'
20335Try \`$0 --help' for more information." ;;
20336
20337  *) as_fn_append ac_config_targets " $1"
20338     ac_need_defaults=false ;;
20339
20340  esac
20341  shift
20342done
20343
20344ac_configure_extra_args=
20345
20346if $ac_cs_silent; then
20347  exec 6>/dev/null
20348  ac_configure_extra_args="$ac_configure_extra_args --silent"
20349fi
20350
20351_ACEOF
20352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20353if \$ac_cs_recheck; then
20354  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20355  shift
20356  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20357  CONFIG_SHELL='$SHELL'
20358  export CONFIG_SHELL
20359  exec "\$@"
20360fi
20361
20362_ACEOF
20363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20364exec 5>>config.log
20365{
20366  echo
20367  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20368## Running $as_me. ##
20369_ASBOX
20370  $as_echo "$ac_log"
20371} >&5
20372
20373_ACEOF
20374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20375#
20376# INIT-COMMANDS
20377#
20378AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20379
20380
20381# The HP-UX ksh and POSIX shell print the target directory to stdout
20382# if CDPATH is set.
20383(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20384
20385sed_quote_subst='$sed_quote_subst'
20386double_quote_subst='$double_quote_subst'
20387delay_variable_subst='$delay_variable_subst'
20388macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20389macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20390enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20391enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20392pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20393enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20394shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20395SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20396ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20397PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20398host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20399host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20400host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20401build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20402build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20403build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20404SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20405Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20406GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20407EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20408FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20409LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20410NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20411LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20412max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20413ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20414exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20415lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20416lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20417lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20418lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20419lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20420reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20421reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20422OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20423deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20424file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20425file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20426want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20427DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20428sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20429AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20430AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20431archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20432STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20433RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20434old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20435old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20436old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20437lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20438CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20439CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20440compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20441GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20442lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20443lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20444lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20445lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20446lt_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"`'
20447lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20448nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20449lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20450lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20451objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20452MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20453lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20454lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20455lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20456lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20457lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20458need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20459MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20460DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20461NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20462LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20463OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20464OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20465libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20466shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20467extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20468archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20469enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20470export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20471whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20472compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20473old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20474old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20475archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20476archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20477module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20478module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20479with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20480allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20481no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20482hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20483hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20484hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20485hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20486hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20487hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20488hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20489inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20490link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20491always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20492export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20493exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20494include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20495prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20496postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20497file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20498variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20499need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20500need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20501version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20502runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20503shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20504shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20505libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20506library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20507soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20508install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20509postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20510postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20511finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20512finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20513hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20514sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20515configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20516configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20517hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20518enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20519enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20520enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20521old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20522striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20523
20524LTCC='$LTCC'
20525LTCFLAGS='$LTCFLAGS'
20526compiler='$compiler_DEFAULT'
20527
20528# A function that is used when there is no print builtin or printf.
20529func_fallback_echo ()
20530{
20531  eval 'cat <<_LTECHO_EOF
20532\$1
20533_LTECHO_EOF'
20534}
20535
20536# Quote evaled strings.
20537for var in SHELL \
20538ECHO \
20539PATH_SEPARATOR \
20540SED \
20541GREP \
20542EGREP \
20543FGREP \
20544LD \
20545NM \
20546LN_S \
20547lt_SP2NL \
20548lt_NL2SP \
20549reload_flag \
20550OBJDUMP \
20551deplibs_check_method \
20552file_magic_cmd \
20553file_magic_glob \
20554want_nocaseglob \
20555DLLTOOL \
20556sharedlib_from_linklib_cmd \
20557AR \
20558AR_FLAGS \
20559archiver_list_spec \
20560STRIP \
20561RANLIB \
20562CC \
20563CFLAGS \
20564compiler \
20565lt_cv_sys_global_symbol_pipe \
20566lt_cv_sys_global_symbol_to_cdecl \
20567lt_cv_sys_global_symbol_to_import \
20568lt_cv_sys_global_symbol_to_c_name_address \
20569lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20570lt_cv_nm_interface \
20571nm_file_list_spec \
20572lt_cv_truncate_bin \
20573lt_prog_compiler_no_builtin_flag \
20574lt_prog_compiler_pic \
20575lt_prog_compiler_wl \
20576lt_prog_compiler_static \
20577lt_cv_prog_compiler_c_o \
20578need_locks \
20579MANIFEST_TOOL \
20580DSYMUTIL \
20581NMEDIT \
20582LIPO \
20583OTOOL \
20584OTOOL64 \
20585shrext_cmds \
20586export_dynamic_flag_spec \
20587whole_archive_flag_spec \
20588compiler_needs_object \
20589with_gnu_ld \
20590allow_undefined_flag \
20591no_undefined_flag \
20592hardcode_libdir_flag_spec \
20593hardcode_libdir_separator \
20594exclude_expsyms \
20595include_expsyms \
20596file_list_spec \
20597variables_saved_for_relink \
20598libname_spec \
20599library_names_spec \
20600soname_spec \
20601install_override_mode \
20602finish_eval \
20603old_striplib \
20604striplib; do
20605    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20606    *[\\\\\\\`\\"\\\$]*)
20607      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20608      ;;
20609    *)
20610      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20611      ;;
20612    esac
20613done
20614
20615# Double-quote double-evaled strings.
20616for var in reload_cmds \
20617old_postinstall_cmds \
20618old_postuninstall_cmds \
20619old_archive_cmds \
20620extract_expsyms_cmds \
20621old_archive_from_new_cmds \
20622old_archive_from_expsyms_cmds \
20623archive_cmds \
20624archive_expsym_cmds \
20625module_cmds \
20626module_expsym_cmds \
20627export_symbols_cmds \
20628prelink_cmds \
20629postlink_cmds \
20630postinstall_cmds \
20631postuninstall_cmds \
20632finish_cmds \
20633sys_lib_search_path_spec \
20634configure_time_dlsearch_path \
20635configure_time_lt_sys_library_path; do
20636    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20637    *[\\\\\\\`\\"\\\$]*)
20638      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20639      ;;
20640    *)
20641      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20642      ;;
20643    esac
20644done
20645
20646ac_aux_dir='$ac_aux_dir'
20647
20648# See if we are running on zsh, and set the options that allow our
20649# commands through without removal of \ escapes INIT.
20650if test -n "\${ZSH_VERSION+set}"; then
20651   setopt NO_GLOB_SUBST
20652fi
20653
20654
20655    PACKAGE='$PACKAGE'
20656    VERSION='$VERSION'
20657    RM='$RM'
20658    ofile='$ofile'
20659
20660
20661
20662
20663_ACEOF
20664
20665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20666
20667# Handling of arguments.
20668for ac_config_target in $ac_config_targets
20669do
20670  case $ac_config_target in
20671    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20672    "nc_test4/ref_hdf5_compat1.nc") CONFIG_LINKS="$CONFIG_LINKS nc_test4/ref_hdf5_compat1.nc:nc_test4/ref_hdf5_compat1.nc" ;;
20673    "nc_test4/ref_hdf5_compat2.nc") CONFIG_LINKS="$CONFIG_LINKS nc_test4/ref_hdf5_compat2.nc:nc_test4/ref_hdf5_compat2.nc" ;;
20674    "nc_test4/ref_hdf5_compat3.nc") CONFIG_LINKS="$CONFIG_LINKS nc_test4/ref_hdf5_compat3.nc:nc_test4/ref_hdf5_compat3.nc" ;;
20675    "hdf4_test/ref_chunked.hdf4") CONFIG_LINKS="$CONFIG_LINKS hdf4_test/ref_chunked.hdf4:hdf4_test/ref_chunked.hdf4" ;;
20676    "hdf4_test/ref_contiguous.hdf4") CONFIG_LINKS="$CONFIG_LINKS hdf4_test/ref_contiguous.hdf4:hdf4_test/ref_contiguous.hdf4" ;;
20677    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20678    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20679    "docs/Doxyfile") CONFIG_FILES="$CONFIG_FILES docs/Doxyfile" ;;
20680    "test_common.sh") CONFIG_FILES="$CONFIG_FILES test_common.sh:test_common.in" ;;
20681    "nc_test4/findplugin.sh") CONFIG_FILES="$CONFIG_FILES nc_test4/findplugin.sh:nc_test4/findplugin.in" ;;
20682    "examples/C/findplugin.sh") CONFIG_FILES="$CONFIG_FILES examples/C/findplugin.sh:nc_test4/findplugin.in" ;;
20683    "ncdap_test/findtestserver.c") CONFIG_FILES="$CONFIG_FILES ncdap_test/findtestserver.c:ncdap_test/findtestserver.c.in" ;;
20684    "dap4_test/findtestserver4.c") CONFIG_FILES="$CONFIG_FILES dap4_test/findtestserver4.c:ncdap_test/findtestserver.c.in" ;;
20685    "dap4_test/pingurl4.c") CONFIG_FILES="$CONFIG_FILES dap4_test/pingurl4.c:ncdap_test/pingurl.c" ;;
20686    "h5_test/run_par_tests.sh") CONFIG_FILES="$CONFIG_FILES h5_test/run_par_tests.sh" ;;
20687    "nc_test4/run_par_test.sh") CONFIG_FILES="$CONFIG_FILES nc_test4/run_par_test.sh" ;;
20688    "nc_perf/run_par_bm_test.sh") CONFIG_FILES="$CONFIG_FILES nc_perf/run_par_bm_test.sh" ;;
20689    "examples/C/run_par_test.sh") CONFIG_FILES="$CONFIG_FILES examples/C/run_par_test.sh" ;;
20690    "nc-config") CONFIG_FILES="$CONFIG_FILES nc-config" ;;
20691    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20692    "netcdf.pc") CONFIG_FILES="$CONFIG_FILES netcdf.pc" ;;
20693    "libnetcdf.settings") CONFIG_FILES="$CONFIG_FILES libnetcdf.settings" ;;
20694    "postinstall.sh") CONFIG_FILES="$CONFIG_FILES postinstall.sh" ;;
20695    "include/netcdf_meta.h") CONFIG_FILES="$CONFIG_FILES include/netcdf_meta.h" ;;
20696    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20697    "h5_test/Makefile") CONFIG_FILES="$CONFIG_FILES h5_test/Makefile" ;;
20698    "hdf4_test/Makefile") CONFIG_FILES="$CONFIG_FILES hdf4_test/Makefile" ;;
20699    "libsrc/Makefile") CONFIG_FILES="$CONFIG_FILES libsrc/Makefile" ;;
20700    "libsrc4/Makefile") CONFIG_FILES="$CONFIG_FILES libsrc4/Makefile" ;;
20701    "libhdf5/Makefile") CONFIG_FILES="$CONFIG_FILES libhdf5/Makefile" ;;
20702    "libsrcp/Makefile") CONFIG_FILES="$CONFIG_FILES libsrcp/Makefile" ;;
20703    "ncdump/Makefile") CONFIG_FILES="$CONFIG_FILES ncdump/Makefile" ;;
20704    "ncgen3/Makefile") CONFIG_FILES="$CONFIG_FILES ncgen3/Makefile" ;;
20705    "ncgen/Makefile") CONFIG_FILES="$CONFIG_FILES ncgen/Makefile" ;;
20706    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
20707    "examples/C/Makefile") CONFIG_FILES="$CONFIG_FILES examples/C/Makefile" ;;
20708    "examples/CDL/Makefile") CONFIG_FILES="$CONFIG_FILES examples/CDL/Makefile" ;;
20709    "oc2/Makefile") CONFIG_FILES="$CONFIG_FILES oc2/Makefile" ;;
20710    "libdap2/Makefile") CONFIG_FILES="$CONFIG_FILES libdap2/Makefile" ;;
20711    "libdap4/Makefile") CONFIG_FILES="$CONFIG_FILES libdap4/Makefile" ;;
20712    "libhdf4/Makefile") CONFIG_FILES="$CONFIG_FILES libhdf4/Makefile" ;;
20713    "libdispatch/Makefile") CONFIG_FILES="$CONFIG_FILES libdispatch/Makefile" ;;
20714    "liblib/Makefile") CONFIG_FILES="$CONFIG_FILES liblib/Makefile" ;;
20715    "ncdump/cdl/Makefile") CONFIG_FILES="$CONFIG_FILES ncdump/cdl/Makefile" ;;
20716    "ncdump/expected/Makefile") CONFIG_FILES="$CONFIG_FILES ncdump/expected/Makefile" ;;
20717    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
20718    "docs/images/Makefile") CONFIG_FILES="$CONFIG_FILES docs/images/Makefile" ;;
20719    "unit_test/Makefile") CONFIG_FILES="$CONFIG_FILES unit_test/Makefile" ;;
20720    "nctest/Makefile") CONFIG_FILES="$CONFIG_FILES nctest/Makefile" ;;
20721    "nc_test4/Makefile") CONFIG_FILES="$CONFIG_FILES nc_test4/Makefile" ;;
20722    "nc_perf/Makefile") CONFIG_FILES="$CONFIG_FILES nc_perf/Makefile" ;;
20723    "nc_test/Makefile") CONFIG_FILES="$CONFIG_FILES nc_test/Makefile" ;;
20724    "ncdap_test/Makefile") CONFIG_FILES="$CONFIG_FILES ncdap_test/Makefile" ;;
20725    "ncdap_test/testdata3/Makefile") CONFIG_FILES="$CONFIG_FILES ncdap_test/testdata3/Makefile" ;;
20726    "ncdap_test/expected3/Makefile") CONFIG_FILES="$CONFIG_FILES ncdap_test/expected3/Makefile" ;;
20727    "ncdap_test/expectremote3/Makefile") CONFIG_FILES="$CONFIG_FILES ncdap_test/expectremote3/Makefile" ;;
20728    "dap4_test/Makefile") CONFIG_FILES="$CONFIG_FILES dap4_test/Makefile" ;;
20729    "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
20730
20731  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20732  esac
20733done
20734
20735
20736# If the user did not use the arguments to specify the items to instantiate,
20737# then the envvar interface is used.  Set only those that are not.
20738# We use the long form for the default assignment because of an extremely
20739# bizarre bug on SunOS 4.1.3.
20740if $ac_need_defaults; then
20741  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20742  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20743  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
20744  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20745fi
20746
20747# Have a temporary directory for convenience.  Make it in the build tree
20748# simply because there is no reason against having it here, and in addition,
20749# creating and moving files from /tmp can sometimes cause problems.
20750# Hook for its removal unless debugging.
20751# Note that there is a small window in which the directory will not be cleaned:
20752# after its creation but before its name has been assigned to `$tmp'.
20753$debug ||
20754{
20755  tmp= ac_tmp=
20756  trap 'exit_status=$?
20757  : "${ac_tmp:=$tmp}"
20758  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20759' 0
20760  trap 'as_fn_exit 1' 1 2 13 15
20761}
20762# Create a (secure) tmp directory for tmp files.
20763
20764{
20765  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20766  test -d "$tmp"
20767}  ||
20768{
20769  tmp=./conf$$-$RANDOM
20770  (umask 077 && mkdir "$tmp")
20771} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20772ac_tmp=$tmp
20773
20774# Set up the scripts for CONFIG_FILES section.
20775# No need to generate them if there are no CONFIG_FILES.
20776# This happens for instance with `./config.status config.h'.
20777if test -n "$CONFIG_FILES"; then
20778
20779
20780ac_cr=`echo X | tr X '\015'`
20781# On cygwin, bash can eat \r inside `` if the user requested igncr.
20782# But we know of no other shell where ac_cr would be empty at this
20783# point, so we can use a bashism as a fallback.
20784if test "x$ac_cr" = x; then
20785  eval ac_cr=\$\'\\r\'
20786fi
20787ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20788if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20789  ac_cs_awk_cr='\\r'
20790else
20791  ac_cs_awk_cr=$ac_cr
20792fi
20793
20794echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20795_ACEOF
20796
20797
20798{
20799  echo "cat >conf$$subs.awk <<_ACEOF" &&
20800  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20801  echo "_ACEOF"
20802} >conf$$subs.sh ||
20803  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20804ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20805ac_delim='%!_!# '
20806for ac_last_try in false false false false false :; do
20807  . ./conf$$subs.sh ||
20808    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20809
20810  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20811  if test $ac_delim_n = $ac_delim_num; then
20812    break
20813  elif $ac_last_try; then
20814    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20815  else
20816    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20817  fi
20818done
20819rm -f conf$$subs.sh
20820
20821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20822cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20823_ACEOF
20824sed -n '
20825h
20826s/^/S["/; s/!.*/"]=/
20827p
20828g
20829s/^[^!]*!//
20830:repl
20831t repl
20832s/'"$ac_delim"'$//
20833t delim
20834:nl
20835h
20836s/\(.\{148\}\)..*/\1/
20837t more1
20838s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20839p
20840n
20841b repl
20842:more1
20843s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20844p
20845g
20846s/.\{148\}//
20847t nl
20848:delim
20849h
20850s/\(.\{148\}\)..*/\1/
20851t more2
20852s/["\\]/\\&/g; s/^/"/; s/$/"/
20853p
20854b
20855:more2
20856s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20857p
20858g
20859s/.\{148\}//
20860t delim
20861' <conf$$subs.awk | sed '
20862/^[^""]/{
20863  N
20864  s/\n//
20865}
20866' >>$CONFIG_STATUS || ac_write_fail=1
20867rm -f conf$$subs.awk
20868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20869_ACAWK
20870cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20871  for (key in S) S_is_set[key] = 1
20872  FS = ""
20873
20874}
20875{
20876  line = $ 0
20877  nfields = split(line, field, "@")
20878  substed = 0
20879  len = length(field[1])
20880  for (i = 2; i < nfields; i++) {
20881    key = field[i]
20882    keylen = length(key)
20883    if (S_is_set[key]) {
20884      value = S[key]
20885      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20886      len += length(value) + length(field[++i])
20887      substed = 1
20888    } else
20889      len += 1 + keylen
20890  }
20891
20892  print line
20893}
20894
20895_ACAWK
20896_ACEOF
20897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20898if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20899  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20900else
20901  cat
20902fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20903  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20904_ACEOF
20905
20906# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20907# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20908# trailing colons and then remove the whole line if VPATH becomes empty
20909# (actually we leave an empty line to preserve line numbers).
20910if test "x$srcdir" = x.; then
20911  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20912h
20913s///
20914s/^/:/
20915s/[	 ]*$/:/
20916s/:\$(srcdir):/:/g
20917s/:\${srcdir}:/:/g
20918s/:@srcdir@:/:/g
20919s/^:*//
20920s/:*$//
20921x
20922s/\(=[	 ]*\).*/\1/
20923G
20924s/\n//
20925s/^[^=]*=[	 ]*$//
20926}'
20927fi
20928
20929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20930fi # test -n "$CONFIG_FILES"
20931
20932# Set up the scripts for CONFIG_HEADERS section.
20933# No need to generate them if there are no CONFIG_HEADERS.
20934# This happens for instance with `./config.status Makefile'.
20935if test -n "$CONFIG_HEADERS"; then
20936cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20937BEGIN {
20938_ACEOF
20939
20940# Transform confdefs.h into an awk script `defines.awk', embedded as
20941# here-document in config.status, that substitutes the proper values into
20942# config.h.in to produce config.h.
20943
20944# Create a delimiter string that does not exist in confdefs.h, to ease
20945# handling of long lines.
20946ac_delim='%!_!# '
20947for ac_last_try in false false :; do
20948  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20949  if test -z "$ac_tt"; then
20950    break
20951  elif $ac_last_try; then
20952    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20953  else
20954    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20955  fi
20956done
20957
20958# For the awk script, D is an array of macro values keyed by name,
20959# likewise P contains macro parameters if any.  Preserve backslash
20960# newline sequences.
20961
20962ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20963sed -n '
20964s/.\{148\}/&'"$ac_delim"'/g
20965t rset
20966:rset
20967s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20968t def
20969d
20970:def
20971s/\\$//
20972t bsnl
20973s/["\\]/\\&/g
20974s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20975D["\1"]=" \3"/p
20976s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20977d
20978:bsnl
20979s/["\\]/\\&/g
20980s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20981D["\1"]=" \3\\\\\\n"\\/p
20982t cont
20983s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20984t cont
20985d
20986:cont
20987n
20988s/.\{148\}/&'"$ac_delim"'/g
20989t clear
20990:clear
20991s/\\$//
20992t bsnlc
20993s/["\\]/\\&/g; s/^/"/; s/$/"/p
20994d
20995:bsnlc
20996s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20997b cont
20998' <confdefs.h | sed '
20999s/'"$ac_delim"'/"\\\
21000"/g' >>$CONFIG_STATUS || ac_write_fail=1
21001
21002cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21003  for (key in D) D_is_set[key] = 1
21004  FS = ""
21005}
21006/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21007  line = \$ 0
21008  split(line, arg, " ")
21009  if (arg[1] == "#") {
21010    defundef = arg[2]
21011    mac1 = arg[3]
21012  } else {
21013    defundef = substr(arg[1], 2)
21014    mac1 = arg[2]
21015  }
21016  split(mac1, mac2, "(") #)
21017  macro = mac2[1]
21018  prefix = substr(line, 1, index(line, defundef) - 1)
21019  if (D_is_set[macro]) {
21020    # Preserve the white space surrounding the "#".
21021    print prefix "define", macro P[macro] D[macro]
21022    next
21023  } else {
21024    # Replace #undef with comments.  This is necessary, for example,
21025    # in the case of _POSIX_SOURCE, which is predefined and required
21026    # on some systems where configure will not decide to define it.
21027    if (defundef == "undef") {
21028      print "/*", prefix defundef, macro, "*/"
21029      next
21030    }
21031  }
21032}
21033{ print }
21034_ACAWK
21035_ACEOF
21036cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21037  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21038fi # test -n "$CONFIG_HEADERS"
21039
21040
21041eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
21042shift
21043for ac_tag
21044do
21045  case $ac_tag in
21046  :[FHLC]) ac_mode=$ac_tag; continue;;
21047  esac
21048  case $ac_mode$ac_tag in
21049  :[FHL]*:*);;
21050  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21051  :[FH]-) ac_tag=-:-;;
21052  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21053  esac
21054  ac_save_IFS=$IFS
21055  IFS=:
21056  set x $ac_tag
21057  IFS=$ac_save_IFS
21058  shift
21059  ac_file=$1
21060  shift
21061
21062  case $ac_mode in
21063  :L) ac_source=$1;;
21064  :[FH])
21065    ac_file_inputs=
21066    for ac_f
21067    do
21068      case $ac_f in
21069      -) ac_f="$ac_tmp/stdin";;
21070      *) # Look for the file first in the build tree, then in the source tree
21071	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21072	 # because $ac_f cannot contain `:'.
21073	 test -f "$ac_f" ||
21074	   case $ac_f in
21075	   [\\/$]*) false;;
21076	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21077	   esac ||
21078	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21079      esac
21080      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21081      as_fn_append ac_file_inputs " '$ac_f'"
21082    done
21083
21084    # Let's still pretend it is `configure' which instantiates (i.e., don't
21085    # use $as_me), people would be surprised to read:
21086    #    /* config.h.  Generated by config.status.  */
21087    configure_input='Generated from '`
21088	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21089	`' by configure.'
21090    if test x"$ac_file" != x-; then
21091      configure_input="$ac_file.  $configure_input"
21092      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21093$as_echo "$as_me: creating $ac_file" >&6;}
21094    fi
21095    # Neutralize special characters interpreted by sed in replacement strings.
21096    case $configure_input in #(
21097    *\&* | *\|* | *\\* )
21098       ac_sed_conf_input=`$as_echo "$configure_input" |
21099       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21100    *) ac_sed_conf_input=$configure_input;;
21101    esac
21102
21103    case $ac_tag in
21104    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21105      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21106    esac
21107    ;;
21108  esac
21109
21110  ac_dir=`$as_dirname -- "$ac_file" ||
21111$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21112	 X"$ac_file" : 'X\(//\)[^/]' \| \
21113	 X"$ac_file" : 'X\(//\)$' \| \
21114	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21115$as_echo X"$ac_file" |
21116    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21117	    s//\1/
21118	    q
21119	  }
21120	  /^X\(\/\/\)[^/].*/{
21121	    s//\1/
21122	    q
21123	  }
21124	  /^X\(\/\/\)$/{
21125	    s//\1/
21126	    q
21127	  }
21128	  /^X\(\/\).*/{
21129	    s//\1/
21130	    q
21131	  }
21132	  s/.*/./; q'`
21133  as_dir="$ac_dir"; as_fn_mkdir_p
21134  ac_builddir=.
21135
21136case "$ac_dir" in
21137.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21138*)
21139  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21140  # A ".." for each directory in $ac_dir_suffix.
21141  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21142  case $ac_top_builddir_sub in
21143  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21144  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21145  esac ;;
21146esac
21147ac_abs_top_builddir=$ac_pwd
21148ac_abs_builddir=$ac_pwd$ac_dir_suffix
21149# for backward compatibility:
21150ac_top_builddir=$ac_top_build_prefix
21151
21152case $srcdir in
21153  .)  # We are building in place.
21154    ac_srcdir=.
21155    ac_top_srcdir=$ac_top_builddir_sub
21156    ac_abs_top_srcdir=$ac_pwd ;;
21157  [\\/]* | ?:[\\/]* )  # Absolute name.
21158    ac_srcdir=$srcdir$ac_dir_suffix;
21159    ac_top_srcdir=$srcdir
21160    ac_abs_top_srcdir=$srcdir ;;
21161  *) # Relative name.
21162    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21163    ac_top_srcdir=$ac_top_build_prefix$srcdir
21164    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21165esac
21166ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21167
21168
21169  case $ac_mode in
21170  :F)
21171  #
21172  # CONFIG_FILE
21173  #
21174
21175  case $INSTALL in
21176  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21177  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21178  esac
21179  ac_MKDIR_P=$MKDIR_P
21180  case $MKDIR_P in
21181  [\\/$]* | ?:[\\/]* ) ;;
21182  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21183  esac
21184_ACEOF
21185
21186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21187# If the template does not know about datarootdir, expand it.
21188# FIXME: This hack should be removed a few years after 2.60.
21189ac_datarootdir_hack=; ac_datarootdir_seen=
21190ac_sed_dataroot='
21191/datarootdir/ {
21192  p
21193  q
21194}
21195/@datadir@/p
21196/@docdir@/p
21197/@infodir@/p
21198/@localedir@/p
21199/@mandir@/p'
21200case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21201*datarootdir*) ac_datarootdir_seen=yes;;
21202*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21203  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21204$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21205_ACEOF
21206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21207  ac_datarootdir_hack='
21208  s&@datadir@&$datadir&g
21209  s&@docdir@&$docdir&g
21210  s&@infodir@&$infodir&g
21211  s&@localedir@&$localedir&g
21212  s&@mandir@&$mandir&g
21213  s&\\\${datarootdir}&$datarootdir&g' ;;
21214esac
21215_ACEOF
21216
21217# Neutralize VPATH when `$srcdir' = `.'.
21218# Shell code in configure.ac might set extrasub.
21219# FIXME: do we really want to maintain this feature?
21220cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21221ac_sed_extra="$ac_vpsub
21222$extrasub
21223_ACEOF
21224cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21225:t
21226/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21227s|@configure_input@|$ac_sed_conf_input|;t t
21228s&@top_builddir@&$ac_top_builddir_sub&;t t
21229s&@top_build_prefix@&$ac_top_build_prefix&;t t
21230s&@srcdir@&$ac_srcdir&;t t
21231s&@abs_srcdir@&$ac_abs_srcdir&;t t
21232s&@top_srcdir@&$ac_top_srcdir&;t t
21233s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21234s&@builddir@&$ac_builddir&;t t
21235s&@abs_builddir@&$ac_abs_builddir&;t t
21236s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21237s&@INSTALL@&$ac_INSTALL&;t t
21238s&@MKDIR_P@&$ac_MKDIR_P&;t t
21239$ac_datarootdir_hack
21240"
21241eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21242  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21243
21244test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21245  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21246  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21247      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21248  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21249which seems to be undefined.  Please make sure it is defined" >&5
21250$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21251which seems to be undefined.  Please make sure it is defined" >&2;}
21252
21253  rm -f "$ac_tmp/stdin"
21254  case $ac_file in
21255  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21256  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21257  esac \
21258  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21259 ;;
21260  :H)
21261  #
21262  # CONFIG_HEADER
21263  #
21264  if test x"$ac_file" != x-; then
21265    {
21266      $as_echo "/* $configure_input  */" \
21267      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21268    } >"$ac_tmp/config.h" \
21269      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21270    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21271      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21272$as_echo "$as_me: $ac_file is unchanged" >&6;}
21273    else
21274      rm -f "$ac_file"
21275      mv "$ac_tmp/config.h" "$ac_file" \
21276	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21277    fi
21278  else
21279    $as_echo "/* $configure_input  */" \
21280      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21281      || as_fn_error $? "could not create -" "$LINENO" 5
21282  fi
21283# Compute "$ac_file"'s index in $config_headers.
21284_am_arg="$ac_file"
21285_am_stamp_count=1
21286for _am_header in $config_headers :; do
21287  case $_am_header in
21288    $_am_arg | $_am_arg:* )
21289      break ;;
21290    * )
21291      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21292  esac
21293done
21294echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21295$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21296	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21297	 X"$_am_arg" : 'X\(//\)$' \| \
21298	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21299$as_echo X"$_am_arg" |
21300    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21301	    s//\1/
21302	    q
21303	  }
21304	  /^X\(\/\/\)[^/].*/{
21305	    s//\1/
21306	    q
21307	  }
21308	  /^X\(\/\/\)$/{
21309	    s//\1/
21310	    q
21311	  }
21312	  /^X\(\/\).*/{
21313	    s//\1/
21314	    q
21315	  }
21316	  s/.*/./; q'`/stamp-h$_am_stamp_count
21317 ;;
21318  :L)
21319  #
21320  # CONFIG_LINK
21321  #
21322
21323  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
21324    :
21325  else
21326    # Prefer the file from the source tree if names are identical.
21327    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
21328      ac_source=$srcdir/$ac_source
21329    fi
21330
21331    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
21332$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
21333
21334    if test ! -r "$ac_source"; then
21335      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
21336    fi
21337    rm -f "$ac_file"
21338
21339    # Try a relative symlink, then a hard link, then a copy.
21340    case $ac_source in
21341    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
21342	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
21343    esac
21344    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
21345      ln "$ac_source" "$ac_file" 2>/dev/null ||
21346      cp -p "$ac_source" "$ac_file" ||
21347      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
21348  fi
21349 ;;
21350  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21351$as_echo "$as_me: executing $ac_file commands" >&6;}
21352 ;;
21353  esac
21354
21355
21356  case $ac_file$ac_mode in
21357    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21358  # Older Autoconf quotes --file arguments for eval, but not when files
21359  # are listed without --file.  Let's play safe and only enable the eval
21360  # if we detect the quoting.
21361  # TODO: see whether this extra hack can be removed once we start
21362  # requiring Autoconf 2.70 or later.
21363  case $CONFIG_FILES in #(
21364  *\'*) :
21365    eval set x "$CONFIG_FILES" ;; #(
21366  *) :
21367    set x $CONFIG_FILES ;; #(
21368  *) :
21369     ;;
21370esac
21371  shift
21372  # Used to flag and report bootstrapping failures.
21373  am_rc=0
21374  for am_mf
21375  do
21376    # Strip MF so we end up with the name of the file.
21377    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
21378    # Check whether this is an Automake generated Makefile which includes
21379    # dependency-tracking related rules and includes.
21380    # Grep'ing the whole file directly is not great: AIX grep has a line
21381    # limit of 2048, but all sed's we know have understand at least 4000.
21382    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21383      || continue
21384    am_dirpart=`$as_dirname -- "$am_mf" ||
21385$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21386	 X"$am_mf" : 'X\(//\)[^/]' \| \
21387	 X"$am_mf" : 'X\(//\)$' \| \
21388	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21389$as_echo X"$am_mf" |
21390    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21391	    s//\1/
21392	    q
21393	  }
21394	  /^X\(\/\/\)[^/].*/{
21395	    s//\1/
21396	    q
21397	  }
21398	  /^X\(\/\/\)$/{
21399	    s//\1/
21400	    q
21401	  }
21402	  /^X\(\/\).*/{
21403	    s//\1/
21404	    q
21405	  }
21406	  s/.*/./; q'`
21407    am_filepart=`$as_basename -- "$am_mf" ||
21408$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21409	 X"$am_mf" : 'X\(//\)$' \| \
21410	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21411$as_echo X/"$am_mf" |
21412    sed '/^.*\/\([^/][^/]*\)\/*$/{
21413	    s//\1/
21414	    q
21415	  }
21416	  /^X\/\(\/\/\)$/{
21417	    s//\1/
21418	    q
21419	  }
21420	  /^X\/\(\/\).*/{
21421	    s//\1/
21422	    q
21423	  }
21424	  s/.*/./; q'`
21425    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21426      && sed -e '/# am--include-marker/d' "$am_filepart" \
21427        | $MAKE -f - am--depfiles" >&5
21428   (cd "$am_dirpart" \
21429      && sed -e '/# am--include-marker/d' "$am_filepart" \
21430        | $MAKE -f - am--depfiles) >&5 2>&5
21431   ac_status=$?
21432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433   (exit $ac_status); } || am_rc=$?
21434  done
21435  if test $am_rc -ne 0; then
21436    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21438as_fn_error $? "Something went wrong bootstrapping makefile fragments
21439    for automatic dependency tracking.  If GNU make was not used, consider
21440    re-running the configure script with MAKE=\"gmake\" (or whatever is
21441    necessary).  You can also try re-running configure with the
21442    '--disable-dependency-tracking' option to at least be able to build
21443    the package (albeit without support for automatic dependency tracking).
21444See \`config.log' for more details" "$LINENO" 5; }
21445  fi
21446  { am_dirpart=; unset am_dirpart;}
21447  { am_filepart=; unset am_filepart;}
21448  { am_mf=; unset am_mf;}
21449  { am_rc=; unset am_rc;}
21450  rm -f conftest-deps.mk
21451}
21452 ;;
21453    "libtool":C)
21454
21455    # See if we are running on zsh, and set the options that allow our
21456    # commands through without removal of \ escapes.
21457    if test -n "${ZSH_VERSION+set}"; then
21458      setopt NO_GLOB_SUBST
21459    fi
21460
21461    cfgfile=${ofile}T
21462    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21463    $RM "$cfgfile"
21464
21465    cat <<_LT_EOF >> "$cfgfile"
21466#! $SHELL
21467# Generated automatically by $as_me ($PACKAGE) $VERSION
21468# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21469# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21470
21471# Provide generalized library-building support services.
21472# Written by Gordon Matzigkeit, 1996
21473
21474# Copyright (C) 2014 Free Software Foundation, Inc.
21475# This is free software; see the source for copying conditions.  There is NO
21476# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21477
21478# GNU Libtool is free software; you can redistribute it and/or modify
21479# it under the terms of the GNU General Public License as published by
21480# the Free Software Foundation; either version 2 of of the License, or
21481# (at your option) any later version.
21482#
21483# As a special exception to the GNU General Public License, if you
21484# distribute this file as part of a program or library that is built
21485# using GNU Libtool, you may include this file under the  same
21486# distribution terms that you use for the rest of that program.
21487#
21488# GNU Libtool is distributed in the hope that it will be useful, but
21489# WITHOUT ANY WARRANTY; without even the implied warranty of
21490# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21491# GNU General Public License for more details.
21492#
21493# You should have received a copy of the GNU General Public License
21494# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21495
21496
21497# The names of the tagged configurations supported by this script.
21498available_tags=''
21499
21500# Configured defaults for sys_lib_dlsearch_path munging.
21501: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21502
21503# ### BEGIN LIBTOOL CONFIG
21504
21505# Which release of libtool.m4 was used?
21506macro_version=$macro_version
21507macro_revision=$macro_revision
21508
21509# Whether or not to build shared libraries.
21510build_libtool_libs=$enable_shared
21511
21512# Whether or not to build static libraries.
21513build_old_libs=$enable_static
21514
21515# What type of objects to build.
21516pic_mode=$pic_mode
21517
21518# Whether or not to optimize for fast installation.
21519fast_install=$enable_fast_install
21520
21521# Shared archive member basename,for filename based shared library versioning on AIX.
21522shared_archive_member_spec=$shared_archive_member_spec
21523
21524# Shell to use when invoking shell scripts.
21525SHELL=$lt_SHELL
21526
21527# An echo program that protects backslashes.
21528ECHO=$lt_ECHO
21529
21530# The PATH separator for the build system.
21531PATH_SEPARATOR=$lt_PATH_SEPARATOR
21532
21533# The host system.
21534host_alias=$host_alias
21535host=$host
21536host_os=$host_os
21537
21538# The build system.
21539build_alias=$build_alias
21540build=$build
21541build_os=$build_os
21542
21543# A sed program that does not truncate output.
21544SED=$lt_SED
21545
21546# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21547Xsed="\$SED -e 1s/^X//"
21548
21549# A grep program that handles long lines.
21550GREP=$lt_GREP
21551
21552# An ERE matcher.
21553EGREP=$lt_EGREP
21554
21555# A literal string matcher.
21556FGREP=$lt_FGREP
21557
21558# A BSD- or MS-compatible name lister.
21559NM=$lt_NM
21560
21561# Whether we need soft or hard links.
21562LN_S=$lt_LN_S
21563
21564# What is the maximum length of a command?
21565max_cmd_len=$max_cmd_len
21566
21567# Object file suffix (normally "o").
21568objext=$ac_objext
21569
21570# Executable file suffix (normally "").
21571exeext=$exeext
21572
21573# whether the shell understands "unset".
21574lt_unset=$lt_unset
21575
21576# turn spaces into newlines.
21577SP2NL=$lt_lt_SP2NL
21578
21579# turn newlines into spaces.
21580NL2SP=$lt_lt_NL2SP
21581
21582# convert \$build file names to \$host format.
21583to_host_file_cmd=$lt_cv_to_host_file_cmd
21584
21585# convert \$build files to toolchain format.
21586to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21587
21588# An object symbol dumper.
21589OBJDUMP=$lt_OBJDUMP
21590
21591# Method to check whether dependent libraries are shared objects.
21592deplibs_check_method=$lt_deplibs_check_method
21593
21594# Command to use when deplibs_check_method = "file_magic".
21595file_magic_cmd=$lt_file_magic_cmd
21596
21597# How to find potential files when deplibs_check_method = "file_magic".
21598file_magic_glob=$lt_file_magic_glob
21599
21600# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21601want_nocaseglob=$lt_want_nocaseglob
21602
21603# DLL creation program.
21604DLLTOOL=$lt_DLLTOOL
21605
21606# Command to associate shared and link libraries.
21607sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21608
21609# The archiver.
21610AR=$lt_AR
21611
21612# Flags to create an archive.
21613AR_FLAGS=$lt_AR_FLAGS
21614
21615# How to feed a file listing to the archiver.
21616archiver_list_spec=$lt_archiver_list_spec
21617
21618# A symbol stripping program.
21619STRIP=$lt_STRIP
21620
21621# Commands used to install an old-style archive.
21622RANLIB=$lt_RANLIB
21623old_postinstall_cmds=$lt_old_postinstall_cmds
21624old_postuninstall_cmds=$lt_old_postuninstall_cmds
21625
21626# Whether to use a lock for old archive extraction.
21627lock_old_archive_extraction=$lock_old_archive_extraction
21628
21629# A C compiler.
21630LTCC=$lt_CC
21631
21632# LTCC compiler flags.
21633LTCFLAGS=$lt_CFLAGS
21634
21635# Take the output of nm and produce a listing of raw symbols and C names.
21636global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21637
21638# Transform the output of nm in a proper C declaration.
21639global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21640
21641# Transform the output of nm into a list of symbols to manually relocate.
21642global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21643
21644# Transform the output of nm in a C name address pair.
21645global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21646
21647# Transform the output of nm in a C name address pair when lib prefix is needed.
21648global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21649
21650# The name lister interface.
21651nm_interface=$lt_lt_cv_nm_interface
21652
21653# Specify filename containing input files for \$NM.
21654nm_file_list_spec=$lt_nm_file_list_spec
21655
21656# The root where to search for dependent libraries,and where our libraries should be installed.
21657lt_sysroot=$lt_sysroot
21658
21659# Command to truncate a binary pipe.
21660lt_truncate_bin=$lt_lt_cv_truncate_bin
21661
21662# The name of the directory that contains temporary libtool files.
21663objdir=$objdir
21664
21665# Used to examine libraries when file_magic_cmd begins with "file".
21666MAGIC_CMD=$MAGIC_CMD
21667
21668# Must we lock files when doing compilation?
21669need_locks=$lt_need_locks
21670
21671# Manifest tool.
21672MANIFEST_TOOL=$lt_MANIFEST_TOOL
21673
21674# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21675DSYMUTIL=$lt_DSYMUTIL
21676
21677# Tool to change global to local symbols on Mac OS X.
21678NMEDIT=$lt_NMEDIT
21679
21680# Tool to manipulate fat objects and archives on Mac OS X.
21681LIPO=$lt_LIPO
21682
21683# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21684OTOOL=$lt_OTOOL
21685
21686# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21687OTOOL64=$lt_OTOOL64
21688
21689# Old archive suffix (normally "a").
21690libext=$libext
21691
21692# Shared library suffix (normally ".so").
21693shrext_cmds=$lt_shrext_cmds
21694
21695# The commands to extract the exported symbol list from a shared archive.
21696extract_expsyms_cmds=$lt_extract_expsyms_cmds
21697
21698# Variables whose values should be saved in libtool wrapper scripts and
21699# restored at link time.
21700variables_saved_for_relink=$lt_variables_saved_for_relink
21701
21702# Do we need the "lib" prefix for modules?
21703need_lib_prefix=$need_lib_prefix
21704
21705# Do we need a version for libraries?
21706need_version=$need_version
21707
21708# Library versioning type.
21709version_type=$version_type
21710
21711# Shared library runtime path variable.
21712runpath_var=$runpath_var
21713
21714# Shared library path variable.
21715shlibpath_var=$shlibpath_var
21716
21717# Is shlibpath searched before the hard-coded library search path?
21718shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21719
21720# Format of library name prefix.
21721libname_spec=$lt_libname_spec
21722
21723# List of archive names.  First name is the real one, the rest are links.
21724# The last name is the one that the linker finds with -lNAME
21725library_names_spec=$lt_library_names_spec
21726
21727# The coded name of the library, if different from the real name.
21728soname_spec=$lt_soname_spec
21729
21730# Permission mode override for installation of shared libraries.
21731install_override_mode=$lt_install_override_mode
21732
21733# Command to use after installation of a shared archive.
21734postinstall_cmds=$lt_postinstall_cmds
21735
21736# Command to use after uninstallation of a shared archive.
21737postuninstall_cmds=$lt_postuninstall_cmds
21738
21739# Commands used to finish a libtool library installation in a directory.
21740finish_cmds=$lt_finish_cmds
21741
21742# As "finish_cmds", except a single script fragment to be evaled but
21743# not shown.
21744finish_eval=$lt_finish_eval
21745
21746# Whether we should hardcode library paths into libraries.
21747hardcode_into_libs=$hardcode_into_libs
21748
21749# Compile-time system search path for libraries.
21750sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21751
21752# Detected run-time system search path for libraries.
21753sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21754
21755# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21756configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21757
21758# Whether dlopen is supported.
21759dlopen_support=$enable_dlopen
21760
21761# Whether dlopen of programs is supported.
21762dlopen_self=$enable_dlopen_self
21763
21764# Whether dlopen of statically linked programs is supported.
21765dlopen_self_static=$enable_dlopen_self_static
21766
21767# Commands to strip libraries.
21768old_striplib=$lt_old_striplib
21769striplib=$lt_striplib
21770
21771
21772# The linker used to build libraries.
21773LD=$lt_LD
21774
21775# How to create reloadable object files.
21776reload_flag=$lt_reload_flag
21777reload_cmds=$lt_reload_cmds
21778
21779# Commands used to build an old-style archive.
21780old_archive_cmds=$lt_old_archive_cmds
21781
21782# A language specific compiler.
21783CC=$lt_compiler
21784
21785# Is the compiler the GNU compiler?
21786with_gcc=$GCC
21787
21788# Compiler flag to turn off builtin functions.
21789no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21790
21791# Additional compiler flags for building library objects.
21792pic_flag=$lt_lt_prog_compiler_pic
21793
21794# How to pass a linker flag through the compiler.
21795wl=$lt_lt_prog_compiler_wl
21796
21797# Compiler flag to prevent dynamic linking.
21798link_static_flag=$lt_lt_prog_compiler_static
21799
21800# Does compiler simultaneously support -c and -o options?
21801compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21802
21803# Whether or not to add -lc for building shared libraries.
21804build_libtool_need_lc=$archive_cmds_need_lc
21805
21806# Whether or not to disallow shared libs when runtime libs are static.
21807allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21808
21809# Compiler flag to allow reflexive dlopens.
21810export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21811
21812# Compiler flag to generate shared objects directly from archives.
21813whole_archive_flag_spec=$lt_whole_archive_flag_spec
21814
21815# Whether the compiler copes with passing no objects directly.
21816compiler_needs_object=$lt_compiler_needs_object
21817
21818# Create an old-style archive from a shared archive.
21819old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21820
21821# Create a temporary old-style archive to link instead of a shared archive.
21822old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21823
21824# Commands used to build a shared archive.
21825archive_cmds=$lt_archive_cmds
21826archive_expsym_cmds=$lt_archive_expsym_cmds
21827
21828# Commands used to build a loadable module if different from building
21829# a shared archive.
21830module_cmds=$lt_module_cmds
21831module_expsym_cmds=$lt_module_expsym_cmds
21832
21833# Whether we are building with GNU ld or not.
21834with_gnu_ld=$lt_with_gnu_ld
21835
21836# Flag that allows shared libraries with undefined symbols to be built.
21837allow_undefined_flag=$lt_allow_undefined_flag
21838
21839# Flag that enforces no undefined symbols.
21840no_undefined_flag=$lt_no_undefined_flag
21841
21842# Flag to hardcode \$libdir into a binary during linking.
21843# This must work even if \$libdir does not exist
21844hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21845
21846# Whether we need a single "-rpath" flag with a separated argument.
21847hardcode_libdir_separator=$lt_hardcode_libdir_separator
21848
21849# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21850# DIR into the resulting binary.
21851hardcode_direct=$hardcode_direct
21852
21853# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21854# DIR into the resulting binary and the resulting library dependency is
21855# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21856# library is relocated.
21857hardcode_direct_absolute=$hardcode_direct_absolute
21858
21859# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21860# into the resulting binary.
21861hardcode_minus_L=$hardcode_minus_L
21862
21863# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21864# into the resulting binary.
21865hardcode_shlibpath_var=$hardcode_shlibpath_var
21866
21867# Set to "yes" if building a shared library automatically hardcodes DIR
21868# into the library and all subsequent libraries and executables linked
21869# against it.
21870hardcode_automatic=$hardcode_automatic
21871
21872# Set to yes if linker adds runtime paths of dependent libraries
21873# to runtime path list.
21874inherit_rpath=$inherit_rpath
21875
21876# Whether libtool must link a program against all its dependency libraries.
21877link_all_deplibs=$link_all_deplibs
21878
21879# Set to "yes" if exported symbols are required.
21880always_export_symbols=$always_export_symbols
21881
21882# The commands to list exported symbols.
21883export_symbols_cmds=$lt_export_symbols_cmds
21884
21885# Symbols that should not be listed in the preloaded symbols.
21886exclude_expsyms=$lt_exclude_expsyms
21887
21888# Symbols that must always be exported.
21889include_expsyms=$lt_include_expsyms
21890
21891# Commands necessary for linking programs (against libraries) with templates.
21892prelink_cmds=$lt_prelink_cmds
21893
21894# Commands necessary for finishing linking programs.
21895postlink_cmds=$lt_postlink_cmds
21896
21897# Specify filename containing input files.
21898file_list_spec=$lt_file_list_spec
21899
21900# How to hardcode a shared library path into an executable.
21901hardcode_action=$hardcode_action
21902
21903# ### END LIBTOOL CONFIG
21904
21905_LT_EOF
21906
21907    cat <<'_LT_EOF' >> "$cfgfile"
21908
21909# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21910
21911# func_munge_path_list VARIABLE PATH
21912# -----------------------------------
21913# VARIABLE is name of variable containing _space_ separated list of
21914# directories to be munged by the contents of PATH, which is string
21915# having a format:
21916# "DIR[:DIR]:"
21917#       string "DIR[ DIR]" will be prepended to VARIABLE
21918# ":DIR[:DIR]"
21919#       string "DIR[ DIR]" will be appended to VARIABLE
21920# "DIRP[:DIRP]::[DIRA:]DIRA"
21921#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21922#       "DIRA[ DIRA]" will be appended to VARIABLE
21923# "DIR[:DIR]"
21924#       VARIABLE will be replaced by "DIR[ DIR]"
21925func_munge_path_list ()
21926{
21927    case x$2 in
21928    x)
21929        ;;
21930    *:)
21931        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21932        ;;
21933    x:*)
21934        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21935        ;;
21936    *::*)
21937        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21938        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21939        ;;
21940    *)
21941        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21942        ;;
21943    esac
21944}
21945
21946
21947# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21948func_cc_basename ()
21949{
21950    for cc_temp in $*""; do
21951      case $cc_temp in
21952        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21953        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21954        \-*) ;;
21955        *) break;;
21956      esac
21957    done
21958    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21959}
21960
21961
21962# ### END FUNCTIONS SHARED WITH CONFIGURE
21963
21964_LT_EOF
21965
21966  case $host_os in
21967  aix3*)
21968    cat <<\_LT_EOF >> "$cfgfile"
21969# AIX sometimes has problems with the GCC collect2 program.  For some
21970# reason, if we set the COLLECT_NAMES environment variable, the problems
21971# vanish in a puff of smoke.
21972if test set != "${COLLECT_NAMES+set}"; then
21973  COLLECT_NAMES=
21974  export COLLECT_NAMES
21975fi
21976_LT_EOF
21977    ;;
21978  esac
21979
21980
21981ltmain=$ac_aux_dir/ltmain.sh
21982
21983
21984  # We use sed instead of cat because bash on DJGPP gets confused if
21985  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21986  # text mode, it properly converts lines to CR/LF.  This bash problem
21987  # is reportedly fixed, but why not run on old versions too?
21988  sed '$q' "$ltmain" >> "$cfgfile" \
21989     || (rm -f "$cfgfile"; exit 1)
21990
21991   mv -f "$cfgfile" "$ofile" ||
21992    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21993  chmod +x "$ofile"
21994
21995 ;;
21996    "h5_test/run_par_tests.sh":F) chmod ugo+x h5_test/run_par_tests.sh ;;
21997    "nc_test4/run_par_test.sh":F) chmod ugo+x nc_test4/run_par_test.sh ;;
21998    "nc_perf/run_par_bm_test.sh":F) chmod ugo+x nc_perf/run_par_bm_test.sh ;;
21999    "examples/C/run_par_test.sh":F) chmod ugo+x examples/C/run_par_test.sh ;;
22000    "nc-config":F) chmod 755 nc-config ;;
22001
22002  esac
22003done # for ac_tag
22004
22005
22006as_fn_exit 0
22007_ACEOF
22008ac_clean_files=$ac_clean_files_save
22009
22010test $ac_write_fail = 0 ||
22011  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22012
22013
22014# configure is writing to config.log, and then calls config.status.
22015# config.status does its own redirection, appending to config.log.
22016# Unfortunately, on DOS this fails, as config.log is still kept open
22017# by configure, so config.status won't be able to write to it; its
22018# output is simply discarded.  So we exec the FD to /dev/null,
22019# effectively closing config.log, so it can be properly (re)opened and
22020# appended to by config.status.  When coming back to configure, we
22021# need to make the FD available again.
22022if test "$no_create" != yes; then
22023  ac_cs_success=:
22024  ac_config_status_args=
22025  test "$silent" = yes &&
22026    ac_config_status_args="$ac_config_status_args --quiet"
22027  exec 5>/dev/null
22028  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22029  exec 5>>config.log
22030  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22031  # would make configure fail if this is the last instruction.
22032  $ac_cs_success || as_fn_exit 1
22033fi
22034if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22035  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22036$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22037fi
22038
22039
22040cat libnetcdf.settings
22041