Code

control: Updated standards-version to 3.9.5 -- no changes.
[pkg-rrdtool.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for rrdtool 1.4.8.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # 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 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if 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
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_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.
45 if 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 --'
49 elif (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'
52 else
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'
72 fi
74 # The user is always right.
75 if 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   }
81 fi
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.)
89 IFS=" ""        $as_nl"
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
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
102 IFS=$as_save_IFS
104      ;;
105 esac
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.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
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.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
177   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     PATH=/empty FPATH=/empty; export PATH FPATH
182     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184   if (eval "$as_required") 2>/dev/null; then :
185   as_have_required=yes
186 else
187   as_have_required=no
188 fi
189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191 else
192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   as_found=:
199   case $as_dir in #(
200          /*)
201            for as_base in sh bash ksh sh5; do
202              # Try only shells that exist, to save several forks.
203              as_shell=$as_dir/$as_base
204              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206   CONFIG_SHELL=$as_shell as_have_required=yes
207                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   break 2
209 fi
210 fi
211            done;;
212        esac
213   as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
222       if test "x$CONFIG_SHELL" != x; then :
223   # We cannot yet assume a decent shell, so we have to provide a
224         # neutralization value for shells without unset; and this also
225         # works around shells that cannot unset nonexistent variables.
226         # Preserve -v and -x to the replacement shell.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         case $- in # ((((
232           *v*x* | *x*v* ) as_opts=-vx ;;
233           *v* ) as_opts=-v ;;
234           *x* ) as_opts=-x ;;
235           * ) as_opts= ;;
236         esac
237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
240     if test x$as_have_required = xno; then :
241   $as_echo "$0: This script requires a shell more modern than all"
242   $as_echo "$0: the shells that I found on your system."
243   if test x${ZSH_VERSION+set} = xset ; then
244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246   else
247     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251   fi
252   exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
270   { eval $1=; unset $1;}
272 as_unset=as_fn_unset
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
279   return $1
280 } # as_fn_set_status
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } # as_fn_exit
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
298   case $as_dir in #(
299   -*) as_dir=./$as_dir;;
300   esac
301   test -d "$as_dir" || eval $as_mkdir_p || {
302     as_dirs=
303     while :; do
304       case $as_dir in #(
305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306       *) as_qdir=$as_dir;;
307       esac
308       as_dirs="'$as_qdir' $as_dirs"
309       as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311          X"$as_dir" : 'X\(//\)[^/]' \| \
312          X"$as_dir" : 'X\(//\)$' \| \
313          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)[^/].*/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)$/{
324             s//\1/
325             q
326           }
327           /^X\(\/\).*/{
328             s//\1/
329             q
330           }
331           s/.*/./; q'`
332       test -d "$as_dir" && break
333     done
334     test -z "$as_dirs" || eval "mkdir $as_dirs"
335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } # as_fn_error
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
396 fi
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
402 fi
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405   as_dirname=dirname
406 else
407   as_dirname=false
408 fi
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412          X"$0" : 'X\(//\)$' \| \
413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415     sed '/^.*\/\([^/][^/]*\)\/*$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\/\)$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\).*/{
424             s//\1/
425             q
426           }
427           s/.*/./; q'`
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471   case `echo 'xy\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   xy)  ECHO_C='\c';;
474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475        ECHO_T=' ';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483   rm -f conf$$.dir/conf$$.file
484 else
485   rm -f conf$$.dir
486   mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489   if ln -s conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s='ln -s'
491     # ... but there are two gotchas:
492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494     # In both cases, we have to default to `cp -p'.
495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496       as_ln_s='cp -p'
497   elif ln conf$$.file conf$$ 2>/dev/null; then
498     as_ln_s=ln
499   else
500     as_ln_s='cp -p'
501   fi
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p='mkdir -p "$as_dir"'
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
515 if test -x / >/dev/null 2>&1; then
516   as_test_x='test -x'
517 else
518   if ls -dL / >/dev/null 2>&1; then
519     as_ls_L_option=L
520   else
521     as_ls_L_option=
522   fi
523   as_test_x='
524     eval sh -c '\''
525       if test -d "$1"; then
526         test -d "$1/.";
527       else
528         case $1 in #(
529         -*)set "./$1";;
530         esac;
531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532         ???[sx]*):;;*)false;;esac;fi
533     '\'' sh
534   '
535 fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
556 # Initializations.
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
567 # Identity of this package.
568 PACKAGE_NAME='rrdtool'
569 PACKAGE_TARNAME='rrdtool'
570 PACKAGE_VERSION='1.4.8'
571 PACKAGE_STRING='rrdtool 1.4.8'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL=''
575 # Factoring default headers for most tests.
576 ac_includes_default="\
577 #include <stdio.h>
578 #ifdef HAVE_SYS_TYPES_H
579 # include <sys/types.h>
580 #endif
581 #ifdef HAVE_SYS_STAT_H
582 # include <sys/stat.h>
583 #endif
584 #ifdef STDC_HEADERS
585 # include <stdlib.h>
586 # include <stddef.h>
587 #else
588 # ifdef HAVE_STDLIB_H
589 #  include <stdlib.h>
590 # endif
591 #endif
592 #ifdef HAVE_STRING_H
593 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594 #  include <memory.h>
595 # endif
596 # include <string.h>
597 #endif
598 #ifdef HAVE_STRINGS_H
599 # include <strings.h>
600 #endif
601 #ifdef HAVE_INTTYPES_H
602 # include <inttypes.h>
603 #endif
604 #ifdef HAVE_STDINT_H
605 # include <stdint.h>
606 #endif
607 #ifdef HAVE_UNISTD_H
608 # include <unistd.h>
609 #endif"
611 ac_default_prefix=/opt/rrdtool-$PACKAGE_VERSION
612 ac_header_list=
613 gt_needs=
614 ac_subst_vars='am__EXEEXT_FALSE
615 am__EXEEXT_TRUE
616 LTLIBOBJS
617 LIBOBJS
618 RRDDOCDIR
619 TROFF
620 NROFF
621 COMP_PYTHON
622 PYTHON_INCLUDES
623 pkgpyexecdir
624 pyexecdir
625 pkgpythondir
626 pythondir
627 PYTHON_PLATFORM
628 PYTHON_EXEC_PREFIX
629 PYTHON_PREFIX
630 PYTHON_VERSION
631 PYTHON
632 TCL_INCLUDE_SPEC
633 TCL_PACKAGE_DIR
634 TCL_VERSION
635 TCL_STUB_LIB_SPEC
636 TCL_LD_SEARCH_FLAGS
637 TCL_PACKAGE_PATH
638 TCL_SHLIB_SUFFIX
639 TCL_SHLIB_LD
640 TCL_SHLIB_CFLAGS
641 TCL_PREFIX
642 BUILD_TCL_SITE_FALSE
643 BUILD_TCL_SITE_TRUE
644 BUILD_TCL_FALSE
645 BUILD_TCL_TRUE
646 BUILD_LUA_FALSE
647 BUILD_LUA_TRUE
648 LUA50_FALSE
649 LUA50_TRUE
650 LUA_SITE_LINSTALL_FALSE
651 LUA_SITE_LINSTALL_TRUE
652 LUA_SITE_CINSTALL_FALSE
653 LUA_SITE_CINSTALL_TRUE
654 LUA_NEED_OUR_COMPAT51_FALSE
655 LUA_NEED_OUR_COMPAT51_TRUE
656 LUA_DEFINES
657 LUA_LFLAGS
658 LUA_CFLAGS
659 LUA_INSTALL_LMOD
660 LUA_INSTALL_CMOD
661 COMP_LUA
662 LUA
663 COMP_RUBY
664 RUBY_MAKE_OPTIONS
665 RUBY
666 PERL_VERSION
667 COMP_PERL
668 PERL_MAKE_OPTIONS
669 PERL_CC
670 PERLLDFLAGS
671 PERLLD
672 PERLCCFLAGS
673 PERLCC
674 POD2HTML
675 POD2MAN
676 PERL
677 ALL_LIBS
678 CORE_LIBS
679 PKGCONFIG
680 BUILD_RRDGRAPH_FALSE
681 BUILD_RRDGRAPH_TRUE
682 BUILD_LIBWRAP_FALSE
683 BUILD_LIBWRAP_TRUE
684 BUILD_LIBDBI_FALSE
685 BUILD_LIBDBI_TRUE
686 BUILD_MULTITHREAD_FALSE
687 BUILD_MULTITHREAD_TRUE
688 PTHREAD_CFLAGS
689 PTHREAD_LIBS
690 PTHREAD_CC
691 acx_pthread_config
692 MULTITHREAD_LDFLAGS
693 MULTITHREAD_CFLAGS
694 BUILD_GETOPT_FALSE
695 BUILD_GETOPT_TRUE
696 RRD_GETOPT_LONG
697 POSUB
698 LTLIBINTL
699 LIBINTL
700 INTLLIBS
701 LTLIBICONV
702 LIBICONV
703 INTL_MACOSX_LIBS
704 XGETTEXT_EXTRA_OPTIONS
705 MSGMERGE
706 XGETTEXT_015
707 XGETTEXT
708 GMSGFMT_015
709 MSGFMT_015
710 GMSGFMT
711 MSGFMT
712 GETTEXT_MACRO_VERSION
713 USE_NLS
714 RRD_DEFAULT_FONT
715 WERROR
716 OTOOL64
717 OTOOL
718 LIPO
719 NMEDIT
720 DSYMUTIL
721 MANIFEST_TOOL
722 RANLIB
723 ac_ct_AR
724 AR
725 DLLTOOL
726 OBJDUMP
727 LN_S
728 NM
729 ac_ct_DUMPBIN
730 DUMPBIN
731 LD
732 FGREP
733 SED
734 LIBTOOL
735 STATIC_PROGRAMS_FALSE
736 STATIC_PROGRAMS_TRUE
737 BUILD_RRDCGI_FALSE
738 BUILD_RRDCGI_TRUE
739 RRDGRAPH_YLEGEND_ANGLE
740 AM_BACKSLASH
741 AM_DEFAULT_VERBOSITY
742 AM_DEFAULT_V
743 AM_V
744 MAINT
745 MAINTAINER_MODE_FALSE
746 MAINTAINER_MODE_TRUE
747 am__fastdepCC_FALSE
748 am__fastdepCC_TRUE
749 CCDEPMODE
750 am__nodep
751 AMDEPBACKSLASH
752 AMDEP_FALSE
753 AMDEP_TRUE
754 am__quote
755 am__include
756 DEPDIR
757 am__untar
758 am__tar
759 AMTAR
760 am__leading_dot
761 SET_MAKE
762 AWK
763 mkdir_p
764 MKDIR_P
765 INSTALL_STRIP_PROGRAM
766 STRIP
767 install_sh
768 MAKEINFO
769 AUTOHEADER
770 AUTOMAKE
771 AUTOCONF
772 ACLOCAL
773 VERSION
774 PACKAGE
775 CYGPATH_W
776 am__isrc
777 INSTALL_DATA
778 INSTALL_SCRIPT
779 INSTALL_PROGRAM
780 EGREP
781 GREP
782 CPP
783 OBJEXT
784 EXEEXT
785 ac_ct_CC
786 CPPFLAGS
787 LDFLAGS
788 CFLAGS
789 CC
790 target_os
791 target_vendor
792 target_cpu
793 target
794 host_os
795 host_vendor
796 host_cpu
797 host
798 build_os
799 build_vendor
800 build_cpu
801 build
802 LIBVERS
803 NUMVERS
804 target_alias
805 host_alias
806 build_alias
807 LIBS
808 ECHO_T
809 ECHO_N
810 ECHO_C
811 DEFS
812 mandir
813 localedir
814 libdir
815 psdir
816 pdfdir
817 dvidir
818 htmldir
819 infodir
820 docdir
821 oldincludedir
822 includedir
823 localstatedir
824 sharedstatedir
825 sysconfdir
826 datadir
827 datarootdir
828 libexecdir
829 sbindir
830 bindir
831 program_transform_name
832 prefix
833 exec_prefix
834 PACKAGE_URL
835 PACKAGE_BUGREPORT
836 PACKAGE_STRING
837 PACKAGE_VERSION
838 PACKAGE_TARNAME
839 PACKAGE_NAME
840 PATH_SEPARATOR
841 SHELL
842 PERLFLAGS'
843 ac_subst_files=''
844 ac_user_opts='
845 enable_option_checking
846 enable_dependency_tracking
847 enable_maintainer_mode
848 enable_silent_rules
849 enable_rrdcgi
850 enable_rrd_graph
851 with_rrd_default_font
852 enable_mmap
853 enable_pthread
854 enable_static_programs
855 enable_shared
856 enable_static
857 with_pic
858 enable_fast_install
859 with_gnu_ld
860 with_sysroot
861 enable_libtool_lock
862 enable_nls
863 enable_rpath
864 with_libiconv_prefix
865 with_libintl_prefix
866 enable_libdbi
867 enable_libwrap
868 enable_perl
869 enable_perl_site_install
870 with_perl_options
871 enable_ruby
872 enable_ruby_site_install
873 with_ruby_options
874 enable_lua
875 enable_lua_site_install
876 enable_tcl
877 with_tcllib
878 enable_tcl_site
879 enable_python
881       ac_precious_vars='build_alias
882 host_alias
883 target_alias
884 CC
885 CFLAGS
886 LDFLAGS
887 LIBS
888 CPPFLAGS
889 CPP
890 RRDGRAPH_YLEGEND_ANGLE
891 PERLCC
892 PERLCCFLAGS
893 PERLLD
894 PERLLDFLAGS
895 PYTHON
896 NROFF
897 TROFF
898 RRDDOCDIR'
901 # Initialize some variables set by options.
902 ac_init_help=
903 ac_init_version=false
904 ac_unrecognized_opts=
905 ac_unrecognized_sep=
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
908 cache_file=/dev/null
909 exec_prefix=NONE
910 no_create=
911 no_recursion=
912 prefix=NONE
913 program_prefix=NONE
914 program_suffix=NONE
915 program_transform_name=s,x,x,
916 silent=
917 site=
918 srcdir=
919 verbose=
920 x_includes=NONE
921 x_libraries=NONE
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir='${exec_prefix}/bin'
930 sbindir='${exec_prefix}/sbin'
931 libexecdir='${exec_prefix}/libexec'
932 datarootdir='${prefix}/share'
933 datadir='${datarootdir}'
934 sysconfdir='${prefix}/etc'
935 sharedstatedir='${prefix}/com'
936 localstatedir='${prefix}/var'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
940 infodir='${datarootdir}/info'
941 htmldir='${docdir}'
942 dvidir='${docdir}'
943 pdfdir='${docdir}'
944 psdir='${docdir}'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
949 ac_prev=
950 ac_dashdash=
951 for ac_option
952 do
953   # If the previous option needs an argument, assign it.
954   if test -n "$ac_prev"; then
955     eval $ac_prev=\$ac_option
956     ac_prev=
957     continue
958   fi
960   case $ac_option in
961   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962   *=)   ac_optarg= ;;
963   *)    ac_optarg=yes ;;
964   esac
966   # Accept the important Cygnus configure options, so we can diagnose typos.
968   case $ac_dashdash$ac_option in
969   --)
970     ac_dashdash=yes ;;
972   -bindir | --bindir | --bindi | --bind | --bin | --bi)
973     ac_prev=bindir ;;
974   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975     bindir=$ac_optarg ;;
977   -build | --build | --buil | --bui | --bu)
978     ac_prev=build_alias ;;
979   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980     build_alias=$ac_optarg ;;
982   -cache-file | --cache-file | --cache-fil | --cache-fi \
983   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984     ac_prev=cache_file ;;
985   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987     cache_file=$ac_optarg ;;
989   --config-cache | -C)
990     cache_file=config.cache ;;
992   -datadir | --datadir | --datadi | --datad)
993     ac_prev=datadir ;;
994   -datadir=* | --datadir=* | --datadi=* | --datad=*)
995     datadir=$ac_optarg ;;
997   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998   | --dataroo | --dataro | --datar)
999     ac_prev=datarootdir ;;
1000   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002     datarootdir=$ac_optarg ;;
1004   -disable-* | --disable-*)
1005     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006     # Reject names that are not valid shell variable names.
1007     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008       as_fn_error $? "invalid feature name: $ac_useropt"
1009     ac_useropt_orig=$ac_useropt
1010     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011     case $ac_user_opts in
1012       *"
1013 "enable_$ac_useropt"
1014 "*) ;;
1015       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016          ac_unrecognized_sep=', ';;
1017     esac
1018     eval enable_$ac_useropt=no ;;
1020   -docdir | --docdir | --docdi | --doc | --do)
1021     ac_prev=docdir ;;
1022   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023     docdir=$ac_optarg ;;
1025   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026     ac_prev=dvidir ;;
1027   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028     dvidir=$ac_optarg ;;
1030   -enable-* | --enable-*)
1031     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032     # Reject names that are not valid shell variable names.
1033     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034       as_fn_error $? "invalid feature name: $ac_useropt"
1035     ac_useropt_orig=$ac_useropt
1036     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037     case $ac_user_opts in
1038       *"
1039 "enable_$ac_useropt"
1040 "*) ;;
1041       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042          ac_unrecognized_sep=', ';;
1043     esac
1044     eval enable_$ac_useropt=\$ac_optarg ;;
1046   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048   | --exec | --exe | --ex)
1049     ac_prev=exec_prefix ;;
1050   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052   | --exec=* | --exe=* | --ex=*)
1053     exec_prefix=$ac_optarg ;;
1055   -gas | --gas | --ga | --g)
1056     # Obsolete; use --with-gas.
1057     with_gas=yes ;;
1059   -help | --help | --hel | --he | -h)
1060     ac_init_help=long ;;
1061   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062     ac_init_help=recursive ;;
1063   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064     ac_init_help=short ;;
1066   -host | --host | --hos | --ho)
1067     ac_prev=host_alias ;;
1068   -host=* | --host=* | --hos=* | --ho=*)
1069     host_alias=$ac_optarg ;;
1071   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072     ac_prev=htmldir ;;
1073   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074   | --ht=*)
1075     htmldir=$ac_optarg ;;
1077   -includedir | --includedir | --includedi | --included | --include \
1078   | --includ | --inclu | --incl | --inc)
1079     ac_prev=includedir ;;
1080   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081   | --includ=* | --inclu=* | --incl=* | --inc=*)
1082     includedir=$ac_optarg ;;
1084   -infodir | --infodir | --infodi | --infod | --info | --inf)
1085     ac_prev=infodir ;;
1086   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087     infodir=$ac_optarg ;;
1089   -libdir | --libdir | --libdi | --libd)
1090     ac_prev=libdir ;;
1091   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092     libdir=$ac_optarg ;;
1094   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095   | --libexe | --libex | --libe)
1096     ac_prev=libexecdir ;;
1097   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098   | --libexe=* | --libex=* | --libe=*)
1099     libexecdir=$ac_optarg ;;
1101   -localedir | --localedir | --localedi | --localed | --locale)
1102     ac_prev=localedir ;;
1103   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104     localedir=$ac_optarg ;;
1106   -localstatedir | --localstatedir | --localstatedi | --localstated \
1107   | --localstate | --localstat | --localsta | --localst | --locals)
1108     ac_prev=localstatedir ;;
1109   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111     localstatedir=$ac_optarg ;;
1113   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114     ac_prev=mandir ;;
1115   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116     mandir=$ac_optarg ;;
1118   -nfp | --nfp | --nf)
1119     # Obsolete; use --without-fp.
1120     with_fp=no ;;
1122   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123   | --no-cr | --no-c | -n)
1124     no_create=yes ;;
1126   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128     no_recursion=yes ;;
1130   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132   | --oldin | --oldi | --old | --ol | --o)
1133     ac_prev=oldincludedir ;;
1134   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137     oldincludedir=$ac_optarg ;;
1139   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140     ac_prev=prefix ;;
1141   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142     prefix=$ac_optarg ;;
1144   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145   | --program-pre | --program-pr | --program-p)
1146     ac_prev=program_prefix ;;
1147   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149     program_prefix=$ac_optarg ;;
1151   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152   | --program-suf | --program-su | --program-s)
1153     ac_prev=program_suffix ;;
1154   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156     program_suffix=$ac_optarg ;;
1158   -program-transform-name | --program-transform-name \
1159   | --program-transform-nam | --program-transform-na \
1160   | --program-transform-n | --program-transform- \
1161   | --program-transform | --program-transfor \
1162   | --program-transfo | --program-transf \
1163   | --program-trans | --program-tran \
1164   | --progr-tra | --program-tr | --program-t)
1165     ac_prev=program_transform_name ;;
1166   -program-transform-name=* | --program-transform-name=* \
1167   | --program-transform-nam=* | --program-transform-na=* \
1168   | --program-transform-n=* | --program-transform-=* \
1169   | --program-transform=* | --program-transfor=* \
1170   | --program-transfo=* | --program-transf=* \
1171   | --program-trans=* | --program-tran=* \
1172   | --progr-tra=* | --program-tr=* | --program-t=*)
1173     program_transform_name=$ac_optarg ;;
1175   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176     ac_prev=pdfdir ;;
1177   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178     pdfdir=$ac_optarg ;;
1180   -psdir | --psdir | --psdi | --psd | --ps)
1181     ac_prev=psdir ;;
1182   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183     psdir=$ac_optarg ;;
1185   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186   | -silent | --silent | --silen | --sile | --sil)
1187     silent=yes ;;
1189   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190     ac_prev=sbindir ;;
1191   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192   | --sbi=* | --sb=*)
1193     sbindir=$ac_optarg ;;
1195   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197   | --sharedst | --shareds | --shared | --share | --shar \
1198   | --sha | --sh)
1199     ac_prev=sharedstatedir ;;
1200   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203   | --sha=* | --sh=*)
1204     sharedstatedir=$ac_optarg ;;
1206   -site | --site | --sit)
1207     ac_prev=site ;;
1208   -site=* | --site=* | --sit=*)
1209     site=$ac_optarg ;;
1211   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212     ac_prev=srcdir ;;
1213   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214     srcdir=$ac_optarg ;;
1216   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217   | --syscon | --sysco | --sysc | --sys | --sy)
1218     ac_prev=sysconfdir ;;
1219   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221     sysconfdir=$ac_optarg ;;
1223   -target | --target | --targe | --targ | --tar | --ta | --t)
1224     ac_prev=target_alias ;;
1225   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226     target_alias=$ac_optarg ;;
1228   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229     verbose=yes ;;
1231   -version | --version | --versio | --versi | --vers | -V)
1232     ac_init_version=: ;;
1234   -with-* | --with-*)
1235     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236     # Reject names that are not valid shell variable names.
1237     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238       as_fn_error $? "invalid package name: $ac_useropt"
1239     ac_useropt_orig=$ac_useropt
1240     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241     case $ac_user_opts in
1242       *"
1243 "with_$ac_useropt"
1244 "*) ;;
1245       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246          ac_unrecognized_sep=', ';;
1247     esac
1248     eval with_$ac_useropt=\$ac_optarg ;;
1250   -without-* | --without-*)
1251     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252     # Reject names that are not valid shell variable names.
1253     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254       as_fn_error $? "invalid package name: $ac_useropt"
1255     ac_useropt_orig=$ac_useropt
1256     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257     case $ac_user_opts in
1258       *"
1259 "with_$ac_useropt"
1260 "*) ;;
1261       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262          ac_unrecognized_sep=', ';;
1263     esac
1264     eval with_$ac_useropt=no ;;
1266   --x)
1267     # Obsolete; use --with-x.
1268     with_x=yes ;;
1270   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271   | --x-incl | --x-inc | --x-in | --x-i)
1272     ac_prev=x_includes ;;
1273   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275     x_includes=$ac_optarg ;;
1277   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279     ac_prev=x_libraries ;;
1280   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282     x_libraries=$ac_optarg ;;
1284   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1285 Try \`$0 --help' for more information"
1286     ;;
1288   *=*)
1289     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290     # Reject names that are not valid shell variable names.
1291     case $ac_envvar in #(
1292       '' | [0-9]* | *[!_$as_cr_alnum]* )
1293       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1294     esac
1295     eval $ac_envvar=\$ac_optarg
1296     export $ac_envvar ;;
1298   *)
1299     # FIXME: should be removed in autoconf 3.0.
1300     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1304     ;;
1306   esac
1307 done
1309 if test -n "$ac_prev"; then
1310   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311   as_fn_error $? "missing argument to $ac_option"
1312 fi
1314 if test -n "$ac_unrecognized_opts"; then
1315   case $enable_option_checking in
1316     no) ;;
1317     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1318     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319   esac
1320 fi
1322 # Check all directory arguments for consistency.
1323 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324                 datadir sysconfdir sharedstatedir localstatedir includedir \
1325                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326                 libdir localedir mandir
1327 do
1328   eval ac_val=\$$ac_var
1329   # Remove trailing slashes.
1330   case $ac_val in
1331     */ )
1332       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333       eval $ac_var=\$ac_val;;
1334   esac
1335   # Be sure to have absolute directory names.
1336   case $ac_val in
1337     [\\/$]* | ?:[\\/]* )  continue;;
1338     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339   esac
1340   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1341 done
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1346 build=$build_alias
1347 host=$host_alias
1348 target=$target_alias
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352   if test "x$build_alias" = x; then
1353     cross_compiling=maybe
1354     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1355     If a cross compiler is detected then cross compile mode will be used" >&2
1356   elif test "x$build_alias" != "x$host_alias"; then
1357     cross_compiling=yes
1358   fi
1359 fi
1361 ac_tool_prefix=
1362 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364 test "$silent" = yes && exec 6>/dev/null
1367 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368 ac_ls_di=`ls -di .` &&
1369 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370   as_fn_error $? "working directory cannot be determined"
1371 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1372   as_fn_error $? "pwd does not report name of working directory"
1375 # Find the source files, if location was not specified.
1376 if test -z "$srcdir"; then
1377   ac_srcdir_defaulted=yes
1378   # Try the directory containing this script, then the parent directory.
1379   ac_confdir=`$as_dirname -- "$as_myself" ||
1380 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381          X"$as_myself" : 'X\(//\)[^/]' \| \
1382          X"$as_myself" : 'X\(//\)$' \| \
1383          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1384 $as_echo X"$as_myself" |
1385     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386             s//\1/
1387             q
1388           }
1389           /^X\(\/\/\)[^/].*/{
1390             s//\1/
1391             q
1392           }
1393           /^X\(\/\/\)$/{
1394             s//\1/
1395             q
1396           }
1397           /^X\(\/\).*/{
1398             s//\1/
1399             q
1400           }
1401           s/.*/./; q'`
1402   srcdir=$ac_confdir
1403   if test ! -r "$srcdir/$ac_unique_file"; then
1404     srcdir=..
1405   fi
1406 else
1407   ac_srcdir_defaulted=no
1408 fi
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1410   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1411   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1412 fi
1413 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1414 ac_abs_confdir=`(
1415         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1416         pwd)`
1417 # When building in place, set srcdir=.
1418 if test "$ac_abs_confdir" = "$ac_pwd"; then
1419   srcdir=.
1420 fi
1421 # Remove unnecessary trailing slashes from srcdir.
1422 # Double slashes in file names in object file debugging info
1423 # mess up M-x gdb in Emacs.
1424 case $srcdir in
1425 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426 esac
1427 for ac_var in $ac_precious_vars; do
1428   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1429   eval ac_env_${ac_var}_value=\$${ac_var}
1430   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1431   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1432 done
1435 # Report the --help message.
1437 if test "$ac_init_help" = "long"; then
1438   # Omit some internal or obsolete options to make the list less imposing.
1439   # This message is too long to be a string in the A/UX 3.1 sh.
1440   cat <<_ACEOF
1441 \`configure' configures rrdtool 1.4.8 to adapt to many kinds of systems.
1443 Usage: $0 [OPTION]... [VAR=VALUE]...
1445 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1446 VAR=VALUE.  See below for descriptions of some of the useful variables.
1448 Defaults for the options are specified in brackets.
1450 Configuration:
1451   -h, --help              display this help and exit
1452       --help=short        display options specific to this package
1453       --help=recursive    display the short help of all the included packages
1454   -V, --version           display version information and exit
1455   -q, --quiet, --silent   do not print \`checking ...' messages
1456       --cache-file=FILE   cache test results in FILE [disabled]
1457   -C, --config-cache      alias for \`--cache-file=config.cache'
1458   -n, --no-create         do not create output files
1459       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1461 Installation directories:
1462   --prefix=PREFIX         install architecture-independent files in PREFIX
1463                           [$ac_default_prefix]
1464   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1465                           [PREFIX]
1467 By default, \`make install' will install all the files in
1468 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1469 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1470 for instance \`--prefix=\$HOME'.
1472 For better control, use the options below.
1474 Fine tuning of the installation directories:
1475   --bindir=DIR            user executables [EPREFIX/bin]
1476   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1477   --libexecdir=DIR        program executables [EPREFIX/libexec]
1478   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1479   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1480   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1481   --libdir=DIR            object code libraries [EPREFIX/lib]
1482   --includedir=DIR        C header files [PREFIX/include]
1483   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1484   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1485   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1486   --infodir=DIR           info documentation [DATAROOTDIR/info]
1487   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1488   --mandir=DIR            man documentation [DATAROOTDIR/man]
1489   --docdir=DIR            documentation root [DATAROOTDIR/doc/rrdtool]
1490   --htmldir=DIR           html documentation [DOCDIR]
1491   --dvidir=DIR            dvi documentation [DOCDIR]
1492   --pdfdir=DIR            pdf documentation [DOCDIR]
1493   --psdir=DIR             ps documentation [DOCDIR]
1494 _ACEOF
1496   cat <<\_ACEOF
1498 Program names:
1499   --program-prefix=PREFIX            prepend PREFIX to installed program names
1500   --program-suffix=SUFFIX            append SUFFIX to installed program names
1501   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1503 System types:
1504   --build=BUILD     configure for building on BUILD [guessed]
1505   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1506   --target=TARGET   configure for building compilers for TARGET [HOST]
1507 _ACEOF
1508 fi
1510 if test -n "$ac_init_help"; then
1511   case $ac_init_help in
1512      short | recursive ) echo "Configuration of rrdtool 1.4.8:";;
1513    esac
1514   cat <<\_ACEOF
1516 Optional Features:
1517   --disable-option-checking  ignore unrecognized --enable/--with options
1518   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1519   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1520   --disable-dependency-tracking  speeds up one-time build
1521   --enable-dependency-tracking   do not reject slow dependency extractors
1522   --enable-maintainer-mode  enable make rules and dependencies not useful
1523                           (and sometimes confusing) to the casual installer
1524   --enable-silent-rules          less verbose build output (undo: `make V=1')
1525   --disable-silent-rules         verbose build output (undo: `make V=0')
1526   --disable-rrdcgi        disable building of rrdcgi
1527   --disable-rrd_graph     disable all rrd_graph functions
1528   --disable-mmap          disable mmap in rrd_update, use seek+write instead
1529   --disable-pthread       disable multithread support
1530   --enable-static-programs
1531                           Build static programs
1532   --enable-shared[=PKGS]  build shared libraries [default=yes]
1533   --enable-static[=PKGS]  build static libraries [default=yes]
1534   --enable-fast-install[=PKGS]
1535                           optimize for fast installation [default=yes]
1536   --disable-libtool-lock  avoid locking (might break parallel builds)
1537   --disable-nls           do not use Native Language Support
1538   --disable-rpath         do not hardcode runtime library paths
1539   --disable-libdbi        do not build in support for libdbi
1540   --disable-libwrap       do not build in support for libwrap (tcp wrapper)
1541   --disable-perl          do not build the perl modules
1542   --enable-perl-site-install
1543                           by default the rrdtool perl modules are installed
1544                           together with rrdtool in $prefix/lib/perl. You have
1545                           to put a 'use lib qw($prefix/lib/perl)' into your
1546                           scripts when you want to use them. When you set this
1547                           option the perl modules will get installed wherever
1548                           your perl setup thinks it is best.
1549   --disable-ruby          do not build the ruby modules
1550   --enable-ruby-site-install
1551                           by default the rrdtool ruby modules are installed
1552                           together with rrdtool in $prefix/lib/ruby. You have
1553                           to add $prefix/lib/ruby/$ruby_version/$sitearch to
1554                           your $: variable for ruby to find the RRD.so file.
1555   --disable-lua           do not build the lua modules
1556   --enable-lua-site-install
1557                           by default the lua module is installed together with
1558                           rrdtool in $prefix/lib/lua/$lua_version. You have to
1559                           add $prefix/lib/lua/$lua_version/?.so to
1560                           package.cpath for lua to find 'rrd.so'. For lua 5.0
1561                           you may also need to change LUA_PATH to the same
1562                           dir, to require 'compat-5.1'. When you set this
1563                           option the lua modules will get installed wherever
1564                           your Lua setup thinks it is best. WARNING: if you
1565                           set this option, system lua modules compat-5.1.lua
1566                           and rrd.so, if any, may be overwritten.
1567   --disable-tcl           do not build the tcl modules
1568   --enable-tcl-site       install the tcl extension in the tcl tree
1569   --disable-python        do not build the python modules
1571 Optional Packages:
1572   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1573   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1574   --with-rrd-default-font=OPTIONS  set the full path to your default font.
1575   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1576                           both]
1577   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1578   --with-sysroot=DIR Search for dependent libraries within DIR
1579                         (or the compiler's sysroot if not specified).
1580   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1581   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1582   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1583   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1584   --without-libintl-prefix     don't search for libintl in includedir and libdir
1585   --with-perl-options=OPTIONS  options to pass on command-line when
1586                           generating Makefile from Makefile.PL. If you set this
1587                           option, interesting things may happen unless you know
1588                           what you are doing!
1589   --with-ruby-options=OPTIONS  options to pass on command-line when
1590                           generating Makefile from extconf.rb. If you set this
1591                           option, interesting things may happen unless you know
1592                           what you are doing!
1593   --with-tcllib=DIR       location of the tclConfig.sh
1595 Some influential environment variables:
1596   CC          C compiler command
1597   CFLAGS      C compiler flags
1598   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1599               nonstandard directory <lib dir>
1600   LIBS        libraries to pass to the linker, e.g. -l<library>
1601   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1602               you have headers in a nonstandard directory <include dir>
1603   CPP         C preprocessor
1604   RRDGRAPH_YLEGEND_ANGLE
1605               Vertical label angle: -90.0 (default) or 90.0
1606   PERLCC      C compiler for Perl modules
1607   PERLCCFLAGS CC flags for Perl modules
1608   PERLLD      Linker for Perl modules
1609   PERLLDFLAGS LD flags for Perl modules
1610   PYTHON      the Python interpreter
1611   NROFF       path to the local nroff version
1612   TROFF       path to the local troff version
1613   RRDDOCDIR   [DATADIR/doc/PACKAGE-VERSION] Documentation directory
1615 Use these variables to override the choices made by `configure' or to help
1616 it to find libraries and programs with nonstandard names/locations.
1618 Report bugs to the package provider.
1619 _ACEOF
1620 ac_status=$?
1621 fi
1623 if test "$ac_init_help" = "recursive"; then
1624   # If there are subdirs, report their specific --help.
1625   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1626     test -d "$ac_dir" ||
1627       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1628       continue
1629     ac_builddir=.
1631 case "$ac_dir" in
1632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633 *)
1634   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1635   # A ".." for each directory in $ac_dir_suffix.
1636   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1637   case $ac_top_builddir_sub in
1638   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640   esac ;;
1641 esac
1642 ac_abs_top_builddir=$ac_pwd
1643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644 # for backward compatibility:
1645 ac_top_builddir=$ac_top_build_prefix
1647 case $srcdir in
1648   .)  # We are building in place.
1649     ac_srcdir=.
1650     ac_top_srcdir=$ac_top_builddir_sub
1651     ac_abs_top_srcdir=$ac_pwd ;;
1652   [\\/]* | ?:[\\/]* )  # Absolute name.
1653     ac_srcdir=$srcdir$ac_dir_suffix;
1654     ac_top_srcdir=$srcdir
1655     ac_abs_top_srcdir=$srcdir ;;
1656   *) # Relative name.
1657     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658     ac_top_srcdir=$ac_top_build_prefix$srcdir
1659     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1660 esac
1661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1663     cd "$ac_dir" || { ac_status=$?; continue; }
1664     # Check for guested configure.
1665     if test -f "$ac_srcdir/configure.gnu"; then
1666       echo &&
1667       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668     elif test -f "$ac_srcdir/configure"; then
1669       echo &&
1670       $SHELL "$ac_srcdir/configure" --help=recursive
1671     else
1672       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1673     fi || ac_status=$?
1674     cd "$ac_pwd" || { ac_status=$?; break; }
1675   done
1676 fi
1678 test -n "$ac_init_help" && exit $ac_status
1679 if $ac_init_version; then
1680   cat <<\_ACEOF
1681 rrdtool configure 1.4.8
1682 generated by GNU Autoconf 2.68
1684 Copyright (C) 2010 Free Software Foundation, Inc.
1685 This configure script is free software; the Free Software Foundation
1686 gives unlimited permission to copy, distribute and modify it.
1687 _ACEOF
1688   exit
1689 fi
1691 ## ------------------------ ##
1692 ## Autoconf initialization. ##
1693 ## ------------------------ ##
1695 # ac_fn_c_try_compile LINENO
1696 # --------------------------
1697 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_compile ()
1700   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701   rm -f conftest.$ac_objext
1702   if { { ac_try="$ac_compile"
1703 case "(($ac_try" in
1704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705   *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709   (eval "$ac_compile") 2>conftest.err
1710   ac_status=$?
1711   if test -s conftest.err; then
1712     grep -v '^ *+' conftest.err >conftest.er1
1713     cat conftest.er1 >&5
1714     mv -f conftest.er1 conftest.err
1715   fi
1716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717   test $ac_status = 0; } && {
1718          test -z "$ac_c_werror_flag" ||
1719          test ! -s conftest.err
1720        } && test -s conftest.$ac_objext; then :
1721   ac_retval=0
1722 else
1723   $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1726         ac_retval=1
1727 fi
1728   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729   as_fn_set_status $ac_retval
1731 } # ac_fn_c_try_compile
1733 # ac_fn_c_try_cpp LINENO
1734 # ----------------------
1735 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_cpp ()
1738   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739   if { { ac_try="$ac_cpp conftest.$ac_ext"
1740 case "(($ac_try" in
1741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742   *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1747   ac_status=$?
1748   if test -s conftest.err; then
1749     grep -v '^ *+' conftest.err >conftest.er1
1750     cat conftest.er1 >&5
1751     mv -f conftest.er1 conftest.err
1752   fi
1753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754   test $ac_status = 0; } > conftest.i && {
1755          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1756          test ! -s conftest.err
1757        }; then :
1758   ac_retval=0
1759 else
1760   $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1763     ac_retval=1
1764 fi
1765   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766   as_fn_set_status $ac_retval
1768 } # ac_fn_c_try_cpp
1770 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1771 # -------------------------------------------------------
1772 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1773 # the include files in INCLUDES and setting the cache variable VAR
1774 # accordingly.
1775 ac_fn_c_check_header_mongrel ()
1777   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778   if eval \${$3+:} false; then :
1779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782   $as_echo_n "(cached) " >&6
1783 fi
1784 eval ac_res=\$$3
1785                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 else
1788   # Is the header compilable?
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1790 $as_echo_n "checking $2 usability... " >&6; }
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h.  */
1793 $4
1794 #include <$2>
1795 _ACEOF
1796 if ac_fn_c_try_compile "$LINENO"; then :
1797   ac_header_compiler=yes
1798 else
1799   ac_header_compiler=no
1800 fi
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1803 $as_echo "$ac_header_compiler" >&6; }
1805 # Is the header present?
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1807 $as_echo_n "checking $2 presence... " >&6; }
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h.  */
1810 #include <$2>
1811 _ACEOF
1812 if ac_fn_c_try_cpp "$LINENO"; then :
1813   ac_header_preproc=yes
1814 else
1815   ac_header_preproc=no
1816 fi
1817 rm -f conftest.err conftest.i conftest.$ac_ext
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1819 $as_echo "$ac_header_preproc" >&6; }
1821 # So?  What about this header?
1822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1823   yes:no: )
1824     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1825 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1826     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828     ;;
1829   no:yes:* )
1830     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1831 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1832     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1833 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1834     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1835 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1836     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1837 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1838     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840     ;;
1841 esac
1842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if eval \${$3+:} false; then :
1845   $as_echo_n "(cached) " >&6
1846 else
1847   eval "$3=\$ac_header_compiler"
1848 fi
1849 eval ac_res=\$$3
1850                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 fi
1853   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 } # ac_fn_c_check_header_mongrel
1857 # ac_fn_c_try_run LINENO
1858 # ----------------------
1859 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1860 # that executables *can* be run.
1861 ac_fn_c_try_run ()
1863   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864   if { { ac_try="$ac_link"
1865 case "(($ac_try" in
1866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867   *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871   (eval "$ac_link") 2>&5
1872   ac_status=$?
1873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1875   { { case "(($ac_try" in
1876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877   *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881   (eval "$ac_try") 2>&5
1882   ac_status=$?
1883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884   test $ac_status = 0; }; }; then :
1885   ac_retval=0
1886 else
1887   $as_echo "$as_me: program exited with status $ac_status" >&5
1888        $as_echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1891        ac_retval=$ac_status
1892 fi
1893   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1894   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895   as_fn_set_status $ac_retval
1897 } # ac_fn_c_try_run
1899 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1900 # -------------------------------------------------------
1901 # Tests whether HEADER exists and can be compiled using the include files in
1902 # INCLUDES, setting the cache variable VAR accordingly.
1903 ac_fn_c_check_header_compile ()
1905   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if eval \${$3+:} false; then :
1909   $as_echo_n "(cached) " >&6
1910 else
1911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h.  */
1913 $4
1914 #include <$2>
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917   eval "$3=yes"
1918 else
1919   eval "$3=no"
1920 fi
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 fi
1923 eval ac_res=\$$3
1924                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928 } # ac_fn_c_check_header_compile
1930 # ac_fn_c_try_link LINENO
1931 # -----------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded.
1933 ac_fn_c_try_link ()
1935   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936   rm -f conftest.$ac_objext conftest$ac_exeext
1937   if { { ac_try="$ac_link"
1938 case "(($ac_try" in
1939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940   *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944   (eval "$ac_link") 2>conftest.err
1945   ac_status=$?
1946   if test -s conftest.err; then
1947     grep -v '^ *+' conftest.err >conftest.er1
1948     cat conftest.er1 >&5
1949     mv -f conftest.er1 conftest.err
1950   fi
1951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952   test $ac_status = 0; } && {
1953          test -z "$ac_c_werror_flag" ||
1954          test ! -s conftest.err
1955        } && test -s conftest$ac_exeext && {
1956          test "$cross_compiling" = yes ||
1957          $as_test_x conftest$ac_exeext
1958        }; then :
1959   ac_retval=0
1960 else
1961   $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1964         ac_retval=1
1965 fi
1966   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1967   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1968   # interfere with the next link command; also delete a directory that is
1969   # left behind by Apple's compiler.  We do this before executing the actions.
1970   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972   as_fn_set_status $ac_retval
1974 } # ac_fn_c_try_link
1976 # ac_fn_c_check_func LINENO FUNC VAR
1977 # ----------------------------------
1978 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1979 ac_fn_c_check_func ()
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; }
1984 if eval \${$3+:} false; then :
1985   $as_echo_n "(cached) " >&6
1986 else
1987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h.  */
1989 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1991 #define $2 innocuous_$2
1993 /* System header to define __stub macros and hopefully few prototypes,
1994     which can conflict with char $2 (); below.
1995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1996     <limits.h> exists even on freestanding compilers.  */
1998 #ifdef __STDC__
1999 # include <limits.h>
2000 #else
2001 # include <assert.h>
2002 #endif
2004 #undef $2
2006 /* Override any GCC internal prototype to avoid an error.
2007    Use char because int might match the return type of a GCC
2008    builtin and then its argument prototype would still apply.  */
2009 #ifdef __cplusplus
2010 extern "C"
2011 #endif
2012 char $2 ();
2013 /* The GNU C library defines this for functions which it implements
2014     to always fail with ENOSYS.  Some functions are actually named
2015     something starting with __ and the normal name is an alias.  */
2016 #if defined __stub_$2 || defined __stub___$2
2017 choke me
2018 #endif
2020 int
2021 main ()
2023 return $2 ();
2024   ;
2025   return 0;
2027 _ACEOF
2028 if ac_fn_c_try_link "$LINENO"; then :
2029   eval "$3=yes"
2030 else
2031   eval "$3=no"
2032 fi
2033 rm -f core conftest.err conftest.$ac_objext \
2034     conftest$ac_exeext conftest.$ac_ext
2035 fi
2036 eval ac_res=\$$3
2037                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038 $as_echo "$ac_res" >&6; }
2039   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 } # ac_fn_c_check_func
2043 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2044 # ---------------------------------------------
2045 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2046 # accordingly.
2047 ac_fn_c_check_decl ()
2049   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050   as_decl_name=`echo $2|sed 's/ *(.*//'`
2051   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2053 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2054 if eval \${$3+:} false; then :
2055   $as_echo_n "(cached) " >&6
2056 else
2057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h.  */
2059 $4
2060 int
2061 main ()
2063 #ifndef $as_decl_name
2064 #ifdef __cplusplus
2065   (void) $as_decl_use;
2066 #else
2067   (void) $as_decl_name;
2068 #endif
2069 #endif
2071   ;
2072   return 0;
2074 _ACEOF
2075 if ac_fn_c_try_compile "$LINENO"; then :
2076   eval "$3=yes"
2077 else
2078   eval "$3=no"
2079 fi
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 fi
2082 eval ac_res=\$$3
2083                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084 $as_echo "$ac_res" >&6; }
2085   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087 } # ac_fn_c_check_decl
2089 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2090 # --------------------------------------------
2091 # Tries to find the compile-time value of EXPR in a program that includes
2092 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2093 # computed
2094 ac_fn_c_compute_int ()
2096   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097   if test "$cross_compiling" = yes; then
2098     # Depending upon the size, compute the lo and hi bounds.
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h.  */
2101 $4
2102 int
2103 main ()
2105 static int test_array [1 - 2 * !(($2) >= 0)];
2106 test_array [0] = 0
2108   ;
2109   return 0;
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113   ac_lo=0 ac_mid=0
2114   while :; do
2115     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h.  */
2117 $4
2118 int
2119 main ()
2121 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2122 test_array [0] = 0
2124   ;
2125   return 0;
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129   ac_hi=$ac_mid; break
2130 else
2131   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2132                         if test $ac_lo -le $ac_mid; then
2133                           ac_lo= ac_hi=
2134                           break
2135                         fi
2136                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2137 fi
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139   done
2140 else
2141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h.  */
2143 $4
2144 int
2145 main ()
2147 static int test_array [1 - 2 * !(($2) < 0)];
2148 test_array [0] = 0
2150   ;
2151   return 0;
2153 _ACEOF
2154 if ac_fn_c_try_compile "$LINENO"; then :
2155   ac_hi=-1 ac_mid=-1
2156   while :; do
2157     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h.  */
2159 $4
2160 int
2161 main ()
2163 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2164 test_array [0] = 0
2166   ;
2167   return 0;
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"; then :
2171   ac_lo=$ac_mid; break
2172 else
2173   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2174                         if test $ac_mid -le $ac_hi; then
2175                           ac_lo= ac_hi=
2176                           break
2177                         fi
2178                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2179 fi
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181   done
2182 else
2183   ac_lo= ac_hi=
2184 fi
2185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 fi
2187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 # Binary search between lo and hi bounds.
2189 while test "x$ac_lo" != "x$ac_hi"; do
2190   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h.  */
2193 $4
2194 int
2195 main ()
2197 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2198 test_array [0] = 0
2200   ;
2201   return 0;
2203 _ACEOF
2204 if ac_fn_c_try_compile "$LINENO"; then :
2205   ac_hi=$ac_mid
2206 else
2207   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2208 fi
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 done
2211 case $ac_lo in #((
2212 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2213 '') ac_retval=1 ;;
2214 esac
2215   else
2216     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h.  */
2218 $4
2219 static long int longval () { return $2; }
2220 static unsigned long int ulongval () { return $2; }
2221 #include <stdio.h>
2222 #include <stdlib.h>
2223 int
2224 main ()
2227   FILE *f = fopen ("conftest.val", "w");
2228   if (! f)
2229     return 1;
2230   if (($2) < 0)
2231     {
2232       long int i = longval ();
2233       if (i != ($2))
2234         return 1;
2235       fprintf (f, "%ld", i);
2236     }
2237   else
2238     {
2239       unsigned long int i = ulongval ();
2240       if (i != ($2))
2241         return 1;
2242       fprintf (f, "%lu", i);
2243     }
2244   /* Do not output a trailing newline, as this causes \r\n confusion
2245      on some platforms.  */
2246   return ferror (f) || fclose (f) != 0;
2248   ;
2249   return 0;
2251 _ACEOF
2252 if ac_fn_c_try_run "$LINENO"; then :
2253   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2254 else
2255   ac_retval=1
2256 fi
2257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2258   conftest.$ac_objext conftest.beam conftest.$ac_ext
2259 rm -f conftest.val
2261   fi
2262   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263   as_fn_set_status $ac_retval
2265 } # ac_fn_c_compute_int
2266 cat >config.log <<_ACEOF
2267 This file contains any messages produced by compilers while
2268 running configure, to aid debugging if configure makes a mistake.
2270 It was created by rrdtool $as_me 1.4.8, which was
2271 generated by GNU Autoconf 2.68.  Invocation command line was
2273   $ $0 $@
2275 _ACEOF
2276 exec 5>>config.log
2278 cat <<_ASUNAME
2279 ## --------- ##
2280 ## Platform. ##
2281 ## --------- ##
2283 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2284 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2285 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2286 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2287 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2289 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2290 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2292 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2293 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2294 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2295 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2296 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2297 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2298 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2300 _ASUNAME
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2304 do
2305   IFS=$as_save_IFS
2306   test -z "$as_dir" && as_dir=.
2307     $as_echo "PATH: $as_dir"
2308   done
2309 IFS=$as_save_IFS
2311 } >&5
2313 cat >&5 <<_ACEOF
2316 ## ----------- ##
2317 ## Core tests. ##
2318 ## ----------- ##
2320 _ACEOF
2323 # Keep a trace of the command line.
2324 # Strip out --no-create and --no-recursion so they do not pile up.
2325 # Strip out --silent because we don't want to record it for future runs.
2326 # Also quote any args containing shell meta-characters.
2327 # Make two passes to allow for proper duplicate-argument suppression.
2328 ac_configure_args=
2329 ac_configure_args0=
2330 ac_configure_args1=
2331 ac_must_keep_next=false
2332 for ac_pass in 1 2
2333 do
2334   for ac_arg
2335   do
2336     case $ac_arg in
2337     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2338     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2339     | -silent | --silent | --silen | --sile | --sil)
2340       continue ;;
2341     *\'*)
2342       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2343     esac
2344     case $ac_pass in
2345     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2346     2)
2347       as_fn_append ac_configure_args1 " '$ac_arg'"
2348       if test $ac_must_keep_next = true; then
2349         ac_must_keep_next=false # Got value, back to normal.
2350       else
2351         case $ac_arg in
2352           *=* | --config-cache | -C | -disable-* | --disable-* \
2353           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2354           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2355           | -with-* | --with-* | -without-* | --without-* | --x)
2356             case "$ac_configure_args0 " in
2357               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2358             esac
2359             ;;
2360           -* ) ac_must_keep_next=true ;;
2361         esac
2362       fi
2363       as_fn_append ac_configure_args " '$ac_arg'"
2364       ;;
2365     esac
2366   done
2367 done
2368 { ac_configure_args0=; unset ac_configure_args0;}
2369 { ac_configure_args1=; unset ac_configure_args1;}
2371 # When interrupted or exit'd, cleanup temporary files, and complete
2372 # config.log.  We remove comments because anyway the quotes in there
2373 # would cause problems or look ugly.
2374 # WARNING: Use '\'' to represent an apostrophe within the trap.
2375 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2376 trap 'exit_status=$?
2377   # Save into config.log some information that might help in debugging.
2378   {
2379     echo
2381     $as_echo "## ---------------- ##
2382 ## Cache variables. ##
2383 ## ---------------- ##"
2384     echo
2385     # The following way of writing the cache mishandles newlines in values,
2387   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2388     eval ac_val=\$$ac_var
2389     case $ac_val in #(
2390     *${as_nl}*)
2391       case $ac_var in #(
2392       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2393 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2394       esac
2395       case $ac_var in #(
2396       _ | IFS | as_nl) ;; #(
2397       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2398       *) { eval $ac_var=; unset $ac_var;} ;;
2399       esac ;;
2400     esac
2401   done
2402   (set) 2>&1 |
2403     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2404     *${as_nl}ac_space=\ *)
2405       sed -n \
2406         "s/'\''/'\''\\\\'\'''\''/g;
2407           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2408       ;; #(
2409     *)
2410       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2411       ;;
2412     esac |
2413     sort
2415     echo
2417     $as_echo "## ----------------- ##
2418 ## Output variables. ##
2419 ## ----------------- ##"
2420     echo
2421     for ac_var in $ac_subst_vars
2422     do
2423       eval ac_val=\$$ac_var
2424       case $ac_val in
2425       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2426       esac
2427       $as_echo "$ac_var='\''$ac_val'\''"
2428     done | sort
2429     echo
2431     if test -n "$ac_subst_files"; then
2432       $as_echo "## ------------------- ##
2433 ## File substitutions. ##
2434 ## ------------------- ##"
2435       echo
2436       for ac_var in $ac_subst_files
2437       do
2438         eval ac_val=\$$ac_var
2439         case $ac_val in
2440         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2441         esac
2442         $as_echo "$ac_var='\''$ac_val'\''"
2443       done | sort
2444       echo
2445     fi
2447     if test -s confdefs.h; then
2448       $as_echo "## ----------- ##
2449 ## confdefs.h. ##
2450 ## ----------- ##"
2451       echo
2452       cat confdefs.h
2453       echo
2454     fi
2455     test "$ac_signal" != 0 &&
2456       $as_echo "$as_me: caught signal $ac_signal"
2457     $as_echo "$as_me: exit $exit_status"
2458   } >&5
2459   rm -f core *.core core.conftest.* &&
2460     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2461     exit $exit_status
2462 ' 0
2463 for ac_signal in 1 2 13 15; do
2464   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2465 done
2466 ac_signal=0
2468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2469 rm -f -r conftest* confdefs.h
2471 $as_echo "/* confdefs.h */" > confdefs.h
2473 # Predefined preprocessor variables.
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_NAME "$PACKAGE_NAME"
2477 _ACEOF
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2481 _ACEOF
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2485 _ACEOF
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_STRING "$PACKAGE_STRING"
2489 _ACEOF
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2493 _ACEOF
2495 cat >>confdefs.h <<_ACEOF
2496 #define PACKAGE_URL "$PACKAGE_URL"
2497 _ACEOF
2500 # Let the site file select an alternate cache file if it wants to.
2501 # Prefer an explicitly selected file to automatically selected ones.
2502 ac_site_file1=NONE
2503 ac_site_file2=NONE
2504 if test -n "$CONFIG_SITE"; then
2505   # We do not want a PATH search for config.site.
2506   case $CONFIG_SITE in #((
2507     -*)  ac_site_file1=./$CONFIG_SITE;;
2508     */*) ac_site_file1=$CONFIG_SITE;;
2509     *)   ac_site_file1=./$CONFIG_SITE;;
2510   esac
2511 elif test "x$prefix" != xNONE; then
2512   ac_site_file1=$prefix/share/config.site
2513   ac_site_file2=$prefix/etc/config.site
2514 else
2515   ac_site_file1=$ac_default_prefix/share/config.site
2516   ac_site_file2=$ac_default_prefix/etc/config.site
2517 fi
2518 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2519 do
2520   test "x$ac_site_file" = xNONE && continue
2521   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2522     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2523 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2524     sed 's/^/| /' "$ac_site_file" >&5
2525     . "$ac_site_file" \
2526       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2528 as_fn_error $? "failed to load site script $ac_site_file
2529 See \`config.log' for more details" "$LINENO" 5; }
2530   fi
2531 done
2533 if test -r "$cache_file"; then
2534   # Some versions of bash will fail to source /dev/null (special files
2535   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2536   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2537     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2538 $as_echo "$as_me: loading cache $cache_file" >&6;}
2539     case $cache_file in
2540       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2541       *)                      . "./$cache_file";;
2542     esac
2543   fi
2544 else
2545   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2546 $as_echo "$as_me: creating cache $cache_file" >&6;}
2547   >$cache_file
2548 fi
2550 as_fn_append ac_header_list " stdlib.h"
2551 as_fn_append ac_header_list " unistd.h"
2552 as_fn_append ac_header_list " sys/param.h"
2553 gt_needs="$gt_needs "
2554 # Check that the precious variables saved in the cache have kept the same
2555 # value.
2556 ac_cache_corrupted=false
2557 for ac_var in $ac_precious_vars; do
2558   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2559   eval ac_new_set=\$ac_env_${ac_var}_set
2560   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2561   eval ac_new_val=\$ac_env_${ac_var}_value
2562   case $ac_old_set,$ac_new_set in
2563     set,)
2564       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2565 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2566       ac_cache_corrupted=: ;;
2567     ,set)
2568       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2569 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2570       ac_cache_corrupted=: ;;
2571     ,);;
2572     *)
2573       if test "x$ac_old_val" != "x$ac_new_val"; then
2574         # differences in whitespace do not lead to failure.
2575         ac_old_val_w=`echo x $ac_old_val`
2576         ac_new_val_w=`echo x $ac_new_val`
2577         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2578           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2579 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2580           ac_cache_corrupted=:
2581         else
2582           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2583 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2584           eval $ac_var=\$ac_old_val
2585         fi
2586         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2587 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2588         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2589 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2590       fi;;
2591   esac
2592   # Pass precious variables to config.status.
2593   if test "$ac_new_set" = set; then
2594     case $ac_new_val in
2595     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2596     *) ac_arg=$ac_var=$ac_new_val ;;
2597     esac
2598     case " $ac_configure_args " in
2599       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2600       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2601     esac
2602   fi
2603 done
2604 if $ac_cache_corrupted; then
2605   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2607   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2608 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2609   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2610 fi
2611 ## -------------------- ##
2612 ## Main body of script. ##
2613 ## -------------------- ##
2615 ac_ext=c
2616 ac_cpp='$CPP $CPPFLAGS'
2617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2623 NUMVERS=1.4008
2626 LIBVERS=6:1:2
2629 ac_aux_dir=
2630 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2631   if test -f "$ac_dir/install-sh"; then
2632     ac_aux_dir=$ac_dir
2633     ac_install_sh="$ac_aux_dir/install-sh -c"
2634     break
2635   elif test -f "$ac_dir/install.sh"; then
2636     ac_aux_dir=$ac_dir
2637     ac_install_sh="$ac_aux_dir/install.sh -c"
2638     break
2639   elif test -f "$ac_dir/shtool"; then
2640     ac_aux_dir=$ac_dir
2641     ac_install_sh="$ac_aux_dir/shtool install -c"
2642     break
2643   fi
2644 done
2645 if test -z "$ac_aux_dir"; then
2646   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2647 fi
2649 # These three variables are undocumented and unsupported,
2650 # and are intended to be withdrawn in a future Autoconf release.
2651 # They can cause serious problems if a builder's source tree is in a directory
2652 # whose full name contains unusual characters.
2653 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2654 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2655 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2658 # Make sure we can run config.sub.
2659 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2660   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2663 $as_echo_n "checking build system type... " >&6; }
2664 if ${ac_cv_build+:} false; then :
2665   $as_echo_n "(cached) " >&6
2666 else
2667   ac_build_alias=$build_alias
2668 test "x$ac_build_alias" = x &&
2669   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2670 test "x$ac_build_alias" = x &&
2671   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2672 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2673   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2675 fi
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2677 $as_echo "$ac_cv_build" >&6; }
2678 case $ac_cv_build in
2679 *-*-*) ;;
2680 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2681 esac
2682 build=$ac_cv_build
2683 ac_save_IFS=$IFS; IFS='-'
2684 set x $ac_cv_build
2685 shift
2686 build_cpu=$1
2687 build_vendor=$2
2688 shift; shift
2689 # Remember, the first character of IFS is used to create $*,
2690 # except with old shells:
2691 build_os=$*
2692 IFS=$ac_save_IFS
2693 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2697 $as_echo_n "checking host system type... " >&6; }
2698 if ${ac_cv_host+:} false; then :
2699   $as_echo_n "(cached) " >&6
2700 else
2701   if test "x$host_alias" = x; then
2702   ac_cv_host=$ac_cv_build
2703 else
2704   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2705     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2706 fi
2708 fi
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2710 $as_echo "$ac_cv_host" >&6; }
2711 case $ac_cv_host in
2712 *-*-*) ;;
2713 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2714 esac
2715 host=$ac_cv_host
2716 ac_save_IFS=$IFS; IFS='-'
2717 set x $ac_cv_host
2718 shift
2719 host_cpu=$1
2720 host_vendor=$2
2721 shift; shift
2722 # Remember, the first character of IFS is used to create $*,
2723 # except with old shells:
2724 host_os=$*
2725 IFS=$ac_save_IFS
2726 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2730 $as_echo_n "checking target system type... " >&6; }
2731 if ${ac_cv_target+:} false; then :
2732   $as_echo_n "(cached) " >&6
2733 else
2734   if test "x$target_alias" = x; then
2735   ac_cv_target=$ac_cv_host
2736 else
2737   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2738     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2739 fi
2741 fi
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2743 $as_echo "$ac_cv_target" >&6; }
2744 case $ac_cv_target in
2745 *-*-*) ;;
2746 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2747 esac
2748 target=$ac_cv_target
2749 ac_save_IFS=$IFS; IFS='-'
2750 set x $ac_cv_target
2751 shift
2752 target_cpu=$1
2753 target_vendor=$2
2754 shift; shift
2755 # Remember, the first character of IFS is used to create $*,
2756 # except with old shells:
2757 target_os=$*
2758 IFS=$ac_save_IFS
2759 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2762 # The aliases save the names the user supplied, while $host etc.
2763 # will get canonicalized.
2764 test -n "$target_alias" &&
2765   test "$program_prefix$program_suffix$program_transform_name" = \
2766     NONENONEs,x,x, &&
2767   program_prefix=${target_alias}-
2768 ac_ext=c
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773 if test -n "$ac_tool_prefix"; then
2774   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2775 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777 $as_echo_n "checking for $ac_word... " >&6; }
2778 if ${ac_cv_prog_CC+:} false; then :
2779   $as_echo_n "(cached) " >&6
2780 else
2781   if test -n "$CC"; then
2782   ac_cv_prog_CC="$CC" # Let the user override the test.
2783 else
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2786 do
2787   IFS=$as_save_IFS
2788   test -z "$as_dir" && as_dir=.
2789     for ac_exec_ext in '' $ac_executable_extensions; do
2790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2791     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793     break 2
2794   fi
2795 done
2796   done
2797 IFS=$as_save_IFS
2799 fi
2800 fi
2801 CC=$ac_cv_prog_CC
2802 if test -n "$CC"; then
2803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2804 $as_echo "$CC" >&6; }
2805 else
2806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 $as_echo "no" >&6; }
2808 fi
2811 fi
2812 if test -z "$ac_cv_prog_CC"; then
2813   ac_ct_CC=$CC
2814   # Extract the first word of "gcc", so it can be a program name with args.
2815 set dummy gcc; ac_word=$2
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2819   $as_echo_n "(cached) " >&6
2820 else
2821   if test -n "$ac_ct_CC"; then
2822   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827   IFS=$as_save_IFS
2828   test -z "$as_dir" && as_dir=.
2829     for ac_exec_ext in '' $ac_executable_extensions; do
2830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831     ac_cv_prog_ac_ct_CC="gcc"
2832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833     break 2
2834   fi
2835 done
2836   done
2837 IFS=$as_save_IFS
2839 fi
2840 fi
2841 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2842 if test -n "$ac_ct_CC"; then
2843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2844 $as_echo "$ac_ct_CC" >&6; }
2845 else
2846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2848 fi
2850   if test "x$ac_ct_CC" = x; then
2851     CC=""
2852   else
2853     case $cross_compiling:$ac_tool_warned in
2854 yes:)
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2857 ac_tool_warned=yes ;;
2858 esac
2859     CC=$ac_ct_CC
2860   fi
2861 else
2862   CC="$ac_cv_prog_CC"
2863 fi
2865 if test -z "$CC"; then
2866           if test -n "$ac_tool_prefix"; then
2867     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2868 set dummy ${ac_tool_prefix}cc; ac_word=$2
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 $as_echo_n "checking for $ac_word... " >&6; }
2871 if ${ac_cv_prog_CC+:} false; then :
2872   $as_echo_n "(cached) " >&6
2873 else
2874   if test -n "$CC"; then
2875   ac_cv_prog_CC="$CC" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2879 do
2880   IFS=$as_save_IFS
2881   test -z "$as_dir" && as_dir=.
2882     for ac_exec_ext in '' $ac_executable_extensions; do
2883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2884     ac_cv_prog_CC="${ac_tool_prefix}cc"
2885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886     break 2
2887   fi
2888 done
2889   done
2890 IFS=$as_save_IFS
2892 fi
2893 fi
2894 CC=$ac_cv_prog_CC
2895 if test -n "$CC"; then
2896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2897 $as_echo "$CC" >&6; }
2898 else
2899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 $as_echo "no" >&6; }
2901 fi
2904   fi
2905 fi
2906 if test -z "$CC"; then
2907   # Extract the first word of "cc", so it can be a program name with args.
2908 set dummy cc; ac_word=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if ${ac_cv_prog_CC+:} false; then :
2912   $as_echo_n "(cached) " >&6
2913 else
2914   if test -n "$CC"; then
2915   ac_cv_prog_CC="$CC" # Let the user override the test.
2916 else
2917   ac_prog_rejected=no
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921   IFS=$as_save_IFS
2922   test -z "$as_dir" && as_dir=.
2923     for ac_exec_ext in '' $ac_executable_extensions; do
2924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2926        ac_prog_rejected=yes
2927        continue
2928      fi
2929     ac_cv_prog_CC="cc"
2930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931     break 2
2932   fi
2933 done
2934   done
2935 IFS=$as_save_IFS
2937 if test $ac_prog_rejected = yes; then
2938   # We found a bogon in the path, so make sure we never use it.
2939   set dummy $ac_cv_prog_CC
2940   shift
2941   if test $# != 0; then
2942     # We chose a different compiler from the bogus one.
2943     # However, it has the same basename, so the bogon will be chosen
2944     # first if we set CC to just the basename; use the full file name.
2945     shift
2946     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2947   fi
2948 fi
2949 fi
2950 fi
2951 CC=$ac_cv_prog_CC
2952 if test -n "$CC"; then
2953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2954 $as_echo "$CC" >&6; }
2955 else
2956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2958 fi
2961 fi
2962 if test -z "$CC"; then
2963   if test -n "$ac_tool_prefix"; then
2964   for ac_prog in cl.exe
2965   do
2966     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2967 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_CC+:} false; then :
2971   $as_echo_n "(cached) " >&6
2972 else
2973   if test -n "$CC"; then
2974   ac_cv_prog_CC="$CC" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979   IFS=$as_save_IFS
2980   test -z "$as_dir" && as_dir=.
2981     for ac_exec_ext in '' $ac_executable_extensions; do
2982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985     break 2
2986   fi
2987 done
2988   done
2989 IFS=$as_save_IFS
2991 fi
2992 fi
2993 CC=$ac_cv_prog_CC
2994 if test -n "$CC"; then
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2996 $as_echo "$CC" >&6; }
2997 else
2998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 fi
3003     test -n "$CC" && break
3004   done
3005 fi
3006 if test -z "$CC"; then
3007   ac_ct_CC=$CC
3008   for ac_prog in cl.exe
3009 do
3010   # Extract the first word of "$ac_prog", so it can be a program name with args.
3011 set dummy $ac_prog; ac_word=$2
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013 $as_echo_n "checking for $ac_word... " >&6; }
3014 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3015   $as_echo_n "(cached) " >&6
3016 else
3017   if test -n "$ac_ct_CC"; then
3018   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3019 else
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH
3022 do
3023   IFS=$as_save_IFS
3024   test -z "$as_dir" && as_dir=.
3025     for ac_exec_ext in '' $ac_executable_extensions; do
3026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3027     ac_cv_prog_ac_ct_CC="$ac_prog"
3028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029     break 2
3030   fi
3031 done
3032   done
3033 IFS=$as_save_IFS
3035 fi
3036 fi
3037 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3038 if test -n "$ac_ct_CC"; then
3039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3040 $as_echo "$ac_ct_CC" >&6; }
3041 else
3042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 $as_echo "no" >&6; }
3044 fi
3047   test -n "$ac_ct_CC" && break
3048 done
3050   if test "x$ac_ct_CC" = x; then
3051     CC=""
3052   else
3053     case $cross_compiling:$ac_tool_warned in
3054 yes:)
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3057 ac_tool_warned=yes ;;
3058 esac
3059     CC=$ac_ct_CC
3060   fi
3061 fi
3063 fi
3066 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3068 as_fn_error $? "no acceptable C compiler found in \$PATH
3069 See \`config.log' for more details" "$LINENO" 5; }
3071 # Provide some information about the compiler.
3072 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3073 set X $ac_compile
3074 ac_compiler=$2
3075 for ac_option in --version -v -V -qversion; do
3076   { { ac_try="$ac_compiler $ac_option >&5"
3077 case "(($ac_try" in
3078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079   *) ac_try_echo=$ac_try;;
3080 esac
3081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082 $as_echo "$ac_try_echo"; } >&5
3083   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3084   ac_status=$?
3085   if test -s conftest.err; then
3086     sed '10a\
3087 ... rest of stderr output deleted ...
3088          10q' conftest.err >conftest.er1
3089     cat conftest.er1 >&5
3090   fi
3091   rm -f conftest.er1 conftest.err
3092   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3093   test $ac_status = 0; }
3094 done
3096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3097 /* end confdefs.h.  */
3099 int
3100 main ()
3103   ;
3104   return 0;
3106 _ACEOF
3107 ac_clean_files_save=$ac_clean_files
3108 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3109 # Try to create an executable without -o first, disregard a.out.
3110 # It will help us diagnose broken compilers, and finding out an intuition
3111 # of exeext.
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3113 $as_echo_n "checking whether the C compiler works... " >&6; }
3114 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3116 # The possible output files:
3117 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3119 ac_rmfiles=
3120 for ac_file in $ac_files
3121 do
3122   case $ac_file in
3123     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3124     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3125   esac
3126 done
3127 rm -f $ac_rmfiles
3129 if { { ac_try="$ac_link_default"
3130 case "(($ac_try" in
3131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132   *) ac_try_echo=$ac_try;;
3133 esac
3134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3135 $as_echo "$ac_try_echo"; } >&5
3136   (eval "$ac_link_default") 2>&5
3137   ac_status=$?
3138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3139   test $ac_status = 0; }; then :
3140   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3141 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3142 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3143 # so that the user can short-circuit this test for compilers unknown to
3144 # Autoconf.
3145 for ac_file in $ac_files ''
3146 do
3147   test -f "$ac_file" || continue
3148   case $ac_file in
3149     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3150         ;;
3151     [ab].out )
3152         # We found the default executable, but exeext='' is most
3153         # certainly right.
3154         break;;
3155     *.* )
3156         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3157         then :; else
3158            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3159         fi
3160         # We set ac_cv_exeext here because the later test for it is not
3161         # safe: cross compilers may not add the suffix if given an `-o'
3162         # argument, so we may need to know it at that point already.
3163         # Even if this section looks crufty: it has the advantage of
3164         # actually working.
3165         break;;
3166     * )
3167         break;;
3168   esac
3169 done
3170 test "$ac_cv_exeext" = no && ac_cv_exeext=
3172 else
3173   ac_file=''
3174 fi
3175 if test -z "$ac_file"; then :
3176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3178 $as_echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183 as_fn_error 77 "C compiler cannot create executables
3184 See \`config.log' for more details" "$LINENO" 5; }
3185 else
3186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3187 $as_echo "yes" >&6; }
3188 fi
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3190 $as_echo_n "checking for C compiler default output file name... " >&6; }
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3192 $as_echo "$ac_file" >&6; }
3193 ac_exeext=$ac_cv_exeext
3195 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3196 ac_clean_files=$ac_clean_files_save
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3198 $as_echo_n "checking for suffix of executables... " >&6; }
3199 if { { ac_try="$ac_link"
3200 case "(($ac_try" in
3201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202   *) ac_try_echo=$ac_try;;
3203 esac
3204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3205 $as_echo "$ac_try_echo"; } >&5
3206   (eval "$ac_link") 2>&5
3207   ac_status=$?
3208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209   test $ac_status = 0; }; then :
3210   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3211 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3212 # work properly (i.e., refer to `conftest.exe'), while it won't with
3213 # `rm'.
3214 for ac_file in conftest.exe conftest conftest.*; do
3215   test -f "$ac_file" || continue
3216   case $ac_file in
3217     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3218     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3219           break;;
3220     * ) break;;
3221   esac
3222 done
3223 else
3224   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3227 See \`config.log' for more details" "$LINENO" 5; }
3228 fi
3229 rm -f conftest conftest$ac_cv_exeext
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3231 $as_echo "$ac_cv_exeext" >&6; }
3233 rm -f conftest.$ac_ext
3234 EXEEXT=$ac_cv_exeext
3235 ac_exeext=$EXEEXT
3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h.  */
3238 #include <stdio.h>
3239 int
3240 main ()
3242 FILE *f = fopen ("conftest.out", "w");
3243  return ferror (f) || fclose (f) != 0;
3245   ;
3246   return 0;
3248 _ACEOF
3249 ac_clean_files="$ac_clean_files conftest.out"
3250 # Check that the compiler produces executables we can run.  If not, either
3251 # the compiler is broken, or we cross compile.
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3253 $as_echo_n "checking whether we are cross compiling... " >&6; }
3254 if test "$cross_compiling" != yes; then
3255   { { ac_try="$ac_link"
3256 case "(($ac_try" in
3257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258   *) ac_try_echo=$ac_try;;
3259 esac
3260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261 $as_echo "$ac_try_echo"; } >&5
3262   (eval "$ac_link") 2>&5
3263   ac_status=$?
3264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265   test $ac_status = 0; }
3266   if { ac_try='./conftest$ac_cv_exeext'
3267   { { case "(($ac_try" in
3268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269   *) ac_try_echo=$ac_try;;
3270 esac
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273   (eval "$ac_try") 2>&5
3274   ac_status=$?
3275   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276   test $ac_status = 0; }; }; then
3277     cross_compiling=no
3278   else
3279     if test "$cross_compiling" = maybe; then
3280         cross_compiling=yes
3281     else
3282         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284 as_fn_error $? "cannot run C compiled programs.
3285 If you meant to cross compile, use \`--host'.
3286 See \`config.log' for more details" "$LINENO" 5; }
3287     fi
3288   fi
3289 fi
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3291 $as_echo "$cross_compiling" >&6; }
3293 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3294 ac_clean_files=$ac_clean_files_save
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3296 $as_echo_n "checking for suffix of object files... " >&6; }
3297 if ${ac_cv_objext+:} false; then :
3298   $as_echo_n "(cached) " >&6
3299 else
3300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h.  */
3303 int
3304 main ()
3307   ;
3308   return 0;
3310 _ACEOF
3311 rm -f conftest.o conftest.obj
3312 if { { ac_try="$ac_compile"
3313 case "(($ac_try" in
3314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315   *) ac_try_echo=$ac_try;;
3316 esac
3317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318 $as_echo "$ac_try_echo"; } >&5
3319   (eval "$ac_compile") 2>&5
3320   ac_status=$?
3321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322   test $ac_status = 0; }; then :
3323   for ac_file in conftest.o conftest.obj conftest.*; do
3324   test -f "$ac_file" || continue;
3325   case $ac_file in
3326     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3327     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3328        break;;
3329   esac
3330 done
3331 else
3332   $as_echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337 as_fn_error $? "cannot compute suffix of object files: cannot compile
3338 See \`config.log' for more details" "$LINENO" 5; }
3339 fi
3340 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3341 fi
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3343 $as_echo "$ac_cv_objext" >&6; }
3344 OBJEXT=$ac_cv_objext
3345 ac_objext=$OBJEXT
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3347 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3348 if ${ac_cv_c_compiler_gnu+:} false; then :
3349   $as_echo_n "(cached) " >&6
3350 else
3351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h.  */
3354 int
3355 main ()
3357 #ifndef __GNUC__
3358        choke me
3359 #endif
3361   ;
3362   return 0;
3364 _ACEOF
3365 if ac_fn_c_try_compile "$LINENO"; then :
3366   ac_compiler_gnu=yes
3367 else
3368   ac_compiler_gnu=no
3369 fi
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3373 fi
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3375 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3376 if test $ac_compiler_gnu = yes; then
3377   GCC=yes
3378 else
3379   GCC=
3380 fi
3381 ac_test_CFLAGS=${CFLAGS+set}
3382 ac_save_CFLAGS=$CFLAGS
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3384 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3385 if ${ac_cv_prog_cc_g+:} false; then :
3386   $as_echo_n "(cached) " >&6
3387 else
3388   ac_save_c_werror_flag=$ac_c_werror_flag
3389    ac_c_werror_flag=yes
3390    ac_cv_prog_cc_g=no
3391    CFLAGS="-g"
3392    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393 /* end confdefs.h.  */
3395 int
3396 main ()
3399   ;
3400   return 0;
3402 _ACEOF
3403 if ac_fn_c_try_compile "$LINENO"; then :
3404   ac_cv_prog_cc_g=yes
3405 else
3406   CFLAGS=""
3407       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h.  */
3410 int
3411 main ()
3414   ;
3415   return 0;
3417 _ACEOF
3418 if ac_fn_c_try_compile "$LINENO"; then :
3420 else
3421   ac_c_werror_flag=$ac_save_c_werror_flag
3422          CFLAGS="-g"
3423          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h.  */
3426 int
3427 main ()
3430   ;
3431   return 0;
3433 _ACEOF
3434 if ac_fn_c_try_compile "$LINENO"; then :
3435   ac_cv_prog_cc_g=yes
3436 fi
3437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3438 fi
3439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3440 fi
3441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3442    ac_c_werror_flag=$ac_save_c_werror_flag
3443 fi
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3445 $as_echo "$ac_cv_prog_cc_g" >&6; }
3446 if test "$ac_test_CFLAGS" = set; then
3447   CFLAGS=$ac_save_CFLAGS
3448 elif test $ac_cv_prog_cc_g = yes; then
3449   if test "$GCC" = yes; then
3450     CFLAGS="-g -O2"
3451   else
3452     CFLAGS="-g"
3453   fi
3454 else
3455   if test "$GCC" = yes; then
3456     CFLAGS="-O2"
3457   else
3458     CFLAGS=
3459   fi
3460 fi
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3462 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3463 if ${ac_cv_prog_cc_c89+:} false; then :
3464   $as_echo_n "(cached) " >&6
3465 else
3466   ac_cv_prog_cc_c89=no
3467 ac_save_CC=$CC
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h.  */
3470 #include <stdarg.h>
3471 #include <stdio.h>
3472 #include <sys/types.h>
3473 #include <sys/stat.h>
3474 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3475 struct buf { int x; };
3476 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3477 static char *e (p, i)
3478      char **p;
3479      int i;
3481   return p[i];
3483 static char *f (char * (*g) (char **, int), char **p, ...)
3485   char *s;
3486   va_list v;
3487   va_start (v,p);
3488   s = g (p, va_arg (v,int));
3489   va_end (v);
3490   return s;
3493 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3494    function prototypes and stuff, but not '\xHH' hex character constants.
3495    These don't provoke an error unfortunately, instead are silently treated
3496    as 'x'.  The following induces an error, until -std is added to get
3497    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3498    array size at least.  It's necessary to write '\x00'==0 to get something
3499    that's true only with -std.  */
3500 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3502 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3503    inside strings and character constants.  */
3504 #define FOO(x) 'x'
3505 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3507 int test (int i, double x);
3508 struct s1 {int (*f) (int a);};
3509 struct s2 {int (*f) (double a);};
3510 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3511 int argc;
3512 char **argv;
3513 int
3514 main ()
3516 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3517   ;
3518   return 0;
3520 _ACEOF
3521 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3522         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3523 do
3524   CC="$ac_save_CC $ac_arg"
3525   if ac_fn_c_try_compile "$LINENO"; then :
3526   ac_cv_prog_cc_c89=$ac_arg
3527 fi
3528 rm -f core conftest.err conftest.$ac_objext
3529   test "x$ac_cv_prog_cc_c89" != "xno" && break
3530 done
3531 rm -f conftest.$ac_ext
3532 CC=$ac_save_CC
3534 fi
3535 # AC_CACHE_VAL
3536 case "x$ac_cv_prog_cc_c89" in
3537   x)
3538     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3539 $as_echo "none needed" >&6; } ;;
3540   xno)
3541     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3542 $as_echo "unsupported" >&6; } ;;
3543   *)
3544     CC="$CC $ac_cv_prog_cc_c89"
3545     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3546 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3547 esac
3548 if test "x$ac_cv_prog_cc_c89" != xno; then :
3550 fi
3552 ac_ext=c
3553 ac_cpp='$CPP $CPPFLAGS'
3554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3559 ac_ext=c
3560 ac_cpp='$CPP $CPPFLAGS'
3561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3565 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3566 # On Suns, sometimes $CPP names a directory.
3567 if test -n "$CPP" && test -d "$CPP"; then
3568   CPP=
3569 fi
3570 if test -z "$CPP"; then
3571   if ${ac_cv_prog_CPP+:} false; then :
3572   $as_echo_n "(cached) " >&6
3573 else
3574       # Double quotes because CPP needs to be expanded
3575     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3576     do
3577       ac_preproc_ok=false
3578 for ac_c_preproc_warn_flag in '' yes
3579 do
3580   # Use a header file that comes with gcc, so configuring glibc
3581   # with a fresh cross-compiler works.
3582   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3583   # <limits.h> exists even on freestanding compilers.
3584   # On the NeXT, cc -E runs the code through the compiler's parser,
3585   # not just through cpp. "Syntax error" is here to catch this case.
3586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h.  */
3588 #ifdef __STDC__
3589 # include <limits.h>
3590 #else
3591 # include <assert.h>
3592 #endif
3593                      Syntax error
3594 _ACEOF
3595 if ac_fn_c_try_cpp "$LINENO"; then :
3597 else
3598   # Broken: fails on valid input.
3599 continue
3600 fi
3601 rm -f conftest.err conftest.i conftest.$ac_ext
3603   # OK, works on sane cases.  Now check whether nonexistent headers
3604   # can be detected and how.
3605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h.  */
3607 #include <ac_nonexistent.h>
3608 _ACEOF
3609 if ac_fn_c_try_cpp "$LINENO"; then :
3610   # Broken: success on invalid input.
3611 continue
3612 else
3613   # Passes both tests.
3614 ac_preproc_ok=:
3615 break
3616 fi
3617 rm -f conftest.err conftest.i conftest.$ac_ext
3619 done
3620 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3621 rm -f conftest.i conftest.err conftest.$ac_ext
3622 if $ac_preproc_ok; then :
3623   break
3624 fi
3626     done
3627     ac_cv_prog_CPP=$CPP
3629 fi
3630   CPP=$ac_cv_prog_CPP
3631 else
3632   ac_cv_prog_CPP=$CPP
3633 fi
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3635 $as_echo "$CPP" >&6; }
3636 ac_preproc_ok=false
3637 for ac_c_preproc_warn_flag in '' yes
3638 do
3639   # Use a header file that comes with gcc, so configuring glibc
3640   # with a fresh cross-compiler works.
3641   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3642   # <limits.h> exists even on freestanding compilers.
3643   # On the NeXT, cc -E runs the code through the compiler's parser,
3644   # not just through cpp. "Syntax error" is here to catch this case.
3645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h.  */
3647 #ifdef __STDC__
3648 # include <limits.h>
3649 #else
3650 # include <assert.h>
3651 #endif
3652                      Syntax error
3653 _ACEOF
3654 if ac_fn_c_try_cpp "$LINENO"; then :
3656 else
3657   # Broken: fails on valid input.
3658 continue
3659 fi
3660 rm -f conftest.err conftest.i conftest.$ac_ext
3662   # OK, works on sane cases.  Now check whether nonexistent headers
3663   # can be detected and how.
3664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h.  */
3666 #include <ac_nonexistent.h>
3667 _ACEOF
3668 if ac_fn_c_try_cpp "$LINENO"; then :
3669   # Broken: success on invalid input.
3670 continue
3671 else
3672   # Passes both tests.
3673 ac_preproc_ok=:
3674 break
3675 fi
3676 rm -f conftest.err conftest.i conftest.$ac_ext
3678 done
3679 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3680 rm -f conftest.i conftest.err conftest.$ac_ext
3681 if $ac_preproc_ok; then :
3683 else
3684   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3687 See \`config.log' for more details" "$LINENO" 5; }
3688 fi
3690 ac_ext=c
3691 ac_cpp='$CPP $CPPFLAGS'
3692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3698 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3699 if ${ac_cv_path_GREP+:} false; then :
3700   $as_echo_n "(cached) " >&6
3701 else
3702   if test -z "$GREP"; then
3703   ac_path_GREP_found=false
3704   # Loop through the user's path and test for each of PROGNAME-LIST
3705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3707 do
3708   IFS=$as_save_IFS
3709   test -z "$as_dir" && as_dir=.
3710     for ac_prog in grep ggrep; do
3711     for ac_exec_ext in '' $ac_executable_extensions; do
3712       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3713       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3714 # Check for GNU ac_path_GREP and select it if it is found.
3715   # Check for GNU $ac_path_GREP
3716 case `"$ac_path_GREP" --version 2>&1` in
3717 *GNU*)
3718   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3719 *)
3720   ac_count=0
3721   $as_echo_n 0123456789 >"conftest.in"
3722   while :
3723   do
3724     cat "conftest.in" "conftest.in" >"conftest.tmp"
3725     mv "conftest.tmp" "conftest.in"
3726     cp "conftest.in" "conftest.nl"
3727     $as_echo 'GREP' >> "conftest.nl"
3728     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3729     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3730     as_fn_arith $ac_count + 1 && ac_count=$as_val
3731     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3732       # Best one so far, save it but keep looking for a better one
3733       ac_cv_path_GREP="$ac_path_GREP"
3734       ac_path_GREP_max=$ac_count
3735     fi
3736     # 10*(2^10) chars as input seems more than enough
3737     test $ac_count -gt 10 && break
3738   done
3739   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3740 esac
3742       $ac_path_GREP_found && break 3
3743     done
3744   done
3745   done
3746 IFS=$as_save_IFS
3747   if test -z "$ac_cv_path_GREP"; then
3748     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3749   fi
3750 else
3751   ac_cv_path_GREP=$GREP
3752 fi
3754 fi
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3756 $as_echo "$ac_cv_path_GREP" >&6; }
3757  GREP="$ac_cv_path_GREP"
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3761 $as_echo_n "checking for egrep... " >&6; }
3762 if ${ac_cv_path_EGREP+:} false; then :
3763   $as_echo_n "(cached) " >&6
3764 else
3765   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3766    then ac_cv_path_EGREP="$GREP -E"
3767    else
3768      if test -z "$EGREP"; then
3769   ac_path_EGREP_found=false
3770   # Loop through the user's path and test for each of PROGNAME-LIST
3771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3773 do
3774   IFS=$as_save_IFS
3775   test -z "$as_dir" && as_dir=.
3776     for ac_prog in egrep; do
3777     for ac_exec_ext in '' $ac_executable_extensions; do
3778       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3779       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3780 # Check for GNU ac_path_EGREP and select it if it is found.
3781   # Check for GNU $ac_path_EGREP
3782 case `"$ac_path_EGREP" --version 2>&1` in
3783 *GNU*)
3784   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3785 *)
3786   ac_count=0
3787   $as_echo_n 0123456789 >"conftest.in"
3788   while :
3789   do
3790     cat "conftest.in" "conftest.in" >"conftest.tmp"
3791     mv "conftest.tmp" "conftest.in"
3792     cp "conftest.in" "conftest.nl"
3793     $as_echo 'EGREP' >> "conftest.nl"
3794     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3795     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3796     as_fn_arith $ac_count + 1 && ac_count=$as_val
3797     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3798       # Best one so far, save it but keep looking for a better one
3799       ac_cv_path_EGREP="$ac_path_EGREP"
3800       ac_path_EGREP_max=$ac_count
3801     fi
3802     # 10*(2^10) chars as input seems more than enough
3803     test $ac_count -gt 10 && break
3804   done
3805   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3806 esac
3808       $ac_path_EGREP_found && break 3
3809     done
3810   done
3811   done
3812 IFS=$as_save_IFS
3813   if test -z "$ac_cv_path_EGREP"; then
3814     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3815   fi
3816 else
3817   ac_cv_path_EGREP=$EGREP
3818 fi
3820    fi
3821 fi
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3823 $as_echo "$ac_cv_path_EGREP" >&6; }
3824  EGREP="$ac_cv_path_EGREP"
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3828 $as_echo_n "checking for ANSI C header files... " >&6; }
3829 if ${ac_cv_header_stdc+:} false; then :
3830   $as_echo_n "(cached) " >&6
3831 else
3832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h.  */
3834 #include <stdlib.h>
3835 #include <stdarg.h>
3836 #include <string.h>
3837 #include <float.h>
3839 int
3840 main ()
3843   ;
3844   return 0;
3846 _ACEOF
3847 if ac_fn_c_try_compile "$LINENO"; then :
3848   ac_cv_header_stdc=yes
3849 else
3850   ac_cv_header_stdc=no
3851 fi
3852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 if test $ac_cv_header_stdc = yes; then
3855   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h.  */
3858 #include <string.h>
3860 _ACEOF
3861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3862   $EGREP "memchr" >/dev/null 2>&1; then :
3864 else
3865   ac_cv_header_stdc=no
3866 fi
3867 rm -f conftest*
3869 fi
3871 if test $ac_cv_header_stdc = yes; then
3872   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h.  */
3875 #include <stdlib.h>
3877 _ACEOF
3878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3879   $EGREP "free" >/dev/null 2>&1; then :
3881 else
3882   ac_cv_header_stdc=no
3883 fi
3884 rm -f conftest*
3886 fi
3888 if test $ac_cv_header_stdc = yes; then
3889   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3890   if test "$cross_compiling" = yes; then :
3891   :
3892 else
3893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h.  */
3895 #include <ctype.h>
3896 #include <stdlib.h>
3897 #if ((' ' & 0x0FF) == 0x020)
3898 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3899 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3900 #else
3901 # define ISLOWER(c) \
3902                    (('a' <= (c) && (c) <= 'i') \
3903                      || ('j' <= (c) && (c) <= 'r') \
3904                      || ('s' <= (c) && (c) <= 'z'))
3905 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3906 #endif
3908 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3909 int
3910 main ()
3912   int i;
3913   for (i = 0; i < 256; i++)
3914     if (XOR (islower (i), ISLOWER (i))
3915         || toupper (i) != TOUPPER (i))
3916       return 2;
3917   return 0;
3919 _ACEOF
3920 if ac_fn_c_try_run "$LINENO"; then :
3922 else
3923   ac_cv_header_stdc=no
3924 fi
3925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3926   conftest.$ac_objext conftest.beam conftest.$ac_ext
3927 fi
3929 fi
3930 fi
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3932 $as_echo "$ac_cv_header_stdc" >&6; }
3933 if test $ac_cv_header_stdc = yes; then
3935 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3937 fi
3939 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3940 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3941                   inttypes.h stdint.h unistd.h
3942 do :
3943   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3944 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3946 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3947   cat >>confdefs.h <<_ACEOF
3948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3949 _ACEOF
3951 fi
3953 done
3957   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3958 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3959   MINIX=yes
3960 else
3961   MINIX=
3962 fi
3965   if test "$MINIX" = yes; then
3967 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3970 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3973 $as_echo "#define _MINIX 1" >>confdefs.h
3975   fi
3978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3979 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3980 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3981   $as_echo_n "(cached) " >&6
3982 else
3983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h.  */
3986 #         define __EXTENSIONS__ 1
3987           $ac_includes_default
3988 int
3989 main ()
3992   ;
3993   return 0;
3995 _ACEOF
3996 if ac_fn_c_try_compile "$LINENO"; then :
3997   ac_cv_safe_to_define___extensions__=yes
3998 else
3999   ac_cv_safe_to_define___extensions__=no
4000 fi
4001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002 fi
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4004 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4005   test $ac_cv_safe_to_define___extensions__ = yes &&
4006     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4008   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4010   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4012   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4014   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4017 am__api_version='1.11'
4019 # Find a good install program.  We prefer a C program (faster),
4020 # so one script is as good as another.  But avoid the broken or
4021 # incompatible versions:
4022 # SysV /etc/install, /usr/sbin/install
4023 # SunOS /usr/etc/install
4024 # IRIX /sbin/install
4025 # AIX /bin/install
4026 # AmigaOS /C/install, which installs bootblocks on floppy discs
4027 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4028 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4029 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4030 # OS/2's system install, which has a completely different semantic
4031 # ./install, which can be erroneously created by make from ./install.sh.
4032 # Reject install programs that cannot install multiple files.
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4034 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4035 if test -z "$INSTALL"; then
4036 if ${ac_cv_path_install+:} false; then :
4037   $as_echo_n "(cached) " >&6
4038 else
4039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4041 do
4042   IFS=$as_save_IFS
4043   test -z "$as_dir" && as_dir=.
4044     # Account for people who put trailing slashes in PATH elements.
4045 case $as_dir/ in #((
4046   ./ | .// | /[cC]/* | \
4047   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4048   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4049   /usr/ucb/* ) ;;
4050   *)
4051     # OSF1 and SCO ODT 3.0 have their own names for install.
4052     # Don't use installbsd from OSF since it installs stuff as root
4053     # by default.
4054     for ac_prog in ginstall scoinst install; do
4055       for ac_exec_ext in '' $ac_executable_extensions; do
4056         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4057           if test $ac_prog = install &&
4058             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4059             # AIX install.  It has an incompatible calling convention.
4060             :
4061           elif test $ac_prog = install &&
4062             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4063             # program-specific install script used by HP pwplus--don't use.
4064             :
4065           else
4066             rm -rf conftest.one conftest.two conftest.dir
4067             echo one > conftest.one
4068             echo two > conftest.two
4069             mkdir conftest.dir
4070             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4071               test -s conftest.one && test -s conftest.two &&
4072               test -s conftest.dir/conftest.one &&
4073               test -s conftest.dir/conftest.two
4074             then
4075               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4076               break 3
4077             fi
4078           fi
4079         fi
4080       done
4081     done
4082     ;;
4083 esac
4085   done
4086 IFS=$as_save_IFS
4088 rm -rf conftest.one conftest.two conftest.dir
4090 fi
4091   if test "${ac_cv_path_install+set}" = set; then
4092     INSTALL=$ac_cv_path_install
4093   else
4094     # As a last resort, use the slow shell script.  Don't cache a
4095     # value for INSTALL within a source directory, because that will
4096     # break other packages using the cache if that directory is
4097     # removed, or if the value is a relative name.
4098     INSTALL=$ac_install_sh
4099   fi
4100 fi
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4102 $as_echo "$INSTALL" >&6; }
4104 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4105 # It thinks the first close brace ends the variable substitution.
4106 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4108 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4110 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4113 $as_echo_n "checking whether build environment is sane... " >&6; }
4114 # Just in case
4115 sleep 1
4116 echo timestamp > conftest.file
4117 # Reject unsafe characters in $srcdir or the absolute working directory
4118 # name.  Accept space and tab only in the latter.
4119 am_lf='
4121 case `pwd` in
4122   *[\\\"\#\$\&\'\`$am_lf]*)
4123     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4124 esac
4125 case $srcdir in
4126   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4127     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4128 esac
4130 # Do `set' in a subshell so we don't clobber the current shell's
4131 # arguments.  Must try -L first in case configure is actually a
4132 # symlink; some systems play weird games with the mod time of symlinks
4133 # (eg FreeBSD returns the mod time of the symlink's containing
4134 # directory).
4135 if (
4136    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4137    if test "$*" = "X"; then
4138       # -L didn't work.
4139       set X `ls -t "$srcdir/configure" conftest.file`
4140    fi
4141    rm -f conftest.file
4142    if test "$*" != "X $srcdir/configure conftest.file" \
4143       && test "$*" != "X conftest.file $srcdir/configure"; then
4145       # If neither matched, then we have a broken ls.  This can happen
4146       # if, for instance, CONFIG_SHELL is bash and it inherits a
4147       # broken ls alias from the environment.  This has actually
4148       # happened.  Such a system could not be considered "sane".
4149       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4150 alias in your environment" "$LINENO" 5
4151    fi
4153    test "$2" = conftest.file
4154    )
4155 then
4156    # Ok.
4157    :
4158 else
4159    as_fn_error $? "newly created file is older than distributed files!
4160 Check your system clock" "$LINENO" 5
4161 fi
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4163 $as_echo "yes" >&6; }
4164 test "$program_prefix" != NONE &&
4165   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4166 # Use a double $ so make ignores it.
4167 test "$program_suffix" != NONE &&
4168   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4169 # Double any \ or $.
4170 # By default was `s,x,x', remove it if useless.
4171 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4172 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4174 # expand $ac_aux_dir to an absolute path
4175 am_aux_dir=`cd $ac_aux_dir && pwd`
4177 if test x"${MISSING+set}" != xset; then
4178   case $am_aux_dir in
4179   *\ * | *\     *)
4180     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4181   *)
4182     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4183   esac
4184 fi
4185 # Use eval to expand $SHELL
4186 if eval "$MISSING --run true"; then
4187   am_missing_run="$MISSING --run "
4188 else
4189   am_missing_run=
4190   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4191 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4192 fi
4194 if test x"${install_sh}" != xset; then
4195   case $am_aux_dir in
4196   *\ * | *\     *)
4197     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4198   *)
4199     install_sh="\${SHELL} $am_aux_dir/install-sh"
4200   esac
4201 fi
4203 # Installed binaries are usually stripped using `strip' when the user
4204 # run `make install-strip'.  However `strip' might not be the right
4205 # tool to use in cross-compilation environments, therefore Automake
4206 # will honor the `STRIP' environment variable to overrule this program.
4207 if test "$cross_compiling" != no; then
4208   if test -n "$ac_tool_prefix"; then
4209   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4210 set dummy ${ac_tool_prefix}strip; ac_word=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if ${ac_cv_prog_STRIP+:} false; then :
4214   $as_echo_n "(cached) " >&6
4215 else
4216   if test -n "$STRIP"; then
4217   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4218 else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH
4221 do
4222   IFS=$as_save_IFS
4223   test -z "$as_dir" && as_dir=.
4224     for ac_exec_ext in '' $ac_executable_extensions; do
4225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4226     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228     break 2
4229   fi
4230 done
4231   done
4232 IFS=$as_save_IFS
4234 fi
4235 fi
4236 STRIP=$ac_cv_prog_STRIP
4237 if test -n "$STRIP"; then
4238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4239 $as_echo "$STRIP" >&6; }
4240 else
4241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4243 fi
4246 fi
4247 if test -z "$ac_cv_prog_STRIP"; then
4248   ac_ct_STRIP=$STRIP
4249   # Extract the first word of "strip", so it can be a program name with args.
4250 set dummy strip; ac_word=$2
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4252 $as_echo_n "checking for $ac_word... " >&6; }
4253 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4254   $as_echo_n "(cached) " >&6
4255 else
4256   if test -n "$ac_ct_STRIP"; then
4257   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4258 else
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH
4261 do
4262   IFS=$as_save_IFS
4263   test -z "$as_dir" && as_dir=.
4264     for ac_exec_ext in '' $ac_executable_extensions; do
4265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4266     ac_cv_prog_ac_ct_STRIP="strip"
4267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4268     break 2
4269   fi
4270 done
4271   done
4272 IFS=$as_save_IFS
4274 fi
4275 fi
4276 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4277 if test -n "$ac_ct_STRIP"; then
4278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4279 $as_echo "$ac_ct_STRIP" >&6; }
4280 else
4281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 $as_echo "no" >&6; }
4283 fi
4285   if test "x$ac_ct_STRIP" = x; then
4286     STRIP=":"
4287   else
4288     case $cross_compiling:$ac_tool_warned in
4289 yes:)
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4292 ac_tool_warned=yes ;;
4293 esac
4294     STRIP=$ac_ct_STRIP
4295   fi
4296 else
4297   STRIP="$ac_cv_prog_STRIP"
4298 fi
4300 fi
4301 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4304 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4305 if test -z "$MKDIR_P"; then
4306   if ${ac_cv_path_mkdir+:} false; then :
4307   $as_echo_n "(cached) " >&6
4308 else
4309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4311 do
4312   IFS=$as_save_IFS
4313   test -z "$as_dir" && as_dir=.
4314     for ac_prog in mkdir gmkdir; do
4315          for ac_exec_ext in '' $ac_executable_extensions; do
4316            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4317            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4318              'mkdir (GNU coreutils) '* | \
4319              'mkdir (coreutils) '* | \
4320              'mkdir (fileutils) '4.1*)
4321                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4322                break 3;;
4323            esac
4324          done
4325        done
4326   done
4327 IFS=$as_save_IFS
4329 fi
4331   test -d ./--version && rmdir ./--version
4332   if test "${ac_cv_path_mkdir+set}" = set; then
4333     MKDIR_P="$ac_cv_path_mkdir -p"
4334   else
4335     # As a last resort, use the slow shell script.  Don't cache a
4336     # value for MKDIR_P within a source directory, because that will
4337     # break other packages using the cache if that directory is
4338     # removed, or if the value is a relative name.
4339     MKDIR_P="$ac_install_sh -d"
4340   fi
4341 fi
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4343 $as_echo "$MKDIR_P" >&6; }
4345 mkdir_p="$MKDIR_P"
4346 case $mkdir_p in
4347   [\\/$]* | ?:[\\/]*) ;;
4348   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4349 esac
4351 for ac_prog in gawk mawk nawk awk
4352 do
4353   # Extract the first word of "$ac_prog", so it can be a program name with args.
4354 set dummy $ac_prog; ac_word=$2
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356 $as_echo_n "checking for $ac_word... " >&6; }
4357 if ${ac_cv_prog_AWK+:} false; then :
4358   $as_echo_n "(cached) " >&6
4359 else
4360   if test -n "$AWK"; then
4361   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4365 do
4366   IFS=$as_save_IFS
4367   test -z "$as_dir" && as_dir=.
4368     for ac_exec_ext in '' $ac_executable_extensions; do
4369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4370     ac_cv_prog_AWK="$ac_prog"
4371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372     break 2
4373   fi
4374 done
4375   done
4376 IFS=$as_save_IFS
4378 fi
4379 fi
4380 AWK=$ac_cv_prog_AWK
4381 if test -n "$AWK"; then
4382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4383 $as_echo "$AWK" >&6; }
4384 else
4385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4387 fi
4390   test -n "$AWK" && break
4391 done
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4394 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4395 set x ${MAKE-make}
4396 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4397 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4398   $as_echo_n "(cached) " >&6
4399 else
4400   cat >conftest.make <<\_ACEOF
4401 SHELL = /bin/sh
4402 all:
4403         @echo '@@@%%%=$(MAKE)=@@@%%%'
4404 _ACEOF
4405 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4406 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4407   *@@@%%%=?*=@@@%%%*)
4408     eval ac_cv_prog_make_${ac_make}_set=yes;;
4409   *)
4410     eval ac_cv_prog_make_${ac_make}_set=no;;
4411 esac
4412 rm -f conftest.make
4413 fi
4414 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4416 $as_echo "yes" >&6; }
4417   SET_MAKE=
4418 else
4419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4421   SET_MAKE="MAKE=${MAKE-make}"
4422 fi
4424 rm -rf .tst 2>/dev/null
4425 mkdir .tst 2>/dev/null
4426 if test -d .tst; then
4427   am__leading_dot=.
4428 else
4429   am__leading_dot=_
4430 fi
4431 rmdir .tst 2>/dev/null
4433 DEPDIR="${am__leading_dot}deps"
4435 ac_config_commands="$ac_config_commands depfiles"
4438 am_make=${MAKE-make}
4439 cat > confinc << 'END'
4440 am__doit:
4441         @echo this is the am__doit target
4442 .PHONY: am__doit
4443 END
4444 # If we don't find an include directive, just comment out the code.
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4446 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4447 am__include="#"
4448 am__quote=
4449 _am_result=none
4450 # First try GNU make style include.
4451 echo "include confinc" > confmf
4452 # Ignore all kinds of additional output from `make'.
4453 case `$am_make -s -f confmf 2> /dev/null` in #(
4454 *the\ am__doit\ target*)
4455   am__include=include
4456   am__quote=
4457   _am_result=GNU
4458   ;;
4459 esac
4460 # Now try BSD make style include.
4461 if test "$am__include" = "#"; then
4462    echo '.include "confinc"' > confmf
4463    case `$am_make -s -f confmf 2> /dev/null` in #(
4464    *the\ am__doit\ target*)
4465      am__include=.include
4466      am__quote="\""
4467      _am_result=BSD
4468      ;;
4469    esac
4470 fi
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4474 $as_echo "$_am_result" >&6; }
4475 rm -f confinc confmf
4477 # Check whether --enable-dependency-tracking was given.
4478 if test "${enable_dependency_tracking+set}" = set; then :
4479   enableval=$enable_dependency_tracking;
4480 fi
4482 if test "x$enable_dependency_tracking" != xno; then
4483   am_depcomp="$ac_aux_dir/depcomp"
4484   AMDEPBACKSLASH='\'
4485   am__nodep='_no'
4486 fi
4487  if test "x$enable_dependency_tracking" != xno; then
4488   AMDEP_TRUE=
4489   AMDEP_FALSE='#'
4490 else
4491   AMDEP_TRUE='#'
4492   AMDEP_FALSE=
4493 fi
4496 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4497   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4498   # is not polluted with repeated "-I."
4499   am__isrc=' -I$(srcdir)'
4500   # test to see if srcdir already configured
4501   if test -f $srcdir/config.status; then
4502     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4503   fi
4504 fi
4506 # test whether we have cygpath
4507 if test -z "$CYGPATH_W"; then
4508   if (cygpath --version) >/dev/null 2>/dev/null; then
4509     CYGPATH_W='cygpath -w'
4510   else
4511     CYGPATH_W=echo
4512   fi
4513 fi
4516 # Define the identity of the package.
4517  PACKAGE='rrdtool'
4518  VERSION='1.4.8'
4521 cat >>confdefs.h <<_ACEOF
4522 #define PACKAGE "$PACKAGE"
4523 _ACEOF
4526 cat >>confdefs.h <<_ACEOF
4527 #define VERSION "$VERSION"
4528 _ACEOF
4530 # Some tools Automake needs.
4532 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4535 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4538 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4541 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4544 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4546 # We need awk for the "check" target.  The system "awk" is bad on
4547 # some platforms.
4548 # Always define AMTAR for backward compatibility.  Yes, it's still used
4549 # in the wild :-(  We should find a proper way to deprecate it ...
4550 AMTAR='$${TAR-tar}'
4552 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4557 depcc="$CC"   am_compiler_list=
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4560 $as_echo_n "checking dependency style of $depcc... " >&6; }
4561 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4562   $as_echo_n "(cached) " >&6
4563 else
4564   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4565   # We make a subdir and do the tests there.  Otherwise we can end up
4566   # making bogus files that we don't know about and never remove.  For
4567   # instance it was reported that on HP-UX the gcc test will end up
4568   # making a dummy file named `D' -- because `-MD' means `put the output
4569   # in D'.
4570   rm -rf conftest.dir
4571   mkdir conftest.dir
4572   # Copy depcomp to subdir because otherwise we won't find it if we're
4573   # using a relative directory.
4574   cp "$am_depcomp" conftest.dir
4575   cd conftest.dir
4576   # We will build objects and dependencies in a subdirectory because
4577   # it helps to detect inapplicable dependency modes.  For instance
4578   # both Tru64's cc and ICC support -MD to output dependencies as a
4579   # side effect of compilation, but ICC will put the dependencies in
4580   # the current directory while Tru64 will put them in the object
4581   # directory.
4582   mkdir sub
4584   am_cv_CC_dependencies_compiler_type=none
4585   if test "$am_compiler_list" = ""; then
4586      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4587   fi
4588   am__universal=false
4589   case " $depcc " in #(
4590      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4591      esac
4593   for depmode in $am_compiler_list; do
4594     # Setup a source with many dependencies, because some compilers
4595     # like to wrap large dependency lists on column 80 (with \), and
4596     # we should not choose a depcomp mode which is confused by this.
4597     #
4598     # We need to recreate these files for each test, as the compiler may
4599     # overwrite some of them when testing with obscure command lines.
4600     # This happens at least with the AIX C compiler.
4601     : > sub/conftest.c
4602     for i in 1 2 3 4 5 6; do
4603       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4604       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4605       # Solaris 8's {/usr,}/bin/sh.
4606       touch sub/conftst$i.h
4607     done
4608     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4610     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4611     # mode.  It turns out that the SunPro C++ compiler does not properly
4612     # handle `-M -o', and we need to detect this.  Also, some Intel
4613     # versions had trouble with output in subdirs
4614     am__obj=sub/conftest.${OBJEXT-o}
4615     am__minus_obj="-o $am__obj"
4616     case $depmode in
4617     gcc)
4618       # This depmode causes a compiler race in universal mode.
4619       test "$am__universal" = false || continue
4620       ;;
4621     nosideeffect)
4622       # after this tag, mechanisms are not by side-effect, so they'll
4623       # only be used when explicitly requested
4624       if test "x$enable_dependency_tracking" = xyes; then
4625         continue
4626       else
4627         break
4628       fi
4629       ;;
4630     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4631       # This compiler won't grok `-c -o', but also, the minuso test has
4632       # not run yet.  These depmodes are late enough in the game, and
4633       # so weak that their functioning should not be impacted.
4634       am__obj=conftest.${OBJEXT-o}
4635       am__minus_obj=
4636       ;;
4637     none) break ;;
4638     esac
4639     if depmode=$depmode \
4640        source=sub/conftest.c object=$am__obj \
4641        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4642        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4643          >/dev/null 2>conftest.err &&
4644        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4645        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4646        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4647        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4648       # icc doesn't choke on unknown options, it will just issue warnings
4649       # or remarks (even with -Werror).  So we grep stderr for any message
4650       # that says an option was ignored or not supported.
4651       # When given -MP, icc 7.0 and 7.1 complain thusly:
4652       #   icc: Command line warning: ignoring option '-M'; no argument required
4653       # The diagnosis changed in icc 8.0:
4654       #   icc: Command line remark: option '-MP' not supported
4655       if (grep 'ignoring option' conftest.err ||
4656           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4657         am_cv_CC_dependencies_compiler_type=$depmode
4658         break
4659       fi
4660     fi
4661   done
4663   cd ..
4664   rm -rf conftest.dir
4665 else
4666   am_cv_CC_dependencies_compiler_type=none
4667 fi
4669 fi
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4671 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4672 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4674  if
4675   test "x$enable_dependency_tracking" != xno \
4676   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4677   am__fastdepCC_TRUE=
4678   am__fastdepCC_FALSE='#'
4679 else
4680   am__fastdepCC_TRUE='#'
4681   am__fastdepCC_FALSE=
4682 fi
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4688 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4689     # Check whether --enable-maintainer-mode was given.
4690 if test "${enable_maintainer_mode+set}" = set; then :
4691   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4692 else
4693   USE_MAINTAINER_MODE=no
4694 fi
4696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4697 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4698    if test $USE_MAINTAINER_MODE = yes; then
4699   MAINTAINER_MODE_TRUE=
4700   MAINTAINER_MODE_FALSE='#'
4701 else
4702   MAINTAINER_MODE_TRUE='#'
4703   MAINTAINER_MODE_FALSE=
4704 fi
4706   MAINT=$MAINTAINER_MODE_TRUE
4709 # Enable silent build rules by default, requires at least
4710 # Automake-1.11. Disable by either passing --disable-silent-rules to
4711 # configure or passing V=1 to make
4712 # Check whether --enable-silent-rules was given.
4713 if test "${enable_silent_rules+set}" = set; then :
4714   enableval=$enable_silent_rules;
4715 fi
4717 case $enable_silent_rules in
4718 yes) AM_DEFAULT_VERBOSITY=0;;
4719 no)  AM_DEFAULT_VERBOSITY=1;;
4720 *)   AM_DEFAULT_VERBOSITY=0;;
4721 esac
4722 am_make=${MAKE-make}
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4724 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4725 if ${am_cv_make_support_nested_variables+:} false; then :
4726   $as_echo_n "(cached) " >&6
4727 else
4728   if $as_echo 'TRUE=$(BAR$(V))
4729 BAR0=false
4730 BAR1=true
4731 V=1
4732 am__doit:
4733         @$(TRUE)
4734 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4735   am_cv_make_support_nested_variables=yes
4736 else
4737   am_cv_make_support_nested_variables=no
4738 fi
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4741 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4742 if test $am_cv_make_support_nested_variables = yes; then
4743     AM_V='$(V)'
4744   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4745 else
4746   AM_V=$AM_DEFAULT_VERBOSITY
4747   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4748 fi
4749 AM_BACKSLASH='\'
4751 ac_config_headers="$ac_config_headers rrd_config.h"
4770 cat >>confdefs.h <<_ACEOF
4771 #define RRDGRAPH_YLEGEND_ANGLE ${RRDGRAPH_YLEGEND_ANGLE:-90.0}
4772 _ACEOF
4775 # Check whether --enable-rrdcgi was given.
4776 if test "${enable_rrdcgi+set}" = set; then :
4777   enableval=$enable_rrdcgi;
4778 else
4779   enable_rrdcgi=yes
4780 fi
4783  if test $enable_rrdcgi != no; then
4784   BUILD_RRDCGI_TRUE=
4785   BUILD_RRDCGI_FALSE='#'
4786 else
4787   BUILD_RRDCGI_TRUE='#'
4788   BUILD_RRDCGI_FALSE=
4789 fi
4792 # Check whether --enable-rrd_graph was given.
4793 if test "${enable_rrd_graph+set}" = set; then :
4794   enableval=$enable_rrd_graph; enable_rrdcgi=no
4795 else
4796   enable_rrd_graph=yes
4797 fi
4800 if test $enable_rrd_graph != no; then
4802 $as_echo "#define HAVE_RRD_GRAPH /**/" >>confdefs.h
4804 fi
4807 # Check whether --with-rrd-default-font was given.
4808 if test "${with_rrd_default_font+set}" = set; then :
4809   withval=$with_rrd_default_font; RRD_DEFAULT_FONT=$withval
4810 else
4812   if test -d ${WINDIR:-nodir}/cour.ttf ; then
4813         RRD_DEFAULT_FONT=`cd $WINDIR;pwd`/cour.ttf
4814   else
4815         RRD_DEFAULT_FONT='"DejaVu Sans Mono,Bitstream Vera Sans Mono,monospace,Courier"'
4816   fi
4818 fi
4821 # Check whether --enable-mmap was given.
4822 if test "${enable_mmap+set}" = set; then :
4823   enableval=$enable_mmap;
4824 else
4825   enable_mmap=yes
4826 fi
4829 # Check whether --enable-pthread was given.
4830 if test "${enable_pthread+set}" = set; then :
4831   enableval=$enable_pthread;
4832 else
4833   enable_pthread=yes
4834 fi
4837 # Check whether --enable-static-programs was given.
4838 if test "${enable_static_programs+set}" = set; then :
4839   enableval=$enable_static_programs; case "${enableval}" in
4840        yes) staticprogs=yes ;;
4841        no)  staticprogs=no ;;
4842        *) as_fn_error $? "bad value ${enableval} for --enable-static-programs" "$LINENO" 5 ;;
4843      esac
4844 else
4845   staticprogs=no
4846 fi
4848  if test "x$staticprogs" = "xyes"; then
4849   STATIC_PROGRAMS_TRUE=
4850   STATIC_PROGRAMS_FALSE='#'
4851 else
4852   STATIC_PROGRAMS_TRUE='#'
4853   STATIC_PROGRAMS_FALSE=
4854 fi
4859 case $TERM in
4860        #   for the most important terminal types we directly know the sequences
4861        xterm|xterm*|vt220|vt220*)
4862                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
4863                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
4864        ;;
4865        vt100|vt100*|cygwin)
4866                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
4867                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
4868        ;;
4869        *)
4870                T_MD=''
4871                T_ME=''
4872        ;;
4873 esac
4874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
4875 $as_echo "" >&6; }
4876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Audit Compilation Environment${T_ME}" >&5
4877 $as_echo "${T_MD}Audit Compilation Environment${T_ME}" >&6; }
4881 ac_ext=c
4882 ac_cpp='$CPP $CPPFLAGS'
4883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4887 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4888 # On Suns, sometimes $CPP names a directory.
4889 if test -n "$CPP" && test -d "$CPP"; then
4890   CPP=
4891 fi
4892 if test -z "$CPP"; then
4893   if ${ac_cv_prog_CPP+:} false; then :
4894   $as_echo_n "(cached) " >&6
4895 else
4896       # Double quotes because CPP needs to be expanded
4897     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4898     do
4899       ac_preproc_ok=false
4900 for ac_c_preproc_warn_flag in '' yes
4901 do
4902   # Use a header file that comes with gcc, so configuring glibc
4903   # with a fresh cross-compiler works.
4904   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4905   # <limits.h> exists even on freestanding compilers.
4906   # On the NeXT, cc -E runs the code through the compiler's parser,
4907   # not just through cpp. "Syntax error" is here to catch this case.
4908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h.  */
4910 #ifdef __STDC__
4911 # include <limits.h>
4912 #else
4913 # include <assert.h>
4914 #endif
4915                      Syntax error
4916 _ACEOF
4917 if ac_fn_c_try_cpp "$LINENO"; then :
4919 else
4920   # Broken: fails on valid input.
4921 continue
4922 fi
4923 rm -f conftest.err conftest.i conftest.$ac_ext
4925   # OK, works on sane cases.  Now check whether nonexistent headers
4926   # can be detected and how.
4927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h.  */
4929 #include <ac_nonexistent.h>
4930 _ACEOF
4931 if ac_fn_c_try_cpp "$LINENO"; then :
4932   # Broken: success on invalid input.
4933 continue
4934 else
4935   # Passes both tests.
4936 ac_preproc_ok=:
4937 break
4938 fi
4939 rm -f conftest.err conftest.i conftest.$ac_ext
4941 done
4942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4943 rm -f conftest.i conftest.err conftest.$ac_ext
4944 if $ac_preproc_ok; then :
4945   break
4946 fi
4948     done
4949     ac_cv_prog_CPP=$CPP
4951 fi
4952   CPP=$ac_cv_prog_CPP
4953 else
4954   ac_cv_prog_CPP=$CPP
4955 fi
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4957 $as_echo "$CPP" >&6; }
4958 ac_preproc_ok=false
4959 for ac_c_preproc_warn_flag in '' yes
4960 do
4961   # Use a header file that comes with gcc, so configuring glibc
4962   # with a fresh cross-compiler works.
4963   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4964   # <limits.h> exists even on freestanding compilers.
4965   # On the NeXT, cc -E runs the code through the compiler's parser,
4966   # not just through cpp. "Syntax error" is here to catch this case.
4967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h.  */
4969 #ifdef __STDC__
4970 # include <limits.h>
4971 #else
4972 # include <assert.h>
4973 #endif
4974                      Syntax error
4975 _ACEOF
4976 if ac_fn_c_try_cpp "$LINENO"; then :
4978 else
4979   # Broken: fails on valid input.
4980 continue
4981 fi
4982 rm -f conftest.err conftest.i conftest.$ac_ext
4984   # OK, works on sane cases.  Now check whether nonexistent headers
4985   # can be detected and how.
4986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h.  */
4988 #include <ac_nonexistent.h>
4989 _ACEOF
4990 if ac_fn_c_try_cpp "$LINENO"; then :
4991   # Broken: success on invalid input.
4992 continue
4993 else
4994   # Passes both tests.
4995 ac_preproc_ok=:
4996 break
4997 fi
4998 rm -f conftest.err conftest.i conftest.$ac_ext
5000 done
5001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5002 rm -f conftest.i conftest.err conftest.$ac_ext
5003 if $ac_preproc_ok; then :
5005 else
5006   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5008 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5009 See \`config.log' for more details" "$LINENO" 5; }
5010 fi
5012 ac_ext=c
5013 ac_cpp='$CPP $CPPFLAGS'
5014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5018 ac_ext=c
5019 ac_cpp='$CPP $CPPFLAGS'
5020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5023 if test -n "$ac_tool_prefix"; then
5024   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5025 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027 $as_echo_n "checking for $ac_word... " >&6; }
5028 if ${ac_cv_prog_CC+:} false; then :
5029   $as_echo_n "(cached) " >&6
5030 else
5031   if test -n "$CC"; then
5032   ac_cv_prog_CC="$CC" # Let the user override the test.
5033 else
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH
5036 do
5037   IFS=$as_save_IFS
5038   test -z "$as_dir" && as_dir=.
5039     for ac_exec_ext in '' $ac_executable_extensions; do
5040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043     break 2
5044   fi
5045 done
5046   done
5047 IFS=$as_save_IFS
5049 fi
5050 fi
5051 CC=$ac_cv_prog_CC
5052 if test -n "$CC"; then
5053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5054 $as_echo "$CC" >&6; }
5055 else
5056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057 $as_echo "no" >&6; }
5058 fi
5061 fi
5062 if test -z "$ac_cv_prog_CC"; then
5063   ac_ct_CC=$CC
5064   # Extract the first word of "gcc", so it can be a program name with args.
5065 set dummy gcc; ac_word=$2
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5069   $as_echo_n "(cached) " >&6
5070 else
5071   if test -n "$ac_ct_CC"; then
5072   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5073 else
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5076 do
5077   IFS=$as_save_IFS
5078   test -z "$as_dir" && as_dir=.
5079     for ac_exec_ext in '' $ac_executable_extensions; do
5080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081     ac_cv_prog_ac_ct_CC="gcc"
5082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083     break 2
5084   fi
5085 done
5086   done
5087 IFS=$as_save_IFS
5089 fi
5090 fi
5091 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5092 if test -n "$ac_ct_CC"; then
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5094 $as_echo "$ac_ct_CC" >&6; }
5095 else
5096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 $as_echo "no" >&6; }
5098 fi
5100   if test "x$ac_ct_CC" = x; then
5101     CC=""
5102   else
5103     case $cross_compiling:$ac_tool_warned in
5104 yes:)
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5107 ac_tool_warned=yes ;;
5108 esac
5109     CC=$ac_ct_CC
5110   fi
5111 else
5112   CC="$ac_cv_prog_CC"
5113 fi
5115 if test -z "$CC"; then
5116           if test -n "$ac_tool_prefix"; then
5117     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5118 set dummy ${ac_tool_prefix}cc; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if ${ac_cv_prog_CC+:} false; then :
5122   $as_echo_n "(cached) " >&6
5123 else
5124   if test -n "$CC"; then
5125   ac_cv_prog_CC="$CC" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5129 do
5130   IFS=$as_save_IFS
5131   test -z "$as_dir" && as_dir=.
5132     for ac_exec_ext in '' $ac_executable_extensions; do
5133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134     ac_cv_prog_CC="${ac_tool_prefix}cc"
5135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136     break 2
5137   fi
5138 done
5139   done
5140 IFS=$as_save_IFS
5142 fi
5143 fi
5144 CC=$ac_cv_prog_CC
5145 if test -n "$CC"; then
5146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5147 $as_echo "$CC" >&6; }
5148 else
5149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5151 fi
5154   fi
5155 fi
5156 if test -z "$CC"; then
5157   # Extract the first word of "cc", so it can be a program name with args.
5158 set dummy cc; ac_word=$2
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160 $as_echo_n "checking for $ac_word... " >&6; }
5161 if ${ac_cv_prog_CC+:} false; then :
5162   $as_echo_n "(cached) " >&6
5163 else
5164   if test -n "$CC"; then
5165   ac_cv_prog_CC="$CC" # Let the user override the test.
5166 else
5167   ac_prog_rejected=no
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5170 do
5171   IFS=$as_save_IFS
5172   test -z "$as_dir" && as_dir=.
5173     for ac_exec_ext in '' $ac_executable_extensions; do
5174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5176        ac_prog_rejected=yes
5177        continue
5178      fi
5179     ac_cv_prog_CC="cc"
5180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5181     break 2
5182   fi
5183 done
5184   done
5185 IFS=$as_save_IFS
5187 if test $ac_prog_rejected = yes; then
5188   # We found a bogon in the path, so make sure we never use it.
5189   set dummy $ac_cv_prog_CC
5190   shift
5191   if test $# != 0; then
5192     # We chose a different compiler from the bogus one.
5193     # However, it has the same basename, so the bogon will be chosen
5194     # first if we set CC to just the basename; use the full file name.
5195     shift
5196     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5197   fi
5198 fi
5199 fi
5200 fi
5201 CC=$ac_cv_prog_CC
5202 if test -n "$CC"; then
5203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5204 $as_echo "$CC" >&6; }
5205 else
5206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5208 fi
5211 fi
5212 if test -z "$CC"; then
5213   if test -n "$ac_tool_prefix"; then
5214   for ac_prog in cl.exe
5215   do
5216     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5217 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if ${ac_cv_prog_CC+:} false; then :
5221   $as_echo_n "(cached) " >&6
5222 else
5223   if test -n "$CC"; then
5224   ac_cv_prog_CC="$CC" # Let the user override the test.
5225 else
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5228 do
5229   IFS=$as_save_IFS
5230   test -z "$as_dir" && as_dir=.
5231     for ac_exec_ext in '' $ac_executable_extensions; do
5232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235     break 2
5236   fi
5237 done
5238   done
5239 IFS=$as_save_IFS
5241 fi
5242 fi
5243 CC=$ac_cv_prog_CC
5244 if test -n "$CC"; then
5245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5246 $as_echo "$CC" >&6; }
5247 else
5248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5250 fi
5253     test -n "$CC" && break
5254   done
5255 fi
5256 if test -z "$CC"; then
5257   ac_ct_CC=$CC
5258   for ac_prog in cl.exe
5259 do
5260   # Extract the first word of "$ac_prog", so it can be a program name with args.
5261 set dummy $ac_prog; ac_word=$2
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 $as_echo_n "checking for $ac_word... " >&6; }
5264 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5265   $as_echo_n "(cached) " >&6
5266 else
5267   if test -n "$ac_ct_CC"; then
5268   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5269 else
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5272 do
5273   IFS=$as_save_IFS
5274   test -z "$as_dir" && as_dir=.
5275     for ac_exec_ext in '' $ac_executable_extensions; do
5276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277     ac_cv_prog_ac_ct_CC="$ac_prog"
5278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279     break 2
5280   fi
5281 done
5282   done
5283 IFS=$as_save_IFS
5285 fi
5286 fi
5287 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5288 if test -n "$ac_ct_CC"; then
5289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5290 $as_echo "$ac_ct_CC" >&6; }
5291 else
5292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293 $as_echo "no" >&6; }
5294 fi
5297   test -n "$ac_ct_CC" && break
5298 done
5300   if test "x$ac_ct_CC" = x; then
5301     CC=""
5302   else
5303     case $cross_compiling:$ac_tool_warned in
5304 yes:)
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5307 ac_tool_warned=yes ;;
5308 esac
5309     CC=$ac_ct_CC
5310   fi
5311 fi
5313 fi
5316 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5318 as_fn_error $? "no acceptable C compiler found in \$PATH
5319 See \`config.log' for more details" "$LINENO" 5; }
5321 # Provide some information about the compiler.
5322 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5323 set X $ac_compile
5324 ac_compiler=$2
5325 for ac_option in --version -v -V -qversion; do
5326   { { ac_try="$ac_compiler $ac_option >&5"
5327 case "(($ac_try" in
5328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5329   *) ac_try_echo=$ac_try;;
5330 esac
5331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5332 $as_echo "$ac_try_echo"; } >&5
5333   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5334   ac_status=$?
5335   if test -s conftest.err; then
5336     sed '10a\
5337 ... rest of stderr output deleted ...
5338          10q' conftest.err >conftest.er1
5339     cat conftest.er1 >&5
5340   fi
5341   rm -f conftest.er1 conftest.err
5342   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5343   test $ac_status = 0; }
5344 done
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5347 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5348 if ${ac_cv_c_compiler_gnu+:} false; then :
5349   $as_echo_n "(cached) " >&6
5350 else
5351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h.  */
5354 int
5355 main ()
5357 #ifndef __GNUC__
5358        choke me
5359 #endif
5361   ;
5362   return 0;
5364 _ACEOF
5365 if ac_fn_c_try_compile "$LINENO"; then :
5366   ac_compiler_gnu=yes
5367 else
5368   ac_compiler_gnu=no
5369 fi
5370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5373 fi
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5375 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5376 if test $ac_compiler_gnu = yes; then
5377   GCC=yes
5378 else
5379   GCC=
5380 fi
5381 ac_test_CFLAGS=${CFLAGS+set}
5382 ac_save_CFLAGS=$CFLAGS
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5384 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5385 if ${ac_cv_prog_cc_g+:} false; then :
5386   $as_echo_n "(cached) " >&6
5387 else
5388   ac_save_c_werror_flag=$ac_c_werror_flag
5389    ac_c_werror_flag=yes
5390    ac_cv_prog_cc_g=no
5391    CFLAGS="-g"
5392    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h.  */
5395 int
5396 main ()
5399   ;
5400   return 0;
5402 _ACEOF
5403 if ac_fn_c_try_compile "$LINENO"; then :
5404   ac_cv_prog_cc_g=yes
5405 else
5406   CFLAGS=""
5407       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h.  */
5410 int
5411 main ()
5414   ;
5415   return 0;
5417 _ACEOF
5418 if ac_fn_c_try_compile "$LINENO"; then :
5420 else
5421   ac_c_werror_flag=$ac_save_c_werror_flag
5422          CFLAGS="-g"
5423          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h.  */
5426 int
5427 main ()
5430   ;
5431   return 0;
5433 _ACEOF
5434 if ac_fn_c_try_compile "$LINENO"; then :
5435   ac_cv_prog_cc_g=yes
5436 fi
5437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438 fi
5439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440 fi
5441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5442    ac_c_werror_flag=$ac_save_c_werror_flag
5443 fi
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5445 $as_echo "$ac_cv_prog_cc_g" >&6; }
5446 if test "$ac_test_CFLAGS" = set; then
5447   CFLAGS=$ac_save_CFLAGS
5448 elif test $ac_cv_prog_cc_g = yes; then
5449   if test "$GCC" = yes; then
5450     CFLAGS="-g -O2"
5451   else
5452     CFLAGS="-g"
5453   fi
5454 else
5455   if test "$GCC" = yes; then
5456     CFLAGS="-O2"
5457   else
5458     CFLAGS=
5459   fi
5460 fi
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5462 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5463 if ${ac_cv_prog_cc_c89+:} false; then :
5464   $as_echo_n "(cached) " >&6
5465 else
5466   ac_cv_prog_cc_c89=no
5467 ac_save_CC=$CC
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h.  */
5470 #include <stdarg.h>
5471 #include <stdio.h>
5472 #include <sys/types.h>
5473 #include <sys/stat.h>
5474 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5475 struct buf { int x; };
5476 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5477 static char *e (p, i)
5478      char **p;
5479      int i;
5481   return p[i];
5483 static char *f (char * (*g) (char **, int), char **p, ...)
5485   char *s;
5486   va_list v;
5487   va_start (v,p);
5488   s = g (p, va_arg (v,int));
5489   va_end (v);
5490   return s;
5493 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5494    function prototypes and stuff, but not '\xHH' hex character constants.
5495    These don't provoke an error unfortunately, instead are silently treated
5496    as 'x'.  The following induces an error, until -std is added to get
5497    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5498    array size at least.  It's necessary to write '\x00'==0 to get something
5499    that's true only with -std.  */
5500 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5502 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5503    inside strings and character constants.  */
5504 #define FOO(x) 'x'
5505 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5507 int test (int i, double x);
5508 struct s1 {int (*f) (int a);};
5509 struct s2 {int (*f) (double a);};
5510 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5511 int argc;
5512 char **argv;
5513 int
5514 main ()
5516 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5517   ;
5518   return 0;
5520 _ACEOF
5521 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5522         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5523 do
5524   CC="$ac_save_CC $ac_arg"
5525   if ac_fn_c_try_compile "$LINENO"; then :
5526   ac_cv_prog_cc_c89=$ac_arg
5527 fi
5528 rm -f core conftest.err conftest.$ac_objext
5529   test "x$ac_cv_prog_cc_c89" != "xno" && break
5530 done
5531 rm -f conftest.$ac_ext
5532 CC=$ac_save_CC
5534 fi
5535 # AC_CACHE_VAL
5536 case "x$ac_cv_prog_cc_c89" in
5537   x)
5538     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5539 $as_echo "none needed" >&6; } ;;
5540   xno)
5541     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5542 $as_echo "unsupported" >&6; } ;;
5543   *)
5544     CC="$CC $ac_cv_prog_cc_c89"
5545     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5546 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5547 esac
5548 if test "x$ac_cv_prog_cc_c89" != xno; then :
5550 fi
5552 ac_ext=c
5553 ac_cpp='$CPP $CPPFLAGS'
5554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5558 if test "x$CC" != xcc; then
5559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5560 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5561 else
5562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5563 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5564 fi
5565 set dummy $CC; ac_cc=`$as_echo "$2" |
5566                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5567 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5568   $as_echo_n "(cached) " >&6
5569 else
5570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h.  */
5573 int
5574 main ()
5577   ;
5578   return 0;
5580 _ACEOF
5581 # Make sure it works both with $CC and with simple cc.
5582 # We do the test twice because some compilers refuse to overwrite an
5583 # existing .o file with -o, though they will create one.
5584 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5585 rm -f conftest2.*
5586 if { { case "(($ac_try" in
5587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588   *) ac_try_echo=$ac_try;;
5589 esac
5590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5591 $as_echo "$ac_try_echo"; } >&5
5592   (eval "$ac_try") 2>&5
5593   ac_status=$?
5594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5595   test $ac_status = 0; } &&
5596    test -f conftest2.$ac_objext && { { case "(($ac_try" in
5597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598   *) ac_try_echo=$ac_try;;
5599 esac
5600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5601 $as_echo "$ac_try_echo"; } >&5
5602   (eval "$ac_try") 2>&5
5603   ac_status=$?
5604   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5605   test $ac_status = 0; };
5606 then
5607   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5608   if test "x$CC" != xcc; then
5609     # Test first that cc exists at all.
5610     if { ac_try='cc -c conftest.$ac_ext >&5'
5611   { { case "(($ac_try" in
5612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613   *) ac_try_echo=$ac_try;;
5614 esac
5615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5616 $as_echo "$ac_try_echo"; } >&5
5617   (eval "$ac_try") 2>&5
5618   ac_status=$?
5619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5620   test $ac_status = 0; }; }; then
5621       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5622       rm -f conftest2.*
5623       if { { case "(($ac_try" in
5624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625   *) ac_try_echo=$ac_try;;
5626 esac
5627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5628 $as_echo "$ac_try_echo"; } >&5
5629   (eval "$ac_try") 2>&5
5630   ac_status=$?
5631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5632   test $ac_status = 0; } &&
5633          test -f conftest2.$ac_objext && { { case "(($ac_try" in
5634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635   *) ac_try_echo=$ac_try;;
5636 esac
5637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5638 $as_echo "$ac_try_echo"; } >&5
5639   (eval "$ac_try") 2>&5
5640   ac_status=$?
5641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5642   test $ac_status = 0; };
5643       then
5644         # cc works too.
5645         :
5646       else
5647         # cc exists but doesn't like -o.
5648         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5649       fi
5650     fi
5651   fi
5652 else
5653   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5654 fi
5655 rm -f core conftest*
5657 fi
5658 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5660 $as_echo "yes" >&6; }
5661 else
5662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5665 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5667 fi
5669 # FIXME: we rely on the cache variable name because
5670 # there is no other way.
5671 set dummy $CC
5672 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5673 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5674 if test "$am_t" != yes; then
5675    # Losing compiler, so override with the script.
5676    # FIXME: It is wrong to rewrite CC.
5677    # But if we don't then we get into trouble of one sort or another.
5678    # A longer-term fix would be to have automake use am__CC in this case,
5679    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5680    CC="$am_aux_dir/compile $CC"
5681 fi
5684 case `pwd` in
5685   *\ * | *\     *)
5686     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5687 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5688 esac
5692 macro_version='2.4.2'
5693 macro_revision='1.3337'
5707 ltmain="$ac_aux_dir/ltmain.sh"
5709 # Backslashify metacharacters that are still active within
5710 # double-quoted strings.
5711 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5713 # Same as above, but do not quote variable references.
5714 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5716 # Sed substitution to delay expansion of an escaped shell variable in a
5717 # double_quote_subst'ed string.
5718 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5720 # Sed substitution to delay expansion of an escaped single quote.
5721 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5723 # Sed substitution to avoid accidental globbing in evaled expressions
5724 no_glob_subst='s/\*/\\\*/g'
5726 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5727 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5728 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5731 $as_echo_n "checking how to print strings... " >&6; }
5732 # Test print first, because it will be a builtin if present.
5733 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5734    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5735   ECHO='print -r --'
5736 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5737   ECHO='printf %s\n'
5738 else
5739   # Use this function as a fallback that always works.
5740   func_fallback_echo ()
5741   {
5742     eval 'cat <<_LTECHO_EOF
5743 $1
5744 _LTECHO_EOF'
5745   }
5746   ECHO='func_fallback_echo'
5747 fi
5749 # func_echo_all arg...
5750 # Invoke $ECHO with all args, space-separated.
5751 func_echo_all ()
5753     $ECHO ""
5756 case "$ECHO" in
5757   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5758 $as_echo "printf" >&6; } ;;
5759   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5760 $as_echo "print -r" >&6; } ;;
5761   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5762 $as_echo "cat" >&6; } ;;
5763 esac
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5779 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5780 if ${ac_cv_path_SED+:} false; then :
5781   $as_echo_n "(cached) " >&6
5782 else
5783             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5784      for ac_i in 1 2 3 4 5 6 7; do
5785        ac_script="$ac_script$as_nl$ac_script"
5786      done
5787      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5788      { ac_script=; unset ac_script;}
5789      if test -z "$SED"; then
5790   ac_path_SED_found=false
5791   # Loop through the user's path and test for each of PROGNAME-LIST
5792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 for as_dir in $PATH
5794 do
5795   IFS=$as_save_IFS
5796   test -z "$as_dir" && as_dir=.
5797     for ac_prog in sed gsed; do
5798     for ac_exec_ext in '' $ac_executable_extensions; do
5799       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5800       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5801 # Check for GNU ac_path_SED and select it if it is found.
5802   # Check for GNU $ac_path_SED
5803 case `"$ac_path_SED" --version 2>&1` in
5804 *GNU*)
5805   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5806 *)
5807   ac_count=0
5808   $as_echo_n 0123456789 >"conftest.in"
5809   while :
5810   do
5811     cat "conftest.in" "conftest.in" >"conftest.tmp"
5812     mv "conftest.tmp" "conftest.in"
5813     cp "conftest.in" "conftest.nl"
5814     $as_echo '' >> "conftest.nl"
5815     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5816     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5817     as_fn_arith $ac_count + 1 && ac_count=$as_val
5818     if test $ac_count -gt ${ac_path_SED_max-0}; then
5819       # Best one so far, save it but keep looking for a better one
5820       ac_cv_path_SED="$ac_path_SED"
5821       ac_path_SED_max=$ac_count
5822     fi
5823     # 10*(2^10) chars as input seems more than enough
5824     test $ac_count -gt 10 && break
5825   done
5826   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5827 esac
5829       $ac_path_SED_found && break 3
5830     done
5831   done
5832   done
5833 IFS=$as_save_IFS
5834   if test -z "$ac_cv_path_SED"; then
5835     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5836   fi
5837 else
5838   ac_cv_path_SED=$SED
5839 fi
5841 fi
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5843 $as_echo "$ac_cv_path_SED" >&6; }
5844  SED="$ac_cv_path_SED"
5845   rm -f conftest.sed
5847 test -z "$SED" && SED=sed
5848 Xsed="$SED -e 1s/^X//"
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5861 $as_echo_n "checking for fgrep... " >&6; }
5862 if ${ac_cv_path_FGREP+:} false; then :
5863   $as_echo_n "(cached) " >&6
5864 else
5865   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5866    then ac_cv_path_FGREP="$GREP -F"
5867    else
5868      if test -z "$FGREP"; then
5869   ac_path_FGREP_found=false
5870   # Loop through the user's path and test for each of PROGNAME-LIST
5871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5873 do
5874   IFS=$as_save_IFS
5875   test -z "$as_dir" && as_dir=.
5876     for ac_prog in fgrep; do
5877     for ac_exec_ext in '' $ac_executable_extensions; do
5878       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5879       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5880 # Check for GNU ac_path_FGREP and select it if it is found.
5881   # Check for GNU $ac_path_FGREP
5882 case `"$ac_path_FGREP" --version 2>&1` in
5883 *GNU*)
5884   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5885 *)
5886   ac_count=0
5887   $as_echo_n 0123456789 >"conftest.in"
5888   while :
5889   do
5890     cat "conftest.in" "conftest.in" >"conftest.tmp"
5891     mv "conftest.tmp" "conftest.in"
5892     cp "conftest.in" "conftest.nl"
5893     $as_echo 'FGREP' >> "conftest.nl"
5894     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5895     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5896     as_fn_arith $ac_count + 1 && ac_count=$as_val
5897     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5898       # Best one so far, save it but keep looking for a better one
5899       ac_cv_path_FGREP="$ac_path_FGREP"
5900       ac_path_FGREP_max=$ac_count
5901     fi
5902     # 10*(2^10) chars as input seems more than enough
5903     test $ac_count -gt 10 && break
5904   done
5905   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5906 esac
5908       $ac_path_FGREP_found && break 3
5909     done
5910   done
5911   done
5912 IFS=$as_save_IFS
5913   if test -z "$ac_cv_path_FGREP"; then
5914     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5915   fi
5916 else
5917   ac_cv_path_FGREP=$FGREP
5918 fi
5920    fi
5921 fi
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5923 $as_echo "$ac_cv_path_FGREP" >&6; }
5924  FGREP="$ac_cv_path_FGREP"
5927 test -z "$GREP" && GREP=grep
5947 # Check whether --with-gnu-ld was given.
5948 if test "${with_gnu_ld+set}" = set; then :
5949   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5950 else
5951   with_gnu_ld=no
5952 fi
5954 ac_prog=ld
5955 if test "$GCC" = yes; then
5956   # Check if gcc -print-prog-name=ld gives a path.
5957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5958 $as_echo_n "checking for ld used by $CC... " >&6; }
5959   case $host in
5960   *-*-mingw*)
5961     # gcc leaves a trailing carriage return which upsets mingw
5962     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5963   *)
5964     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5965   esac
5966   case $ac_prog in
5967     # Accept absolute paths.
5968     [\\/]* | ?:[\\/]*)
5969       re_direlt='/[^/][^/]*/\.\./'
5970       # Canonicalize the pathname of ld
5971       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5972       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5973         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5974       done
5975       test -z "$LD" && LD="$ac_prog"
5976       ;;
5977   "")
5978     # If it fails, then pretend we aren't using GCC.
5979     ac_prog=ld
5980     ;;
5981   *)
5982     # If it is relative, then search for the first ld in PATH.
5983     with_gnu_ld=unknown
5984     ;;
5985   esac
5986 elif test "$with_gnu_ld" = yes; then
5987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5988 $as_echo_n "checking for GNU ld... " >&6; }
5989 else
5990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5991 $as_echo_n "checking for non-GNU ld... " >&6; }
5992 fi
5993 if ${lt_cv_path_LD+:} false; then :
5994   $as_echo_n "(cached) " >&6
5995 else
5996   if test -z "$LD"; then
5997   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5998   for ac_dir in $PATH; do
5999     IFS="$lt_save_ifs"
6000     test -z "$ac_dir" && ac_dir=.
6001     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6002       lt_cv_path_LD="$ac_dir/$ac_prog"
6003       # Check to see if the program is GNU ld.  I'd rather use --version,
6004       # but apparently some variants of GNU ld only accept -v.
6005       # Break only if it was the GNU/non-GNU ld that we prefer.
6006       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6007       *GNU* | *'with BFD'*)
6008         test "$with_gnu_ld" != no && break
6009         ;;
6010       *)
6011         test "$with_gnu_ld" != yes && break
6012         ;;
6013       esac
6014     fi
6015   done
6016   IFS="$lt_save_ifs"
6017 else
6018   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6019 fi
6020 fi
6022 LD="$lt_cv_path_LD"
6023 if test -n "$LD"; then
6024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6025 $as_echo "$LD" >&6; }
6026 else
6027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028 $as_echo "no" >&6; }
6029 fi
6030 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6032 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6033 if ${lt_cv_prog_gnu_ld+:} false; then :
6034   $as_echo_n "(cached) " >&6
6035 else
6036   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6037 case `$LD -v 2>&1 </dev/null` in
6038 *GNU* | *'with BFD'*)
6039   lt_cv_prog_gnu_ld=yes
6040   ;;
6041 *)
6042   lt_cv_prog_gnu_ld=no
6043   ;;
6044 esac
6045 fi
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6047 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6048 with_gnu_ld=$lt_cv_prog_gnu_ld
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6059 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6060 if ${lt_cv_path_NM+:} false; then :
6061   $as_echo_n "(cached) " >&6
6062 else
6063   if test -n "$NM"; then
6064   # Let the user override the test.
6065   lt_cv_path_NM="$NM"
6066 else
6067   lt_nm_to_check="${ac_tool_prefix}nm"
6068   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6069     lt_nm_to_check="$lt_nm_to_check nm"
6070   fi
6071   for lt_tmp_nm in $lt_nm_to_check; do
6072     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6073     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6074       IFS="$lt_save_ifs"
6075       test -z "$ac_dir" && ac_dir=.
6076       tmp_nm="$ac_dir/$lt_tmp_nm"
6077       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6078         # Check to see if the nm accepts a BSD-compat flag.
6079         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6080         #   nm: unknown option "B" ignored
6081         # Tru64's nm complains that /dev/null is an invalid object file
6082         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6083         */dev/null* | *'Invalid file or object type'*)
6084           lt_cv_path_NM="$tmp_nm -B"
6085           break
6086           ;;
6087         *)
6088           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6089           */dev/null*)
6090             lt_cv_path_NM="$tmp_nm -p"
6091             break
6092             ;;
6093           *)
6094             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6095             continue # so that we can try to find one that supports BSD flags
6096             ;;
6097           esac
6098           ;;
6099         esac
6100       fi
6101     done
6102     IFS="$lt_save_ifs"
6103   done
6104   : ${lt_cv_path_NM=no}
6105 fi
6106 fi
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6108 $as_echo "$lt_cv_path_NM" >&6; }
6109 if test "$lt_cv_path_NM" != "no"; then
6110   NM="$lt_cv_path_NM"
6111 else
6112   # Didn't find any BSD compatible name lister, look for dumpbin.
6113   if test -n "$DUMPBIN"; then :
6114     # Let the user override the test.
6115   else
6116     if test -n "$ac_tool_prefix"; then
6117   for ac_prog in dumpbin "link -dump"
6118   do
6119     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122 $as_echo_n "checking for $ac_word... " >&6; }
6123 if ${ac_cv_prog_DUMPBIN+:} false; then :
6124   $as_echo_n "(cached) " >&6
6125 else
6126   if test -n "$DUMPBIN"; then
6127   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6128 else
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH
6131 do
6132   IFS=$as_save_IFS
6133   test -z "$as_dir" && as_dir=.
6134     for ac_exec_ext in '' $ac_executable_extensions; do
6135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6136     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6138     break 2
6139   fi
6140 done
6141   done
6142 IFS=$as_save_IFS
6144 fi
6145 fi
6146 DUMPBIN=$ac_cv_prog_DUMPBIN
6147 if test -n "$DUMPBIN"; then
6148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6149 $as_echo "$DUMPBIN" >&6; }
6150 else
6151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152 $as_echo "no" >&6; }
6153 fi
6156     test -n "$DUMPBIN" && break
6157   done
6158 fi
6159 if test -z "$DUMPBIN"; then
6160   ac_ct_DUMPBIN=$DUMPBIN
6161   for ac_prog in dumpbin "link -dump"
6162 do
6163   # Extract the first word of "$ac_prog", so it can be a program name with args.
6164 set dummy $ac_prog; ac_word=$2
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6166 $as_echo_n "checking for $ac_word... " >&6; }
6167 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6168   $as_echo_n "(cached) " >&6
6169 else
6170   if test -n "$ac_ct_DUMPBIN"; then
6171   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6172 else
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH
6175 do
6176   IFS=$as_save_IFS
6177   test -z "$as_dir" && as_dir=.
6178     for ac_exec_ext in '' $ac_executable_extensions; do
6179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6180     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6182     break 2
6183   fi
6184 done
6185   done
6186 IFS=$as_save_IFS
6188 fi
6189 fi
6190 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6191 if test -n "$ac_ct_DUMPBIN"; then
6192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6193 $as_echo "$ac_ct_DUMPBIN" >&6; }
6194 else
6195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6196 $as_echo "no" >&6; }
6197 fi
6200   test -n "$ac_ct_DUMPBIN" && break
6201 done
6203   if test "x$ac_ct_DUMPBIN" = x; then
6204     DUMPBIN=":"
6205   else
6206     case $cross_compiling:$ac_tool_warned in
6207 yes:)
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6210 ac_tool_warned=yes ;;
6211 esac
6212     DUMPBIN=$ac_ct_DUMPBIN
6213   fi
6214 fi
6216     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6217     *COFF*)
6218       DUMPBIN="$DUMPBIN -symbols"
6219       ;;
6220     *)
6221       DUMPBIN=:
6222       ;;
6223     esac
6224   fi
6226   if test "$DUMPBIN" != ":"; then
6227     NM="$DUMPBIN"
6228   fi
6229 fi
6230 test -z "$NM" && NM=nm
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6238 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6239 if ${lt_cv_nm_interface+:} false; then :
6240   $as_echo_n "(cached) " >&6
6241 else
6242   lt_cv_nm_interface="BSD nm"
6243   echo "int some_variable = 0;" > conftest.$ac_ext
6244   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6245   (eval "$ac_compile" 2>conftest.err)
6246   cat conftest.err >&5
6247   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6248   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6249   cat conftest.err >&5
6250   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6251   cat conftest.out >&5
6252   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6253     lt_cv_nm_interface="MS dumpbin"
6254   fi
6255   rm -f conftest*
6256 fi
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6258 $as_echo "$lt_cv_nm_interface" >&6; }
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6261 $as_echo_n "checking whether ln -s works... " >&6; }
6262 LN_S=$as_ln_s
6263 if test "$LN_S" = "ln -s"; then
6264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6265 $as_echo "yes" >&6; }
6266 else
6267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6268 $as_echo "no, using $LN_S" >&6; }
6269 fi
6271 # find the maximum length of command line arguments
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6273 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6274 if ${lt_cv_sys_max_cmd_len+:} false; then :
6275   $as_echo_n "(cached) " >&6
6276 else
6277     i=0
6278   teststring="ABCD"
6280   case $build_os in
6281   msdosdjgpp*)
6282     # On DJGPP, this test can blow up pretty badly due to problems in libc
6283     # (any single argument exceeding 2000 bytes causes a buffer overrun
6284     # during glob expansion).  Even if it were fixed, the result of this
6285     # check would be larger than it should be.
6286     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6287     ;;
6289   gnu*)
6290     # Under GNU Hurd, this test is not required because there is
6291     # no limit to the length of command line arguments.
6292     # Libtool will interpret -1 as no limit whatsoever
6293     lt_cv_sys_max_cmd_len=-1;
6294     ;;
6296   cygwin* | mingw* | cegcc*)
6297     # On Win9x/ME, this test blows up -- it succeeds, but takes
6298     # about 5 minutes as the teststring grows exponentially.
6299     # Worse, since 9x/ME are not pre-emptively multitasking,
6300     # you end up with a "frozen" computer, even though with patience
6301     # the test eventually succeeds (with a max line length of 256k).
6302     # Instead, let's just punt: use the minimum linelength reported by
6303     # all of the supported platforms: 8192 (on NT/2K/XP).
6304     lt_cv_sys_max_cmd_len=8192;
6305     ;;
6307   mint*)
6308     # On MiNT this can take a long time and run out of memory.
6309     lt_cv_sys_max_cmd_len=8192;
6310     ;;
6312   amigaos*)
6313     # On AmigaOS with pdksh, this test takes hours, literally.
6314     # So we just punt and use a minimum line length of 8192.
6315     lt_cv_sys_max_cmd_len=8192;
6316     ;;
6318   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6319     # This has been around since 386BSD, at least.  Likely further.
6320     if test -x /sbin/sysctl; then
6321       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6322     elif test -x /usr/sbin/sysctl; then
6323       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6324     else
6325       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6326     fi
6327     # And add a safety zone
6328     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6329     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6330     ;;
6332   interix*)
6333     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6334     lt_cv_sys_max_cmd_len=196608
6335     ;;
6337   os2*)
6338     # The test takes a long time on OS/2.
6339     lt_cv_sys_max_cmd_len=8192
6340     ;;
6342   osf*)
6343     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6344     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6345     # nice to cause kernel panics so lets avoid the loop below.
6346     # First set a reasonable default.
6347     lt_cv_sys_max_cmd_len=16384
6348     #
6349     if test -x /sbin/sysconfig; then
6350       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6351         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6352       esac
6353     fi
6354     ;;
6355   sco3.2v5*)
6356     lt_cv_sys_max_cmd_len=102400
6357     ;;
6358   sysv5* | sco5v6* | sysv4.2uw2*)
6359     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6360     if test -n "$kargmax"; then
6361       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6362     else
6363       lt_cv_sys_max_cmd_len=32768
6364     fi
6365     ;;
6366   *)
6367     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6368     if test -n "$lt_cv_sys_max_cmd_len"; then
6369       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6370       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6371     else
6372       # Make teststring a little bigger before we do anything with it.
6373       # a 1K string should be a reasonable start.
6374       for i in 1 2 3 4 5 6 7 8 ; do
6375         teststring=$teststring$teststring
6376       done
6377       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6378       # If test is not a shell built-in, we'll probably end up computing a
6379       # maximum length that is only half of the actual maximum length, but
6380       # we can't tell.
6381       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6382                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6383               test $i != 17 # 1/2 MB should be enough
6384       do
6385         i=`expr $i + 1`
6386         teststring=$teststring$teststring
6387       done
6388       # Only check the string length outside the loop.
6389       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6390       teststring=
6391       # Add a significant safety factor because C++ compilers can tack on
6392       # massive amounts of additional arguments before passing them to the
6393       # linker.  It appears as though 1/2 is a usable value.
6394       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6395     fi
6396     ;;
6397   esac
6399 fi
6401 if test -n $lt_cv_sys_max_cmd_len ; then
6402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6403 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6404 else
6405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6406 $as_echo "none" >&6; }
6407 fi
6408 max_cmd_len=$lt_cv_sys_max_cmd_len
6415 : ${CP="cp -f"}
6416 : ${MV="mv -f"}
6417 : ${RM="rm -f"}
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6420 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6421 # Try some XSI features
6422 xsi_shell=no
6423 ( _lt_dummy="a/b/c"
6424   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6425       = c,a/b,b/c, \
6426     && eval 'test $(( 1 + 1 )) -eq 2 \
6427     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6428   && xsi_shell=yes
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6430 $as_echo "$xsi_shell" >&6; }
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6434 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6435 lt_shell_append=no
6436 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6437     >/dev/null 2>&1 \
6438   && lt_shell_append=yes
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6440 $as_echo "$lt_shell_append" >&6; }
6443 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6444   lt_unset=unset
6445 else
6446   lt_unset=false
6447 fi
6453 # test EBCDIC or ASCII
6454 case `echo X|tr X '\101'` in
6455  A) # ASCII based system
6456     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6457   lt_SP2NL='tr \040 \012'
6458   lt_NL2SP='tr \015\012 \040\040'
6459   ;;
6460  *) # EBCDIC based system
6461   lt_SP2NL='tr \100 \n'
6462   lt_NL2SP='tr \r\n \100\100'
6463   ;;
6464 esac
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6475 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6476 if ${lt_cv_to_host_file_cmd+:} false; then :
6477   $as_echo_n "(cached) " >&6
6478 else
6479   case $host in
6480   *-*-mingw* )
6481     case $build in
6482       *-*-mingw* ) # actually msys
6483         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6484         ;;
6485       *-*-cygwin* )
6486         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6487         ;;
6488       * ) # otherwise, assume *nix
6489         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6490         ;;
6491     esac
6492     ;;
6493   *-*-cygwin* )
6494     case $build in
6495       *-*-mingw* ) # actually msys
6496         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6497         ;;
6498       *-*-cygwin* )
6499         lt_cv_to_host_file_cmd=func_convert_file_noop
6500         ;;
6501       * ) # otherwise, assume *nix
6502         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6503         ;;
6504     esac
6505     ;;
6506   * ) # unhandled hosts (and "normal" native builds)
6507     lt_cv_to_host_file_cmd=func_convert_file_noop
6508     ;;
6509 esac
6511 fi
6513 to_host_file_cmd=$lt_cv_to_host_file_cmd
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6515 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6522 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6523 if ${lt_cv_to_tool_file_cmd+:} false; then :
6524   $as_echo_n "(cached) " >&6
6525 else
6526   #assume ordinary cross tools, or native build.
6527 lt_cv_to_tool_file_cmd=func_convert_file_noop
6528 case $host in
6529   *-*-mingw* )
6530     case $build in
6531       *-*-mingw* ) # actually msys
6532         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6533         ;;
6534     esac
6535     ;;
6536 esac
6538 fi
6540 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6542 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6549 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6550 if ${lt_cv_ld_reload_flag+:} false; then :
6551   $as_echo_n "(cached) " >&6
6552 else
6553   lt_cv_ld_reload_flag='-r'
6554 fi
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6556 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6557 reload_flag=$lt_cv_ld_reload_flag
6558 case $reload_flag in
6559 "" | " "*) ;;
6560 *) reload_flag=" $reload_flag" ;;
6561 esac
6562 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6563 case $host_os in
6564   cygwin* | mingw* | pw32* | cegcc*)
6565     if test "$GCC" != yes; then
6566       reload_cmds=false
6567     fi
6568     ;;
6569   darwin*)
6570     if test "$GCC" = yes; then
6571       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6572     else
6573       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6574     fi
6575     ;;
6576 esac
6586 if test -n "$ac_tool_prefix"; then
6587   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6588 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if ${ac_cv_prog_OBJDUMP+:} false; then :
6592   $as_echo_n "(cached) " >&6
6593 else
6594   if test -n "$OBJDUMP"; then
6595   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6596 else
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6599 do
6600   IFS=$as_save_IFS
6601   test -z "$as_dir" && as_dir=.
6602     for ac_exec_ext in '' $ac_executable_extensions; do
6603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6604     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606     break 2
6607   fi
6608 done
6609   done
6610 IFS=$as_save_IFS
6612 fi
6613 fi
6614 OBJDUMP=$ac_cv_prog_OBJDUMP
6615 if test -n "$OBJDUMP"; then
6616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6617 $as_echo "$OBJDUMP" >&6; }
6618 else
6619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 $as_echo "no" >&6; }
6621 fi
6624 fi
6625 if test -z "$ac_cv_prog_OBJDUMP"; then
6626   ac_ct_OBJDUMP=$OBJDUMP
6627   # Extract the first word of "objdump", so it can be a program name with args.
6628 set dummy objdump; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6632   $as_echo_n "(cached) " >&6
6633 else
6634   if test -n "$ac_ct_OBJDUMP"; then
6635   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640   IFS=$as_save_IFS
6641   test -z "$as_dir" && as_dir=.
6642     for ac_exec_ext in '' $ac_executable_extensions; do
6643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646     break 2
6647   fi
6648 done
6649   done
6650 IFS=$as_save_IFS
6652 fi
6653 fi
6654 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6655 if test -n "$ac_ct_OBJDUMP"; then
6656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6657 $as_echo "$ac_ct_OBJDUMP" >&6; }
6658 else
6659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6661 fi
6663   if test "x$ac_ct_OBJDUMP" = x; then
6664     OBJDUMP="false"
6665   else
6666     case $cross_compiling:$ac_tool_warned in
6667 yes:)
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;}
6670 ac_tool_warned=yes ;;
6671 esac
6672     OBJDUMP=$ac_ct_OBJDUMP
6673   fi
6674 else
6675   OBJDUMP="$ac_cv_prog_OBJDUMP"
6676 fi
6678 test -z "$OBJDUMP" && OBJDUMP=objdump
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6689 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6690 if ${lt_cv_deplibs_check_method+:} false; then :
6691   $as_echo_n "(cached) " >&6
6692 else
6693   lt_cv_file_magic_cmd='$MAGIC_CMD'
6694 lt_cv_file_magic_test_file=
6695 lt_cv_deplibs_check_method='unknown'
6696 # Need to set the preceding variable on all platforms that support
6697 # interlibrary dependencies.
6698 # 'none' -- dependencies not supported.
6699 # `unknown' -- same as none, but documents that we really don't know.
6700 # 'pass_all' -- all dependencies passed with no checks.
6701 # 'test_compile' -- check by making test program.
6702 # 'file_magic [[regex]]' -- check by looking for files in library path
6703 # which responds to the $file_magic_cmd with a given extended regex.
6704 # If you have `file' or equivalent on your system and you're not sure
6705 # whether `pass_all' will *always* work, you probably want this one.
6707 case $host_os in
6708 aix[4-9]*)
6709   lt_cv_deplibs_check_method=pass_all
6710   ;;
6712 beos*)
6713   lt_cv_deplibs_check_method=pass_all
6714   ;;
6716 bsdi[45]*)
6717   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6718   lt_cv_file_magic_cmd='/usr/bin/file -L'
6719   lt_cv_file_magic_test_file=/shlib/libc.so
6720   ;;
6722 cygwin*)
6723   # func_win32_libid is a shell function defined in ltmain.sh
6724   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6725   lt_cv_file_magic_cmd='func_win32_libid'
6726   ;;
6728 mingw* | pw32*)
6729   # Base MSYS/MinGW do not provide the 'file' command needed by
6730   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6731   # unless we find 'file', for example because we are cross-compiling.
6732   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6733   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6734     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6735     lt_cv_file_magic_cmd='func_win32_libid'
6736   else
6737     # Keep this pattern in sync with the one in func_win32_libid.
6738     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6739     lt_cv_file_magic_cmd='$OBJDUMP -f'
6740   fi
6741   ;;
6743 cegcc*)
6744   # use the weaker test based on 'objdump'. See mingw*.
6745   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6746   lt_cv_file_magic_cmd='$OBJDUMP -f'
6747   ;;
6749 darwin* | rhapsody*)
6750   lt_cv_deplibs_check_method=pass_all
6751   ;;
6753 freebsd* | dragonfly*)
6754   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6755     case $host_cpu in
6756     i*86 )
6757       # Not sure whether the presence of OpenBSD here was a mistake.
6758       # Let's accept both of them until this is cleared up.
6759       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6760       lt_cv_file_magic_cmd=/usr/bin/file
6761       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6762       ;;
6763     esac
6764   else
6765     lt_cv_deplibs_check_method=pass_all
6766   fi
6767   ;;
6769 gnu*)
6770   lt_cv_deplibs_check_method=pass_all
6771   ;;
6773 haiku*)
6774   lt_cv_deplibs_check_method=pass_all
6775   ;;
6777 hpux10.20* | hpux11*)
6778   lt_cv_file_magic_cmd=/usr/bin/file
6779   case $host_cpu in
6780   ia64*)
6781     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6782     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6783     ;;
6784   hppa*64*)
6785     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]'
6786     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6787     ;;
6788   *)
6789     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6790     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6791     ;;
6792   esac
6793   ;;
6795 interix[3-9]*)
6796   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6797   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6798   ;;
6800 irix5* | irix6* | nonstopux*)
6801   case $LD in
6802   *-32|*"-32 ") libmagic=32-bit;;
6803   *-n32|*"-n32 ") libmagic=N32;;
6804   *-64|*"-64 ") libmagic=64-bit;;
6805   *) libmagic=never-match;;
6806   esac
6807   lt_cv_deplibs_check_method=pass_all
6808   ;;
6810 # This must be glibc/ELF.
6811 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6812   lt_cv_deplibs_check_method=pass_all
6813   ;;
6815 netbsd* | netbsdelf*-gnu)
6816   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6817     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6818   else
6819     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6820   fi
6821   ;;
6823 newos6*)
6824   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6825   lt_cv_file_magic_cmd=/usr/bin/file
6826   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6827   ;;
6829 *nto* | *qnx*)
6830   lt_cv_deplibs_check_method=pass_all
6831   ;;
6833 openbsd*)
6834   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6835     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6836   else
6837     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6838   fi
6839   ;;
6841 osf3* | osf4* | osf5*)
6842   lt_cv_deplibs_check_method=pass_all
6843   ;;
6845 rdos*)
6846   lt_cv_deplibs_check_method=pass_all
6847   ;;
6849 solaris*)
6850   lt_cv_deplibs_check_method=pass_all
6851   ;;
6853 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6854   lt_cv_deplibs_check_method=pass_all
6855   ;;
6857 sysv4 | sysv4.3*)
6858   case $host_vendor in
6859   motorola)
6860     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]'
6861     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6862     ;;
6863   ncr)
6864     lt_cv_deplibs_check_method=pass_all
6865     ;;
6866   sequent)
6867     lt_cv_file_magic_cmd='/bin/file'
6868     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6869     ;;
6870   sni)
6871     lt_cv_file_magic_cmd='/bin/file'
6872     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6873     lt_cv_file_magic_test_file=/lib/libc.so
6874     ;;
6875   siemens)
6876     lt_cv_deplibs_check_method=pass_all
6877     ;;
6878   pc)
6879     lt_cv_deplibs_check_method=pass_all
6880     ;;
6881   esac
6882   ;;
6884 tpf*)
6885   lt_cv_deplibs_check_method=pass_all
6886   ;;
6887 esac
6889 fi
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6891 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6893 file_magic_glob=
6894 want_nocaseglob=no
6895 if test "$build" = "$host"; then
6896   case $host_os in
6897   mingw* | pw32*)
6898     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6899       want_nocaseglob=yes
6900     else
6901       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6902     fi
6903     ;;
6904   esac
6905 fi
6907 file_magic_cmd=$lt_cv_file_magic_cmd
6908 deplibs_check_method=$lt_cv_deplibs_check_method
6909 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6932 if test -n "$ac_tool_prefix"; then
6933   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6934 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936 $as_echo_n "checking for $ac_word... " >&6; }
6937 if ${ac_cv_prog_DLLTOOL+:} false; then :
6938   $as_echo_n "(cached) " >&6
6939 else
6940   if test -n "$DLLTOOL"; then
6941   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6942 else
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6945 do
6946   IFS=$as_save_IFS
6947   test -z "$as_dir" && as_dir=.
6948     for ac_exec_ext in '' $ac_executable_extensions; do
6949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6950     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952     break 2
6953   fi
6954 done
6955   done
6956 IFS=$as_save_IFS
6958 fi
6959 fi
6960 DLLTOOL=$ac_cv_prog_DLLTOOL
6961 if test -n "$DLLTOOL"; then
6962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6963 $as_echo "$DLLTOOL" >&6; }
6964 else
6965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6967 fi
6970 fi
6971 if test -z "$ac_cv_prog_DLLTOOL"; then
6972   ac_ct_DLLTOOL=$DLLTOOL
6973   # Extract the first word of "dlltool", so it can be a program name with args.
6974 set dummy dlltool; ac_word=$2
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976 $as_echo_n "checking for $ac_word... " >&6; }
6977 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6978   $as_echo_n "(cached) " >&6
6979 else
6980   if test -n "$ac_ct_DLLTOOL"; then
6981   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6982 else
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986   IFS=$as_save_IFS
6987   test -z "$as_dir" && as_dir=.
6988     for ac_exec_ext in '' $ac_executable_extensions; do
6989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6990     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992     break 2
6993   fi
6994 done
6995   done
6996 IFS=$as_save_IFS
6998 fi
6999 fi
7000 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7001 if test -n "$ac_ct_DLLTOOL"; then
7002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7003 $as_echo "$ac_ct_DLLTOOL" >&6; }
7004 else
7005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 $as_echo "no" >&6; }
7007 fi
7009   if test "x$ac_ct_DLLTOOL" = x; then
7010     DLLTOOL="false"
7011   else
7012     case $cross_compiling:$ac_tool_warned in
7013 yes:)
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7016 ac_tool_warned=yes ;;
7017 esac
7018     DLLTOOL=$ac_ct_DLLTOOL
7019   fi
7020 else
7021   DLLTOOL="$ac_cv_prog_DLLTOOL"
7022 fi
7024 test -z "$DLLTOOL" && DLLTOOL=dlltool
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7036 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7037 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7038   $as_echo_n "(cached) " >&6
7039 else
7040   lt_cv_sharedlib_from_linklib_cmd='unknown'
7042 case $host_os in
7043 cygwin* | mingw* | pw32* | cegcc*)
7044   # two different shell functions defined in ltmain.sh
7045   # decide which to use based on capabilities of $DLLTOOL
7046   case `$DLLTOOL --help 2>&1` in
7047   *--identify-strict*)
7048     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7049     ;;
7050   *)
7051     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7052     ;;
7053   esac
7054   ;;
7055 *)
7056   # fallback: assume linklib IS sharedlib
7057   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7058   ;;
7059 esac
7061 fi
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7063 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7064 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7065 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7073 if test -n "$ac_tool_prefix"; then
7074   for ac_prog in ar
7075   do
7076     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079 $as_echo_n "checking for $ac_word... " >&6; }
7080 if ${ac_cv_prog_AR+:} false; then :
7081   $as_echo_n "(cached) " >&6
7082 else
7083   if test -n "$AR"; then
7084   ac_cv_prog_AR="$AR" # Let the user override the test.
7085 else
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089   IFS=$as_save_IFS
7090   test -z "$as_dir" && as_dir=.
7091     for ac_exec_ext in '' $ac_executable_extensions; do
7092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7093     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095     break 2
7096   fi
7097 done
7098   done
7099 IFS=$as_save_IFS
7101 fi
7102 fi
7103 AR=$ac_cv_prog_AR
7104 if test -n "$AR"; then
7105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7106 $as_echo "$AR" >&6; }
7107 else
7108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7110 fi
7113     test -n "$AR" && break
7114   done
7115 fi
7116 if test -z "$AR"; then
7117   ac_ct_AR=$AR
7118   for ac_prog in ar
7119 do
7120   # Extract the first word of "$ac_prog", so it can be a program name with args.
7121 set dummy $ac_prog; ac_word=$2
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7125   $as_echo_n "(cached) " >&6
7126 else
7127   if test -n "$ac_ct_AR"; then
7128   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7129 else
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7132 do
7133   IFS=$as_save_IFS
7134   test -z "$as_dir" && as_dir=.
7135     for ac_exec_ext in '' $ac_executable_extensions; do
7136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7137     ac_cv_prog_ac_ct_AR="$ac_prog"
7138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7139     break 2
7140   fi
7141 done
7142   done
7143 IFS=$as_save_IFS
7145 fi
7146 fi
7147 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7148 if test -n "$ac_ct_AR"; then
7149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7150 $as_echo "$ac_ct_AR" >&6; }
7151 else
7152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7154 fi
7157   test -n "$ac_ct_AR" && break
7158 done
7160   if test "x$ac_ct_AR" = x; then
7161     AR="false"
7162   else
7163     case $cross_compiling:$ac_tool_warned in
7164 yes:)
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7167 ac_tool_warned=yes ;;
7168 esac
7169     AR=$ac_ct_AR
7170   fi
7171 fi
7173 : ${AR=ar}
7174 : ${AR_FLAGS=cru}
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7187 $as_echo_n "checking for archiver @FILE support... " >&6; }
7188 if ${lt_cv_ar_at_file+:} false; then :
7189   $as_echo_n "(cached) " >&6
7190 else
7191   lt_cv_ar_at_file=no
7192    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h.  */
7195 int
7196 main ()
7199   ;
7200   return 0;
7202 _ACEOF
7203 if ac_fn_c_try_compile "$LINENO"; then :
7204   echo conftest.$ac_objext > conftest.lst
7205       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7206       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7207   (eval $lt_ar_try) 2>&5
7208   ac_status=$?
7209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210   test $ac_status = 0; }
7211       if test "$ac_status" -eq 0; then
7212         # Ensure the archiver fails upon bogus file names.
7213         rm -f conftest.$ac_objext libconftest.a
7214         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7215   (eval $lt_ar_try) 2>&5
7216   ac_status=$?
7217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7218   test $ac_status = 0; }
7219         if test "$ac_status" -ne 0; then
7220           lt_cv_ar_at_file=@
7221         fi
7222       fi
7223       rm -f conftest.* libconftest.a
7225 fi
7226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7228 fi
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7230 $as_echo "$lt_cv_ar_at_file" >&6; }
7232 if test "x$lt_cv_ar_at_file" = xno; then
7233   archiver_list_spec=
7234 else
7235   archiver_list_spec=$lt_cv_ar_at_file
7236 fi
7244 if test -n "$ac_tool_prefix"; then
7245   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7246 set dummy ${ac_tool_prefix}strip; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if ${ac_cv_prog_STRIP+:} false; then :
7250   $as_echo_n "(cached) " >&6
7251 else
7252   if test -n "$STRIP"; then
7253   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7254 else
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7257 do
7258   IFS=$as_save_IFS
7259   test -z "$as_dir" && as_dir=.
7260     for ac_exec_ext in '' $ac_executable_extensions; do
7261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7262     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264     break 2
7265   fi
7266 done
7267   done
7268 IFS=$as_save_IFS
7270 fi
7271 fi
7272 STRIP=$ac_cv_prog_STRIP
7273 if test -n "$STRIP"; then
7274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7275 $as_echo "$STRIP" >&6; }
7276 else
7277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7279 fi
7282 fi
7283 if test -z "$ac_cv_prog_STRIP"; then
7284   ac_ct_STRIP=$STRIP
7285   # Extract the first word of "strip", so it can be a program name with args.
7286 set dummy strip; ac_word=$2
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 $as_echo_n "checking for $ac_word... " >&6; }
7289 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7290   $as_echo_n "(cached) " >&6
7291 else
7292   if test -n "$ac_ct_STRIP"; then
7293   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7294 else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
7298   IFS=$as_save_IFS
7299   test -z "$as_dir" && as_dir=.
7300     for ac_exec_ext in '' $ac_executable_extensions; do
7301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7302     ac_cv_prog_ac_ct_STRIP="strip"
7303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304     break 2
7305   fi
7306 done
7307   done
7308 IFS=$as_save_IFS
7310 fi
7311 fi
7312 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7313 if test -n "$ac_ct_STRIP"; then
7314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7315 $as_echo "$ac_ct_STRIP" >&6; }
7316 else
7317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318 $as_echo "no" >&6; }
7319 fi
7321   if test "x$ac_ct_STRIP" = x; then
7322     STRIP=":"
7323   else
7324     case $cross_compiling:$ac_tool_warned in
7325 yes:)
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7328 ac_tool_warned=yes ;;
7329 esac
7330     STRIP=$ac_ct_STRIP
7331   fi
7332 else
7333   STRIP="$ac_cv_prog_STRIP"
7334 fi
7336 test -z "$STRIP" && STRIP=:
7343 if test -n "$ac_tool_prefix"; then
7344   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7345 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if ${ac_cv_prog_RANLIB+:} false; then :
7349   $as_echo_n "(cached) " >&6
7350 else
7351   if test -n "$RANLIB"; then
7352   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7353 else
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7356 do
7357   IFS=$as_save_IFS
7358   test -z "$as_dir" && as_dir=.
7359     for ac_exec_ext in '' $ac_executable_extensions; do
7360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7361     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363     break 2
7364   fi
7365 done
7366   done
7367 IFS=$as_save_IFS
7369 fi
7370 fi
7371 RANLIB=$ac_cv_prog_RANLIB
7372 if test -n "$RANLIB"; then
7373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7374 $as_echo "$RANLIB" >&6; }
7375 else
7376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7378 fi
7381 fi
7382 if test -z "$ac_cv_prog_RANLIB"; then
7383   ac_ct_RANLIB=$RANLIB
7384   # Extract the first word of "ranlib", so it can be a program name with args.
7385 set dummy ranlib; ac_word=$2
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387 $as_echo_n "checking for $ac_word... " >&6; }
7388 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7389   $as_echo_n "(cached) " >&6
7390 else
7391   if test -n "$ac_ct_RANLIB"; then
7392   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7393 else
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 for as_dir in $PATH
7396 do
7397   IFS=$as_save_IFS
7398   test -z "$as_dir" && as_dir=.
7399     for ac_exec_ext in '' $ac_executable_extensions; do
7400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7401     ac_cv_prog_ac_ct_RANLIB="ranlib"
7402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7403     break 2
7404   fi
7405 done
7406   done
7407 IFS=$as_save_IFS
7409 fi
7410 fi
7411 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7412 if test -n "$ac_ct_RANLIB"; then
7413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7414 $as_echo "$ac_ct_RANLIB" >&6; }
7415 else
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7418 fi
7420   if test "x$ac_ct_RANLIB" = x; then
7421     RANLIB=":"
7422   else
7423     case $cross_compiling:$ac_tool_warned in
7424 yes:)
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7427 ac_tool_warned=yes ;;
7428 esac
7429     RANLIB=$ac_ct_RANLIB
7430   fi
7431 else
7432   RANLIB="$ac_cv_prog_RANLIB"
7433 fi
7435 test -z "$RANLIB" && RANLIB=:
7442 # Determine commands to create old-style static archives.
7443 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7444 old_postinstall_cmds='chmod 644 $oldlib'
7445 old_postuninstall_cmds=
7447 if test -n "$RANLIB"; then
7448   case $host_os in
7449   openbsd*)
7450     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7451     ;;
7452   *)
7453     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7454     ;;
7455   esac
7456   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7457 fi
7459 case $host_os in
7460   darwin*)
7461     lock_old_archive_extraction=yes ;;
7462   *)
7463     lock_old_archive_extraction=no ;;
7464 esac
7504 # If no C compiler was specified, use CC.
7505 LTCC=${LTCC-"$CC"}
7507 # If no C compiler flags were specified, use CFLAGS.
7508 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7510 # Allow CC to be a program name with arguments.
7511 compiler=$CC
7514 # Check for command to grab the raw symbol name followed by C symbol from nm.
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7516 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7517 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7518   $as_echo_n "(cached) " >&6
7519 else
7521 # These are sane defaults that work on at least a few old systems.
7522 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7524 # Character class describing NM global symbol codes.
7525 symcode='[BCDEGRST]'
7527 # Regexp to match symbols that can be accessed directly from C.
7528 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7530 # Define system-specific variables.
7531 case $host_os in
7532 aix*)
7533   symcode='[BCDT]'
7534   ;;
7535 cygwin* | mingw* | pw32* | cegcc*)
7536   symcode='[ABCDGISTW]'
7537   ;;
7538 hpux*)
7539   if test "$host_cpu" = ia64; then
7540     symcode='[ABCDEGRST]'
7541   fi
7542   ;;
7543 irix* | nonstopux*)
7544   symcode='[BCDEGRST]'
7545   ;;
7546 osf*)
7547   symcode='[BCDEGQRST]'
7548   ;;
7549 solaris*)
7550   symcode='[BDRT]'
7551   ;;
7552 sco3.2v5*)
7553   symcode='[DT]'
7554   ;;
7555 sysv4.2uw2*)
7556   symcode='[DT]'
7557   ;;
7558 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7559   symcode='[ABDT]'
7560   ;;
7561 sysv4)
7562   symcode='[DFNSTU]'
7563   ;;
7564 esac
7566 # If we're using GNU nm, then use its standard symbol codes.
7567 case `$NM -V 2>&1` in
7568 *GNU* | *'with BFD'*)
7569   symcode='[ABCDGIRSTW]' ;;
7570 esac
7572 # Transform an extracted symbol line into a proper C declaration.
7573 # Some systems (esp. on ia64) link data and code symbols differently,
7574 # so use this general approach.
7575 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7577 # Transform an extracted symbol line into symbol name and symbol address
7578 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7579 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7581 # Handle CRLF in mingw tool chain
7582 opt_cr=
7583 case $build_os in
7584 mingw*)
7585   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7586   ;;
7587 esac
7589 # Try without a prefix underscore, then with it.
7590 for ac_symprfx in "" "_"; do
7592   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7593   symxfrm="\\1 $ac_symprfx\\2 \\2"
7595   # Write the raw and C identifiers.
7596   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7597     # Fake it for dumpbin and say T for any non-static function
7598     # and D for any global variable.
7599     # Also find C++ and __fastcall symbols from MSVC++,
7600     # which start with @ or ?.
7601     lt_cv_sys_global_symbol_pipe="$AWK '"\
7602 "     {last_section=section; section=\$ 3};"\
7603 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7604 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7605 "     \$ 0!~/External *\|/{next};"\
7606 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7607 "     {if(hide[section]) next};"\
7608 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7609 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7610 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7611 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7612 "     ' prfx=^$ac_symprfx"
7613   else
7614     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7615   fi
7616   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7618   # Check to see that the pipe works correctly.
7619   pipe_works=no
7621   rm -f conftest*
7622   cat > conftest.$ac_ext <<_LT_EOF
7623 #ifdef __cplusplus
7624 extern "C" {
7625 #endif
7626 char nm_test_var;
7627 void nm_test_func(void);
7628 void nm_test_func(void){}
7629 #ifdef __cplusplus
7631 #endif
7632 int main(){nm_test_var='a';nm_test_func();return(0);}
7633 _LT_EOF
7635   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7636   (eval $ac_compile) 2>&5
7637   ac_status=$?
7638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7639   test $ac_status = 0; }; then
7640     # Now try to grab the symbols.
7641     nlist=conftest.nm
7642     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7643   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7644   ac_status=$?
7645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7646   test $ac_status = 0; } && test -s "$nlist"; then
7647       # Try sorting and uniquifying the output.
7648       if sort "$nlist" | uniq > "$nlist"T; then
7649         mv -f "$nlist"T "$nlist"
7650       else
7651         rm -f "$nlist"T
7652       fi
7654       # Make sure that we snagged all the symbols we need.
7655       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7656         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7657           cat <<_LT_EOF > conftest.$ac_ext
7658 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7659 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7660 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7661    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7662 # define LT_DLSYM_CONST
7663 #elif defined(__osf__)
7664 /* This system does not cope well with relocations in const data.  */
7665 # define LT_DLSYM_CONST
7666 #else
7667 # define LT_DLSYM_CONST const
7668 #endif
7670 #ifdef __cplusplus
7671 extern "C" {
7672 #endif
7674 _LT_EOF
7675           # Now generate the symbol file.
7676           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7678           cat <<_LT_EOF >> conftest.$ac_ext
7680 /* The mapping between symbol names and symbols.  */
7681 LT_DLSYM_CONST struct {
7682   const char *name;
7683   void       *address;
7685 lt__PROGRAM__LTX_preloaded_symbols[] =
7687   { "@PROGRAM@", (void *) 0 },
7688 _LT_EOF
7689           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7690           cat <<\_LT_EOF >> conftest.$ac_ext
7691   {0, (void *) 0}
7692 };
7694 /* This works around a problem in FreeBSD linker */
7695 #ifdef FREEBSD_WORKAROUND
7696 static const void *lt_preloaded_setup() {
7697   return lt__PROGRAM__LTX_preloaded_symbols;
7699 #endif
7701 #ifdef __cplusplus
7703 #endif
7704 _LT_EOF
7705           # Now try linking the two files.
7706           mv conftest.$ac_objext conftstm.$ac_objext
7707           lt_globsym_save_LIBS=$LIBS
7708           lt_globsym_save_CFLAGS=$CFLAGS
7709           LIBS="conftstm.$ac_objext"
7710           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7711           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7712   (eval $ac_link) 2>&5
7713   ac_status=$?
7714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7715   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7716             pipe_works=yes
7717           fi
7718           LIBS=$lt_globsym_save_LIBS
7719           CFLAGS=$lt_globsym_save_CFLAGS
7720         else
7721           echo "cannot find nm_test_func in $nlist" >&5
7722         fi
7723       else
7724         echo "cannot find nm_test_var in $nlist" >&5
7725       fi
7726     else
7727       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7728     fi
7729   else
7730     echo "$progname: failed program was:" >&5
7731     cat conftest.$ac_ext >&5
7732   fi
7733   rm -rf conftest* conftst*
7735   # Do not use the global_symbol_pipe unless it works.
7736   if test "$pipe_works" = yes; then
7737     break
7738   else
7739     lt_cv_sys_global_symbol_pipe=
7740   fi
7741 done
7743 fi
7745 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7746   lt_cv_sys_global_symbol_to_cdecl=
7747 fi
7748 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7750 $as_echo "failed" >&6; }
7751 else
7752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7753 $as_echo "ok" >&6; }
7754 fi
7756 # Response file support.
7757 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7758   nm_file_list_spec='@'
7759 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7760   nm_file_list_spec='@'
7761 fi
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7790 $as_echo_n "checking for sysroot... " >&6; }
7792 # Check whether --with-sysroot was given.
7793 if test "${with_sysroot+set}" = set; then :
7794   withval=$with_sysroot;
7795 else
7796   with_sysroot=no
7797 fi
7800 lt_sysroot=
7801 case ${with_sysroot} in #(
7802  yes)
7803    if test "$GCC" = yes; then
7804      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7805    fi
7806    ;; #(
7807  /*)
7808    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7809    ;; #(
7810  no|'')
7811    ;; #(
7812  *)
7813    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7814 $as_echo "${with_sysroot}" >&6; }
7815    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7816    ;;
7817 esac
7819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7820 $as_echo "${lt_sysroot:-no}" >&6; }
7826 # Check whether --enable-libtool-lock was given.
7827 if test "${enable_libtool_lock+set}" = set; then :
7828   enableval=$enable_libtool_lock;
7829 fi
7831 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7833 # Some flags need to be propagated to the compiler or linker for good
7834 # libtool support.
7835 case $host in
7836 ia64-*-hpux*)
7837   # Find out which ABI we are using.
7838   echo 'int i;' > conftest.$ac_ext
7839   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7840   (eval $ac_compile) 2>&5
7841   ac_status=$?
7842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7843   test $ac_status = 0; }; then
7844     case `/usr/bin/file conftest.$ac_objext` in
7845       *ELF-32*)
7846         HPUX_IA64_MODE="32"
7847         ;;
7848       *ELF-64*)
7849         HPUX_IA64_MODE="64"
7850         ;;
7851     esac
7852   fi
7853   rm -rf conftest*
7854   ;;
7855 *-*-irix6*)
7856   # Find out which ABI we are using.
7857   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7858   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7859   (eval $ac_compile) 2>&5
7860   ac_status=$?
7861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7862   test $ac_status = 0; }; then
7863     if test "$lt_cv_prog_gnu_ld" = yes; then
7864       case `/usr/bin/file conftest.$ac_objext` in
7865         *32-bit*)
7866           LD="${LD-ld} -melf32bsmip"
7867           ;;
7868         *N32*)
7869           LD="${LD-ld} -melf32bmipn32"
7870           ;;
7871         *64-bit*)
7872           LD="${LD-ld} -melf64bmip"
7873         ;;
7874       esac
7875     else
7876       case `/usr/bin/file conftest.$ac_objext` in
7877         *32-bit*)
7878           LD="${LD-ld} -32"
7879           ;;
7880         *N32*)
7881           LD="${LD-ld} -n32"
7882           ;;
7883         *64-bit*)
7884           LD="${LD-ld} -64"
7885           ;;
7886       esac
7887     fi
7888   fi
7889   rm -rf conftest*
7890   ;;
7892 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7893 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7894   # Find out which ABI we are using.
7895   echo 'int i;' > conftest.$ac_ext
7896   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7897   (eval $ac_compile) 2>&5
7898   ac_status=$?
7899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7900   test $ac_status = 0; }; then
7901     case `/usr/bin/file conftest.o` in
7902       *32-bit*)
7903         case $host in
7904           x86_64-*kfreebsd*-gnu)
7905             LD="${LD-ld} -m elf_i386_fbsd"
7906             ;;
7907           x86_64-*linux*)
7908             LD="${LD-ld} -m elf_i386"
7909             ;;
7910           ppc64-*linux*|powerpc64-*linux*)
7911             LD="${LD-ld} -m elf32ppclinux"
7912             ;;
7913           s390x-*linux*)
7914             LD="${LD-ld} -m elf_s390"
7915             ;;
7916           sparc64-*linux*)
7917             LD="${LD-ld} -m elf32_sparc"
7918             ;;
7919         esac
7920         ;;
7921       *64-bit*)
7922         case $host in
7923           x86_64-*kfreebsd*-gnu)
7924             LD="${LD-ld} -m elf_x86_64_fbsd"
7925             ;;
7926           x86_64-*linux*)
7927             LD="${LD-ld} -m elf_x86_64"
7928             ;;
7929           ppc*-*linux*|powerpc*-*linux*)
7930             LD="${LD-ld} -m elf64ppc"
7931             ;;
7932           s390*-*linux*|s390*-*tpf*)
7933             LD="${LD-ld} -m elf64_s390"
7934             ;;
7935           sparc*-*linux*)
7936             LD="${LD-ld} -m elf64_sparc"
7937             ;;
7938         esac
7939         ;;
7940     esac
7941   fi
7942   rm -rf conftest*
7943   ;;
7945 *-*-sco3.2v5*)
7946   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7947   SAVE_CFLAGS="$CFLAGS"
7948   CFLAGS="$CFLAGS -belf"
7949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7950 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7951 if ${lt_cv_cc_needs_belf+:} false; then :
7952   $as_echo_n "(cached) " >&6
7953 else
7954   ac_ext=c
7955 ac_cpp='$CPP $CPPFLAGS'
7956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7960      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h.  */
7963 int
7964 main ()
7967   ;
7968   return 0;
7970 _ACEOF
7971 if ac_fn_c_try_link "$LINENO"; then :
7972   lt_cv_cc_needs_belf=yes
7973 else
7974   lt_cv_cc_needs_belf=no
7975 fi
7976 rm -f core conftest.err conftest.$ac_objext \
7977     conftest$ac_exeext conftest.$ac_ext
7978      ac_ext=c
7979 ac_cpp='$CPP $CPPFLAGS'
7980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7984 fi
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7986 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7987   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7988     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7989     CFLAGS="$SAVE_CFLAGS"
7990   fi
7991   ;;
7992 *-*solaris*)
7993   # Find out which ABI we are using.
7994   echo 'int i;' > conftest.$ac_ext
7995   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7996   (eval $ac_compile) 2>&5
7997   ac_status=$?
7998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7999   test $ac_status = 0; }; then
8000     case `/usr/bin/file conftest.o` in
8001     *64-bit*)
8002       case $lt_cv_prog_gnu_ld in
8003       yes*)
8004         case $host in
8005         i?86-*-solaris*)
8006           LD="${LD-ld} -m elf_x86_64"
8007           ;;
8008         sparc*-*-solaris*)
8009           LD="${LD-ld} -m elf64_sparc"
8010           ;;
8011         esac
8012         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8013         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8014           LD="${LD-ld}_sol2"
8015         fi
8016         ;;
8017       *)
8018         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8019           LD="${LD-ld} -64"
8020         fi
8021         ;;
8022       esac
8023       ;;
8024     esac
8025   fi
8026   rm -rf conftest*
8027   ;;
8028 esac
8030 need_locks="$enable_libtool_lock"
8032 if test -n "$ac_tool_prefix"; then
8033   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8034 set dummy ${ac_tool_prefix}mt; ac_word=$2
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036 $as_echo_n "checking for $ac_word... " >&6; }
8037 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8038   $as_echo_n "(cached) " >&6
8039 else
8040   if test -n "$MANIFEST_TOOL"; then
8041   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8042 else
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044 for as_dir in $PATH
8045 do
8046   IFS=$as_save_IFS
8047   test -z "$as_dir" && as_dir=.
8048     for ac_exec_ext in '' $ac_executable_extensions; do
8049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8050     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8052     break 2
8053   fi
8054 done
8055   done
8056 IFS=$as_save_IFS
8058 fi
8059 fi
8060 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8061 if test -n "$MANIFEST_TOOL"; then
8062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8063 $as_echo "$MANIFEST_TOOL" >&6; }
8064 else
8065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 $as_echo "no" >&6; }
8067 fi
8070 fi
8071 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8072   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8073   # Extract the first word of "mt", so it can be a program name with args.
8074 set dummy mt; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8078   $as_echo_n "(cached) " >&6
8079 else
8080   if test -n "$ac_ct_MANIFEST_TOOL"; then
8081   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8085 do
8086   IFS=$as_save_IFS
8087   test -z "$as_dir" && as_dir=.
8088     for ac_exec_ext in '' $ac_executable_extensions; do
8089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8090     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092     break 2
8093   fi
8094 done
8095   done
8096 IFS=$as_save_IFS
8098 fi
8099 fi
8100 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8101 if test -n "$ac_ct_MANIFEST_TOOL"; then
8102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8103 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8104 else
8105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8107 fi
8109   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8110     MANIFEST_TOOL=":"
8111   else
8112     case $cross_compiling:$ac_tool_warned in
8113 yes:)
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8116 ac_tool_warned=yes ;;
8117 esac
8118     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8119   fi
8120 else
8121   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8122 fi
8124 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8126 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8127 if ${lt_cv_path_mainfest_tool+:} false; then :
8128   $as_echo_n "(cached) " >&6
8129 else
8130   lt_cv_path_mainfest_tool=no
8131   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8132   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8133   cat conftest.err >&5
8134   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8135     lt_cv_path_mainfest_tool=yes
8136   fi
8137   rm -f conftest*
8138 fi
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8140 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8141 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8142   MANIFEST_TOOL=:
8143 fi
8150   case $host_os in
8151     rhapsody* | darwin*)
8152     if test -n "$ac_tool_prefix"; then
8153   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8154 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156 $as_echo_n "checking for $ac_word... " >&6; }
8157 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8158   $as_echo_n "(cached) " >&6
8159 else
8160   if test -n "$DSYMUTIL"; then
8161   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8162 else
8163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164 for as_dir in $PATH
8165 do
8166   IFS=$as_save_IFS
8167   test -z "$as_dir" && as_dir=.
8168     for ac_exec_ext in '' $ac_executable_extensions; do
8169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8170     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8172     break 2
8173   fi
8174 done
8175   done
8176 IFS=$as_save_IFS
8178 fi
8179 fi
8180 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8181 if test -n "$DSYMUTIL"; then
8182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8183 $as_echo "$DSYMUTIL" >&6; }
8184 else
8185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8187 fi
8190 fi
8191 if test -z "$ac_cv_prog_DSYMUTIL"; then
8192   ac_ct_DSYMUTIL=$DSYMUTIL
8193   # Extract the first word of "dsymutil", so it can be a program name with args.
8194 set dummy dsymutil; ac_word=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8198   $as_echo_n "(cached) " >&6
8199 else
8200   if test -n "$ac_ct_DSYMUTIL"; then
8201   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8202 else
8203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204 for as_dir in $PATH
8205 do
8206   IFS=$as_save_IFS
8207   test -z "$as_dir" && as_dir=.
8208     for ac_exec_ext in '' $ac_executable_extensions; do
8209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8210     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8212     break 2
8213   fi
8214 done
8215   done
8216 IFS=$as_save_IFS
8218 fi
8219 fi
8220 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8221 if test -n "$ac_ct_DSYMUTIL"; then
8222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8223 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8224 else
8225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 $as_echo "no" >&6; }
8227 fi
8229   if test "x$ac_ct_DSYMUTIL" = x; then
8230     DSYMUTIL=":"
8231   else
8232     case $cross_compiling:$ac_tool_warned in
8233 yes:)
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8236 ac_tool_warned=yes ;;
8237 esac
8238     DSYMUTIL=$ac_ct_DSYMUTIL
8239   fi
8240 else
8241   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8242 fi
8244     if test -n "$ac_tool_prefix"; then
8245   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8246 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8248 $as_echo_n "checking for $ac_word... " >&6; }
8249 if ${ac_cv_prog_NMEDIT+:} false; then :
8250   $as_echo_n "(cached) " >&6
8251 else
8252   if test -n "$NMEDIT"; then
8253   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8254 else
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 for as_dir in $PATH
8257 do
8258   IFS=$as_save_IFS
8259   test -z "$as_dir" && as_dir=.
8260     for ac_exec_ext in '' $ac_executable_extensions; do
8261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8262     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8264     break 2
8265   fi
8266 done
8267   done
8268 IFS=$as_save_IFS
8270 fi
8271 fi
8272 NMEDIT=$ac_cv_prog_NMEDIT
8273 if test -n "$NMEDIT"; then
8274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8275 $as_echo "$NMEDIT" >&6; }
8276 else
8277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8279 fi
8282 fi
8283 if test -z "$ac_cv_prog_NMEDIT"; then
8284   ac_ct_NMEDIT=$NMEDIT
8285   # Extract the first word of "nmedit", so it can be a program name with args.
8286 set dummy nmedit; ac_word=$2
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288 $as_echo_n "checking for $ac_word... " >&6; }
8289 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8290   $as_echo_n "(cached) " >&6
8291 else
8292   if test -n "$ac_ct_NMEDIT"; then
8293   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8294 else
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 for as_dir in $PATH
8297 do
8298   IFS=$as_save_IFS
8299   test -z "$as_dir" && as_dir=.
8300     for ac_exec_ext in '' $ac_executable_extensions; do
8301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8302     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304     break 2
8305   fi
8306 done
8307   done
8308 IFS=$as_save_IFS
8310 fi
8311 fi
8312 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8313 if test -n "$ac_ct_NMEDIT"; then
8314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8315 $as_echo "$ac_ct_NMEDIT" >&6; }
8316 else
8317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318 $as_echo "no" >&6; }
8319 fi
8321   if test "x$ac_ct_NMEDIT" = x; then
8322     NMEDIT=":"
8323   else
8324     case $cross_compiling:$ac_tool_warned in
8325 yes:)
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8328 ac_tool_warned=yes ;;
8329 esac
8330     NMEDIT=$ac_ct_NMEDIT
8331   fi
8332 else
8333   NMEDIT="$ac_cv_prog_NMEDIT"
8334 fi
8336     if test -n "$ac_tool_prefix"; then
8337   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8338 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 $as_echo_n "checking for $ac_word... " >&6; }
8341 if ${ac_cv_prog_LIPO+:} false; then :
8342   $as_echo_n "(cached) " >&6
8343 else
8344   if test -n "$LIPO"; then
8345   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8346 else
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 for as_dir in $PATH
8349 do
8350   IFS=$as_save_IFS
8351   test -z "$as_dir" && as_dir=.
8352     for ac_exec_ext in '' $ac_executable_extensions; do
8353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8354     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8356     break 2
8357   fi
8358 done
8359   done
8360 IFS=$as_save_IFS
8362 fi
8363 fi
8364 LIPO=$ac_cv_prog_LIPO
8365 if test -n "$LIPO"; then
8366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8367 $as_echo "$LIPO" >&6; }
8368 else
8369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370 $as_echo "no" >&6; }
8371 fi
8374 fi
8375 if test -z "$ac_cv_prog_LIPO"; then
8376   ac_ct_LIPO=$LIPO
8377   # Extract the first word of "lipo", so it can be a program name with args.
8378 set dummy lipo; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8382   $as_echo_n "(cached) " >&6
8383 else
8384   if test -n "$ac_ct_LIPO"; then
8385   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8386 else
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 for as_dir in $PATH
8389 do
8390   IFS=$as_save_IFS
8391   test -z "$as_dir" && as_dir=.
8392     for ac_exec_ext in '' $ac_executable_extensions; do
8393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8394     ac_cv_prog_ac_ct_LIPO="lipo"
8395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396     break 2
8397   fi
8398 done
8399   done
8400 IFS=$as_save_IFS
8402 fi
8403 fi
8404 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8405 if test -n "$ac_ct_LIPO"; then
8406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8407 $as_echo "$ac_ct_LIPO" >&6; }
8408 else
8409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8411 fi
8413   if test "x$ac_ct_LIPO" = x; then
8414     LIPO=":"
8415   else
8416     case $cross_compiling:$ac_tool_warned in
8417 yes:)
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8420 ac_tool_warned=yes ;;
8421 esac
8422     LIPO=$ac_ct_LIPO
8423   fi
8424 else
8425   LIPO="$ac_cv_prog_LIPO"
8426 fi
8428     if test -n "$ac_tool_prefix"; then
8429   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8430 set dummy ${ac_tool_prefix}otool; ac_word=$2
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8432 $as_echo_n "checking for $ac_word... " >&6; }
8433 if ${ac_cv_prog_OTOOL+:} false; then :
8434   $as_echo_n "(cached) " >&6
8435 else
8436   if test -n "$OTOOL"; then
8437   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8438 else
8439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440 for as_dir in $PATH
8441 do
8442   IFS=$as_save_IFS
8443   test -z "$as_dir" && as_dir=.
8444     for ac_exec_ext in '' $ac_executable_extensions; do
8445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8446     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8448     break 2
8449   fi
8450 done
8451   done
8452 IFS=$as_save_IFS
8454 fi
8455 fi
8456 OTOOL=$ac_cv_prog_OTOOL
8457 if test -n "$OTOOL"; then
8458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8459 $as_echo "$OTOOL" >&6; }
8460 else
8461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462 $as_echo "no" >&6; }
8463 fi
8466 fi
8467 if test -z "$ac_cv_prog_OTOOL"; then
8468   ac_ct_OTOOL=$OTOOL
8469   # Extract the first word of "otool", so it can be a program name with args.
8470 set dummy otool; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8474   $as_echo_n "(cached) " >&6
8475 else
8476   if test -n "$ac_ct_OTOOL"; then
8477   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8478 else
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8481 do
8482   IFS=$as_save_IFS
8483   test -z "$as_dir" && as_dir=.
8484     for ac_exec_ext in '' $ac_executable_extensions; do
8485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8486     ac_cv_prog_ac_ct_OTOOL="otool"
8487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488     break 2
8489   fi
8490 done
8491   done
8492 IFS=$as_save_IFS
8494 fi
8495 fi
8496 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8497 if test -n "$ac_ct_OTOOL"; then
8498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8499 $as_echo "$ac_ct_OTOOL" >&6; }
8500 else
8501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8503 fi
8505   if test "x$ac_ct_OTOOL" = x; then
8506     OTOOL=":"
8507   else
8508     case $cross_compiling:$ac_tool_warned in
8509 yes:)
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8512 ac_tool_warned=yes ;;
8513 esac
8514     OTOOL=$ac_ct_OTOOL
8515   fi
8516 else
8517   OTOOL="$ac_cv_prog_OTOOL"
8518 fi
8520     if test -n "$ac_tool_prefix"; then
8521   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8522 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8524 $as_echo_n "checking for $ac_word... " >&6; }
8525 if ${ac_cv_prog_OTOOL64+:} false; then :
8526   $as_echo_n "(cached) " >&6
8527 else
8528   if test -n "$OTOOL64"; then
8529   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8530 else
8531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532 for as_dir in $PATH
8533 do
8534   IFS=$as_save_IFS
8535   test -z "$as_dir" && as_dir=.
8536     for ac_exec_ext in '' $ac_executable_extensions; do
8537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8538     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8540     break 2
8541   fi
8542 done
8543   done
8544 IFS=$as_save_IFS
8546 fi
8547 fi
8548 OTOOL64=$ac_cv_prog_OTOOL64
8549 if test -n "$OTOOL64"; then
8550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8551 $as_echo "$OTOOL64" >&6; }
8552 else
8553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554 $as_echo "no" >&6; }
8555 fi
8558 fi
8559 if test -z "$ac_cv_prog_OTOOL64"; then
8560   ac_ct_OTOOL64=$OTOOL64
8561   # Extract the first word of "otool64", so it can be a program name with args.
8562 set dummy otool64; ac_word=$2
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564 $as_echo_n "checking for $ac_word... " >&6; }
8565 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8566   $as_echo_n "(cached) " >&6
8567 else
8568   if test -n "$ac_ct_OTOOL64"; then
8569   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8570 else
8571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8572 for as_dir in $PATH
8573 do
8574   IFS=$as_save_IFS
8575   test -z "$as_dir" && as_dir=.
8576     for ac_exec_ext in '' $ac_executable_extensions; do
8577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8578     ac_cv_prog_ac_ct_OTOOL64="otool64"
8579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8580     break 2
8581   fi
8582 done
8583   done
8584 IFS=$as_save_IFS
8586 fi
8587 fi
8588 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8589 if test -n "$ac_ct_OTOOL64"; then
8590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8591 $as_echo "$ac_ct_OTOOL64" >&6; }
8592 else
8593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594 $as_echo "no" >&6; }
8595 fi
8597   if test "x$ac_ct_OTOOL64" = x; then
8598     OTOOL64=":"
8599   else
8600     case $cross_compiling:$ac_tool_warned in
8601 yes:)
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8604 ac_tool_warned=yes ;;
8605 esac
8606     OTOOL64=$ac_ct_OTOOL64
8607   fi
8608 else
8609   OTOOL64="$ac_cv_prog_OTOOL64"
8610 fi
8638     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8639 $as_echo_n "checking for -single_module linker flag... " >&6; }
8640 if ${lt_cv_apple_cc_single_mod+:} false; then :
8641   $as_echo_n "(cached) " >&6
8642 else
8643   lt_cv_apple_cc_single_mod=no
8644       if test -z "${LT_MULTI_MODULE}"; then
8645         # By default we will add the -single_module flag. You can override
8646         # by either setting the environment variable LT_MULTI_MODULE
8647         # non-empty at configure time, or by adding -multi_module to the
8648         # link flags.
8649         rm -rf libconftest.dylib*
8650         echo "int foo(void){return 1;}" > conftest.c
8651         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8652 -dynamiclib -Wl,-single_module conftest.c" >&5
8653         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8654           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8655         _lt_result=$?
8656         # If there is a non-empty error log, and "single_module"
8657         # appears in it, assume the flag caused a linker warning
8658         if test -s conftest.err && $GREP single_module conftest.err; then
8659           cat conftest.err >&5
8660         # Otherwise, if the output was created with a 0 exit code from
8661         # the compiler, it worked.
8662         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8663           lt_cv_apple_cc_single_mod=yes
8664         else
8665           cat conftest.err >&5
8666         fi
8667         rm -rf libconftest.dylib*
8668         rm -f conftest.*
8669       fi
8670 fi
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8672 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8674     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8675 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8676 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8677   $as_echo_n "(cached) " >&6
8678 else
8679   lt_cv_ld_exported_symbols_list=no
8680       save_LDFLAGS=$LDFLAGS
8681       echo "_main" > conftest.sym
8682       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8683       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h.  */
8686 int
8687 main ()
8690   ;
8691   return 0;
8693 _ACEOF
8694 if ac_fn_c_try_link "$LINENO"; then :
8695   lt_cv_ld_exported_symbols_list=yes
8696 else
8697   lt_cv_ld_exported_symbols_list=no
8698 fi
8699 rm -f core conftest.err conftest.$ac_objext \
8700     conftest$ac_exeext conftest.$ac_ext
8701         LDFLAGS="$save_LDFLAGS"
8703 fi
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8705 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8707     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8708 $as_echo_n "checking for -force_load linker flag... " >&6; }
8709 if ${lt_cv_ld_force_load+:} false; then :
8710   $as_echo_n "(cached) " >&6
8711 else
8712   lt_cv_ld_force_load=no
8713       cat > conftest.c << _LT_EOF
8714 int forced_loaded() { return 2;}
8715 _LT_EOF
8716       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8717       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8718       echo "$AR cru libconftest.a conftest.o" >&5
8719       $AR cru libconftest.a conftest.o 2>&5
8720       echo "$RANLIB libconftest.a" >&5
8721       $RANLIB libconftest.a 2>&5
8722       cat > conftest.c << _LT_EOF
8723 int main() { return 0;}
8724 _LT_EOF
8725       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8726       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8727       _lt_result=$?
8728       if test -s conftest.err && $GREP force_load conftest.err; then
8729         cat conftest.err >&5
8730       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8731         lt_cv_ld_force_load=yes
8732       else
8733         cat conftest.err >&5
8734       fi
8735         rm -f conftest.err libconftest.a conftest conftest.c
8736         rm -rf conftest.dSYM
8738 fi
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8740 $as_echo "$lt_cv_ld_force_load" >&6; }
8741     case $host_os in
8742     rhapsody* | darwin1.[012])
8743       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8744     darwin1.*)
8745       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8746     darwin*) # darwin 5.x on
8747       # if running on 10.5 or later, the deployment target defaults
8748       # to the OS version, if on x86, and 10.4, the deployment
8749       # target defaults to 10.4. Don't you love it?
8750       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8751         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8752           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8753         10.[012]*)
8754           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8755         10.*)
8756           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8757       esac
8758     ;;
8759   esac
8760     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8761       _lt_dar_single_mod='$single_module'
8762     fi
8763     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8764       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8765     else
8766       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8767     fi
8768     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8769       _lt_dsymutil='~$DSYMUTIL $lib || :'
8770     else
8771       _lt_dsymutil=
8772     fi
8773     ;;
8774   esac
8776 for ac_header in dlfcn.h
8777 do :
8778   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8780 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8781   cat >>confdefs.h <<_ACEOF
8782 #define HAVE_DLFCN_H 1
8783 _ACEOF
8785 fi
8787 done
8793 # Set options
8797         enable_dlopen=no
8800   enable_win32_dll=no
8803             # Check whether --enable-shared was given.
8804 if test "${enable_shared+set}" = set; then :
8805   enableval=$enable_shared; p=${PACKAGE-default}
8806     case $enableval in
8807     yes) enable_shared=yes ;;
8808     no) enable_shared=no ;;
8809     *)
8810       enable_shared=no
8811       # Look at the argument we got.  We use all the common list separators.
8812       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8813       for pkg in $enableval; do
8814         IFS="$lt_save_ifs"
8815         if test "X$pkg" = "X$p"; then
8816           enable_shared=yes
8817         fi
8818       done
8819       IFS="$lt_save_ifs"
8820       ;;
8821     esac
8822 else
8823   enable_shared=yes
8824 fi
8834   # Check whether --enable-static was given.
8835 if test "${enable_static+set}" = set; then :
8836   enableval=$enable_static; p=${PACKAGE-default}
8837     case $enableval in
8838     yes) enable_static=yes ;;
8839     no) enable_static=no ;;
8840     *)
8841      enable_static=no
8842       # Look at the argument we got.  We use all the common list separators.
8843       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8844       for pkg in $enableval; do
8845         IFS="$lt_save_ifs"
8846         if test "X$pkg" = "X$p"; then
8847           enable_static=yes
8848         fi
8849       done
8850       IFS="$lt_save_ifs"
8851       ;;
8852     esac
8853 else
8854   enable_static=yes
8855 fi
8866 # Check whether --with-pic was given.
8867 if test "${with_pic+set}" = set; then :
8868   withval=$with_pic; lt_p=${PACKAGE-default}
8869     case $withval in
8870     yes|no) pic_mode=$withval ;;
8871     *)
8872       pic_mode=default
8873       # Look at the argument we got.  We use all the common list separators.
8874       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8875       for lt_pkg in $withval; do
8876         IFS="$lt_save_ifs"
8877         if test "X$lt_pkg" = "X$lt_p"; then
8878           pic_mode=yes
8879         fi
8880       done
8881       IFS="$lt_save_ifs"
8882       ;;
8883     esac
8884 else
8885   pic_mode=default
8886 fi
8889 test -z "$pic_mode" && pic_mode=default
8897   # Check whether --enable-fast-install was given.
8898 if test "${enable_fast_install+set}" = set; then :
8899   enableval=$enable_fast_install; p=${PACKAGE-default}
8900     case $enableval in
8901     yes) enable_fast_install=yes ;;
8902     no) enable_fast_install=no ;;
8903     *)
8904       enable_fast_install=no
8905       # Look at the argument we got.  We use all the common list separators.
8906       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8907       for pkg in $enableval; do
8908         IFS="$lt_save_ifs"
8909         if test "X$pkg" = "X$p"; then
8910           enable_fast_install=yes
8911         fi
8912       done
8913       IFS="$lt_save_ifs"
8914       ;;
8915     esac
8916 else
8917   enable_fast_install=yes
8918 fi
8930 # This can be used to rebuild libtool when needed
8931 LIBTOOL_DEPS="$ltmain"
8933 # Always use our own libtool.
8934 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8965 test -z "$LN_S" && LN_S="ln -s"
8980 if test -n "${ZSH_VERSION+set}" ; then
8981    setopt NO_GLOB_SUBST
8982 fi
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8985 $as_echo_n "checking for objdir... " >&6; }
8986 if ${lt_cv_objdir+:} false; then :
8987   $as_echo_n "(cached) " >&6
8988 else
8989   rm -f .libs 2>/dev/null
8990 mkdir .libs 2>/dev/null
8991 if test -d .libs; then
8992   lt_cv_objdir=.libs
8993 else
8994   # MS-DOS does not allow filenames that begin with a dot.
8995   lt_cv_objdir=_libs
8996 fi
8997 rmdir .libs 2>/dev/null
8998 fi
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9000 $as_echo "$lt_cv_objdir" >&6; }
9001 objdir=$lt_cv_objdir
9007 cat >>confdefs.h <<_ACEOF
9008 #define LT_OBJDIR "$lt_cv_objdir/"
9009 _ACEOF
9014 case $host_os in
9015 aix3*)
9016   # AIX sometimes has problems with the GCC collect2 program.  For some
9017   # reason, if we set the COLLECT_NAMES environment variable, the problems
9018   # vanish in a puff of smoke.
9019   if test "X${COLLECT_NAMES+set}" != Xset; then
9020     COLLECT_NAMES=
9021     export COLLECT_NAMES
9022   fi
9023   ;;
9024 esac
9026 # Global variables:
9027 ofile=libtool
9028 can_build_shared=yes
9030 # All known linkers require a `.a' archive for static linking (except MSVC,
9031 # which needs '.lib').
9032 libext=a
9034 with_gnu_ld="$lt_cv_prog_gnu_ld"
9036 old_CC="$CC"
9037 old_CFLAGS="$CFLAGS"
9039 # Set sane defaults for various variables
9040 test -z "$CC" && CC=cc
9041 test -z "$LTCC" && LTCC=$CC
9042 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9043 test -z "$LD" && LD=ld
9044 test -z "$ac_objext" && ac_objext=o
9046 for cc_temp in $compiler""; do
9047   case $cc_temp in
9048     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9049     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9050     \-*) ;;
9051     *) break;;
9052   esac
9053 done
9054 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9057 # Only perform the check for file, if the check method requires it
9058 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9059 case $deplibs_check_method in
9060 file_magic*)
9061   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9062     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9063 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9064 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9065   $as_echo_n "(cached) " >&6
9066 else
9067   case $MAGIC_CMD in
9068 [\\/*] |  ?:[\\/]*)
9069   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9070   ;;
9071 *)
9072   lt_save_MAGIC_CMD="$MAGIC_CMD"
9073   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9074   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9075   for ac_dir in $ac_dummy; do
9076     IFS="$lt_save_ifs"
9077     test -z "$ac_dir" && ac_dir=.
9078     if test -f $ac_dir/${ac_tool_prefix}file; then
9079       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9080       if test -n "$file_magic_test_file"; then
9081         case $deplibs_check_method in
9082         "file_magic "*)
9083           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9084           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9085           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9086             $EGREP "$file_magic_regex" > /dev/null; then
9087             :
9088           else
9089             cat <<_LT_EOF 1>&2
9091 *** Warning: the command libtool uses to detect shared libraries,
9092 *** $file_magic_cmd, produces output that libtool cannot recognize.
9093 *** The result is that libtool may fail to recognize shared libraries
9094 *** as such.  This will affect the creation of libtool libraries that
9095 *** depend on shared libraries, but programs linked with such libtool
9096 *** libraries will work regardless of this problem.  Nevertheless, you
9097 *** may want to report the problem to your system manager and/or to
9098 *** bug-libtool@gnu.org
9100 _LT_EOF
9101           fi ;;
9102         esac
9103       fi
9104       break
9105     fi
9106   done
9107   IFS="$lt_save_ifs"
9108   MAGIC_CMD="$lt_save_MAGIC_CMD"
9109   ;;
9110 esac
9111 fi
9113 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9114 if test -n "$MAGIC_CMD"; then
9115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9116 $as_echo "$MAGIC_CMD" >&6; }
9117 else
9118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119 $as_echo "no" >&6; }
9120 fi
9126 if test -z "$lt_cv_path_MAGIC_CMD"; then
9127   if test -n "$ac_tool_prefix"; then
9128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9129 $as_echo_n "checking for file... " >&6; }
9130 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9131   $as_echo_n "(cached) " >&6
9132 else
9133   case $MAGIC_CMD in
9134 [\\/*] |  ?:[\\/]*)
9135   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9136   ;;
9137 *)
9138   lt_save_MAGIC_CMD="$MAGIC_CMD"
9139   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9140   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9141   for ac_dir in $ac_dummy; do
9142     IFS="$lt_save_ifs"
9143     test -z "$ac_dir" && ac_dir=.
9144     if test -f $ac_dir/file; then
9145       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9146       if test -n "$file_magic_test_file"; then
9147         case $deplibs_check_method in
9148         "file_magic "*)
9149           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9150           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9151           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9152             $EGREP "$file_magic_regex" > /dev/null; then
9153             :
9154           else
9155             cat <<_LT_EOF 1>&2
9157 *** Warning: the command libtool uses to detect shared libraries,
9158 *** $file_magic_cmd, produces output that libtool cannot recognize.
9159 *** The result is that libtool may fail to recognize shared libraries
9160 *** as such.  This will affect the creation of libtool libraries that
9161 *** depend on shared libraries, but programs linked with such libtool
9162 *** libraries will work regardless of this problem.  Nevertheless, you
9163 *** may want to report the problem to your system manager and/or to
9164 *** bug-libtool@gnu.org
9166 _LT_EOF
9167           fi ;;
9168         esac
9169       fi
9170       break
9171     fi
9172   done
9173   IFS="$lt_save_ifs"
9174   MAGIC_CMD="$lt_save_MAGIC_CMD"
9175   ;;
9176 esac
9177 fi
9179 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9180 if test -n "$MAGIC_CMD"; then
9181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9182 $as_echo "$MAGIC_CMD" >&6; }
9183 else
9184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9185 $as_echo "no" >&6; }
9186 fi
9189   else
9190     MAGIC_CMD=:
9191   fi
9192 fi
9194   fi
9195   ;;
9196 esac
9198 # Use C for the default configuration in the libtool script
9200 lt_save_CC="$CC"
9201 ac_ext=c
9202 ac_cpp='$CPP $CPPFLAGS'
9203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9208 # Source file extension for C test sources.
9209 ac_ext=c
9211 # Object file extension for compiled C test sources.
9212 objext=o
9213 objext=$objext
9215 # Code to be used in simple compile tests
9216 lt_simple_compile_test_code="int some_variable = 0;"
9218 # Code to be used in simple link tests
9219 lt_simple_link_test_code='int main(){return(0);}'
9227 # If no C compiler was specified, use CC.
9228 LTCC=${LTCC-"$CC"}
9230 # If no C compiler flags were specified, use CFLAGS.
9231 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9233 # Allow CC to be a program name with arguments.
9234 compiler=$CC
9236 # Save the default compiler, since it gets overwritten when the other
9237 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9238 compiler_DEFAULT=$CC
9240 # save warnings/boilerplate of simple test code
9241 ac_outfile=conftest.$ac_objext
9242 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9243 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9244 _lt_compiler_boilerplate=`cat conftest.err`
9245 $RM conftest*
9247 ac_outfile=conftest.$ac_objext
9248 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9249 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9250 _lt_linker_boilerplate=`cat conftest.err`
9251 $RM -r conftest*
9254 ## CAVEAT EMPTOR:
9255 ## There is no encapsulation within the following macros, do not change
9256 ## the running order or otherwise move them around unless you know exactly
9257 ## what you are doing...
9258 if test -n "$compiler"; then
9260 lt_prog_compiler_no_builtin_flag=
9262 if test "$GCC" = yes; then
9263   case $cc_basename in
9264   nvcc*)
9265     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9266   *)
9267     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9268   esac
9270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9271 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9272 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9273   $as_echo_n "(cached) " >&6
9274 else
9275   lt_cv_prog_compiler_rtti_exceptions=no
9276    ac_outfile=conftest.$ac_objext
9277    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9278    lt_compiler_flag="-fno-rtti -fno-exceptions"
9279    # Insert the option either (1) after the last *FLAGS variable, or
9280    # (2) before a word containing "conftest.", or (3) at the end.
9281    # Note that $ac_compile itself does not contain backslashes and begins
9282    # with a dollar sign (not a hyphen), so the echo should work correctly.
9283    # The option is referenced via a variable to avoid confusing sed.
9284    lt_compile=`echo "$ac_compile" | $SED \
9285    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9286    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9287    -e 's:$: $lt_compiler_flag:'`
9288    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9289    (eval "$lt_compile" 2>conftest.err)
9290    ac_status=$?
9291    cat conftest.err >&5
9292    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293    if (exit $ac_status) && test -s "$ac_outfile"; then
9294      # The compiler can only warn and ignore the option if not recognized
9295      # So say no if there are warnings other than the usual output.
9296      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9297      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9298      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9299        lt_cv_prog_compiler_rtti_exceptions=yes
9300      fi
9301    fi
9302    $RM conftest*
9304 fi
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9306 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9308 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9309     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9310 else
9311     :
9312 fi
9314 fi
9321   lt_prog_compiler_wl=
9322 lt_prog_compiler_pic=
9323 lt_prog_compiler_static=
9326   if test "$GCC" = yes; then
9327     lt_prog_compiler_wl='-Wl,'
9328     lt_prog_compiler_static='-static'
9330     case $host_os in
9331       aix*)
9332       # All AIX code is PIC.
9333       if test "$host_cpu" = ia64; then
9334         # AIX 5 now supports IA64 processor
9335         lt_prog_compiler_static='-Bstatic'
9336       fi
9337       ;;
9339     amigaos*)
9340       case $host_cpu in
9341       powerpc)
9342             # see comment about AmigaOS4 .so support
9343             lt_prog_compiler_pic='-fPIC'
9344         ;;
9345       m68k)
9346             # FIXME: we need at least 68020 code to build shared libraries, but
9347             # adding the `-m68020' flag to GCC prevents building anything better,
9348             # like `-m68040'.
9349             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9350         ;;
9351       esac
9352       ;;
9354     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9355       # PIC is the default for these OSes.
9356       ;;
9358     mingw* | cygwin* | pw32* | os2* | cegcc*)
9359       # This hack is so that the source file can tell whether it is being
9360       # built for inclusion in a dll (and should export symbols for example).
9361       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9362       # (--disable-auto-import) libraries
9363       lt_prog_compiler_pic='-DDLL_EXPORT'
9364       ;;
9366     darwin* | rhapsody*)
9367       # PIC is the default on this platform
9368       # Common symbols not allowed in MH_DYLIB files
9369       lt_prog_compiler_pic='-fno-common'
9370       ;;
9372     haiku*)
9373       # PIC is the default for Haiku.
9374       # The "-static" flag exists, but is broken.
9375       lt_prog_compiler_static=
9376       ;;
9378     hpux*)
9379       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9380       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9381       # sets the default TLS model and affects inlining.
9382       case $host_cpu in
9383       hppa*64*)
9384         # +Z the default
9385         ;;
9386       *)
9387         lt_prog_compiler_pic='-fPIC'
9388         ;;
9389       esac
9390       ;;
9392     interix[3-9]*)
9393       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9394       # Instead, we relocate shared libraries at runtime.
9395       ;;
9397     msdosdjgpp*)
9398       # Just because we use GCC doesn't mean we suddenly get shared libraries
9399       # on systems that don't support them.
9400       lt_prog_compiler_can_build_shared=no
9401       enable_shared=no
9402       ;;
9404     *nto* | *qnx*)
9405       # QNX uses GNU C++, but need to define -shared option too, otherwise
9406       # it will coredump.
9407       lt_prog_compiler_pic='-fPIC -shared'
9408       ;;
9410     sysv4*MP*)
9411       if test -d /usr/nec; then
9412         lt_prog_compiler_pic=-Kconform_pic
9413       fi
9414       ;;
9416     *)
9417       lt_prog_compiler_pic='-fPIC'
9418       ;;
9419     esac
9421     case $cc_basename in
9422     nvcc*) # Cuda Compiler Driver 2.2
9423       lt_prog_compiler_wl='-Xlinker '
9424       if test -n "$lt_prog_compiler_pic"; then
9425         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9426       fi
9427       ;;
9428     esac
9429   else
9430     # PORTME Check for flag to pass linker flags through the system compiler.
9431     case $host_os in
9432     aix*)
9433       lt_prog_compiler_wl='-Wl,'
9434       if test "$host_cpu" = ia64; then
9435         # AIX 5 now supports IA64 processor
9436         lt_prog_compiler_static='-Bstatic'
9437       else
9438         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9439       fi
9440       ;;
9442     mingw* | cygwin* | pw32* | os2* | cegcc*)
9443       # This hack is so that the source file can tell whether it is being
9444       # built for inclusion in a dll (and should export symbols for example).
9445       lt_prog_compiler_pic='-DDLL_EXPORT'
9446       ;;
9448     hpux9* | hpux10* | hpux11*)
9449       lt_prog_compiler_wl='-Wl,'
9450       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9451       # not for PA HP-UX.
9452       case $host_cpu in
9453       hppa*64*|ia64*)
9454         # +Z the default
9455         ;;
9456       *)
9457         lt_prog_compiler_pic='+Z'
9458         ;;
9459       esac
9460       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9461       lt_prog_compiler_static='${wl}-a ${wl}archive'
9462       ;;
9464     irix5* | irix6* | nonstopux*)
9465       lt_prog_compiler_wl='-Wl,'
9466       # PIC (with -KPIC) is the default.
9467       lt_prog_compiler_static='-non_shared'
9468       ;;
9470     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9471       case $cc_basename in
9472       # old Intel for x86_64 which still supported -KPIC.
9473       ecc*)
9474         lt_prog_compiler_wl='-Wl,'
9475         lt_prog_compiler_pic='-KPIC'
9476         lt_prog_compiler_static='-static'
9477         ;;
9478       # icc used to be incompatible with GCC.
9479       # ICC 10 doesn't accept -KPIC any more.
9480       icc* | ifort*)
9481         lt_prog_compiler_wl='-Wl,'
9482         lt_prog_compiler_pic='-fPIC'
9483         lt_prog_compiler_static='-static'
9484         ;;
9485       # Lahey Fortran 8.1.
9486       lf95*)
9487         lt_prog_compiler_wl='-Wl,'
9488         lt_prog_compiler_pic='--shared'
9489         lt_prog_compiler_static='--static'
9490         ;;
9491       nagfor*)
9492         # NAG Fortran compiler
9493         lt_prog_compiler_wl='-Wl,-Wl,,'
9494         lt_prog_compiler_pic='-PIC'
9495         lt_prog_compiler_static='-Bstatic'
9496         ;;
9497       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9498         # Portland Group compilers (*not* the Pentium gcc compiler,
9499         # which looks to be a dead project)
9500         lt_prog_compiler_wl='-Wl,'
9501         lt_prog_compiler_pic='-fpic'
9502         lt_prog_compiler_static='-Bstatic'
9503         ;;
9504       ccc*)
9505         lt_prog_compiler_wl='-Wl,'
9506         # All Alpha code is PIC.
9507         lt_prog_compiler_static='-non_shared'
9508         ;;
9509       xl* | bgxl* | bgf* | mpixl*)
9510         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9511         lt_prog_compiler_wl='-Wl,'
9512         lt_prog_compiler_pic='-qpic'
9513         lt_prog_compiler_static='-qstaticlink'
9514         ;;
9515       *)
9516         case `$CC -V 2>&1 | sed 5q` in
9517         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9518           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9519           lt_prog_compiler_pic='-KPIC'
9520           lt_prog_compiler_static='-Bstatic'
9521           lt_prog_compiler_wl=''
9522           ;;
9523         *Sun\ F* | *Sun*Fortran*)
9524           lt_prog_compiler_pic='-KPIC'
9525           lt_prog_compiler_static='-Bstatic'
9526           lt_prog_compiler_wl='-Qoption ld '
9527           ;;
9528         *Sun\ C*)
9529           # Sun C 5.9
9530           lt_prog_compiler_pic='-KPIC'
9531           lt_prog_compiler_static='-Bstatic'
9532           lt_prog_compiler_wl='-Wl,'
9533           ;;
9534         *Intel*\ [CF]*Compiler*)
9535           lt_prog_compiler_wl='-Wl,'
9536           lt_prog_compiler_pic='-fPIC'
9537           lt_prog_compiler_static='-static'
9538           ;;
9539         *Portland\ Group*)
9540           lt_prog_compiler_wl='-Wl,'
9541           lt_prog_compiler_pic='-fpic'
9542           lt_prog_compiler_static='-Bstatic'
9543           ;;
9544         esac
9545         ;;
9546       esac
9547       ;;
9549     newsos6)
9550       lt_prog_compiler_pic='-KPIC'
9551       lt_prog_compiler_static='-Bstatic'
9552       ;;
9554     *nto* | *qnx*)
9555       # QNX uses GNU C++, but need to define -shared option too, otherwise
9556       # it will coredump.
9557       lt_prog_compiler_pic='-fPIC -shared'
9558       ;;
9560     osf3* | osf4* | osf5*)
9561       lt_prog_compiler_wl='-Wl,'
9562       # All OSF/1 code is PIC.
9563       lt_prog_compiler_static='-non_shared'
9564       ;;
9566     rdos*)
9567       lt_prog_compiler_static='-non_shared'
9568       ;;
9570     solaris*)
9571       lt_prog_compiler_pic='-KPIC'
9572       lt_prog_compiler_static='-Bstatic'
9573       case $cc_basename in
9574       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9575         lt_prog_compiler_wl='-Qoption ld ';;
9576       *)
9577         lt_prog_compiler_wl='-Wl,';;
9578       esac
9579       ;;
9581     sunos4*)
9582       lt_prog_compiler_wl='-Qoption ld '
9583       lt_prog_compiler_pic='-PIC'
9584       lt_prog_compiler_static='-Bstatic'
9585       ;;
9587     sysv4 | sysv4.2uw2* | sysv4.3*)
9588       lt_prog_compiler_wl='-Wl,'
9589       lt_prog_compiler_pic='-KPIC'
9590       lt_prog_compiler_static='-Bstatic'
9591       ;;
9593     sysv4*MP*)
9594       if test -d /usr/nec ;then
9595         lt_prog_compiler_pic='-Kconform_pic'
9596         lt_prog_compiler_static='-Bstatic'
9597       fi
9598       ;;
9600     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9601       lt_prog_compiler_wl='-Wl,'
9602       lt_prog_compiler_pic='-KPIC'
9603       lt_prog_compiler_static='-Bstatic'
9604       ;;
9606     unicos*)
9607       lt_prog_compiler_wl='-Wl,'
9608       lt_prog_compiler_can_build_shared=no
9609       ;;
9611     uts4*)
9612       lt_prog_compiler_pic='-pic'
9613       lt_prog_compiler_static='-Bstatic'
9614       ;;
9616     *)
9617       lt_prog_compiler_can_build_shared=no
9618       ;;
9619     esac
9620   fi
9622 case $host_os in
9623   # For platforms which do not support PIC, -DPIC is meaningless:
9624   *djgpp*)
9625     lt_prog_compiler_pic=
9626     ;;
9627   *)
9628     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9629     ;;
9630 esac
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9633 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9634 if ${lt_cv_prog_compiler_pic+:} false; then :
9635   $as_echo_n "(cached) " >&6
9636 else
9637   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9638 fi
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9640 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9641 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9644 # Check to make sure the PIC flag actually works.
9646 if test -n "$lt_prog_compiler_pic"; then
9647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9648 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9649 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9650   $as_echo_n "(cached) " >&6
9651 else
9652   lt_cv_prog_compiler_pic_works=no
9653    ac_outfile=conftest.$ac_objext
9654    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9655    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9656    # Insert the option either (1) after the last *FLAGS variable, or
9657    # (2) before a word containing "conftest.", or (3) at the end.
9658    # Note that $ac_compile itself does not contain backslashes and begins
9659    # with a dollar sign (not a hyphen), so the echo should work correctly.
9660    # The option is referenced via a variable to avoid confusing sed.
9661    lt_compile=`echo "$ac_compile" | $SED \
9662    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9663    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9664    -e 's:$: $lt_compiler_flag:'`
9665    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9666    (eval "$lt_compile" 2>conftest.err)
9667    ac_status=$?
9668    cat conftest.err >&5
9669    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670    if (exit $ac_status) && test -s "$ac_outfile"; then
9671      # The compiler can only warn and ignore the option if not recognized
9672      # So say no if there are warnings other than the usual output.
9673      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9674      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9675      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9676        lt_cv_prog_compiler_pic_works=yes
9677      fi
9678    fi
9679    $RM conftest*
9681 fi
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9683 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9685 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9686     case $lt_prog_compiler_pic in
9687      "" | " "*) ;;
9688      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9689      esac
9690 else
9691     lt_prog_compiler_pic=
9692      lt_prog_compiler_can_build_shared=no
9693 fi
9695 fi
9708 # Check to make sure the static flag actually works.
9710 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9712 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9713 if ${lt_cv_prog_compiler_static_works+:} false; then :
9714   $as_echo_n "(cached) " >&6
9715 else
9716   lt_cv_prog_compiler_static_works=no
9717    save_LDFLAGS="$LDFLAGS"
9718    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9719    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9720    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9721      # The linker can only warn and ignore the option if not recognized
9722      # So say no if there are warnings
9723      if test -s conftest.err; then
9724        # Append any errors to the config.log.
9725        cat conftest.err 1>&5
9726        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9727        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9728        if diff conftest.exp conftest.er2 >/dev/null; then
9729          lt_cv_prog_compiler_static_works=yes
9730        fi
9731      else
9732        lt_cv_prog_compiler_static_works=yes
9733      fi
9734    fi
9735    $RM -r conftest*
9736    LDFLAGS="$save_LDFLAGS"
9738 fi
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9740 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9742 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9743     :
9744 else
9745     lt_prog_compiler_static=
9746 fi
9754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9755 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9756 if ${lt_cv_prog_compiler_c_o+:} false; then :
9757   $as_echo_n "(cached) " >&6
9758 else
9759   lt_cv_prog_compiler_c_o=no
9760    $RM -r conftest 2>/dev/null
9761    mkdir conftest
9762    cd conftest
9763    mkdir out
9764    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9766    lt_compiler_flag="-o out/conftest2.$ac_objext"
9767    # Insert the option either (1) after the last *FLAGS variable, or
9768    # (2) before a word containing "conftest.", or (3) at the end.
9769    # Note that $ac_compile itself does not contain backslashes and begins
9770    # with a dollar sign (not a hyphen), so the echo should work correctly.
9771    lt_compile=`echo "$ac_compile" | $SED \
9772    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9773    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9774    -e 's:$: $lt_compiler_flag:'`
9775    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9776    (eval "$lt_compile" 2>out/conftest.err)
9777    ac_status=$?
9778    cat out/conftest.err >&5
9779    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9781    then
9782      # The compiler can only warn and ignore the option if not recognized
9783      # So say no if there are warnings
9784      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9785      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9786      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9787        lt_cv_prog_compiler_c_o=yes
9788      fi
9789    fi
9790    chmod u+w . 2>&5
9791    $RM conftest*
9792    # SGI C++ compiler will create directory out/ii_files/ for
9793    # template instantiation
9794    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9795    $RM out/* && rmdir out
9796    cd ..
9797    $RM -r conftest
9798    $RM conftest*
9800 fi
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9802 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9810 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9811 if ${lt_cv_prog_compiler_c_o+:} false; then :
9812   $as_echo_n "(cached) " >&6
9813 else
9814   lt_cv_prog_compiler_c_o=no
9815    $RM -r conftest 2>/dev/null
9816    mkdir conftest
9817    cd conftest
9818    mkdir out
9819    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9821    lt_compiler_flag="-o out/conftest2.$ac_objext"
9822    # Insert the option either (1) after the last *FLAGS variable, or
9823    # (2) before a word containing "conftest.", or (3) at the end.
9824    # Note that $ac_compile itself does not contain backslashes and begins
9825    # with a dollar sign (not a hyphen), so the echo should work correctly.
9826    lt_compile=`echo "$ac_compile" | $SED \
9827    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9828    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9829    -e 's:$: $lt_compiler_flag:'`
9830    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9831    (eval "$lt_compile" 2>out/conftest.err)
9832    ac_status=$?
9833    cat out/conftest.err >&5
9834    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9836    then
9837      # The compiler can only warn and ignore the option if not recognized
9838      # So say no if there are warnings
9839      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9840      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9841      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9842        lt_cv_prog_compiler_c_o=yes
9843      fi
9844    fi
9845    chmod u+w . 2>&5
9846    $RM conftest*
9847    # SGI C++ compiler will create directory out/ii_files/ for
9848    # template instantiation
9849    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9850    $RM out/* && rmdir out
9851    cd ..
9852    $RM -r conftest
9853    $RM conftest*
9855 fi
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9857 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9862 hard_links="nottested"
9863 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9864   # do not overwrite the value of need_locks provided by the user
9865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9866 $as_echo_n "checking if we can lock with hard links... " >&6; }
9867   hard_links=yes
9868   $RM conftest*
9869   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9870   touch conftest.a
9871   ln conftest.a conftest.b 2>&5 || hard_links=no
9872   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9874 $as_echo "$hard_links" >&6; }
9875   if test "$hard_links" = no; then
9876     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9877 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9878     need_locks=warn
9879   fi
9880 else
9881   need_locks=no
9882 fi
9889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9890 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9892   runpath_var=
9893   allow_undefined_flag=
9894   always_export_symbols=no
9895   archive_cmds=
9896   archive_expsym_cmds=
9897   compiler_needs_object=no
9898   enable_shared_with_static_runtimes=no
9899   export_dynamic_flag_spec=
9900   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9901   hardcode_automatic=no
9902   hardcode_direct=no
9903   hardcode_direct_absolute=no
9904   hardcode_libdir_flag_spec=
9905   hardcode_libdir_separator=
9906   hardcode_minus_L=no
9907   hardcode_shlibpath_var=unsupported
9908   inherit_rpath=no
9909   link_all_deplibs=unknown
9910   module_cmds=
9911   module_expsym_cmds=
9912   old_archive_from_new_cmds=
9913   old_archive_from_expsyms_cmds=
9914   thread_safe_flag_spec=
9915   whole_archive_flag_spec=
9916   # include_expsyms should be a list of space-separated symbols to be *always*
9917   # included in the symbol list
9918   include_expsyms=
9919   # exclude_expsyms can be an extended regexp of symbols to exclude
9920   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9921   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9922   # as well as any symbol that contains `d'.
9923   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9924   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9925   # platforms (ab)use it in PIC code, but their linkers get confused if
9926   # the symbol is explicitly referenced.  Since portable code cannot
9927   # rely on this symbol name, it's probably fine to never include it in
9928   # preloaded symbol tables.
9929   # Exclude shared library initialization/finalization symbols.
9930   extract_expsyms_cmds=
9932   case $host_os in
9933   cygwin* | mingw* | pw32* | cegcc*)
9934     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9935     # When not using gcc, we currently assume that we are using
9936     # Microsoft Visual C++.
9937     if test "$GCC" != yes; then
9938       with_gnu_ld=no
9939     fi
9940     ;;
9941   interix*)
9942     # we just hope/assume this is gcc and not c89 (= MSVC++)
9943     with_gnu_ld=yes
9944     ;;
9945   openbsd*)
9946     with_gnu_ld=no
9947     ;;
9948   linux* | k*bsd*-gnu | gnu*)
9949     link_all_deplibs=no
9950     ;;
9951   esac
9953   ld_shlibs=yes
9955   # On some targets, GNU ld is compatible enough with the native linker
9956   # that we're better off using the native interface for both.
9957   lt_use_gnu_ld_interface=no
9958   if test "$with_gnu_ld" = yes; then
9959     case $host_os in
9960       aix*)
9961         # The AIX port of GNU ld has always aspired to compatibility
9962         # with the native linker.  However, as the warning in the GNU ld
9963         # block says, versions before 2.19.5* couldn't really create working
9964         # shared libraries, regardless of the interface used.
9965         case `$LD -v 2>&1` in
9966           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9967           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9968           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9969           *)
9970             lt_use_gnu_ld_interface=yes
9971             ;;
9972         esac
9973         ;;
9974       *)
9975         lt_use_gnu_ld_interface=yes
9976         ;;
9977     esac
9978   fi
9980   if test "$lt_use_gnu_ld_interface" = yes; then
9981     # If archive_cmds runs LD, not CC, wlarc should be empty
9982     wlarc='${wl}'
9984     # Set some defaults for GNU ld with shared library support. These
9985     # are reset later if shared libraries are not supported. Putting them
9986     # here allows them to be overridden if necessary.
9987     runpath_var=LD_RUN_PATH
9988     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9989     export_dynamic_flag_spec='${wl}--export-dynamic'
9990     # ancient GNU ld didn't support --whole-archive et. al.
9991     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9992       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9993     else
9994       whole_archive_flag_spec=
9995     fi
9996     supports_anon_versioning=no
9997     case `$LD -v 2>&1` in
9998       *GNU\ gold*) supports_anon_versioning=yes ;;
9999       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10000       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10001       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10002       *\ 2.11.*) ;; # other 2.11 versions
10003       *) supports_anon_versioning=yes ;;
10004     esac
10006     # See if GNU ld supports shared libraries.
10007     case $host_os in
10008     aix[3-9]*)
10009       # On AIX/PPC, the GNU linker is very broken
10010       if test "$host_cpu" != ia64; then
10011         ld_shlibs=no
10012         cat <<_LT_EOF 1>&2
10014 *** Warning: the GNU linker, at least up to release 2.19, is reported
10015 *** to be unable to reliably create shared libraries on AIX.
10016 *** Therefore, libtool is disabling shared libraries support.  If you
10017 *** really care for shared libraries, you may want to install binutils
10018 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10019 *** You will then need to restart the configuration process.
10021 _LT_EOF
10022       fi
10023       ;;
10025     amigaos*)
10026       case $host_cpu in
10027       powerpc)
10028             # see comment about AmigaOS4 .so support
10029             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10030             archive_expsym_cmds=''
10031         ;;
10032       m68k)
10033             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)'
10034             hardcode_libdir_flag_spec='-L$libdir'
10035             hardcode_minus_L=yes
10036         ;;
10037       esac
10038       ;;
10040     beos*)
10041       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10042         allow_undefined_flag=unsupported
10043         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10044         # support --undefined.  This deserves some investigation.  FIXME
10045         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10046       else
10047         ld_shlibs=no
10048       fi
10049       ;;
10051     cygwin* | mingw* | pw32* | cegcc*)
10052       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10053       # as there is no search path for DLLs.
10054       hardcode_libdir_flag_spec='-L$libdir'
10055       export_dynamic_flag_spec='${wl}--export-all-symbols'
10056       allow_undefined_flag=unsupported
10057       always_export_symbols=no
10058       enable_shared_with_static_runtimes=yes
10059       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'
10060       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10062       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10063         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10064         # If the export-symbols file already is a .def file (1st line
10065         # is EXPORTS), use it as is; otherwise, prepend...
10066         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10067           cp $export_symbols $output_objdir/$soname.def;
10068         else
10069           echo EXPORTS > $output_objdir/$soname.def;
10070           cat $export_symbols >> $output_objdir/$soname.def;
10071         fi~
10072         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10073       else
10074         ld_shlibs=no
10075       fi
10076       ;;
10078     haiku*)
10079       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10080       link_all_deplibs=yes
10081       ;;
10083     interix[3-9]*)
10084       hardcode_direct=no
10085       hardcode_shlibpath_var=no
10086       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10087       export_dynamic_flag_spec='${wl}-E'
10088       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10089       # Instead, shared libraries are loaded at an image base (0x10000000 by
10090       # default) and relocated if they conflict, which is a slow very memory
10091       # consuming and fragmenting process.  To avoid this, we pick a random,
10092       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10093       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10094       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10095       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'
10096       ;;
10098     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10099       tmp_diet=no
10100       if test "$host_os" = linux-dietlibc; then
10101         case $cc_basename in
10102           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10103         esac
10104       fi
10105       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10106          && test "$tmp_diet" = no
10107       then
10108         tmp_addflag=' $pic_flag'
10109         tmp_sharedflag='-shared'
10110         case $cc_basename,$host_cpu in
10111         pgcc*)                          # Portland Group C compiler
10112           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'
10113           tmp_addflag=' $pic_flag'
10114           ;;
10115         pgf77* | pgf90* | pgf95* | pgfortran*)
10116                                         # Portland Group f77 and f90 compilers
10117           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'
10118           tmp_addflag=' $pic_flag -Mnomain' ;;
10119         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10120           tmp_addflag=' -i_dynamic' ;;
10121         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10122           tmp_addflag=' -i_dynamic -nofor_main' ;;
10123         ifc* | ifort*)                  # Intel Fortran compiler
10124           tmp_addflag=' -nofor_main' ;;
10125         lf95*)                          # Lahey Fortran 8.1
10126           whole_archive_flag_spec=
10127           tmp_sharedflag='--shared' ;;
10128         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10129           tmp_sharedflag='-qmkshrobj'
10130           tmp_addflag= ;;
10131         nvcc*)  # Cuda Compiler Driver 2.2
10132           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'
10133           compiler_needs_object=yes
10134           ;;
10135         esac
10136         case `$CC -V 2>&1 | sed 5q` in
10137         *Sun\ C*)                       # Sun C 5.9
10138           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'
10139           compiler_needs_object=yes
10140           tmp_sharedflag='-G' ;;
10141         *Sun\ F*)                       # Sun Fortran 8.3
10142           tmp_sharedflag='-G' ;;
10143         esac
10144         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10146         if test "x$supports_anon_versioning" = xyes; then
10147           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10148             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10149             echo "local: *; };" >> $output_objdir/$libname.ver~
10150             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10151         fi
10153         case $cc_basename in
10154         xlf* | bgf* | bgxlf* | mpixlf*)
10155           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10156           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10157           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10158           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10159           if test "x$supports_anon_versioning" = xyes; then
10160             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10161               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10162               echo "local: *; };" >> $output_objdir/$libname.ver~
10163               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10164           fi
10165           ;;
10166         esac
10167       else
10168         ld_shlibs=no
10169       fi
10170       ;;
10172     netbsd* | netbsdelf*-gnu)
10173       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10174         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10175         wlarc=
10176       else
10177         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10178         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10179       fi
10180       ;;
10182     solaris*)
10183       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10184         ld_shlibs=no
10185         cat <<_LT_EOF 1>&2
10187 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10188 *** create shared libraries on Solaris systems.  Therefore, libtool
10189 *** is disabling shared libraries support.  We urge you to upgrade GNU
10190 *** binutils to release 2.9.1 or newer.  Another option is to modify
10191 *** your PATH or compiler configuration so that the native linker is
10192 *** used, and then restart.
10194 _LT_EOF
10195       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10196         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10197         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10198       else
10199         ld_shlibs=no
10200       fi
10201       ;;
10203     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10204       case `$LD -v 2>&1` in
10205         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10206         ld_shlibs=no
10207         cat <<_LT_EOF 1>&2
10209 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10210 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10211 *** is disabling shared libraries support.  We urge you to upgrade GNU
10212 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10213 *** your PATH or compiler configuration so that the native linker is
10214 *** used, and then restart.
10216 _LT_EOF
10217         ;;
10218         *)
10219           # For security reasons, it is highly recommended that you always
10220           # use absolute paths for naming shared libraries, and exclude the
10221           # DT_RUNPATH tag from executables and libraries.  But doing so
10222           # requires that you compile everything twice, which is a pain.
10223           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10224             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10225             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10226             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10227           else
10228             ld_shlibs=no
10229           fi
10230         ;;
10231       esac
10232       ;;
10234     sunos4*)
10235       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10236       wlarc=
10237       hardcode_direct=yes
10238       hardcode_shlibpath_var=no
10239       ;;
10241     *)
10242       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10243         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10244         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10245       else
10246         ld_shlibs=no
10247       fi
10248       ;;
10249     esac
10251     if test "$ld_shlibs" = no; then
10252       runpath_var=
10253       hardcode_libdir_flag_spec=
10254       export_dynamic_flag_spec=
10255       whole_archive_flag_spec=
10256     fi
10257   else
10258     # PORTME fill in a description of your system's linker (not GNU ld)
10259     case $host_os in
10260     aix3*)
10261       allow_undefined_flag=unsupported
10262       always_export_symbols=yes
10263       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'
10264       # Note: this linker hardcodes the directories in LIBPATH if there
10265       # are no directories specified by -L.
10266       hardcode_minus_L=yes
10267       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10268         # Neither direct hardcoding nor static linking is supported with a
10269         # broken collect2.
10270         hardcode_direct=unsupported
10271       fi
10272       ;;
10274     aix[4-9]*)
10275       if test "$host_cpu" = ia64; then
10276         # On IA64, the linker does run time linking by default, so we don't
10277         # have to do anything special.
10278         aix_use_runtimelinking=no
10279         exp_sym_flag='-Bexport'
10280         no_entry_flag=""
10281       else
10282         # If we're using GNU nm, then we don't want the "-C" option.
10283         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10284         # Also, AIX nm treats weak defined symbols like other global
10285         # defined symbols, whereas GNU nm marks them as "W".
10286         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10287           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10288         else
10289           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10290         fi
10291         aix_use_runtimelinking=no
10293         # Test if we are trying to use run time linking or normal
10294         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10295         # need to do runtime linking.
10296         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10297           for ld_flag in $LDFLAGS; do
10298           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10299             aix_use_runtimelinking=yes
10300             break
10301           fi
10302           done
10303           ;;
10304         esac
10306         exp_sym_flag='-bexport'
10307         no_entry_flag='-bnoentry'
10308       fi
10310       # When large executables or shared objects are built, AIX ld can
10311       # have problems creating the table of contents.  If linking a library
10312       # or program results in "error TOC overflow" add -mminimal-toc to
10313       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10314       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10316       archive_cmds=''
10317       hardcode_direct=yes
10318       hardcode_direct_absolute=yes
10319       hardcode_libdir_separator=':'
10320       link_all_deplibs=yes
10321       file_list_spec='${wl}-f,'
10323       if test "$GCC" = yes; then
10324         case $host_os in aix4.[012]|aix4.[012].*)
10325         # We only want to do this on AIX 4.2 and lower, the check
10326         # below for broken collect2 doesn't work under 4.3+
10327           collect2name=`${CC} -print-prog-name=collect2`
10328           if test -f "$collect2name" &&
10329            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10330           then
10331           # We have reworked collect2
10332           :
10333           else
10334           # We have old collect2
10335           hardcode_direct=unsupported
10336           # It fails to find uninstalled libraries when the uninstalled
10337           # path is not listed in the libpath.  Setting hardcode_minus_L
10338           # to unsupported forces relinking
10339           hardcode_minus_L=yes
10340           hardcode_libdir_flag_spec='-L$libdir'
10341           hardcode_libdir_separator=
10342           fi
10343           ;;
10344         esac
10345         shared_flag='-shared'
10346         if test "$aix_use_runtimelinking" = yes; then
10347           shared_flag="$shared_flag "'${wl}-G'
10348         fi
10349         link_all_deplibs=no
10350       else
10351         # not using gcc
10352         if test "$host_cpu" = ia64; then
10353         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10354         # chokes on -Wl,-G. The following line is correct:
10355           shared_flag='-G'
10356         else
10357           if test "$aix_use_runtimelinking" = yes; then
10358             shared_flag='${wl}-G'
10359           else
10360             shared_flag='${wl}-bM:SRE'
10361           fi
10362         fi
10363       fi
10365       export_dynamic_flag_spec='${wl}-bexpall'
10366       # It seems that -bexpall does not export symbols beginning with
10367       # underscore (_), so it is better to generate a list of symbols to export.
10368       always_export_symbols=yes
10369       if test "$aix_use_runtimelinking" = yes; then
10370         # Warning - without using the other runtime loading flags (-brtl),
10371         # -berok will link without error, but may produce a broken library.
10372         allow_undefined_flag='-berok'
10373         # Determine the default libpath from the value encoded in an
10374         # empty executable.
10375         if test "${lt_cv_aix_libpath+set}" = set; then
10376   aix_libpath=$lt_cv_aix_libpath
10377 else
10378   if ${lt_cv_aix_libpath_+:} false; then :
10379   $as_echo_n "(cached) " >&6
10380 else
10381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10382 /* end confdefs.h.  */
10384 int
10385 main ()
10388   ;
10389   return 0;
10391 _ACEOF
10392 if ac_fn_c_try_link "$LINENO"; then :
10394   lt_aix_libpath_sed='
10395       /Import File Strings/,/^$/ {
10396           /^0/ {
10397               s/^0  *\([^ ]*\) *$/\1/
10398               p
10399           }
10400       }'
10401   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10402   # Check for a 64-bit object if we didn't find anything.
10403   if test -z "$lt_cv_aix_libpath_"; then
10404     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10405   fi
10407 rm -f core conftest.err conftest.$ac_objext \
10408     conftest$ac_exeext conftest.$ac_ext
10409   if test -z "$lt_cv_aix_libpath_"; then
10410     lt_cv_aix_libpath_="/usr/lib:/lib"
10411   fi
10415   aix_libpath=$lt_cv_aix_libpath_
10418         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10419         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10420       else
10421         if test "$host_cpu" = ia64; then
10422           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10423           allow_undefined_flag="-z nodefs"
10424           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"
10425         else
10426          # Determine the default libpath from the value encoded in an
10427          # empty executable.
10428          if test "${lt_cv_aix_libpath+set}" = set; then
10429   aix_libpath=$lt_cv_aix_libpath
10430 else
10431   if ${lt_cv_aix_libpath_+:} false; then :
10432   $as_echo_n "(cached) " >&6
10433 else
10434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h.  */
10437 int
10438 main ()
10441   ;
10442   return 0;
10444 _ACEOF
10445 if ac_fn_c_try_link "$LINENO"; then :
10447   lt_aix_libpath_sed='
10448       /Import File Strings/,/^$/ {
10449           /^0/ {
10450               s/^0  *\([^ ]*\) *$/\1/
10451               p
10452           }
10453       }'
10454   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10455   # Check for a 64-bit object if we didn't find anything.
10456   if test -z "$lt_cv_aix_libpath_"; then
10457     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10458   fi
10460 rm -f core conftest.err conftest.$ac_objext \
10461     conftest$ac_exeext conftest.$ac_ext
10462   if test -z "$lt_cv_aix_libpath_"; then
10463     lt_cv_aix_libpath_="/usr/lib:/lib"
10464   fi
10468   aix_libpath=$lt_cv_aix_libpath_
10471          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10472           # Warning - without using the other run time loading flags,
10473           # -berok will link without error, but may produce a broken library.
10474           no_undefined_flag=' ${wl}-bernotok'
10475           allow_undefined_flag=' ${wl}-berok'
10476           if test "$with_gnu_ld" = yes; then
10477             # We only use this code for GNU lds that support --whole-archive.
10478             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10479           else
10480             # Exported symbols can be pulled into shared objects from archives
10481             whole_archive_flag_spec='$convenience'
10482           fi
10483           archive_cmds_need_lc=yes
10484           # This is similar to how AIX traditionally builds its shared libraries.
10485           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10486         fi
10487       fi
10488       ;;
10490     amigaos*)
10491       case $host_cpu in
10492       powerpc)
10493             # see comment about AmigaOS4 .so support
10494             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10495             archive_expsym_cmds=''
10496         ;;
10497       m68k)
10498             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)'
10499             hardcode_libdir_flag_spec='-L$libdir'
10500             hardcode_minus_L=yes
10501         ;;
10502       esac
10503       ;;
10505     bsdi[45]*)
10506       export_dynamic_flag_spec=-rdynamic
10507       ;;
10509     cygwin* | mingw* | pw32* | cegcc*)
10510       # When not using gcc, we currently assume that we are using
10511       # Microsoft Visual C++.
10512       # hardcode_libdir_flag_spec is actually meaningless, as there is
10513       # no search path for DLLs.
10514       case $cc_basename in
10515       cl*)
10516         # Native MSVC
10517         hardcode_libdir_flag_spec=' '
10518         allow_undefined_flag=unsupported
10519         always_export_symbols=yes
10520         file_list_spec='@'
10521         # Tell ltmain to make .lib files, not .a files.
10522         libext=lib
10523         # Tell ltmain to make .dll files, not .so files.
10524         shrext_cmds=".dll"
10525         # FIXME: Setting linknames here is a bad hack.
10526         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10527         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10528             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10529           else
10530             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10531           fi~
10532           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10533           linknames='
10534         # The linker will not automatically build a static lib if we build a DLL.
10535         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10536         enable_shared_with_static_runtimes=yes
10537         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10538         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10539         # Don't use ranlib
10540         old_postinstall_cmds='chmod 644 $oldlib'
10541         postlink_cmds='lt_outputfile="@OUTPUT@"~
10542           lt_tool_outputfile="@TOOL_OUTPUT@"~
10543           case $lt_outputfile in
10544             *.exe|*.EXE) ;;
10545             *)
10546               lt_outputfile="$lt_outputfile.exe"
10547               lt_tool_outputfile="$lt_tool_outputfile.exe"
10548               ;;
10549           esac~
10550           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10551             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10552             $RM "$lt_outputfile.manifest";
10553           fi'
10554         ;;
10555       *)
10556         # Assume MSVC wrapper
10557         hardcode_libdir_flag_spec=' '
10558         allow_undefined_flag=unsupported
10559         # Tell ltmain to make .lib files, not .a files.
10560         libext=lib
10561         # Tell ltmain to make .dll files, not .so files.
10562         shrext_cmds=".dll"
10563         # FIXME: Setting linknames here is a bad hack.
10564         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10565         # The linker will automatically build a .lib file if we build a DLL.
10566         old_archive_from_new_cmds='true'
10567         # FIXME: Should let the user specify the lib program.
10568         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10569         enable_shared_with_static_runtimes=yes
10570         ;;
10571       esac
10572       ;;
10574     darwin* | rhapsody*)
10577   archive_cmds_need_lc=no
10578   hardcode_direct=no
10579   hardcode_automatic=yes
10580   hardcode_shlibpath_var=unsupported
10581   if test "$lt_cv_ld_force_load" = "yes"; then
10582     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\"`'
10584   else
10585     whole_archive_flag_spec=''
10586   fi
10587   link_all_deplibs=yes
10588   allow_undefined_flag="$_lt_dar_allow_undefined"
10589   case $cc_basename in
10590      ifort*) _lt_dar_can_shared=yes ;;
10591      *) _lt_dar_can_shared=$GCC ;;
10592   esac
10593   if test "$_lt_dar_can_shared" = "yes"; then
10594     output_verbose_link_cmd=func_echo_all
10595     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10596     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10597     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}"
10598     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}"
10600   else
10601   ld_shlibs=no
10602   fi
10604       ;;
10606     dgux*)
10607       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10608       hardcode_libdir_flag_spec='-L$libdir'
10609       hardcode_shlibpath_var=no
10610       ;;
10612     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10613     # support.  Future versions do this automatically, but an explicit c++rt0.o
10614     # does not break anything, and helps significantly (at the cost of a little
10615     # extra space).
10616     freebsd2.2*)
10617       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10618       hardcode_libdir_flag_spec='-R$libdir'
10619       hardcode_direct=yes
10620       hardcode_shlibpath_var=no
10621       ;;
10623     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10624     freebsd2.*)
10625       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10626       hardcode_direct=yes
10627       hardcode_minus_L=yes
10628       hardcode_shlibpath_var=no
10629       ;;
10631     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10632     freebsd* | dragonfly*)
10633       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10634       hardcode_libdir_flag_spec='-R$libdir'
10635       hardcode_direct=yes
10636       hardcode_shlibpath_var=no
10637       ;;
10639     hpux9*)
10640       if test "$GCC" = yes; then
10641         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10642       else
10643         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10644       fi
10645       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10646       hardcode_libdir_separator=:
10647       hardcode_direct=yes
10649       # hardcode_minus_L: Not really in the search PATH,
10650       # but as the default location of the library.
10651       hardcode_minus_L=yes
10652       export_dynamic_flag_spec='${wl}-E'
10653       ;;
10655     hpux10*)
10656       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10657         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10658       else
10659         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10660       fi
10661       if test "$with_gnu_ld" = no; then
10662         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10663         hardcode_libdir_separator=:
10664         hardcode_direct=yes
10665         hardcode_direct_absolute=yes
10666         export_dynamic_flag_spec='${wl}-E'
10667         # hardcode_minus_L: Not really in the search PATH,
10668         # but as the default location of the library.
10669         hardcode_minus_L=yes
10670       fi
10671       ;;
10673     hpux11*)
10674       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10675         case $host_cpu in
10676         hppa*64*)
10677           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10678           ;;
10679         ia64*)
10680           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10681           ;;
10682         *)
10683           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10684           ;;
10685         esac
10686       else
10687         case $host_cpu in
10688         hppa*64*)
10689           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10690           ;;
10691         ia64*)
10692           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10693           ;;
10694         *)
10696           # Older versions of the 11.00 compiler do not understand -b yet
10697           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10698           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10699 $as_echo_n "checking if $CC understands -b... " >&6; }
10700 if ${lt_cv_prog_compiler__b+:} false; then :
10701   $as_echo_n "(cached) " >&6
10702 else
10703   lt_cv_prog_compiler__b=no
10704    save_LDFLAGS="$LDFLAGS"
10705    LDFLAGS="$LDFLAGS -b"
10706    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10707    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10708      # The linker can only warn and ignore the option if not recognized
10709      # So say no if there are warnings
10710      if test -s conftest.err; then
10711        # Append any errors to the config.log.
10712        cat conftest.err 1>&5
10713        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10714        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10715        if diff conftest.exp conftest.er2 >/dev/null; then
10716          lt_cv_prog_compiler__b=yes
10717        fi
10718      else
10719        lt_cv_prog_compiler__b=yes
10720      fi
10721    fi
10722    $RM -r conftest*
10723    LDFLAGS="$save_LDFLAGS"
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10727 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10729 if test x"$lt_cv_prog_compiler__b" = xyes; then
10730     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10731 else
10732     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10735           ;;
10736         esac
10737       fi
10738       if test "$with_gnu_ld" = no; then
10739         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10740         hardcode_libdir_separator=:
10742         case $host_cpu in
10743         hppa*64*|ia64*)
10744           hardcode_direct=no
10745           hardcode_shlibpath_var=no
10746           ;;
10747         *)
10748           hardcode_direct=yes
10749           hardcode_direct_absolute=yes
10750           export_dynamic_flag_spec='${wl}-E'
10752           # hardcode_minus_L: Not really in the search PATH,
10753           # but as the default location of the library.
10754           hardcode_minus_L=yes
10755           ;;
10756         esac
10757       fi
10758       ;;
10760     irix5* | irix6* | nonstopux*)
10761       if test "$GCC" = yes; then
10762         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'
10763         # Try to use the -exported_symbol ld option, if it does not
10764         # work, assume that -exports_file does not work either and
10765         # implicitly export all symbols.
10766         # This should be the same for all languages, so no per-tag cache variable.
10767         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10768 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10769 if ${lt_cv_irix_exported_symbol+:} false; then :
10770   $as_echo_n "(cached) " >&6
10771 else
10772   save_LDFLAGS="$LDFLAGS"
10773            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10774            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h.  */
10776 int foo (void) { return 0; }
10777 _ACEOF
10778 if ac_fn_c_try_link "$LINENO"; then :
10779   lt_cv_irix_exported_symbol=yes
10780 else
10781   lt_cv_irix_exported_symbol=no
10783 rm -f core conftest.err conftest.$ac_objext \
10784     conftest$ac_exeext conftest.$ac_ext
10785            LDFLAGS="$save_LDFLAGS"
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10788 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10789         if test "$lt_cv_irix_exported_symbol" = yes; then
10790           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'
10791         fi
10792       else
10793         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'
10794         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'
10795       fi
10796       archive_cmds_need_lc='no'
10797       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10798       hardcode_libdir_separator=:
10799       inherit_rpath=yes
10800       link_all_deplibs=yes
10801       ;;
10803     netbsd* | netbsdelf*-gnu)
10804       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10805         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10806       else
10807         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10808       fi
10809       hardcode_libdir_flag_spec='-R$libdir'
10810       hardcode_direct=yes
10811       hardcode_shlibpath_var=no
10812       ;;
10814     newsos6)
10815       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10816       hardcode_direct=yes
10817       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10818       hardcode_libdir_separator=:
10819       hardcode_shlibpath_var=no
10820       ;;
10822     *nto* | *qnx*)
10823       ;;
10825     openbsd*)
10826       if test -f /usr/libexec/ld.so; then
10827         hardcode_direct=yes
10828         hardcode_shlibpath_var=no
10829         hardcode_direct_absolute=yes
10830         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10831           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10832           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10833           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10834           export_dynamic_flag_spec='${wl}-E'
10835         else
10836           case $host_os in
10837            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10838              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10839              hardcode_libdir_flag_spec='-R$libdir'
10840              ;;
10841            *)
10842              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10843              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10844              ;;
10845           esac
10846         fi
10847       else
10848         ld_shlibs=no
10849       fi
10850       ;;
10852     os2*)
10853       hardcode_libdir_flag_spec='-L$libdir'
10854       hardcode_minus_L=yes
10855       allow_undefined_flag=unsupported
10856       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10857       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10858       ;;
10860     osf3*)
10861       if test "$GCC" = yes; then
10862         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10863         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'
10864       else
10865         allow_undefined_flag=' -expect_unresolved \*'
10866         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'
10867       fi
10868       archive_cmds_need_lc='no'
10869       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10870       hardcode_libdir_separator=:
10871       ;;
10873     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10874       if test "$GCC" = yes; then
10875         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10876         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'
10877         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10878       else
10879         allow_undefined_flag=' -expect_unresolved \*'
10880         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'
10881         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~
10882         $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'
10884         # Both c and cxx compiler support -rpath directly
10885         hardcode_libdir_flag_spec='-rpath $libdir'
10886       fi
10887       archive_cmds_need_lc='no'
10888       hardcode_libdir_separator=:
10889       ;;
10891     solaris*)
10892       no_undefined_flag=' -z defs'
10893       if test "$GCC" = yes; then
10894         wlarc='${wl}'
10895         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10896         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10897           $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'
10898       else
10899         case `$CC -V 2>&1` in
10900         *"Compilers 5.0"*)
10901           wlarc=''
10902           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10903           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10904           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10905           ;;
10906         *)
10907           wlarc='${wl}'
10908           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10909           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10910           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10911           ;;
10912         esac
10913       fi
10914       hardcode_libdir_flag_spec='-R$libdir'
10915       hardcode_shlibpath_var=no
10916       case $host_os in
10917       solaris2.[0-5] | solaris2.[0-5].*) ;;
10918       *)
10919         # The compiler driver will combine and reorder linker options,
10920         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10921         # but is careful enough not to reorder.
10922         # Supported since Solaris 2.6 (maybe 2.5.1?)
10923         if test "$GCC" = yes; then
10924           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10925         else
10926           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10927         fi
10928         ;;
10929       esac
10930       link_all_deplibs=yes
10931       ;;
10933     sunos4*)
10934       if test "x$host_vendor" = xsequent; then
10935         # Use $CC to link under sequent, because it throws in some extra .o
10936         # files that make .init and .fini sections work.
10937         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10938       else
10939         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10940       fi
10941       hardcode_libdir_flag_spec='-L$libdir'
10942       hardcode_direct=yes
10943       hardcode_minus_L=yes
10944       hardcode_shlibpath_var=no
10945       ;;
10947     sysv4)
10948       case $host_vendor in
10949         sni)
10950           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10951           hardcode_direct=yes # is this really true???
10952         ;;
10953         siemens)
10954           ## LD is ld it makes a PLAMLIB
10955           ## CC just makes a GrossModule.
10956           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10957           reload_cmds='$CC -r -o $output$reload_objs'
10958           hardcode_direct=no
10959         ;;
10960         motorola)
10961           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10962           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10963         ;;
10964       esac
10965       runpath_var='LD_RUN_PATH'
10966       hardcode_shlibpath_var=no
10967       ;;
10969     sysv4.3*)
10970       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10971       hardcode_shlibpath_var=no
10972       export_dynamic_flag_spec='-Bexport'
10973       ;;
10975     sysv4*MP*)
10976       if test -d /usr/nec; then
10977         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10978         hardcode_shlibpath_var=no
10979         runpath_var=LD_RUN_PATH
10980         hardcode_runpath_var=yes
10981         ld_shlibs=yes
10982       fi
10983       ;;
10985     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10986       no_undefined_flag='${wl}-z,text'
10987       archive_cmds_need_lc=no
10988       hardcode_shlibpath_var=no
10989       runpath_var='LD_RUN_PATH'
10991       if test "$GCC" = yes; then
10992         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10993         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10994       else
10995         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10996         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10997       fi
10998       ;;
11000     sysv5* | sco3.2v5* | sco5v6*)
11001       # Note: We can NOT use -z defs as we might desire, because we do not
11002       # link with -lc, and that would cause any symbols used from libc to
11003       # always be unresolved, which means just about no library would
11004       # ever link correctly.  If we're not using GNU ld we use -z text
11005       # though, which does catch some bad symbols but isn't as heavy-handed
11006       # as -z defs.
11007       no_undefined_flag='${wl}-z,text'
11008       allow_undefined_flag='${wl}-z,nodefs'
11009       archive_cmds_need_lc=no
11010       hardcode_shlibpath_var=no
11011       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11012       hardcode_libdir_separator=':'
11013       link_all_deplibs=yes
11014       export_dynamic_flag_spec='${wl}-Bexport'
11015       runpath_var='LD_RUN_PATH'
11017       if test "$GCC" = yes; then
11018         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11019         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11020       else
11021         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11022         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11023       fi
11024       ;;
11026     uts4*)
11027       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11028       hardcode_libdir_flag_spec='-L$libdir'
11029       hardcode_shlibpath_var=no
11030       ;;
11032     *)
11033       ld_shlibs=no
11034       ;;
11035     esac
11037     if test x$host_vendor = xsni; then
11038       case $host in
11039       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11040         export_dynamic_flag_spec='${wl}-Blargedynsym'
11041         ;;
11042       esac
11043     fi
11044   fi
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11047 $as_echo "$ld_shlibs" >&6; }
11048 test "$ld_shlibs" = no && can_build_shared=no
11050 with_gnu_ld=$with_gnu_ld
11067 # Do we need to explicitly link libc?
11069 case "x$archive_cmds_need_lc" in
11070 x|xyes)
11071   # Assume -lc should be added
11072   archive_cmds_need_lc=yes
11074   if test "$enable_shared" = yes && test "$GCC" = yes; then
11075     case $archive_cmds in
11076     *'~'*)
11077       # FIXME: we may have to deal with multi-command sequences.
11078       ;;
11079     '$CC '*)
11080       # Test whether the compiler implicitly links with -lc since on some
11081       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11082       # to ld, don't add -lc before -lgcc.
11083       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11084 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11085 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11086   $as_echo_n "(cached) " >&6
11087 else
11088   $RM conftest*
11089         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11091         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11092   (eval $ac_compile) 2>&5
11093   ac_status=$?
11094   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11095   test $ac_status = 0; } 2>conftest.err; then
11096           soname=conftest
11097           lib=conftest
11098           libobjs=conftest.$ac_objext
11099           deplibs=
11100           wl=$lt_prog_compiler_wl
11101           pic_flag=$lt_prog_compiler_pic
11102           compiler_flags=-v
11103           linker_flags=-v
11104           verstring=
11105           output_objdir=.
11106           libname=conftest
11107           lt_save_allow_undefined_flag=$allow_undefined_flag
11108           allow_undefined_flag=
11109           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11110   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11111   ac_status=$?
11112   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11113   test $ac_status = 0; }
11114           then
11115             lt_cv_archive_cmds_need_lc=no
11116           else
11117             lt_cv_archive_cmds_need_lc=yes
11118           fi
11119           allow_undefined_flag=$lt_save_allow_undefined_flag
11120         else
11121           cat conftest.err 1>&5
11122         fi
11123         $RM conftest*
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11127 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11128       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11129       ;;
11130     esac
11131   fi
11132   ;;
11133 esac
11286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11287 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11289 if test "$GCC" = yes; then
11290   case $host_os in
11291     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11292     *) lt_awk_arg="/^libraries:/" ;;
11293   esac
11294   case $host_os in
11295     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11296     *) lt_sed_strip_eq="s,=/,/,g" ;;
11297   esac
11298   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11299   case $lt_search_path_spec in
11300   *\;*)
11301     # if the path contains ";" then we assume it to be the separator
11302     # otherwise default to the standard path separator (i.e. ":") - it is
11303     # assumed that no part of a normal pathname contains ";" but that should
11304     # okay in the real world where ";" in dirpaths is itself problematic.
11305     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11306     ;;
11307   *)
11308     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11309     ;;
11310   esac
11311   # Ok, now we have the path, separated by spaces, we can step through it
11312   # and add multilib dir if necessary.
11313   lt_tmp_lt_search_path_spec=
11314   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11315   for lt_sys_path in $lt_search_path_spec; do
11316     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11317       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11318     else
11319       test -d "$lt_sys_path" && \
11320         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11321     fi
11322   done
11323   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11324 BEGIN {RS=" "; FS="/|\n";} {
11325   lt_foo="";
11326   lt_count=0;
11327   for (lt_i = NF; lt_i > 0; lt_i--) {
11328     if ($lt_i != "" && $lt_i != ".") {
11329       if ($lt_i == "..") {
11330         lt_count++;
11331       } else {
11332         if (lt_count == 0) {
11333           lt_foo="/" $lt_i lt_foo;
11334         } else {
11335           lt_count--;
11336         }
11337       }
11338     }
11339   }
11340   if (lt_foo != "") { lt_freq[lt_foo]++; }
11341   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11342 }'`
11343   # AWK program above erroneously prepends '/' to C:/dos/paths
11344   # for these hosts.
11345   case $host_os in
11346     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11347       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11348   esac
11349   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11350 else
11351   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11353 library_names_spec=
11354 libname_spec='lib$name'
11355 soname_spec=
11356 shrext_cmds=".so"
11357 postinstall_cmds=
11358 postuninstall_cmds=
11359 finish_cmds=
11360 finish_eval=
11361 shlibpath_var=
11362 shlibpath_overrides_runpath=unknown
11363 version_type=none
11364 dynamic_linker="$host_os ld.so"
11365 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11366 need_lib_prefix=unknown
11367 hardcode_into_libs=no
11369 # when you set need_version to no, make sure it does not cause -set_version
11370 # flags to be left without arguments
11371 need_version=unknown
11373 case $host_os in
11374 aix3*)
11375   version_type=linux # correct to gnu/linux during the next big refactor
11376   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11377   shlibpath_var=LIBPATH
11379   # AIX 3 has no versioning support, so we append a major version to the name.
11380   soname_spec='${libname}${release}${shared_ext}$major'
11381   ;;
11383 aix[4-9]*)
11384   version_type=linux # correct to gnu/linux during the next big refactor
11385   need_lib_prefix=no
11386   need_version=no
11387   hardcode_into_libs=yes
11388   if test "$host_cpu" = ia64; then
11389     # AIX 5 supports IA64
11390     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11391     shlibpath_var=LD_LIBRARY_PATH
11392   else
11393     # With GCC up to 2.95.x, collect2 would create an import file
11394     # for dependence libraries.  The import file would start with
11395     # the line `#! .'.  This would cause the generated library to
11396     # depend on `.', always an invalid library.  This was fixed in
11397     # development snapshots of GCC prior to 3.0.
11398     case $host_os in
11399       aix4 | aix4.[01] | aix4.[01].*)
11400       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11401            echo ' yes '
11402            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11403         :
11404       else
11405         can_build_shared=no
11406       fi
11407       ;;
11408     esac
11409     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11410     # soname into executable. Probably we can add versioning support to
11411     # collect2, so additional links can be useful in future.
11412     if test "$aix_use_runtimelinking" = yes; then
11413       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11414       # instead of lib<name>.a to let people know that these are not
11415       # typical AIX shared libraries.
11416       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11417     else
11418       # We preserve .a as extension for shared libraries through AIX4.2
11419       # and later when we are not doing run time linking.
11420       library_names_spec='${libname}${release}.a $libname.a'
11421       soname_spec='${libname}${release}${shared_ext}$major'
11422     fi
11423     shlibpath_var=LIBPATH
11424   fi
11425   ;;
11427 amigaos*)
11428   case $host_cpu in
11429   powerpc)
11430     # Since July 2007 AmigaOS4 officially supports .so libraries.
11431     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11432     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11433     ;;
11434   m68k)
11435     library_names_spec='$libname.ixlibrary $libname.a'
11436     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11437     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11438     ;;
11439   esac
11440   ;;
11442 beos*)
11443   library_names_spec='${libname}${shared_ext}'
11444   dynamic_linker="$host_os ld.so"
11445   shlibpath_var=LIBRARY_PATH
11446   ;;
11448 bsdi[45]*)
11449   version_type=linux # correct to gnu/linux during the next big refactor
11450   need_version=no
11451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11452   soname_spec='${libname}${release}${shared_ext}$major'
11453   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11454   shlibpath_var=LD_LIBRARY_PATH
11455   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11456   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11457   # the default ld.so.conf also contains /usr/contrib/lib and
11458   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11459   # libtool to hard-code these into programs
11460   ;;
11462 cygwin* | mingw* | pw32* | cegcc*)
11463   version_type=windows
11464   shrext_cmds=".dll"
11465   need_version=no
11466   need_lib_prefix=no
11468   case $GCC,$cc_basename in
11469   yes,*)
11470     # gcc
11471     library_names_spec='$libname.dll.a'
11472     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11473     postinstall_cmds='base_file=`basename \${file}`~
11474       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11475       dldir=$destdir/`dirname \$dlpath`~
11476       test -d \$dldir || mkdir -p \$dldir~
11477       $install_prog $dir/$dlname \$dldir/$dlname~
11478       chmod a+x \$dldir/$dlname~
11479       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11480         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11481       fi'
11482     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11483       dlpath=$dir/\$dldll~
11484        $RM \$dlpath'
11485     shlibpath_overrides_runpath=yes
11487     case $host_os in
11488     cygwin*)
11489       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11490       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11492       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11493       ;;
11494     mingw* | cegcc*)
11495       # MinGW DLLs use traditional 'lib' prefix
11496       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11497       ;;
11498     pw32*)
11499       # pw32 DLLs use 'pw' prefix rather than 'lib'
11500       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11501       ;;
11502     esac
11503     dynamic_linker='Win32 ld.exe'
11504     ;;
11506   *,cl*)
11507     # Native MSVC
11508     libname_spec='$name'
11509     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11510     library_names_spec='${libname}.dll.lib'
11512     case $build_os in
11513     mingw*)
11514       sys_lib_search_path_spec=
11515       lt_save_ifs=$IFS
11516       IFS=';'
11517       for lt_path in $LIB
11518       do
11519         IFS=$lt_save_ifs
11520         # Let DOS variable expansion print the short 8.3 style file name.
11521         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11522         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11523       done
11524       IFS=$lt_save_ifs
11525       # Convert to MSYS style.
11526       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11527       ;;
11528     cygwin*)
11529       # Convert to unix form, then to dos form, then back to unix form
11530       # but this time dos style (no spaces!) so that the unix form looks
11531       # like /cygdrive/c/PROGRA~1:/cygdr...
11532       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11533       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11534       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11535       ;;
11536     *)
11537       sys_lib_search_path_spec="$LIB"
11538       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11539         # It is most probably a Windows format PATH.
11540         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11541       else
11542         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11543       fi
11544       # FIXME: find the short name or the path components, as spaces are
11545       # common. (e.g. "Program Files" -> "PROGRA~1")
11546       ;;
11547     esac
11549     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11550     postinstall_cmds='base_file=`basename \${file}`~
11551       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11552       dldir=$destdir/`dirname \$dlpath`~
11553       test -d \$dldir || mkdir -p \$dldir~
11554       $install_prog $dir/$dlname \$dldir/$dlname'
11555     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11556       dlpath=$dir/\$dldll~
11557        $RM \$dlpath'
11558     shlibpath_overrides_runpath=yes
11559     dynamic_linker='Win32 link.exe'
11560     ;;
11562   *)
11563     # Assume MSVC wrapper
11564     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11565     dynamic_linker='Win32 ld.exe'
11566     ;;
11567   esac
11568   # FIXME: first we should search . and the directory the executable is in
11569   shlibpath_var=PATH
11570   ;;
11572 darwin* | rhapsody*)
11573   dynamic_linker="$host_os dyld"
11574   version_type=darwin
11575   need_lib_prefix=no
11576   need_version=no
11577   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11578   soname_spec='${libname}${release}${major}$shared_ext'
11579   shlibpath_overrides_runpath=yes
11580   shlibpath_var=DYLD_LIBRARY_PATH
11581   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11583   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11584   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11585   ;;
11587 dgux*)
11588   version_type=linux # correct to gnu/linux during the next big refactor
11589   need_lib_prefix=no
11590   need_version=no
11591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11592   soname_spec='${libname}${release}${shared_ext}$major'
11593   shlibpath_var=LD_LIBRARY_PATH
11594   ;;
11596 freebsd* | dragonfly*)
11597   # DragonFly does not have aout.  When/if they implement a new
11598   # versioning mechanism, adjust this.
11599   if test -x /usr/bin/objformat; then
11600     objformat=`/usr/bin/objformat`
11601   else
11602     case $host_os in
11603     freebsd[23].*) objformat=aout ;;
11604     *) objformat=elf ;;
11605     esac
11606   fi
11607   version_type=freebsd-$objformat
11608   case $version_type in
11609     freebsd-elf*)
11610       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11611       need_version=no
11612       need_lib_prefix=no
11613       ;;
11614     freebsd-*)
11615       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11616       need_version=yes
11617       ;;
11618   esac
11619   shlibpath_var=LD_LIBRARY_PATH
11620   case $host_os in
11621   freebsd2.*)
11622     shlibpath_overrides_runpath=yes
11623     ;;
11624   freebsd3.[01]* | freebsdelf3.[01]*)
11625     shlibpath_overrides_runpath=yes
11626     hardcode_into_libs=yes
11627     ;;
11628   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11629   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11630     shlibpath_overrides_runpath=no
11631     hardcode_into_libs=yes
11632     ;;
11633   *) # from 4.6 on, and DragonFly
11634     shlibpath_overrides_runpath=yes
11635     hardcode_into_libs=yes
11636     ;;
11637   esac
11638   ;;
11640 gnu*)
11641   version_type=linux # correct to gnu/linux during the next big refactor
11642   need_lib_prefix=no
11643   need_version=no
11644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11645   soname_spec='${libname}${release}${shared_ext}$major'
11646   shlibpath_var=LD_LIBRARY_PATH
11647   shlibpath_overrides_runpath=no
11648   hardcode_into_libs=yes
11649   ;;
11651 haiku*)
11652   version_type=linux # correct to gnu/linux during the next big refactor
11653   need_lib_prefix=no
11654   need_version=no
11655   dynamic_linker="$host_os runtime_loader"
11656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11657   soname_spec='${libname}${release}${shared_ext}$major'
11658   shlibpath_var=LIBRARY_PATH
11659   shlibpath_overrides_runpath=yes
11660   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11661   hardcode_into_libs=yes
11662   ;;
11664 hpux9* | hpux10* | hpux11*)
11665   # Give a soname corresponding to the major version so that dld.sl refuses to
11666   # link against other versions.
11667   version_type=sunos
11668   need_lib_prefix=no
11669   need_version=no
11670   case $host_cpu in
11671   ia64*)
11672     shrext_cmds='.so'
11673     hardcode_into_libs=yes
11674     dynamic_linker="$host_os dld.so"
11675     shlibpath_var=LD_LIBRARY_PATH
11676     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11677     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11678     soname_spec='${libname}${release}${shared_ext}$major'
11679     if test "X$HPUX_IA64_MODE" = X32; then
11680       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11681     else
11682       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11683     fi
11684     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11685     ;;
11686   hppa*64*)
11687     shrext_cmds='.sl'
11688     hardcode_into_libs=yes
11689     dynamic_linker="$host_os dld.sl"
11690     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11691     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11692     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11693     soname_spec='${libname}${release}${shared_ext}$major'
11694     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11695     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11696     ;;
11697   *)
11698     shrext_cmds='.sl'
11699     dynamic_linker="$host_os dld.sl"
11700     shlibpath_var=SHLIB_PATH
11701     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11702     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11703     soname_spec='${libname}${release}${shared_ext}$major'
11704     ;;
11705   esac
11706   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11707   postinstall_cmds='chmod 555 $lib'
11708   # or fails outright, so override atomically:
11709   install_override_mode=555
11710   ;;
11712 interix[3-9]*)
11713   version_type=linux # correct to gnu/linux during the next big refactor
11714   need_lib_prefix=no
11715   need_version=no
11716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11717   soname_spec='${libname}${release}${shared_ext}$major'
11718   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11719   shlibpath_var=LD_LIBRARY_PATH
11720   shlibpath_overrides_runpath=no
11721   hardcode_into_libs=yes
11722   ;;
11724 irix5* | irix6* | nonstopux*)
11725   case $host_os in
11726     nonstopux*) version_type=nonstopux ;;
11727     *)
11728         if test "$lt_cv_prog_gnu_ld" = yes; then
11729                 version_type=linux # correct to gnu/linux during the next big refactor
11730         else
11731                 version_type=irix
11732         fi ;;
11733   esac
11734   need_lib_prefix=no
11735   need_version=no
11736   soname_spec='${libname}${release}${shared_ext}$major'
11737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11738   case $host_os in
11739   irix5* | nonstopux*)
11740     libsuff= shlibsuff=
11741     ;;
11742   *)
11743     case $LD in # libtool.m4 will add one of these switches to LD
11744     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11745       libsuff= shlibsuff= libmagic=32-bit;;
11746     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11747       libsuff=32 shlibsuff=N32 libmagic=N32;;
11748     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11749       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11750     *) libsuff= shlibsuff= libmagic=never-match;;
11751     esac
11752     ;;
11753   esac
11754   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11755   shlibpath_overrides_runpath=no
11756   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11757   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11758   hardcode_into_libs=yes
11759   ;;
11761 # No shared lib support for Linux oldld, aout, or coff.
11762 linux*oldld* | linux*aout* | linux*coff*)
11763   dynamic_linker=no
11764   ;;
11766 # This must be glibc/ELF.
11767 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11768   version_type=linux # correct to gnu/linux during the next big refactor
11769   need_lib_prefix=no
11770   need_version=no
11771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11772   soname_spec='${libname}${release}${shared_ext}$major'
11773   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11774   shlibpath_var=LD_LIBRARY_PATH
11775   shlibpath_overrides_runpath=no
11777   # Some binutils ld are patched to set DT_RUNPATH
11778   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11779   $as_echo_n "(cached) " >&6
11780 else
11781   lt_cv_shlibpath_overrides_runpath=no
11782     save_LDFLAGS=$LDFLAGS
11783     save_libdir=$libdir
11784     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11785          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11786     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11787 /* end confdefs.h.  */
11789 int
11790 main ()
11793   ;
11794   return 0;
11796 _ACEOF
11797 if ac_fn_c_try_link "$LINENO"; then :
11798   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11799   lt_cv_shlibpath_overrides_runpath=yes
11802 rm -f core conftest.err conftest.$ac_objext \
11803     conftest$ac_exeext conftest.$ac_ext
11804     LDFLAGS=$save_LDFLAGS
11805     libdir=$save_libdir
11809   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11811   # This implies no fast_install, which is unacceptable.
11812   # Some rework will be needed to allow for fast_install
11813   # before this can be enabled.
11814   hardcode_into_libs=yes
11816   # Append ld.so.conf contents to the search path
11817   if test -f /etc/ld.so.conf; then
11818     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' ' '`
11819     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11820   fi
11822   # We used to test for /lib/ld.so.1 and disable shared libraries on
11823   # powerpc, because MkLinux only supported shared libraries with the
11824   # GNU dynamic linker.  Since this was broken with cross compilers,
11825   # most powerpc-linux boxes support dynamic linking these days and
11826   # people can always --disable-shared, the test was removed, and we
11827   # assume the GNU/Linux dynamic linker is in use.
11828   dynamic_linker='GNU/Linux ld.so'
11829   ;;
11831 netbsdelf*-gnu)
11832   version_type=linux
11833   need_lib_prefix=no
11834   need_version=no
11835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11836   soname_spec='${libname}${release}${shared_ext}$major'
11837   shlibpath_var=LD_LIBRARY_PATH
11838   shlibpath_overrides_runpath=no
11839   hardcode_into_libs=yes
11840   dynamic_linker='NetBSD ld.elf_so'
11841   ;;
11843 netbsd*)
11844   version_type=sunos
11845   need_lib_prefix=no
11846   need_version=no
11847   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11849     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11850     dynamic_linker='NetBSD (a.out) ld.so'
11851   else
11852     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11853     soname_spec='${libname}${release}${shared_ext}$major'
11854     dynamic_linker='NetBSD ld.elf_so'
11855   fi
11856   shlibpath_var=LD_LIBRARY_PATH
11857   shlibpath_overrides_runpath=yes
11858   hardcode_into_libs=yes
11859   ;;
11861 newsos6)
11862   version_type=linux # correct to gnu/linux during the next big refactor
11863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11864   shlibpath_var=LD_LIBRARY_PATH
11865   shlibpath_overrides_runpath=yes
11866   ;;
11868 *nto* | *qnx*)
11869   version_type=qnx
11870   need_lib_prefix=no
11871   need_version=no
11872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11873   soname_spec='${libname}${release}${shared_ext}$major'
11874   shlibpath_var=LD_LIBRARY_PATH
11875   shlibpath_overrides_runpath=no
11876   hardcode_into_libs=yes
11877   dynamic_linker='ldqnx.so'
11878   ;;
11880 openbsd*)
11881   version_type=sunos
11882   sys_lib_dlsearch_path_spec="/usr/lib"
11883   need_lib_prefix=no
11884   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11885   case $host_os in
11886     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11887     *)                          need_version=no  ;;
11888   esac
11889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11890   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11891   shlibpath_var=LD_LIBRARY_PATH
11892   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11893     case $host_os in
11894       openbsd2.[89] | openbsd2.[89].*)
11895         shlibpath_overrides_runpath=no
11896         ;;
11897       *)
11898         shlibpath_overrides_runpath=yes
11899         ;;
11900       esac
11901   else
11902     shlibpath_overrides_runpath=yes
11903   fi
11904   ;;
11906 os2*)
11907   libname_spec='$name'
11908   shrext_cmds=".dll"
11909   need_lib_prefix=no
11910   library_names_spec='$libname${shared_ext} $libname.a'
11911   dynamic_linker='OS/2 ld.exe'
11912   shlibpath_var=LIBPATH
11913   ;;
11915 osf3* | osf4* | osf5*)
11916   version_type=osf
11917   need_lib_prefix=no
11918   need_version=no
11919   soname_spec='${libname}${release}${shared_ext}$major'
11920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11921   shlibpath_var=LD_LIBRARY_PATH
11922   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11923   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11924   ;;
11926 rdos*)
11927   dynamic_linker=no
11928   ;;
11930 solaris*)
11931   version_type=linux # correct to gnu/linux during the next big refactor
11932   need_lib_prefix=no
11933   need_version=no
11934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11935   soname_spec='${libname}${release}${shared_ext}$major'
11936   shlibpath_var=LD_LIBRARY_PATH
11937   shlibpath_overrides_runpath=yes
11938   hardcode_into_libs=yes
11939   # ldd complains unless libraries are executable
11940   postinstall_cmds='chmod +x $lib'
11941   ;;
11943 sunos4*)
11944   version_type=sunos
11945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11946   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11947   shlibpath_var=LD_LIBRARY_PATH
11948   shlibpath_overrides_runpath=yes
11949   if test "$with_gnu_ld" = yes; then
11950     need_lib_prefix=no
11951   fi
11952   need_version=yes
11953   ;;
11955 sysv4 | sysv4.3*)
11956   version_type=linux # correct to gnu/linux during the next big refactor
11957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11958   soname_spec='${libname}${release}${shared_ext}$major'
11959   shlibpath_var=LD_LIBRARY_PATH
11960   case $host_vendor in
11961     sni)
11962       shlibpath_overrides_runpath=no
11963       need_lib_prefix=no
11964       runpath_var=LD_RUN_PATH
11965       ;;
11966     siemens)
11967       need_lib_prefix=no
11968       ;;
11969     motorola)
11970       need_lib_prefix=no
11971       need_version=no
11972       shlibpath_overrides_runpath=no
11973       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11974       ;;
11975   esac
11976   ;;
11978 sysv4*MP*)
11979   if test -d /usr/nec ;then
11980     version_type=linux # correct to gnu/linux during the next big refactor
11981     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11982     soname_spec='$libname${shared_ext}.$major'
11983     shlibpath_var=LD_LIBRARY_PATH
11984   fi
11985   ;;
11987 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11988   version_type=freebsd-elf
11989   need_lib_prefix=no
11990   need_version=no
11991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11992   soname_spec='${libname}${release}${shared_ext}$major'
11993   shlibpath_var=LD_LIBRARY_PATH
11994   shlibpath_overrides_runpath=yes
11995   hardcode_into_libs=yes
11996   if test "$with_gnu_ld" = yes; then
11997     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11998   else
11999     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12000     case $host_os in
12001       sco3.2v5*)
12002         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12003         ;;
12004     esac
12005   fi
12006   sys_lib_dlsearch_path_spec='/usr/lib'
12007   ;;
12009 tpf*)
12010   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12011   version_type=linux # correct to gnu/linux during the next big refactor
12012   need_lib_prefix=no
12013   need_version=no
12014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12015   shlibpath_var=LD_LIBRARY_PATH
12016   shlibpath_overrides_runpath=no
12017   hardcode_into_libs=yes
12018   ;;
12020 uts4*)
12021   version_type=linux # correct to gnu/linux during the next big refactor
12022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12023   soname_spec='${libname}${release}${shared_ext}$major'
12024   shlibpath_var=LD_LIBRARY_PATH
12025   ;;
12028   dynamic_linker=no
12029   ;;
12030 esac
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12032 $as_echo "$dynamic_linker" >&6; }
12033 test "$dynamic_linker" = no && can_build_shared=no
12035 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12036 if test "$GCC" = yes; then
12037   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12040 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12041   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12043 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12044   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12139 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12140 hardcode_action=
12141 if test -n "$hardcode_libdir_flag_spec" ||
12142    test -n "$runpath_var" ||
12143    test "X$hardcode_automatic" = "Xyes" ; then
12145   # We can hardcode non-existent directories.
12146   if test "$hardcode_direct" != no &&
12147      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12148      # have to relink, otherwise we might link with an installed library
12149      # when we should be linking with a yet-to-be-installed one
12150      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12151      test "$hardcode_minus_L" != no; then
12152     # Linking always hardcodes the temporary library directory.
12153     hardcode_action=relink
12154   else
12155     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12156     hardcode_action=immediate
12157   fi
12158 else
12159   # We cannot hardcode anything, or else we can only hardcode existing
12160   # directories.
12161   hardcode_action=unsupported
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12164 $as_echo "$hardcode_action" >&6; }
12166 if test "$hardcode_action" = relink ||
12167    test "$inherit_rpath" = yes; then
12168   # Fast installation is not supported
12169   enable_fast_install=no
12170 elif test "$shlibpath_overrides_runpath" = yes ||
12171      test "$enable_shared" = no; then
12172   # Fast installation is not necessary
12173   enable_fast_install=needless
12181   if test "x$enable_dlopen" != xyes; then
12182   enable_dlopen=unknown
12183   enable_dlopen_self=unknown
12184   enable_dlopen_self_static=unknown
12185 else
12186   lt_cv_dlopen=no
12187   lt_cv_dlopen_libs=
12189   case $host_os in
12190   beos*)
12191     lt_cv_dlopen="load_add_on"
12192     lt_cv_dlopen_libs=
12193     lt_cv_dlopen_self=yes
12194     ;;
12196   mingw* | pw32* | cegcc*)
12197     lt_cv_dlopen="LoadLibrary"
12198     lt_cv_dlopen_libs=
12199     ;;
12201   cygwin*)
12202     lt_cv_dlopen="dlopen"
12203     lt_cv_dlopen_libs=
12204     ;;
12206   darwin*)
12207   # if libdl is installed we need to link against it
12208     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12209 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12210 if ${ac_cv_lib_dl_dlopen+:} false; then :
12211   $as_echo_n "(cached) " >&6
12212 else
12213   ac_check_lib_save_LIBS=$LIBS
12214 LIBS="-ldl  $LIBS"
12215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h.  */
12218 /* Override any GCC internal prototype to avoid an error.
12219    Use char because int might match the return type of a GCC
12220    builtin and then its argument prototype would still apply.  */
12221 #ifdef __cplusplus
12222 extern "C"
12223 #endif
12224 char dlopen ();
12225 int
12226 main ()
12228 return dlopen ();
12229   ;
12230   return 0;
12232 _ACEOF
12233 if ac_fn_c_try_link "$LINENO"; then :
12234   ac_cv_lib_dl_dlopen=yes
12235 else
12236   ac_cv_lib_dl_dlopen=no
12238 rm -f core conftest.err conftest.$ac_objext \
12239     conftest$ac_exeext conftest.$ac_ext
12240 LIBS=$ac_check_lib_save_LIBS
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12243 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12244 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12245   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12246 else
12248     lt_cv_dlopen="dyld"
12249     lt_cv_dlopen_libs=
12250     lt_cv_dlopen_self=yes
12254     ;;
12256   *)
12257     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12258 if test "x$ac_cv_func_shl_load" = xyes; then :
12259   lt_cv_dlopen="shl_load"
12260 else
12261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12262 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12263 if ${ac_cv_lib_dld_shl_load+:} false; then :
12264   $as_echo_n "(cached) " >&6
12265 else
12266   ac_check_lib_save_LIBS=$LIBS
12267 LIBS="-ldld  $LIBS"
12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h.  */
12271 /* Override any GCC internal prototype to avoid an error.
12272    Use char because int might match the return type of a GCC
12273    builtin and then its argument prototype would still apply.  */
12274 #ifdef __cplusplus
12275 extern "C"
12276 #endif
12277 char shl_load ();
12278 int
12279 main ()
12281 return shl_load ();
12282   ;
12283   return 0;
12285 _ACEOF
12286 if ac_fn_c_try_link "$LINENO"; then :
12287   ac_cv_lib_dld_shl_load=yes
12288 else
12289   ac_cv_lib_dld_shl_load=no
12291 rm -f core conftest.err conftest.$ac_objext \
12292     conftest$ac_exeext conftest.$ac_ext
12293 LIBS=$ac_check_lib_save_LIBS
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12296 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12297 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12298   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12299 else
12300   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12301 if test "x$ac_cv_func_dlopen" = xyes; then :
12302   lt_cv_dlopen="dlopen"
12303 else
12304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12305 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12306 if ${ac_cv_lib_dl_dlopen+:} false; then :
12307   $as_echo_n "(cached) " >&6
12308 else
12309   ac_check_lib_save_LIBS=$LIBS
12310 LIBS="-ldl  $LIBS"
12311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h.  */
12314 /* Override any GCC internal prototype to avoid an error.
12315    Use char because int might match the return type of a GCC
12316    builtin and then its argument prototype would still apply.  */
12317 #ifdef __cplusplus
12318 extern "C"
12319 #endif
12320 char dlopen ();
12321 int
12322 main ()
12324 return dlopen ();
12325   ;
12326   return 0;
12328 _ACEOF
12329 if ac_fn_c_try_link "$LINENO"; then :
12330   ac_cv_lib_dl_dlopen=yes
12331 else
12332   ac_cv_lib_dl_dlopen=no
12334 rm -f core conftest.err conftest.$ac_objext \
12335     conftest$ac_exeext conftest.$ac_ext
12336 LIBS=$ac_check_lib_save_LIBS
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12339 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12340 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12341   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12342 else
12343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12344 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12345 if ${ac_cv_lib_svld_dlopen+:} false; then :
12346   $as_echo_n "(cached) " >&6
12347 else
12348   ac_check_lib_save_LIBS=$LIBS
12349 LIBS="-lsvld  $LIBS"
12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h.  */
12353 /* Override any GCC internal prototype to avoid an error.
12354    Use char because int might match the return type of a GCC
12355    builtin and then its argument prototype would still apply.  */
12356 #ifdef __cplusplus
12357 extern "C"
12358 #endif
12359 char dlopen ();
12360 int
12361 main ()
12363 return dlopen ();
12364   ;
12365   return 0;
12367 _ACEOF
12368 if ac_fn_c_try_link "$LINENO"; then :
12369   ac_cv_lib_svld_dlopen=yes
12370 else
12371   ac_cv_lib_svld_dlopen=no
12373 rm -f core conftest.err conftest.$ac_objext \
12374     conftest$ac_exeext conftest.$ac_ext
12375 LIBS=$ac_check_lib_save_LIBS
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12378 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12379 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12380   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12381 else
12382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12383 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12384 if ${ac_cv_lib_dld_dld_link+:} false; then :
12385   $as_echo_n "(cached) " >&6
12386 else
12387   ac_check_lib_save_LIBS=$LIBS
12388 LIBS="-ldld  $LIBS"
12389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h.  */
12392 /* Override any GCC internal prototype to avoid an error.
12393    Use char because int might match the return type of a GCC
12394    builtin and then its argument prototype would still apply.  */
12395 #ifdef __cplusplus
12396 extern "C"
12397 #endif
12398 char dld_link ();
12399 int
12400 main ()
12402 return dld_link ();
12403   ;
12404   return 0;
12406 _ACEOF
12407 if ac_fn_c_try_link "$LINENO"; then :
12408   ac_cv_lib_dld_dld_link=yes
12409 else
12410   ac_cv_lib_dld_dld_link=no
12412 rm -f core conftest.err conftest.$ac_objext \
12413     conftest$ac_exeext conftest.$ac_ext
12414 LIBS=$ac_check_lib_save_LIBS
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12417 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12418 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12419   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12437     ;;
12438   esac
12440   if test "x$lt_cv_dlopen" != xno; then
12441     enable_dlopen=yes
12442   else
12443     enable_dlopen=no
12444   fi
12446   case $lt_cv_dlopen in
12447   dlopen)
12448     save_CPPFLAGS="$CPPFLAGS"
12449     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12451     save_LDFLAGS="$LDFLAGS"
12452     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12454     save_LIBS="$LIBS"
12455     LIBS="$lt_cv_dlopen_libs $LIBS"
12457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12458 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12459 if ${lt_cv_dlopen_self+:} false; then :
12460   $as_echo_n "(cached) " >&6
12461 else
12462           if test "$cross_compiling" = yes; then :
12463   lt_cv_dlopen_self=cross
12464 else
12465   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12466   lt_status=$lt_dlunknown
12467   cat > conftest.$ac_ext <<_LT_EOF
12468 #line $LINENO "configure"
12469 #include "confdefs.h"
12471 #if HAVE_DLFCN_H
12472 #include <dlfcn.h>
12473 #endif
12475 #include <stdio.h>
12477 #ifdef RTLD_GLOBAL
12478 #  define LT_DLGLOBAL           RTLD_GLOBAL
12479 #else
12480 #  ifdef DL_GLOBAL
12481 #    define LT_DLGLOBAL         DL_GLOBAL
12482 #  else
12483 #    define LT_DLGLOBAL         0
12484 #  endif
12485 #endif
12487 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12488    find out it does not work in some platform. */
12489 #ifndef LT_DLLAZY_OR_NOW
12490 #  ifdef RTLD_LAZY
12491 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12492 #  else
12493 #    ifdef DL_LAZY
12494 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12495 #    else
12496 #      ifdef RTLD_NOW
12497 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12498 #      else
12499 #        ifdef DL_NOW
12500 #          define LT_DLLAZY_OR_NOW      DL_NOW
12501 #        else
12502 #          define LT_DLLAZY_OR_NOW      0
12503 #        endif
12504 #      endif
12505 #    endif
12506 #  endif
12507 #endif
12509 /* When -fvisbility=hidden is used, assume the code has been annotated
12510    correspondingly for the symbols needed.  */
12511 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12512 int fnord () __attribute__((visibility("default")));
12513 #endif
12515 int fnord () { return 42; }
12516 int main ()
12518   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12519   int status = $lt_dlunknown;
12521   if (self)
12522     {
12523       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12524       else
12525         {
12526           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12527           else puts (dlerror ());
12528         }
12529       /* dlclose (self); */
12530     }
12531   else
12532     puts (dlerror ());
12534   return status;
12536 _LT_EOF
12537   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12538   (eval $ac_link) 2>&5
12539   ac_status=$?
12540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12541   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12542     (./conftest; exit; ) >&5 2>/dev/null
12543     lt_status=$?
12544     case x$lt_status in
12545       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12546       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12547       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12548     esac
12549   else :
12550     # compilation failed
12551     lt_cv_dlopen_self=no
12552   fi
12554 rm -fr conftest*
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12559 $as_echo "$lt_cv_dlopen_self" >&6; }
12561     if test "x$lt_cv_dlopen_self" = xyes; then
12562       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12563       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12564 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12565 if ${lt_cv_dlopen_self_static+:} false; then :
12566   $as_echo_n "(cached) " >&6
12567 else
12568           if test "$cross_compiling" = yes; then :
12569   lt_cv_dlopen_self_static=cross
12570 else
12571   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12572   lt_status=$lt_dlunknown
12573   cat > conftest.$ac_ext <<_LT_EOF
12574 #line $LINENO "configure"
12575 #include "confdefs.h"
12577 #if HAVE_DLFCN_H
12578 #include <dlfcn.h>
12579 #endif
12581 #include <stdio.h>
12583 #ifdef RTLD_GLOBAL
12584 #  define LT_DLGLOBAL           RTLD_GLOBAL
12585 #else
12586 #  ifdef DL_GLOBAL
12587 #    define LT_DLGLOBAL         DL_GLOBAL
12588 #  else
12589 #    define LT_DLGLOBAL         0
12590 #  endif
12591 #endif
12593 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12594    find out it does not work in some platform. */
12595 #ifndef LT_DLLAZY_OR_NOW
12596 #  ifdef RTLD_LAZY
12597 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12598 #  else
12599 #    ifdef DL_LAZY
12600 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12601 #    else
12602 #      ifdef RTLD_NOW
12603 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12604 #      else
12605 #        ifdef DL_NOW
12606 #          define LT_DLLAZY_OR_NOW      DL_NOW
12607 #        else
12608 #          define LT_DLLAZY_OR_NOW      0
12609 #        endif
12610 #      endif
12611 #    endif
12612 #  endif
12613 #endif
12615 /* When -fvisbility=hidden is used, assume the code has been annotated
12616    correspondingly for the symbols needed.  */
12617 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12618 int fnord () __attribute__((visibility("default")));
12619 #endif
12621 int fnord () { return 42; }
12622 int main ()
12624   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12625   int status = $lt_dlunknown;
12627   if (self)
12628     {
12629       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12630       else
12631         {
12632           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12633           else puts (dlerror ());
12634         }
12635       /* dlclose (self); */
12636     }
12637   else
12638     puts (dlerror ());
12640   return status;
12642 _LT_EOF
12643   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12644   (eval $ac_link) 2>&5
12645   ac_status=$?
12646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12647   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12648     (./conftest; exit; ) >&5 2>/dev/null
12649     lt_status=$?
12650     case x$lt_status in
12651       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12652       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12653       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12654     esac
12655   else :
12656     # compilation failed
12657     lt_cv_dlopen_self_static=no
12658   fi
12660 rm -fr conftest*
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12665 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12666     fi
12668     CPPFLAGS="$save_CPPFLAGS"
12669     LDFLAGS="$save_LDFLAGS"
12670     LIBS="$save_LIBS"
12671     ;;
12672   esac
12674   case $lt_cv_dlopen_self in
12675   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12676   *) enable_dlopen_self=unknown ;;
12677   esac
12679   case $lt_cv_dlopen_self_static in
12680   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12681   *) enable_dlopen_self_static=unknown ;;
12682   esac
12701 striplib=
12702 old_striplib=
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12704 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12705 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12706   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12707   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12709 $as_echo "yes" >&6; }
12710 else
12711 # FIXME - insert some real tests, host_os isn't really good enough
12712   case $host_os in
12713   darwin*)
12714     if test -n "$STRIP" ; then
12715       striplib="$STRIP -x"
12716       old_striplib="$STRIP -S"
12717       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12718 $as_echo "yes" >&6; }
12719     else
12720       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721 $as_echo "no" >&6; }
12722     fi
12723     ;;
12724   *)
12725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726 $as_echo "no" >&6; }
12727     ;;
12728   esac
12742   # Report which library types will actually be built
12743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12744 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12746 $as_echo "$can_build_shared" >&6; }
12748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12749 $as_echo_n "checking whether to build shared libraries... " >&6; }
12750   test "$can_build_shared" = "no" && enable_shared=no
12752   # On AIX, shared libraries and static libraries use the same namespace, and
12753   # are all built from PIC.
12754   case $host_os in
12755   aix3*)
12756     test "$enable_shared" = yes && enable_static=no
12757     if test -n "$RANLIB"; then
12758       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12759       postinstall_cmds='$RANLIB $lib'
12760     fi
12761     ;;
12763   aix[4-9]*)
12764     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12765       test "$enable_shared" = yes && enable_static=no
12766     fi
12767     ;;
12768   esac
12769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12770 $as_echo "$enable_shared" >&6; }
12772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12773 $as_echo_n "checking whether to build static libraries... " >&6; }
12774   # Make sure either enable_shared or enable_static is yes.
12775   test "$enable_shared" = yes || enable_static=yes
12776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12777 $as_echo "$enable_static" >&6; }
12783 ac_ext=c
12784 ac_cpp='$CPP $CPPFLAGS'
12785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12789 CC="$lt_save_CC"
12805         ac_config_commands="$ac_config_commands libtool"
12810 # Only expand once:
12814 CFLAGS="$CFLAGS -D_GNU_SOURCE"
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc likes the -Werror flag" >&5
12817 $as_echo_n "checking if gcc likes the -Werror flag... " >&6; }
12818 if ${rd_cv_gcc_flag__Werror+:} false; then :
12819   $as_echo_n "(cached) " >&6
12820 else
12821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822 /* end confdefs.h.  */
12824 int
12825 main ()
12827 return 0
12828   ;
12829   return 0;
12831 _ACEOF
12832 if ac_fn_c_try_compile "$LINENO"; then :
12833   rd_cv_gcc_flag__Werror="yes"
12834 else
12835   rd_cv_gcc_flag__Werror="no"
12837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rd_cv_gcc_flag__Werror" >&5
12840 $as_echo "$rd_cv_gcc_flag__Werror" >&6; }
12841 if test "x$rd_cv_gcc_flag__Werror" = "xyes"; then
12842   WERROR="-Werror"
12843 else
12844   WERROR=""
12848 if test "x$GCC" = "xyes"; then
12849   for flag in -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wold-style-definition -W; do
12850     oCFLAGS="$CFLAGS"
12851     CFLAGS="$CFLAGS $flag"
12852     cachename=rd_cv_gcc_flag_`echo $flag|sed 's/[^A-Za-z]/_/g'`
12853     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc likes the $flag flag" >&5
12854 $as_echo_n "checking if gcc likes the $flag flag... " >&6; }
12855 if eval \${$cachename+:} false; then :
12856   $as_echo_n "(cached) " >&6
12857 else
12858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859 /* end confdefs.h.  */
12861 int
12862 main ()
12864 return 0
12865   ;
12866   return 0;
12868 _ACEOF
12869 if ac_fn_c_try_compile "$LINENO"; then :
12870   eval $cachename=yes
12871 else
12872   eval $cachename=no
12874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12876 eval ac_res=\$$cachename
12877                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12878 $as_echo "$ac_res" >&6; }
12879     if eval test \$$cachename = no; then
12880          CFLAGS="$oCFLAGS"
12881     fi
12882   done
12890 case $TERM in
12891        #   for the most important terminal types we directly know the sequences
12892        xterm|xterm*|vt220|vt220*)
12893                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
12894                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
12895        ;;
12896        vt100|vt100*|cygwin)
12897                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
12898                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
12899        ;;
12900        *)
12901                T_MD=''
12902                T_ME=''
12903        ;;
12904 esac
12905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12906 $as_echo "" >&6; }
12907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for Header Files${T_ME}" >&5
12908 $as_echo "${T_MD}Checking for Header Files${T_ME}" >&6; }
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12912 $as_echo_n "checking for ANSI C header files... " >&6; }
12913 if ${ac_cv_header_stdc+:} false; then :
12914   $as_echo_n "(cached) " >&6
12915 else
12916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h.  */
12918 #include <stdlib.h>
12919 #include <stdarg.h>
12920 #include <string.h>
12921 #include <float.h>
12923 int
12924 main ()
12927   ;
12928   return 0;
12930 _ACEOF
12931 if ac_fn_c_try_compile "$LINENO"; then :
12932   ac_cv_header_stdc=yes
12933 else
12934   ac_cv_header_stdc=no
12936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12938 if test $ac_cv_header_stdc = yes; then
12939   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941 /* end confdefs.h.  */
12942 #include <string.h>
12944 _ACEOF
12945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12946   $EGREP "memchr" >/dev/null 2>&1; then :
12948 else
12949   ac_cv_header_stdc=no
12951 rm -f conftest*
12955 if test $ac_cv_header_stdc = yes; then
12956   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h.  */
12959 #include <stdlib.h>
12961 _ACEOF
12962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12963   $EGREP "free" >/dev/null 2>&1; then :
12965 else
12966   ac_cv_header_stdc=no
12968 rm -f conftest*
12972 if test $ac_cv_header_stdc = yes; then
12973   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12974   if test "$cross_compiling" = yes; then :
12975   :
12976 else
12977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978 /* end confdefs.h.  */
12979 #include <ctype.h>
12980 #include <stdlib.h>
12981 #if ((' ' & 0x0FF) == 0x020)
12982 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12983 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12984 #else
12985 # define ISLOWER(c) \
12986                    (('a' <= (c) && (c) <= 'i') \
12987                      || ('j' <= (c) && (c) <= 'r') \
12988                      || ('s' <= (c) && (c) <= 'z'))
12989 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12990 #endif
12992 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12993 int
12994 main ()
12996   int i;
12997   for (i = 0; i < 256; i++)
12998     if (XOR (islower (i), ISLOWER (i))
12999         || toupper (i) != TOUPPER (i))
13000       return 2;
13001   return 0;
13003 _ACEOF
13004 if ac_fn_c_try_run "$LINENO"; then :
13006 else
13007   ac_cv_header_stdc=no
13009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13010   conftest.$ac_objext conftest.beam conftest.$ac_ext
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13016 $as_echo "$ac_cv_header_stdc" >&6; }
13017 if test $ac_cv_header_stdc = yes; then
13019 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13023 ac_header_dirent=no
13024 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13025   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13027 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13028 if eval \${$as_ac_Header+:} false; then :
13029   $as_echo_n "(cached) " >&6
13030 else
13031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032 /* end confdefs.h.  */
13033 #include <sys/types.h>
13034 #include <$ac_hdr>
13036 int
13037 main ()
13039 if ((DIR *) 0)
13040 return 0;
13041   ;
13042   return 0;
13044 _ACEOF
13045 if ac_fn_c_try_compile "$LINENO"; then :
13046   eval "$as_ac_Header=yes"
13047 else
13048   eval "$as_ac_Header=no"
13050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13052 eval ac_res=\$$as_ac_Header
13053                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13054 $as_echo "$ac_res" >&6; }
13055 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13056   cat >>confdefs.h <<_ACEOF
13057 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13058 _ACEOF
13060 ac_header_dirent=$ac_hdr; break
13063 done
13064 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13065 if test $ac_header_dirent = dirent.h; then
13066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13067 $as_echo_n "checking for library containing opendir... " >&6; }
13068 if ${ac_cv_search_opendir+:} false; then :
13069   $as_echo_n "(cached) " >&6
13070 else
13071   ac_func_search_save_LIBS=$LIBS
13072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13073 /* end confdefs.h.  */
13075 /* Override any GCC internal prototype to avoid an error.
13076    Use char because int might match the return type of a GCC
13077    builtin and then its argument prototype would still apply.  */
13078 #ifdef __cplusplus
13079 extern "C"
13080 #endif
13081 char opendir ();
13082 int
13083 main ()
13085 return opendir ();
13086   ;
13087   return 0;
13089 _ACEOF
13090 for ac_lib in '' dir; do
13091   if test -z "$ac_lib"; then
13092     ac_res="none required"
13093   else
13094     ac_res=-l$ac_lib
13095     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13096   fi
13097   if ac_fn_c_try_link "$LINENO"; then :
13098   ac_cv_search_opendir=$ac_res
13100 rm -f core conftest.err conftest.$ac_objext \
13101     conftest$ac_exeext
13102   if ${ac_cv_search_opendir+:} false; then :
13103   break
13105 done
13106 if ${ac_cv_search_opendir+:} false; then :
13108 else
13109   ac_cv_search_opendir=no
13111 rm conftest.$ac_ext
13112 LIBS=$ac_func_search_save_LIBS
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13115 $as_echo "$ac_cv_search_opendir" >&6; }
13116 ac_res=$ac_cv_search_opendir
13117 if test "$ac_res" != no; then :
13118   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13122 else
13123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13124 $as_echo_n "checking for library containing opendir... " >&6; }
13125 if ${ac_cv_search_opendir+:} false; then :
13126   $as_echo_n "(cached) " >&6
13127 else
13128   ac_func_search_save_LIBS=$LIBS
13129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13130 /* end confdefs.h.  */
13132 /* Override any GCC internal prototype to avoid an error.
13133    Use char because int might match the return type of a GCC
13134    builtin and then its argument prototype would still apply.  */
13135 #ifdef __cplusplus
13136 extern "C"
13137 #endif
13138 char opendir ();
13139 int
13140 main ()
13142 return opendir ();
13143   ;
13144   return 0;
13146 _ACEOF
13147 for ac_lib in '' x; do
13148   if test -z "$ac_lib"; then
13149     ac_res="none required"
13150   else
13151     ac_res=-l$ac_lib
13152     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13153   fi
13154   if ac_fn_c_try_link "$LINENO"; then :
13155   ac_cv_search_opendir=$ac_res
13157 rm -f core conftest.err conftest.$ac_objext \
13158     conftest$ac_exeext
13159   if ${ac_cv_search_opendir+:} false; then :
13160   break
13162 done
13163 if ${ac_cv_search_opendir+:} false; then :
13165 else
13166   ac_cv_search_opendir=no
13168 rm conftest.$ac_ext
13169 LIBS=$ac_func_search_save_LIBS
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13172 $as_echo "$ac_cv_search_opendir" >&6; }
13173 ac_res=$ac_cv_search_opendir
13174 if test "$ac_res" != no; then :
13175   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13181 for ac_header in langinfo.h stdint.h inttypes.h libgen.h features.h sys/stat.h sys/types.h fcntl.h fp_class.h malloc.h unistd.h ieeefp.h math.h sys/times.h sys/param.h sys/resource.h signal.h float.h stdio.h stdlib.h errno.h string.h ctype.h
13182 do :
13183   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13184 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13185 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13186   cat >>confdefs.h <<_ACEOF
13187 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13188 _ACEOF
13192 done
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13196 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13197 if ${ac_cv_c_const+:} false; then :
13198   $as_echo_n "(cached) " >&6
13199 else
13200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13201 /* end confdefs.h.  */
13203 int
13204 main ()
13206 /* FIXME: Include the comments suggested by Paul. */
13207 #ifndef __cplusplus
13208   /* Ultrix mips cc rejects this.  */
13209   typedef int charset[2];
13210   const charset cs;
13211   /* SunOS 4.1.1 cc rejects this.  */
13212   char const *const *pcpcc;
13213   char **ppc;
13214   /* NEC SVR4.0.2 mips cc rejects this.  */
13215   struct point {int x, y;};
13216   static struct point const zero = {0,0};
13217   /* AIX XL C 1.02.0.0 rejects this.
13218      It does not let you subtract one const X* pointer from another in
13219      an arm of an if-expression whose if-part is not a constant
13220      expression */
13221   const char *g = "string";
13222   pcpcc = &g + (g ? g-g : 0);
13223   /* HPUX 7.0 cc rejects these. */
13224   ++pcpcc;
13225   ppc = (char**) pcpcc;
13226   pcpcc = (char const *const *) ppc;
13227   { /* SCO 3.2v4 cc rejects this.  */
13228     char *t;
13229     char const *s = 0 ? (char *) 0 : (char const *) 0;
13231     *t++ = 0;
13232     if (s) return 0;
13233   }
13234   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13235     int x[] = {25, 17};
13236     const int *foo = &x[0];
13237     ++foo;
13238   }
13239   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13240     typedef const int *iptr;
13241     iptr p = 0;
13242     ++p;
13243   }
13244   { /* AIX XL C 1.02.0.0 rejects this saying
13245        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13246     struct s { int j; const int *ap[3]; };
13247     struct s *b; b->j = 5;
13248   }
13249   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13250     const int foo = 10;
13251     if (!foo) return 0;
13252   }
13253   return !cs[0] && !zero.x;
13254 #endif
13256   ;
13257   return 0;
13259 _ACEOF
13260 if ac_fn_c_try_compile "$LINENO"; then :
13261   ac_cv_c_const=yes
13262 else
13263   ac_cv_c_const=no
13265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13268 $as_echo "$ac_cv_c_const" >&6; }
13269 if test $ac_cv_c_const = no; then
13271 $as_echo "#define const /**/" >>confdefs.h
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13276 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13277 if ${ac_cv_header_time+:} false; then :
13278   $as_echo_n "(cached) " >&6
13279 else
13280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281 /* end confdefs.h.  */
13282 #include <sys/types.h>
13283 #include <sys/time.h>
13284 #include <time.h>
13286 int
13287 main ()
13289 if ((struct tm *) 0)
13290 return 0;
13291   ;
13292   return 0;
13294 _ACEOF
13295 if ac_fn_c_try_compile "$LINENO"; then :
13296   ac_cv_header_time=yes
13297 else
13298   ac_cv_header_time=no
13300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13303 $as_echo "$ac_cv_header_time" >&6; }
13304 if test $ac_cv_header_time = yes; then
13306 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13311 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13312 if ${ac_cv_struct_tm+:} false; then :
13313   $as_echo_n "(cached) " >&6
13314 else
13315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h.  */
13317 #include <sys/types.h>
13318 #include <time.h>
13320 int
13321 main ()
13323 struct tm tm;
13324                                      int *p = &tm.tm_sec;
13325                                      return !p;
13326   ;
13327   return 0;
13329 _ACEOF
13330 if ac_fn_c_try_compile "$LINENO"; then :
13331   ac_cv_struct_tm=time.h
13332 else
13333   ac_cv_struct_tm=sys/time.h
13335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13338 $as_echo "$ac_cv_struct_tm" >&6; }
13339 if test $ac_cv_struct_tm = sys/time.h; then
13341 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
13347 case $TERM in
13348        #   for the most important terminal types we directly know the sequences
13349        xterm|xterm*|vt220|vt220*)
13350                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
13351                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
13352        ;;
13353        vt100|vt100*|cygwin)
13354                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
13355                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
13356        ;;
13357        *)
13358                T_MD=''
13359                T_ME=''
13360        ;;
13361 esac
13362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13363 $as_echo "" >&6; }
13364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Test Library Functions${T_ME}" >&5
13365 $as_echo "${T_MD}Test Library Functions${T_ME}" >&6; }
13368 ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
13369 if test "x$ac_cv_func_acos" = xyes; then :
13371 else
13372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos in -lm" >&5
13373 $as_echo_n "checking for acos in -lm... " >&6; }
13374 if ${ac_cv_lib_m_acos+:} false; then :
13375   $as_echo_n "(cached) " >&6
13376 else
13377   ac_check_lib_save_LIBS=$LIBS
13378 LIBS="-lm  $LIBS"
13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380 /* end confdefs.h.  */
13382 /* Override any GCC internal prototype to avoid an error.
13383    Use char because int might match the return type of a GCC
13384    builtin and then its argument prototype would still apply.  */
13385 #ifdef __cplusplus
13386 extern "C"
13387 #endif
13388 char acos ();
13389 int
13390 main ()
13392 return acos ();
13393   ;
13394   return 0;
13396 _ACEOF
13397 if ac_fn_c_try_link "$LINENO"; then :
13398   ac_cv_lib_m_acos=yes
13399 else
13400   ac_cv_lib_m_acos=no
13402 rm -f core conftest.err conftest.$ac_objext \
13403     conftest$ac_exeext conftest.$ac_ext
13404 LIBS=$ac_check_lib_save_LIBS
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acos" >&5
13407 $as_echo "$ac_cv_lib_m_acos" >&6; }
13408 if test "x$ac_cv_lib_m_acos" = xyes; then :
13409   cat >>confdefs.h <<_ACEOF
13410 #define HAVE_LIBM 1
13411 _ACEOF
13413   LIBS="-lm $LIBS"
13421 eval `./libtool --config | grep pic_flag=`
13422 CFLAGS="$CFLAGS $pic_flag"
13425 for ac_func in strftime
13426 do :
13427   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
13428 if test "x$ac_cv_func_strftime" = xyes; then :
13429   cat >>confdefs.h <<_ACEOF
13430 #define HAVE_STRFTIME 1
13431 _ACEOF
13433 else
13434   # strftime is in -lintl on SCO UNIX.
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
13436 $as_echo_n "checking for strftime in -lintl... " >&6; }
13437 if ${ac_cv_lib_intl_strftime+:} false; then :
13438   $as_echo_n "(cached) " >&6
13439 else
13440   ac_check_lib_save_LIBS=$LIBS
13441 LIBS="-lintl  $LIBS"
13442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13443 /* end confdefs.h.  */
13445 /* Override any GCC internal prototype to avoid an error.
13446    Use char because int might match the return type of a GCC
13447    builtin and then its argument prototype would still apply.  */
13448 #ifdef __cplusplus
13449 extern "C"
13450 #endif
13451 char strftime ();
13452 int
13453 main ()
13455 return strftime ();
13456   ;
13457   return 0;
13459 _ACEOF
13460 if ac_fn_c_try_link "$LINENO"; then :
13461   ac_cv_lib_intl_strftime=yes
13462 else
13463   ac_cv_lib_intl_strftime=no
13465 rm -f core conftest.err conftest.$ac_objext \
13466     conftest$ac_exeext conftest.$ac_ext
13467 LIBS=$ac_check_lib_save_LIBS
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
13470 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
13471 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
13472   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
13474 LIBS="-lintl $LIBS"
13478 done
13480 for ac_func in vprintf
13481 do :
13482   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
13483 if test "x$ac_cv_func_vprintf" = xyes; then :
13484   cat >>confdefs.h <<_ACEOF
13485 #define HAVE_VPRINTF 1
13486 _ACEOF
13488 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
13489 if test "x$ac_cv_func__doprnt" = xyes; then :
13491 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
13496 done
13500  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13501 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13502 if ${ac_cv_c_bigendian+:} false; then :
13503   $as_echo_n "(cached) " >&6
13504 else
13505   ac_cv_c_bigendian=unknown
13506     # See if we're dealing with a universal compiler.
13507     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508 /* end confdefs.h.  */
13509 #ifndef __APPLE_CC__
13510                not a universal capable compiler
13511              #endif
13512              typedef int dummy;
13514 _ACEOF
13515 if ac_fn_c_try_compile "$LINENO"; then :
13517         # Check for potential -arch flags.  It is not universal unless
13518         # there are at least two -arch flags with different values.
13519         ac_arch=
13520         ac_prev=
13521         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13522          if test -n "$ac_prev"; then
13523            case $ac_word in
13524              i?86 | x86_64 | ppc | ppc64)
13525                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13526                  ac_arch=$ac_word
13527                else
13528                  ac_cv_c_bigendian=universal
13529                  break
13530                fi
13531                ;;
13532            esac
13533            ac_prev=
13534          elif test "x$ac_word" = "x-arch"; then
13535            ac_prev=arch
13536          fi
13537        done
13539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13540     if test $ac_cv_c_bigendian = unknown; then
13541       # See if sys/param.h defines the BYTE_ORDER macro.
13542       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h.  */
13544 #include <sys/types.h>
13545              #include <sys/param.h>
13547 int
13548 main ()
13550 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13551                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13552                      && LITTLE_ENDIAN)
13553               bogus endian macros
13554              #endif
13556   ;
13557   return 0;
13559 _ACEOF
13560 if ac_fn_c_try_compile "$LINENO"; then :
13561   # It does; now see whether it defined to BIG_ENDIAN or not.
13562          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13563 /* end confdefs.h.  */
13564 #include <sys/types.h>
13565                 #include <sys/param.h>
13567 int
13568 main ()
13570 #if BYTE_ORDER != BIG_ENDIAN
13571                  not big endian
13572                 #endif
13574   ;
13575   return 0;
13577 _ACEOF
13578 if ac_fn_c_try_compile "$LINENO"; then :
13579   ac_cv_c_bigendian=yes
13580 else
13581   ac_cv_c_bigendian=no
13583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13586     fi
13587     if test $ac_cv_c_bigendian = unknown; then
13588       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13589       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h.  */
13591 #include <limits.h>
13593 int
13594 main ()
13596 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13597               bogus endian macros
13598              #endif
13600   ;
13601   return 0;
13603 _ACEOF
13604 if ac_fn_c_try_compile "$LINENO"; then :
13605   # It does; now see whether it defined to _BIG_ENDIAN or not.
13606          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13607 /* end confdefs.h.  */
13608 #include <limits.h>
13610 int
13611 main ()
13613 #ifndef _BIG_ENDIAN
13614                  not big endian
13615                 #endif
13617   ;
13618   return 0;
13620 _ACEOF
13621 if ac_fn_c_try_compile "$LINENO"; then :
13622   ac_cv_c_bigendian=yes
13623 else
13624   ac_cv_c_bigendian=no
13626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13629     fi
13630     if test $ac_cv_c_bigendian = unknown; then
13631       # Compile a test program.
13632       if test "$cross_compiling" = yes; then :
13633   # Try to guess by grepping values from an object file.
13634          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h.  */
13636 short int ascii_mm[] =
13637                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13638                 short int ascii_ii[] =
13639                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13640                 int use_ascii (int i) {
13641                   return ascii_mm[i] + ascii_ii[i];
13642                 }
13643                 short int ebcdic_ii[] =
13644                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13645                 short int ebcdic_mm[] =
13646                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13647                 int use_ebcdic (int i) {
13648                   return ebcdic_mm[i] + ebcdic_ii[i];
13649                 }
13650                 extern int foo;
13652 int
13653 main ()
13655 return use_ascii (foo) == use_ebcdic (foo);
13656   ;
13657   return 0;
13659 _ACEOF
13660 if ac_fn_c_try_compile "$LINENO"; then :
13661   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13662               ac_cv_c_bigendian=yes
13663             fi
13664             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13665               if test "$ac_cv_c_bigendian" = unknown; then
13666                 ac_cv_c_bigendian=no
13667               else
13668                 # finding both strings is unlikely to happen, but who knows?
13669                 ac_cv_c_bigendian=unknown
13670               fi
13671             fi
13673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13674 else
13675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h.  */
13677 $ac_includes_default
13678 int
13679 main ()
13682              /* Are we little or big endian?  From Harbison&Steele.  */
13683              union
13684              {
13685                long int l;
13686                char c[sizeof (long int)];
13687              } u;
13688              u.l = 1;
13689              return u.c[sizeof (long int) - 1] == 1;
13691   ;
13692   return 0;
13694 _ACEOF
13695 if ac_fn_c_try_run "$LINENO"; then :
13696   ac_cv_c_bigendian=no
13697 else
13698   ac_cv_c_bigendian=yes
13700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13701   conftest.$ac_objext conftest.beam conftest.$ac_ext
13704     fi
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13707 $as_echo "$ac_cv_c_bigendian" >&6; }
13708  case $ac_cv_c_bigendian in #(
13709    yes)
13710      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13711 ;; #(
13712    no)
13713       ;; #(
13714    universal)
13716 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13718      ;; #(
13719    *)
13720      as_fn_error $? "unknown endianness
13721  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13722  esac
13726 for ac_func in nl_langinfo tzset round rint fsync mbstowcs opendir readdir chdir chroot getuid strerror snprintf vsnprintf vasprintf fpclass class fp_class isnan memmove strchr mktime getrusage gettimeofday
13727 do :
13728   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13729 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13730 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13731   cat >>confdefs.h <<_ACEOF
13732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13733 _ACEOF
13736 done
13739 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
13740 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
13741   ac_have_decl=1
13742 else
13743   ac_have_decl=0
13746 cat >>confdefs.h <<_ACEOF
13747 #define HAVE_DECL_STRERROR_R $ac_have_decl
13748 _ACEOF
13750 for ac_func in strerror_r
13751 do :
13752   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
13753 if test "x$ac_cv_func_strerror_r" = xyes; then :
13754   cat >>confdefs.h <<_ACEOF
13755 #define HAVE_STRERROR_R 1
13756 _ACEOF
13759 done
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
13762 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
13763 if ${ac_cv_func_strerror_r_char_p+:} false; then :
13764   $as_echo_n "(cached) " >&6
13765 else
13767     ac_cv_func_strerror_r_char_p=no
13768     if test $ac_cv_have_decl_strerror_r = yes; then
13769       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770 /* end confdefs.h.  */
13771 $ac_includes_default
13772 int
13773 main ()
13776           char buf[100];
13777           char x = *strerror_r (0, buf, sizeof buf);
13778           char *p = strerror_r (0, buf, sizeof buf);
13779           return !p || x;
13781   ;
13782   return 0;
13784 _ACEOF
13785 if ac_fn_c_try_compile "$LINENO"; then :
13786   ac_cv_func_strerror_r_char_p=yes
13788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13789     else
13790       # strerror_r is not declared.  Choose between
13791       # systems that have relatively inaccessible declarations for the
13792       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
13793       # former has a strerror_r that returns char*, while the latter
13794       # has a strerror_r that returns `int'.
13795       # This test should segfault on the DEC system.
13796       if test "$cross_compiling" = yes; then :
13797   :
13798 else
13799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13800 /* end confdefs.h.  */
13801 $ac_includes_default
13802         extern char *strerror_r ();
13803 int
13804 main ()
13806 char buf[100];
13807           char x = *strerror_r (0, buf, sizeof buf);
13808           return ! isalpha (x);
13809   ;
13810   return 0;
13812 _ACEOF
13813 if ac_fn_c_try_run "$LINENO"; then :
13814   ac_cv_func_strerror_r_char_p=yes
13816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13817   conftest.$ac_objext conftest.beam conftest.$ac_ext
13820     fi
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
13824 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
13825 if test $ac_cv_func_strerror_r_char_p = yes; then
13827 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
13833 case $TERM in
13834        #   for the most important terminal types we directly know the sequences
13835        xterm|xterm*|vt220|vt220*)
13836                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
13837                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
13838        ;;
13839        vt100|vt100*|cygwin)
13840                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
13841                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
13842        ;;
13843        *)
13844                T_MD=''
13845                T_ME=''
13846        ;;
13847 esac
13848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13849 $as_echo "" >&6; }
13850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&5
13851 $as_echo "${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&6; }
13856 for ac_func in fdatasync
13857 do :
13858   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
13859 if test "x$ac_cv_func_fdatasync" = xyes; then :
13860   cat >>confdefs.h <<_ACEOF
13861 #define HAVE_FDATASYNC 1
13862 _ACEOF
13864 else
13865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync in -lrt" >&5
13866 $as_echo_n "checking for fdatasync in -lrt... " >&6; }
13867 if ${ac_cv_lib_rt_fdatasync+:} false; then :
13868   $as_echo_n "(cached) " >&6
13869 else
13870   ac_check_lib_save_LIBS=$LIBS
13871 LIBS="-lrt  $LIBS"
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h.  */
13875 /* Override any GCC internal prototype to avoid an error.
13876    Use char because int might match the return type of a GCC
13877    builtin and then its argument prototype would still apply.  */
13878 #ifdef __cplusplus
13879 extern "C"
13880 #endif
13881 char fdatasync ();
13882 int
13883 main ()
13885 return fdatasync ();
13886   ;
13887   return 0;
13889 _ACEOF
13890 if ac_fn_c_try_link "$LINENO"; then :
13891   ac_cv_lib_rt_fdatasync=yes
13892 else
13893   ac_cv_lib_rt_fdatasync=no
13895 rm -f core conftest.err conftest.$ac_objext \
13896     conftest$ac_exeext conftest.$ac_ext
13897 LIBS=$ac_check_lib_save_LIBS
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_fdatasync" >&5
13900 $as_echo "$ac_cv_lib_rt_fdatasync" >&6; }
13901 if test "x$ac_cv_lib_rt_fdatasync" = xyes; then :
13902   LIBS="${LIBS} -lrt"; $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
13907 done
13909 for ac_func in fsync
13910 do :
13911   ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
13912 if test "x$ac_cv_func_fsync" = xyes; then :
13913   cat >>confdefs.h <<_ACEOF
13914 #define HAVE_FSYNC 1
13915 _ACEOF
13918 done
13922 for ac_func in socket
13923 do :
13924   ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13925 if test "x$ac_cv_func_socket" = xyes; then :
13926   cat >>confdefs.h <<_ACEOF
13927 #define HAVE_SOCKET 1
13928 _ACEOF
13930 else
13931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13932 $as_echo_n "checking for socket in -lsocket... " >&6; }
13933 if ${ac_cv_lib_socket_socket+:} false; then :
13934   $as_echo_n "(cached) " >&6
13935 else
13936   ac_check_lib_save_LIBS=$LIBS
13937 LIBS="-lsocket  $LIBS"
13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h.  */
13941 /* Override any GCC internal prototype to avoid an error.
13942    Use char because int might match the return type of a GCC
13943    builtin and then its argument prototype would still apply.  */
13944 #ifdef __cplusplus
13945 extern "C"
13946 #endif
13947 char socket ();
13948 int
13949 main ()
13951 return socket ();
13952   ;
13953   return 0;
13955 _ACEOF
13956 if ac_fn_c_try_link "$LINENO"; then :
13957   ac_cv_lib_socket_socket=yes
13958 else
13959   ac_cv_lib_socket_socket=no
13961 rm -f core conftest.err conftest.$ac_objext \
13962     conftest$ac_exeext conftest.$ac_ext
13963 LIBS=$ac_check_lib_save_LIBS
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13966 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13967 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13968   LIBS="${LIBS} -lsocket"; $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
13973 done
13975 for ac_func in getaddrinfo
13976 do :
13977   ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13978 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13979   cat >>confdefs.h <<_ACEOF
13980 #define HAVE_GETADDRINFO 1
13981 _ACEOF
13983 else
13984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lnsl" >&5
13985 $as_echo_n "checking for getaddrinfo in -lnsl... " >&6; }
13986 if ${ac_cv_lib_nsl_getaddrinfo+:} false; then :
13987   $as_echo_n "(cached) " >&6
13988 else
13989   ac_check_lib_save_LIBS=$LIBS
13990 LIBS="-lnsl  $LIBS"
13991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992 /* end confdefs.h.  */
13994 /* Override any GCC internal prototype to avoid an error.
13995    Use char because int might match the return type of a GCC
13996    builtin and then its argument prototype would still apply.  */
13997 #ifdef __cplusplus
13998 extern "C"
13999 #endif
14000 char getaddrinfo ();
14001 int
14002 main ()
14004 return getaddrinfo ();
14005   ;
14006   return 0;
14008 _ACEOF
14009 if ac_fn_c_try_link "$LINENO"; then :
14010   ac_cv_lib_nsl_getaddrinfo=yes
14011 else
14012   ac_cv_lib_nsl_getaddrinfo=no
14014 rm -f core conftest.err conftest.$ac_objext \
14015     conftest$ac_exeext conftest.$ac_ext
14016 LIBS=$ac_check_lib_save_LIBS
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_getaddrinfo" >&5
14019 $as_echo "$ac_cv_lib_nsl_getaddrinfo" >&6; }
14020 if test "x$ac_cv_lib_nsl_getaddrinfo" = xyes; then :
14021   LIBS="${LIBS} -lnsl"; $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
14026 done
14031 if test "x$enable_mmap" = "xyes"; then
14032   case "$host" in
14033   *cygwin*)
14034     # the normal mmap test does not work in cygwin
14035     for ac_func in mmap
14036 do :
14037   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
14038 if test "x$ac_cv_func_mmap" = xyes; then :
14039   cat >>confdefs.h <<_ACEOF
14040 #define HAVE_MMAP 1
14041 _ACEOF
14044 done
14046     if test "x$ac_cv_func_mmap" = "xyes"; then
14047       ac_cv_func_mmap_fixed_mapped=yes
14048     fi
14049   ;;
14050   *)
14051     for ac_header in sys/mman.h
14052 do :
14053   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14054 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
14055   cat >>confdefs.h <<_ACEOF
14056 #define HAVE_SYS_MMAN_H 1
14057 _ACEOF
14061 done
14066   for ac_header in $ac_header_list
14067 do :
14068   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14069 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14071 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14072   cat >>confdefs.h <<_ACEOF
14073 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14074 _ACEOF
14078 done
14087 for ac_func in getpagesize
14088 do :
14089   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14090 if test "x$ac_cv_func_getpagesize" = xyes; then :
14091   cat >>confdefs.h <<_ACEOF
14092 #define HAVE_GETPAGESIZE 1
14093 _ACEOF
14096 done
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14099 $as_echo_n "checking for working mmap... " >&6; }
14100 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
14101   $as_echo_n "(cached) " >&6
14102 else
14103   if test "$cross_compiling" = yes; then :
14104   ac_cv_func_mmap_fixed_mapped=no
14105 else
14106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107 /* end confdefs.h.  */
14108 $ac_includes_default
14109 /* malloc might have been renamed as rpl_malloc. */
14110 #undef malloc
14112 /* Thanks to Mike Haertel and Jim Avera for this test.
14113    Here is a matrix of mmap possibilities:
14114         mmap private not fixed
14115         mmap private fixed at somewhere currently unmapped
14116         mmap private fixed at somewhere already mapped
14117         mmap shared not fixed
14118         mmap shared fixed at somewhere currently unmapped
14119         mmap shared fixed at somewhere already mapped
14120    For private mappings, we should verify that changes cannot be read()
14121    back from the file, nor mmap's back from the file at a different
14122    address.  (There have been systems where private was not correctly
14123    implemented like the infamous i386 svr4.0, and systems where the
14124    VM page cache was not coherent with the file system buffer cache
14125    like early versions of FreeBSD and possibly contemporary NetBSD.)
14126    For shared mappings, we should conversely verify that changes get
14127    propagated back to all the places they're supposed to be.
14129    Grep wants private fixed already mapped.
14130    The main things grep needs to know about mmap are:
14131    * does it exist and is it safe to write into the mmap'd area
14132    * how to use it (BSD variants)  */
14134 #include <fcntl.h>
14135 #include <sys/mman.h>
14137 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14138 char *malloc ();
14139 #endif
14141 /* This mess was copied from the GNU getpagesize.h.  */
14142 #ifndef HAVE_GETPAGESIZE
14143 # ifdef _SC_PAGESIZE
14144 #  define getpagesize() sysconf(_SC_PAGESIZE)
14145 # else /* no _SC_PAGESIZE */
14146 #  ifdef HAVE_SYS_PARAM_H
14147 #   include <sys/param.h>
14148 #   ifdef EXEC_PAGESIZE
14149 #    define getpagesize() EXEC_PAGESIZE
14150 #   else /* no EXEC_PAGESIZE */
14151 #    ifdef NBPG
14152 #     define getpagesize() NBPG * CLSIZE
14153 #     ifndef CLSIZE
14154 #      define CLSIZE 1
14155 #     endif /* no CLSIZE */
14156 #    else /* no NBPG */
14157 #     ifdef NBPC
14158 #      define getpagesize() NBPC
14159 #     else /* no NBPC */
14160 #      ifdef PAGESIZE
14161 #       define getpagesize() PAGESIZE
14162 #      endif /* PAGESIZE */
14163 #     endif /* no NBPC */
14164 #    endif /* no NBPG */
14165 #   endif /* no EXEC_PAGESIZE */
14166 #  else /* no HAVE_SYS_PARAM_H */
14167 #   define getpagesize() 8192   /* punt totally */
14168 #  endif /* no HAVE_SYS_PARAM_H */
14169 # endif /* no _SC_PAGESIZE */
14171 #endif /* no HAVE_GETPAGESIZE */
14173 int
14174 main ()
14176   char *data, *data2, *data3;
14177   const char *cdata2;
14178   int i, pagesize;
14179   int fd, fd2;
14181   pagesize = getpagesize ();
14183   /* First, make a file with some known garbage in it. */
14184   data = (char *) malloc (pagesize);
14185   if (!data)
14186     return 1;
14187   for (i = 0; i < pagesize; ++i)
14188     *(data + i) = rand ();
14189   umask (0);
14190   fd = creat ("conftest.mmap", 0600);
14191   if (fd < 0)
14192     return 2;
14193   if (write (fd, data, pagesize) != pagesize)
14194     return 3;
14195   close (fd);
14197   /* Next, check that the tail of a page is zero-filled.  File must have
14198      non-zero length, otherwise we risk SIGBUS for entire page.  */
14199   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14200   if (fd2 < 0)
14201     return 4;
14202   cdata2 = "";
14203   if (write (fd2, cdata2, 1) != 1)
14204     return 5;
14205   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14206   if (data2 == MAP_FAILED)
14207     return 6;
14208   for (i = 0; i < pagesize; ++i)
14209     if (*(data2 + i))
14210       return 7;
14211   close (fd2);
14212   if (munmap (data2, pagesize))
14213     return 8;
14215   /* Next, try to mmap the file at a fixed address which already has
14216      something else allocated at it.  If we can, also make sure that
14217      we see the same garbage.  */
14218   fd = open ("conftest.mmap", O_RDWR);
14219   if (fd < 0)
14220     return 9;
14221   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14222                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
14223     return 10;
14224   for (i = 0; i < pagesize; ++i)
14225     if (*(data + i) != *(data2 + i))
14226       return 11;
14228   /* Finally, make sure that changes to the mapped area do not
14229      percolate back to the file as seen by read().  (This is a bug on
14230      some variants of i386 svr4.0.)  */
14231   for (i = 0; i < pagesize; ++i)
14232     *(data2 + i) = *(data2 + i) + 1;
14233   data3 = (char *) malloc (pagesize);
14234   if (!data3)
14235     return 12;
14236   if (read (fd, data3, pagesize) != pagesize)
14237     return 13;
14238   for (i = 0; i < pagesize; ++i)
14239     if (*(data + i) != *(data3 + i))
14240       return 14;
14241   close (fd);
14242   return 0;
14244 _ACEOF
14245 if ac_fn_c_try_run "$LINENO"; then :
14246   ac_cv_func_mmap_fixed_mapped=yes
14247 else
14248   ac_cv_func_mmap_fixed_mapped=no
14250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14251   conftest.$ac_objext conftest.beam conftest.$ac_ext
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14256 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14257 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14259 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14262 rm -f conftest.mmap conftest.txt
14264     for ac_func in mmap munmap msync
14265 do :
14266   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14267 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14268 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14269   cat >>confdefs.h <<_ACEOF
14270 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14271 _ACEOF
14274 done
14276     ac_fn_c_check_decl "$LINENO" "madvise" "ac_cv_have_decl_madvise" "#ifdef HAVE_SYS_MMAN_H
14277                                      # include <sys/mman.h>
14278                                      #endif
14280 if test "x$ac_cv_have_decl_madvise" = xyes; then :
14281   ac_have_decl=1
14282 else
14283   ac_have_decl=0
14286 cat >>confdefs.h <<_ACEOF
14287 #define HAVE_DECL_MADVISE $ac_have_decl
14288 _ACEOF
14290     if test "x$ac_cv_have_decl_madvise" = "xyes";
14291     then
14292       for ac_func in madvise
14293 do :
14294   ac_fn_c_check_func "$LINENO" "madvise" "ac_cv_func_madvise"
14295 if test "x$ac_cv_func_madvise" = xyes; then :
14296   cat >>confdefs.h <<_ACEOF
14297 #define HAVE_MADVISE 1
14298 _ACEOF
14301 done
14303     else
14304       for ac_func in posix_madvise
14305 do :
14306   ac_fn_c_check_func "$LINENO" "posix_madvise" "ac_cv_func_posix_madvise"
14307 if test "x$ac_cv_func_posix_madvise" = xyes; then :
14308   cat >>confdefs.h <<_ACEOF
14309 #define HAVE_POSIX_MADVISE 1
14310 _ACEOF
14313 done
14315       if test "x$ac_cv_func_posix_madvise" != "xyes"; then
14316         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: madvise() nor posix_madvise() found." >&5
14317 $as_echo "$as_me: WARNING: madvise() nor posix_madvise() found." >&2;}
14318       fi
14319     fi
14320   ;;
14321   esac
14322   if test "x$ac_cv_func_mmap" != "xyes";
14323   then
14324     as_fn_error $? "--enable-mmap requested but mmap() was not detected" "$LINENO" 5
14325   fi
14328 ac_fn_c_check_decl "$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#define _XOPEN_SOURCE 600
14329 #include <fcntl.h>
14331 if test "x$ac_cv_have_decl_posix_fadvise" = xyes; then :
14332   ac_have_decl=1
14333 else
14334   ac_have_decl=0
14337 cat >>confdefs.h <<_ACEOF
14338 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
14339 _ACEOF
14341 for ac_func in posix_fadvise
14342 do :
14343   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
14344 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
14345   cat >>confdefs.h <<_ACEOF
14346 #define HAVE_POSIX_FADVISE 1
14347 _ACEOF
14350 done
14353 for ac_func in posix_fallocate
14354 do :
14355   ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
14356 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
14357   cat >>confdefs.h <<_ACEOF
14358 #define HAVE_POSIX_FALLOCATE 1
14359 _ACEOF
14362 done
14366 case $TERM in
14367        #   for the most important terminal types we directly know the sequences
14368        xterm|xterm*|vt220|vt220*)
14369                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
14370                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
14371        ;;
14372        vt100|vt100*|cygwin)
14373                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
14374                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
14375        ;;
14376        *)
14377                T_MD=''
14378                T_ME=''
14379        ;;
14380 esac
14381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
14382 $as_echo "" >&6; }
14383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Libintl Processing${T_ME}" >&5
14384 $as_echo "${T_MD}Libintl Processing${T_ME}" >&6; }
14389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14390 $as_echo_n "checking whether NLS is requested... " >&6; }
14391     # Check whether --enable-nls was given.
14392 if test "${enable_nls+set}" = set; then :
14393   enableval=$enable_nls; USE_NLS=$enableval
14394 else
14395   USE_NLS=yes
14398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14399 $as_echo "$USE_NLS" >&6; }
14404       GETTEXT_MACRO_VERSION=0.17
14409 # Prepare PATH_SEPARATOR.
14410 # The user is always right.
14411 if test "${PATH_SEPARATOR+set}" != set; then
14412   echo "#! /bin/sh" >conf$$.sh
14413   echo  "exit 0"   >>conf$$.sh
14414   chmod +x conf$$.sh
14415   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14416     PATH_SEPARATOR=';'
14417   else
14418     PATH_SEPARATOR=:
14419   fi
14420   rm -f conf$$.sh
14423 # Find out how to test for executable files. Don't use a zero-byte file,
14424 # as systems may use methods other than mode bits to determine executability.
14425 cat >conf$$.file <<_ASEOF
14426 #! /bin/sh
14427 exit 0
14428 _ASEOF
14429 chmod +x conf$$.file
14430 if test -x conf$$.file >/dev/null 2>&1; then
14431   ac_executable_p="test -x"
14432 else
14433   ac_executable_p="test -f"
14435 rm -f conf$$.file
14437 # Extract the first word of "msgfmt", so it can be a program name with args.
14438 set dummy msgfmt; ac_word=$2
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14440 $as_echo_n "checking for $ac_word... " >&6; }
14441 if ${ac_cv_path_MSGFMT+:} false; then :
14442   $as_echo_n "(cached) " >&6
14443 else
14444   case "$MSGFMT" in
14445   [\\/]* | ?:[\\/]*)
14446     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14447     ;;
14448   *)
14449     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14450     for ac_dir in $PATH; do
14451       IFS="$ac_save_IFS"
14452       test -z "$ac_dir" && ac_dir=.
14453       for ac_exec_ext in '' $ac_executable_extensions; do
14454         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14455           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14456           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14457      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14458             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14459             break 2
14460           fi
14461         fi
14462       done
14463     done
14464     IFS="$ac_save_IFS"
14465   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14466     ;;
14467 esac
14469 MSGFMT="$ac_cv_path_MSGFMT"
14470 if test "$MSGFMT" != ":"; then
14471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14472 $as_echo "$MSGFMT" >&6; }
14473 else
14474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14475 $as_echo "no" >&6; }
14478   # Extract the first word of "gmsgfmt", so it can be a program name with args.
14479 set dummy gmsgfmt; ac_word=$2
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14481 $as_echo_n "checking for $ac_word... " >&6; }
14482 if ${ac_cv_path_GMSGFMT+:} false; then :
14483   $as_echo_n "(cached) " >&6
14484 else
14485   case $GMSGFMT in
14486   [\\/]* | ?:[\\/]*)
14487   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14488   ;;
14489   *)
14490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14491 for as_dir in $PATH
14493   IFS=$as_save_IFS
14494   test -z "$as_dir" && as_dir=.
14495     for ac_exec_ext in '' $ac_executable_extensions; do
14496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14497     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14499     break 2
14500   fi
14501 done
14502   done
14503 IFS=$as_save_IFS
14505   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14506   ;;
14507 esac
14509 GMSGFMT=$ac_cv_path_GMSGFMT
14510 if test -n "$GMSGFMT"; then
14511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14512 $as_echo "$GMSGFMT" >&6; }
14513 else
14514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14515 $as_echo "no" >&6; }
14520     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14521     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14522     *) MSGFMT_015=$MSGFMT ;;
14523   esac
14525   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14526     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14527     *) GMSGFMT_015=$GMSGFMT ;;
14528   esac
14532 # Prepare PATH_SEPARATOR.
14533 # The user is always right.
14534 if test "${PATH_SEPARATOR+set}" != set; then
14535   echo "#! /bin/sh" >conf$$.sh
14536   echo  "exit 0"   >>conf$$.sh
14537   chmod +x conf$$.sh
14538   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14539     PATH_SEPARATOR=';'
14540   else
14541     PATH_SEPARATOR=:
14542   fi
14543   rm -f conf$$.sh
14546 # Find out how to test for executable files. Don't use a zero-byte file,
14547 # as systems may use methods other than mode bits to determine executability.
14548 cat >conf$$.file <<_ASEOF
14549 #! /bin/sh
14550 exit 0
14551 _ASEOF
14552 chmod +x conf$$.file
14553 if test -x conf$$.file >/dev/null 2>&1; then
14554   ac_executable_p="test -x"
14555 else
14556   ac_executable_p="test -f"
14558 rm -f conf$$.file
14560 # Extract the first word of "xgettext", so it can be a program name with args.
14561 set dummy xgettext; ac_word=$2
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14563 $as_echo_n "checking for $ac_word... " >&6; }
14564 if ${ac_cv_path_XGETTEXT+:} false; then :
14565   $as_echo_n "(cached) " >&6
14566 else
14567   case "$XGETTEXT" in
14568   [\\/]* | ?:[\\/]*)
14569     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14570     ;;
14571   *)
14572     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14573     for ac_dir in $PATH; do
14574       IFS="$ac_save_IFS"
14575       test -z "$ac_dir" && ac_dir=.
14576       for ac_exec_ext in '' $ac_executable_extensions; do
14577         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14578           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14579           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14580      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14581             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14582             break 2
14583           fi
14584         fi
14585       done
14586     done
14587     IFS="$ac_save_IFS"
14588   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14589     ;;
14590 esac
14592 XGETTEXT="$ac_cv_path_XGETTEXT"
14593 if test "$XGETTEXT" != ":"; then
14594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14595 $as_echo "$XGETTEXT" >&6; }
14596 else
14597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14598 $as_echo "no" >&6; }
14601     rm -f messages.po
14603     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14604     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14605     *) XGETTEXT_015=$XGETTEXT ;;
14606   esac
14610 # Prepare PATH_SEPARATOR.
14611 # The user is always right.
14612 if test "${PATH_SEPARATOR+set}" != set; then
14613   echo "#! /bin/sh" >conf$$.sh
14614   echo  "exit 0"   >>conf$$.sh
14615   chmod +x conf$$.sh
14616   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14617     PATH_SEPARATOR=';'
14618   else
14619     PATH_SEPARATOR=:
14620   fi
14621   rm -f conf$$.sh
14624 # Find out how to test for executable files. Don't use a zero-byte file,
14625 # as systems may use methods other than mode bits to determine executability.
14626 cat >conf$$.file <<_ASEOF
14627 #! /bin/sh
14628 exit 0
14629 _ASEOF
14630 chmod +x conf$$.file
14631 if test -x conf$$.file >/dev/null 2>&1; then
14632   ac_executable_p="test -x"
14633 else
14634   ac_executable_p="test -f"
14636 rm -f conf$$.file
14638 # Extract the first word of "msgmerge", so it can be a program name with args.
14639 set dummy msgmerge; ac_word=$2
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14641 $as_echo_n "checking for $ac_word... " >&6; }
14642 if ${ac_cv_path_MSGMERGE+:} false; then :
14643   $as_echo_n "(cached) " >&6
14644 else
14645   case "$MSGMERGE" in
14646   [\\/]* | ?:[\\/]*)
14647     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14648     ;;
14649   *)
14650     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14651     for ac_dir in $PATH; do
14652       IFS="$ac_save_IFS"
14653       test -z "$ac_dir" && ac_dir=.
14654       for ac_exec_ext in '' $ac_executable_extensions; do
14655         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14656           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14657           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14658             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14659             break 2
14660           fi
14661         fi
14662       done
14663     done
14664     IFS="$ac_save_IFS"
14665   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14666     ;;
14667 esac
14669 MSGMERGE="$ac_cv_path_MSGMERGE"
14670 if test "$MSGMERGE" != ":"; then
14671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14672 $as_echo "$MSGMERGE" >&6; }
14673 else
14674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14675 $as_echo "no" >&6; }
14679         test -n "$localedir" || localedir='${datadir}/locale'
14682     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14685   ac_config_commands="$ac_config_commands po-directories"
14689       if test "X$prefix" = "XNONE"; then
14690     acl_final_prefix="$ac_default_prefix"
14691   else
14692     acl_final_prefix="$prefix"
14693   fi
14694   if test "X$exec_prefix" = "XNONE"; then
14695     acl_final_exec_prefix='${prefix}'
14696   else
14697     acl_final_exec_prefix="$exec_prefix"
14698   fi
14699   acl_save_prefix="$prefix"
14700   prefix="$acl_final_prefix"
14701   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14702   prefix="$acl_save_prefix"
14705 # Check whether --with-gnu-ld was given.
14706 if test "${with_gnu_ld+set}" = set; then :
14707   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14708 else
14709   with_gnu_ld=no
14712 # Prepare PATH_SEPARATOR.
14713 # The user is always right.
14714 if test "${PATH_SEPARATOR+set}" != set; then
14715   echo "#! /bin/sh" >conf$$.sh
14716   echo  "exit 0"   >>conf$$.sh
14717   chmod +x conf$$.sh
14718   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14719     PATH_SEPARATOR=';'
14720   else
14721     PATH_SEPARATOR=:
14722   fi
14723   rm -f conf$$.sh
14725 ac_prog=ld
14726 if test "$GCC" = yes; then
14727   # Check if gcc -print-prog-name=ld gives a path.
14728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14729 $as_echo_n "checking for ld used by GCC... " >&6; }
14730   case $host in
14731   *-*-mingw*)
14732     # gcc leaves a trailing carriage return which upsets mingw
14733     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14734   *)
14735     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14736   esac
14737   case $ac_prog in
14738     # Accept absolute paths.
14739     [\\/]* | [A-Za-z]:[\\/]*)
14740       re_direlt='/[^/][^/]*/\.\./'
14741       # Canonicalize the path of ld
14742       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14743       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14744         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14745       done
14746       test -z "$LD" && LD="$ac_prog"
14747       ;;
14748   "")
14749     # If it fails, then pretend we aren't using GCC.
14750     ac_prog=ld
14751     ;;
14752   *)
14753     # If it is relative, then search for the first ld in PATH.
14754     with_gnu_ld=unknown
14755     ;;
14756   esac
14757 elif test "$with_gnu_ld" = yes; then
14758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14759 $as_echo_n "checking for GNU ld... " >&6; }
14760 else
14761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14762 $as_echo_n "checking for non-GNU ld... " >&6; }
14764 if ${acl_cv_path_LD+:} false; then :
14765   $as_echo_n "(cached) " >&6
14766 else
14767   if test -z "$LD"; then
14768   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14769   for ac_dir in $PATH; do
14770     test -z "$ac_dir" && ac_dir=.
14771     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14772       acl_cv_path_LD="$ac_dir/$ac_prog"
14773       # Check to see if the program is GNU ld.  I'd rather use --version,
14774       # but apparently some GNU ld's only accept -v.
14775       # Break only if it was the GNU/non-GNU ld that we prefer.
14776       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14777       *GNU* | *'with BFD'*)
14778         test "$with_gnu_ld" != no && break ;;
14779       *)
14780         test "$with_gnu_ld" != yes && break ;;
14781       esac
14782     fi
14783   done
14784   IFS="$ac_save_ifs"
14785 else
14786   acl_cv_path_LD="$LD" # Let the user override the test with a path.
14790 LD="$acl_cv_path_LD"
14791 if test -n "$LD"; then
14792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14793 $as_echo "$LD" >&6; }
14794 else
14795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14796 $as_echo "no" >&6; }
14798 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14800 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14801 if ${acl_cv_prog_gnu_ld+:} false; then :
14802   $as_echo_n "(cached) " >&6
14803 else
14804   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14805 case `$LD -v 2>&1 </dev/null` in
14806 *GNU* | *'with BFD'*)
14807   acl_cv_prog_gnu_ld=yes ;;
14809   acl_cv_prog_gnu_ld=no ;;
14810 esac
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14813 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14814 with_gnu_ld=$acl_cv_prog_gnu_ld
14819                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14820 $as_echo_n "checking for shared library run path origin... " >&6; }
14821 if ${acl_cv_rpath+:} false; then :
14822   $as_echo_n "(cached) " >&6
14823 else
14825     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14826     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14827     . ./conftest.sh
14828     rm -f ./conftest.sh
14829     acl_cv_rpath=done
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14833 $as_echo "$acl_cv_rpath" >&6; }
14834   wl="$acl_cv_wl"
14835   acl_libext="$acl_cv_libext"
14836   acl_shlibext="$acl_cv_shlibext"
14837   acl_libname_spec="$acl_cv_libname_spec"
14838   acl_library_names_spec="$acl_cv_library_names_spec"
14839   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14840   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14841   acl_hardcode_direct="$acl_cv_hardcode_direct"
14842   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14843     # Check whether --enable-rpath was given.
14844 if test "${enable_rpath+set}" = set; then :
14845   enableval=$enable_rpath; :
14846 else
14847   enable_rpath=yes
14852                   acl_libdirstem=lib
14853   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14854   if test -n "$searchpath"; then
14855     acl_save_IFS="${IFS=        }"; IFS=":"
14856     for searchdir in $searchpath; do
14857       if test -d "$searchdir"; then
14858         case "$searchdir" in
14859           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14860           *) searchdir=`cd "$searchdir" && pwd`
14861              case "$searchdir" in
14862                */lib64 ) acl_libdirstem=lib64 ;;
14863              esac ;;
14864         esac
14865       fi
14866     done
14867     IFS="$acl_save_IFS"
14868   fi
14878     use_additional=yes
14880   acl_save_prefix="$prefix"
14881   prefix="$acl_final_prefix"
14882   acl_save_exec_prefix="$exec_prefix"
14883   exec_prefix="$acl_final_exec_prefix"
14885     eval additional_includedir=\"$includedir\"
14886     eval additional_libdir=\"$libdir\"
14888   exec_prefix="$acl_save_exec_prefix"
14889   prefix="$acl_save_prefix"
14892 # Check whether --with-libiconv-prefix was given.
14893 if test "${with_libiconv_prefix+set}" = set; then :
14894   withval=$with_libiconv_prefix;
14895     if test "X$withval" = "Xno"; then
14896       use_additional=no
14897     else
14898       if test "X$withval" = "X"; then
14900   acl_save_prefix="$prefix"
14901   prefix="$acl_final_prefix"
14902   acl_save_exec_prefix="$exec_prefix"
14903   exec_prefix="$acl_final_exec_prefix"
14905           eval additional_includedir=\"$includedir\"
14906           eval additional_libdir=\"$libdir\"
14908   exec_prefix="$acl_save_exec_prefix"
14909   prefix="$acl_save_prefix"
14911       else
14912         additional_includedir="$withval/include"
14913         additional_libdir="$withval/$acl_libdirstem"
14914       fi
14915     fi
14919       LIBICONV=
14920   LTLIBICONV=
14921   INCICONV=
14922   LIBICONV_PREFIX=
14923   rpathdirs=
14924   ltrpathdirs=
14925   names_already_handled=
14926   names_next_round='iconv '
14927   while test -n "$names_next_round"; do
14928     names_this_round="$names_next_round"
14929     names_next_round=
14930     for name in $names_this_round; do
14931       already_handled=
14932       for n in $names_already_handled; do
14933         if test "$n" = "$name"; then
14934           already_handled=yes
14935           break
14936         fi
14937       done
14938       if test -z "$already_handled"; then
14939         names_already_handled="$names_already_handled $name"
14940                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14941         eval value=\"\$HAVE_LIB$uppername\"
14942         if test -n "$value"; then
14943           if test "$value" = yes; then
14944             eval value=\"\$LIB$uppername\"
14945             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14946             eval value=\"\$LTLIB$uppername\"
14947             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14948           else
14949                                     :
14950           fi
14951         else
14952                               found_dir=
14953           found_la=
14954           found_so=
14955           found_a=
14956           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14957           if test -n "$acl_shlibext"; then
14958             shrext=".$acl_shlibext"             # typically: shrext=.so
14959           else
14960             shrext=
14961           fi
14962           if test $use_additional = yes; then
14963             dir="$additional_libdir"
14964                                     if test -n "$acl_shlibext"; then
14965               if test -f "$dir/$libname$shrext"; then
14966                 found_dir="$dir"
14967                 found_so="$dir/$libname$shrext"
14968               else
14969                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14970                   ver=`(cd "$dir" && \
14971                         for f in "$libname$shrext".*; do echo "$f"; done \
14972                         | sed -e "s,^$libname$shrext\\\\.,," \
14973                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14974                         | sed 1q ) 2>/dev/null`
14975                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14976                     found_dir="$dir"
14977                     found_so="$dir/$libname$shrext.$ver"
14978                   fi
14979                 else
14980                   eval library_names=\"$acl_library_names_spec\"
14981                   for f in $library_names; do
14982                     if test -f "$dir/$f"; then
14983                       found_dir="$dir"
14984                       found_so="$dir/$f"
14985                       break
14986                     fi
14987                   done
14988                 fi
14989               fi
14990             fi
14991                         if test "X$found_dir" = "X"; then
14992               if test -f "$dir/$libname.$acl_libext"; then
14993                 found_dir="$dir"
14994                 found_a="$dir/$libname.$acl_libext"
14995               fi
14996             fi
14997             if test "X$found_dir" != "X"; then
14998               if test -f "$dir/$libname.la"; then
14999                 found_la="$dir/$libname.la"
15000               fi
15001             fi
15002           fi
15003           if test "X$found_dir" = "X"; then
15004             for x in $LDFLAGS $LTLIBICONV; do
15006   acl_save_prefix="$prefix"
15007   prefix="$acl_final_prefix"
15008   acl_save_exec_prefix="$exec_prefix"
15009   exec_prefix="$acl_final_exec_prefix"
15010   eval x=\"$x\"
15011   exec_prefix="$acl_save_exec_prefix"
15012   prefix="$acl_save_prefix"
15014               case "$x" in
15015                 -L*)
15016                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15017                                     if test -n "$acl_shlibext"; then
15018                     if test -f "$dir/$libname$shrext"; then
15019                       found_dir="$dir"
15020                       found_so="$dir/$libname$shrext"
15021                     else
15022                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15023                         ver=`(cd "$dir" && \
15024                               for f in "$libname$shrext".*; do echo "$f"; done \
15025                               | sed -e "s,^$libname$shrext\\\\.,," \
15026                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15027                               | sed 1q ) 2>/dev/null`
15028                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15029                           found_dir="$dir"
15030                           found_so="$dir/$libname$shrext.$ver"
15031                         fi
15032                       else
15033                         eval library_names=\"$acl_library_names_spec\"
15034                         for f in $library_names; do
15035                           if test -f "$dir/$f"; then
15036                             found_dir="$dir"
15037                             found_so="$dir/$f"
15038                             break
15039                           fi
15040                         done
15041                       fi
15042                     fi
15043                   fi
15044                                     if test "X$found_dir" = "X"; then
15045                     if test -f "$dir/$libname.$acl_libext"; then
15046                       found_dir="$dir"
15047                       found_a="$dir/$libname.$acl_libext"
15048                     fi
15049                   fi
15050                   if test "X$found_dir" != "X"; then
15051                     if test -f "$dir/$libname.la"; then
15052                       found_la="$dir/$libname.la"
15053                     fi
15054                   fi
15055                   ;;
15056               esac
15057               if test "X$found_dir" != "X"; then
15058                 break
15059               fi
15060             done
15061           fi
15062           if test "X$found_dir" != "X"; then
15063                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15064             if test "X$found_so" != "X"; then
15065                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15066                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15067               else
15068                                                                                 haveit=
15069                 for x in $ltrpathdirs; do
15070                   if test "X$x" = "X$found_dir"; then
15071                     haveit=yes
15072                     break
15073                   fi
15074                 done
15075                 if test -z "$haveit"; then
15076                   ltrpathdirs="$ltrpathdirs $found_dir"
15077                 fi
15078                                 if test "$acl_hardcode_direct" = yes; then
15079                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15080                 else
15081                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15082                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15083                                                             haveit=
15084                     for x in $rpathdirs; do
15085                       if test "X$x" = "X$found_dir"; then
15086                         haveit=yes
15087                         break
15088                       fi
15089                     done
15090                     if test -z "$haveit"; then
15091                       rpathdirs="$rpathdirs $found_dir"
15092                     fi
15093                   else
15094                                                                                 haveit=
15095                     for x in $LDFLAGS $LIBICONV; do
15097   acl_save_prefix="$prefix"
15098   prefix="$acl_final_prefix"
15099   acl_save_exec_prefix="$exec_prefix"
15100   exec_prefix="$acl_final_exec_prefix"
15101   eval x=\"$x\"
15102   exec_prefix="$acl_save_exec_prefix"
15103   prefix="$acl_save_prefix"
15105                       if test "X$x" = "X-L$found_dir"; then
15106                         haveit=yes
15107                         break
15108                       fi
15109                     done
15110                     if test -z "$haveit"; then
15111                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15112                     fi
15113                     if test "$acl_hardcode_minus_L" != no; then
15114                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15115                     else
15116                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15117                     fi
15118                   fi
15119                 fi
15120               fi
15121             else
15122               if test "X$found_a" != "X"; then
15123                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15124               else
15125                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15126               fi
15127             fi
15128                         additional_includedir=
15129             case "$found_dir" in
15130               */$acl_libdirstem | */$acl_libdirstem/)
15131                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15132                 LIBICONV_PREFIX="$basedir"
15133                 additional_includedir="$basedir/include"
15134                 ;;
15135             esac
15136             if test "X$additional_includedir" != "X"; then
15137                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15138                 haveit=
15139                 if test "X$additional_includedir" = "X/usr/local/include"; then
15140                   if test -n "$GCC"; then
15141                     case $host_os in
15142                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15143                     esac
15144                   fi
15145                 fi
15146                 if test -z "$haveit"; then
15147                   for x in $CPPFLAGS $INCICONV; do
15149   acl_save_prefix="$prefix"
15150   prefix="$acl_final_prefix"
15151   acl_save_exec_prefix="$exec_prefix"
15152   exec_prefix="$acl_final_exec_prefix"
15153   eval x=\"$x\"
15154   exec_prefix="$acl_save_exec_prefix"
15155   prefix="$acl_save_prefix"
15157                     if test "X$x" = "X-I$additional_includedir"; then
15158                       haveit=yes
15159                       break
15160                     fi
15161                   done
15162                   if test -z "$haveit"; then
15163                     if test -d "$additional_includedir"; then
15164                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15165                     fi
15166                   fi
15167                 fi
15168               fi
15169             fi
15170                         if test -n "$found_la"; then
15171                                                         save_libdir="$libdir"
15172               case "$found_la" in
15173                 */* | *\\*) . "$found_la" ;;
15174                 *) . "./$found_la" ;;
15175               esac
15176               libdir="$save_libdir"
15177                             for dep in $dependency_libs; do
15178                 case "$dep" in
15179                   -L*)
15180                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15181                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15182                       haveit=
15183                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15184                         if test -n "$GCC"; then
15185                           case $host_os in
15186                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15187                           esac
15188                         fi
15189                       fi
15190                       if test -z "$haveit"; then
15191                         haveit=
15192                         for x in $LDFLAGS $LIBICONV; do
15194   acl_save_prefix="$prefix"
15195   prefix="$acl_final_prefix"
15196   acl_save_exec_prefix="$exec_prefix"
15197   exec_prefix="$acl_final_exec_prefix"
15198   eval x=\"$x\"
15199   exec_prefix="$acl_save_exec_prefix"
15200   prefix="$acl_save_prefix"
15202                           if test "X$x" = "X-L$additional_libdir"; then
15203                             haveit=yes
15204                             break
15205                           fi
15206                         done
15207                         if test -z "$haveit"; then
15208                           if test -d "$additional_libdir"; then
15209                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15210                           fi
15211                         fi
15212                         haveit=
15213                         for x in $LDFLAGS $LTLIBICONV; do
15215   acl_save_prefix="$prefix"
15216   prefix="$acl_final_prefix"
15217   acl_save_exec_prefix="$exec_prefix"
15218   exec_prefix="$acl_final_exec_prefix"
15219   eval x=\"$x\"
15220   exec_prefix="$acl_save_exec_prefix"
15221   prefix="$acl_save_prefix"
15223                           if test "X$x" = "X-L$additional_libdir"; then
15224                             haveit=yes
15225                             break
15226                           fi
15227                         done
15228                         if test -z "$haveit"; then
15229                           if test -d "$additional_libdir"; then
15230                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15231                           fi
15232                         fi
15233                       fi
15234                     fi
15235                     ;;
15236                   -R*)
15237                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15238                     if test "$enable_rpath" != no; then
15239                                                                   haveit=
15240                       for x in $rpathdirs; do
15241                         if test "X$x" = "X$dir"; then
15242                           haveit=yes
15243                           break
15244                         fi
15245                       done
15246                       if test -z "$haveit"; then
15247                         rpathdirs="$rpathdirs $dir"
15248                       fi
15249                                                                   haveit=
15250                       for x in $ltrpathdirs; do
15251                         if test "X$x" = "X$dir"; then
15252                           haveit=yes
15253                           break
15254                         fi
15255                       done
15256                       if test -z "$haveit"; then
15257                         ltrpathdirs="$ltrpathdirs $dir"
15258                       fi
15259                     fi
15260                     ;;
15261                   -l*)
15262                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15263                     ;;
15264                   *.la)
15265                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15266                     ;;
15267                   *)
15268                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15269                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15270                     ;;
15271                 esac
15272               done
15273             fi
15274           else
15275                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15276             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15277           fi
15278         fi
15279       fi
15280     done
15281   done
15282   if test "X$rpathdirs" != "X"; then
15283     if test -n "$acl_hardcode_libdir_separator"; then
15284                         alldirs=
15285       for found_dir in $rpathdirs; do
15286         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15287       done
15288             acl_save_libdir="$libdir"
15289       libdir="$alldirs"
15290       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15291       libdir="$acl_save_libdir"
15292       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15293     else
15294             for found_dir in $rpathdirs; do
15295         acl_save_libdir="$libdir"
15296         libdir="$found_dir"
15297         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15298         libdir="$acl_save_libdir"
15299         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15300       done
15301     fi
15302   fi
15303   if test "X$ltrpathdirs" != "X"; then
15304             for found_dir in $ltrpathdirs; do
15305       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15306     done
15307   fi
15333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15334 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15335 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
15336   $as_echo_n "(cached) " >&6
15337 else
15338   gt_save_LIBS="$LIBS"
15339      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15340      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341 /* end confdefs.h.  */
15342 #include <CoreFoundation/CFPreferences.h>
15343 int
15344 main ()
15346 CFPreferencesCopyAppValue(NULL, NULL)
15347   ;
15348   return 0;
15350 _ACEOF
15351 if ac_fn_c_try_link "$LINENO"; then :
15352   gt_cv_func_CFPreferencesCopyAppValue=yes
15353 else
15354   gt_cv_func_CFPreferencesCopyAppValue=no
15356 rm -f core conftest.err conftest.$ac_objext \
15357     conftest$ac_exeext conftest.$ac_ext
15358      LIBS="$gt_save_LIBS"
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15361 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15362   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15364 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15366   fi
15367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15368 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15369 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
15370   $as_echo_n "(cached) " >&6
15371 else
15372   gt_save_LIBS="$LIBS"
15373      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15374      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h.  */
15376 #include <CoreFoundation/CFLocale.h>
15377 int
15378 main ()
15380 CFLocaleCopyCurrent();
15381   ;
15382   return 0;
15384 _ACEOF
15385 if ac_fn_c_try_link "$LINENO"; then :
15386   gt_cv_func_CFLocaleCopyCurrent=yes
15387 else
15388   gt_cv_func_CFLocaleCopyCurrent=no
15390 rm -f core conftest.err conftest.$ac_objext \
15391     conftest$ac_exeext conftest.$ac_ext
15392      LIBS="$gt_save_LIBS"
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15395 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15396   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15398 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15400   fi
15401   INTL_MACOSX_LIBS=
15402   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15403     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15404   fi
15411   LIBINTL=
15412   LTLIBINTL=
15413   POSUB=
15415     case " $gt_needs " in
15416     *" need-formatstring-macros "*) gt_api_version=3 ;;
15417     *" need-ngettext "*) gt_api_version=2 ;;
15418     *) gt_api_version=1 ;;
15419   esac
15420   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15421   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15423     if test "$USE_NLS" = "yes"; then
15424     gt_use_preinstalled_gnugettext=no
15427         if test $gt_api_version -ge 3; then
15428           gt_revision_test_code='
15429 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15430 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15431 #endif
15432 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15434         else
15435           gt_revision_test_code=
15436         fi
15437         if test $gt_api_version -ge 2; then
15438           gt_expression_test_code=' + * ngettext ("", "", 0)'
15439         else
15440           gt_expression_test_code=
15441         fi
15443         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15444 $as_echo_n "checking for GNU gettext in libc... " >&6; }
15445 if eval \${$gt_func_gnugettext_libc+:} false; then :
15446   $as_echo_n "(cached) " >&6
15447 else
15448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15449 /* end confdefs.h.  */
15450 #include <libintl.h>
15451 $gt_revision_test_code
15452 extern int _nl_msg_cat_cntr;
15453 extern int *_nl_domain_bindings;
15454 int
15455 main ()
15457 bindtextdomain ("", "");
15458 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15459   ;
15460   return 0;
15462 _ACEOF
15463 if ac_fn_c_try_link "$LINENO"; then :
15464   eval "$gt_func_gnugettext_libc=yes"
15465 else
15466   eval "$gt_func_gnugettext_libc=no"
15468 rm -f core conftest.err conftest.$ac_objext \
15469     conftest$ac_exeext conftest.$ac_ext
15471 eval ac_res=\$$gt_func_gnugettext_libc
15472                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15473 $as_echo "$ac_res" >&6; }
15475         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15481           am_save_CPPFLAGS="$CPPFLAGS"
15483   for element in $INCICONV; do
15484     haveit=
15485     for x in $CPPFLAGS; do
15487   acl_save_prefix="$prefix"
15488   prefix="$acl_final_prefix"
15489   acl_save_exec_prefix="$exec_prefix"
15490   exec_prefix="$acl_final_exec_prefix"
15491   eval x=\"$x\"
15492   exec_prefix="$acl_save_exec_prefix"
15493   prefix="$acl_save_prefix"
15495       if test "X$x" = "X$element"; then
15496         haveit=yes
15497         break
15498       fi
15499     done
15500     if test -z "$haveit"; then
15501       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15502     fi
15503   done
15506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15507 $as_echo_n "checking for iconv... " >&6; }
15508 if ${am_cv_func_iconv+:} false; then :
15509   $as_echo_n "(cached) " >&6
15510 else
15512     am_cv_func_iconv="no, consider installing GNU libiconv"
15513     am_cv_lib_iconv=no
15514     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15515 /* end confdefs.h.  */
15516 #include <stdlib.h>
15517 #include <iconv.h>
15518 int
15519 main ()
15521 iconv_t cd = iconv_open("","");
15522        iconv(cd,NULL,NULL,NULL,NULL);
15523        iconv_close(cd);
15524   ;
15525   return 0;
15527 _ACEOF
15528 if ac_fn_c_try_link "$LINENO"; then :
15529   am_cv_func_iconv=yes
15531 rm -f core conftest.err conftest.$ac_objext \
15532     conftest$ac_exeext conftest.$ac_ext
15533     if test "$am_cv_func_iconv" != yes; then
15534       am_save_LIBS="$LIBS"
15535       LIBS="$LIBS $LIBICONV"
15536       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537 /* end confdefs.h.  */
15538 #include <stdlib.h>
15539 #include <iconv.h>
15540 int
15541 main ()
15543 iconv_t cd = iconv_open("","");
15544          iconv(cd,NULL,NULL,NULL,NULL);
15545          iconv_close(cd);
15546   ;
15547   return 0;
15549 _ACEOF
15550 if ac_fn_c_try_link "$LINENO"; then :
15551   am_cv_lib_iconv=yes
15552         am_cv_func_iconv=yes
15554 rm -f core conftest.err conftest.$ac_objext \
15555     conftest$ac_exeext conftest.$ac_ext
15556       LIBS="$am_save_LIBS"
15557     fi
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15561 $as_echo "$am_cv_func_iconv" >&6; }
15562   if test "$am_cv_func_iconv" = yes; then
15563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15564 $as_echo_n "checking for working iconv... " >&6; }
15565 if ${am_cv_func_iconv_works+:} false; then :
15566   $as_echo_n "(cached) " >&6
15567 else
15569             am_save_LIBS="$LIBS"
15570       if test $am_cv_lib_iconv = yes; then
15571         LIBS="$LIBS $LIBICONV"
15572       fi
15573       if test "$cross_compiling" = yes; then :
15574   case "$host_os" in
15575            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15576            *)            am_cv_func_iconv_works="guessing yes" ;;
15577          esac
15578 else
15579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15580 /* end confdefs.h.  */
15582 #include <iconv.h>
15583 #include <string.h>
15584 int main ()
15586   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15587      returns.  */
15588   {
15589     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15590     if (cd_utf8_to_88591 != (iconv_t)(-1))
15591       {
15592         static const char input[] = "\342\202\254"; /* EURO SIGN */
15593         char buf[10];
15594         const char *inptr = input;
15595         size_t inbytesleft = strlen (input);
15596         char *outptr = buf;
15597         size_t outbytesleft = sizeof (buf);
15598         size_t res = iconv (cd_utf8_to_88591,
15599                             (char **) &inptr, &inbytesleft,
15600                             &outptr, &outbytesleft);
15601         if (res == 0)
15602           return 1;
15603       }
15604   }
15605 #if 0 /* This bug could be worked around by the caller.  */
15606   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
15607   {
15608     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15609     if (cd_88591_to_utf8 != (iconv_t)(-1))
15610       {
15611         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15612         char buf[50];
15613         const char *inptr = input;
15614         size_t inbytesleft = strlen (input);
15615         char *outptr = buf;
15616         size_t outbytesleft = sizeof (buf);
15617         size_t res = iconv (cd_88591_to_utf8,
15618                             (char **) &inptr, &inbytesleft,
15619                             &outptr, &outbytesleft);
15620         if ((int)res > 0)
15621           return 1;
15622       }
15623   }
15624 #endif
15625   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15626      provided.  */
15627   if (/* Try standardized names.  */
15628       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15629       /* Try IRIX, OSF/1 names.  */
15630       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15631       /* Try AIX names.  */
15632       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15633       /* Try HP-UX names.  */
15634       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15635     return 1;
15636   return 0;
15638 _ACEOF
15639 if ac_fn_c_try_run "$LINENO"; then :
15640   am_cv_func_iconv_works=yes
15641 else
15642   am_cv_func_iconv_works=no
15644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15645   conftest.$ac_objext conftest.beam conftest.$ac_ext
15648       LIBS="$am_save_LIBS"
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15652 $as_echo "$am_cv_func_iconv_works" >&6; }
15653     case "$am_cv_func_iconv_works" in
15654       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15655       *)   am_func_iconv=yes ;;
15656     esac
15657   else
15658     am_func_iconv=no am_cv_lib_iconv=no
15659   fi
15660   if test "$am_func_iconv" = yes; then
15662 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15664   fi
15665   if test "$am_cv_lib_iconv" = yes; then
15666     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15667 $as_echo_n "checking how to link with libiconv... " >&6; }
15668     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15669 $as_echo "$LIBICONV" >&6; }
15670   else
15671             CPPFLAGS="$am_save_CPPFLAGS"
15672     LIBICONV=
15673     LTLIBICONV=
15674   fi
15683     use_additional=yes
15685   acl_save_prefix="$prefix"
15686   prefix="$acl_final_prefix"
15687   acl_save_exec_prefix="$exec_prefix"
15688   exec_prefix="$acl_final_exec_prefix"
15690     eval additional_includedir=\"$includedir\"
15691     eval additional_libdir=\"$libdir\"
15693   exec_prefix="$acl_save_exec_prefix"
15694   prefix="$acl_save_prefix"
15697 # Check whether --with-libintl-prefix was given.
15698 if test "${with_libintl_prefix+set}" = set; then :
15699   withval=$with_libintl_prefix;
15700     if test "X$withval" = "Xno"; then
15701       use_additional=no
15702     else
15703       if test "X$withval" = "X"; then
15705   acl_save_prefix="$prefix"
15706   prefix="$acl_final_prefix"
15707   acl_save_exec_prefix="$exec_prefix"
15708   exec_prefix="$acl_final_exec_prefix"
15710           eval additional_includedir=\"$includedir\"
15711           eval additional_libdir=\"$libdir\"
15713   exec_prefix="$acl_save_exec_prefix"
15714   prefix="$acl_save_prefix"
15716       else
15717         additional_includedir="$withval/include"
15718         additional_libdir="$withval/$acl_libdirstem"
15719       fi
15720     fi
15724       LIBINTL=
15725   LTLIBINTL=
15726   INCINTL=
15727   LIBINTL_PREFIX=
15728   rpathdirs=
15729   ltrpathdirs=
15730   names_already_handled=
15731   names_next_round='intl '
15732   while test -n "$names_next_round"; do
15733     names_this_round="$names_next_round"
15734     names_next_round=
15735     for name in $names_this_round; do
15736       already_handled=
15737       for n in $names_already_handled; do
15738         if test "$n" = "$name"; then
15739           already_handled=yes
15740           break
15741         fi
15742       done
15743       if test -z "$already_handled"; then
15744         names_already_handled="$names_already_handled $name"
15745                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15746         eval value=\"\$HAVE_LIB$uppername\"
15747         if test -n "$value"; then
15748           if test "$value" = yes; then
15749             eval value=\"\$LIB$uppername\"
15750             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15751             eval value=\"\$LTLIB$uppername\"
15752             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15753           else
15754                                     :
15755           fi
15756         else
15757                               found_dir=
15758           found_la=
15759           found_so=
15760           found_a=
15761           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15762           if test -n "$acl_shlibext"; then
15763             shrext=".$acl_shlibext"             # typically: shrext=.so
15764           else
15765             shrext=
15766           fi
15767           if test $use_additional = yes; then
15768             dir="$additional_libdir"
15769                                     if test -n "$acl_shlibext"; then
15770               if test -f "$dir/$libname$shrext"; then
15771                 found_dir="$dir"
15772                 found_so="$dir/$libname$shrext"
15773               else
15774                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15775                   ver=`(cd "$dir" && \
15776                         for f in "$libname$shrext".*; do echo "$f"; done \
15777                         | sed -e "s,^$libname$shrext\\\\.,," \
15778                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15779                         | sed 1q ) 2>/dev/null`
15780                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15781                     found_dir="$dir"
15782                     found_so="$dir/$libname$shrext.$ver"
15783                   fi
15784                 else
15785                   eval library_names=\"$acl_library_names_spec\"
15786                   for f in $library_names; do
15787                     if test -f "$dir/$f"; then
15788                       found_dir="$dir"
15789                       found_so="$dir/$f"
15790                       break
15791                     fi
15792                   done
15793                 fi
15794               fi
15795             fi
15796                         if test "X$found_dir" = "X"; then
15797               if test -f "$dir/$libname.$acl_libext"; then
15798                 found_dir="$dir"
15799                 found_a="$dir/$libname.$acl_libext"
15800               fi
15801             fi
15802             if test "X$found_dir" != "X"; then
15803               if test -f "$dir/$libname.la"; then
15804                 found_la="$dir/$libname.la"
15805               fi
15806             fi
15807           fi
15808           if test "X$found_dir" = "X"; then
15809             for x in $LDFLAGS $LTLIBINTL; do
15811   acl_save_prefix="$prefix"
15812   prefix="$acl_final_prefix"
15813   acl_save_exec_prefix="$exec_prefix"
15814   exec_prefix="$acl_final_exec_prefix"
15815   eval x=\"$x\"
15816   exec_prefix="$acl_save_exec_prefix"
15817   prefix="$acl_save_prefix"
15819               case "$x" in
15820                 -L*)
15821                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15822                                     if test -n "$acl_shlibext"; then
15823                     if test -f "$dir/$libname$shrext"; then
15824                       found_dir="$dir"
15825                       found_so="$dir/$libname$shrext"
15826                     else
15827                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15828                         ver=`(cd "$dir" && \
15829                               for f in "$libname$shrext".*; do echo "$f"; done \
15830                               | sed -e "s,^$libname$shrext\\\\.,," \
15831                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15832                               | sed 1q ) 2>/dev/null`
15833                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15834                           found_dir="$dir"
15835                           found_so="$dir/$libname$shrext.$ver"
15836                         fi
15837                       else
15838                         eval library_names=\"$acl_library_names_spec\"
15839                         for f in $library_names; do
15840                           if test -f "$dir/$f"; then
15841                             found_dir="$dir"
15842                             found_so="$dir/$f"
15843                             break
15844                           fi
15845                         done
15846                       fi
15847                     fi
15848                   fi
15849                                     if test "X$found_dir" = "X"; then
15850                     if test -f "$dir/$libname.$acl_libext"; then
15851                       found_dir="$dir"
15852                       found_a="$dir/$libname.$acl_libext"
15853                     fi
15854                   fi
15855                   if test "X$found_dir" != "X"; then
15856                     if test -f "$dir/$libname.la"; then
15857                       found_la="$dir/$libname.la"
15858                     fi
15859                   fi
15860                   ;;
15861               esac
15862               if test "X$found_dir" != "X"; then
15863                 break
15864               fi
15865             done
15866           fi
15867           if test "X$found_dir" != "X"; then
15868                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15869             if test "X$found_so" != "X"; then
15870                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15871                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15872               else
15873                                                                                 haveit=
15874                 for x in $ltrpathdirs; do
15875                   if test "X$x" = "X$found_dir"; then
15876                     haveit=yes
15877                     break
15878                   fi
15879                 done
15880                 if test -z "$haveit"; then
15881                   ltrpathdirs="$ltrpathdirs $found_dir"
15882                 fi
15883                                 if test "$acl_hardcode_direct" = yes; then
15884                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15885                 else
15886                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15887                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15888                                                             haveit=
15889                     for x in $rpathdirs; do
15890                       if test "X$x" = "X$found_dir"; then
15891                         haveit=yes
15892                         break
15893                       fi
15894                     done
15895                     if test -z "$haveit"; then
15896                       rpathdirs="$rpathdirs $found_dir"
15897                     fi
15898                   else
15899                                                                                 haveit=
15900                     for x in $LDFLAGS $LIBINTL; do
15902   acl_save_prefix="$prefix"
15903   prefix="$acl_final_prefix"
15904   acl_save_exec_prefix="$exec_prefix"
15905   exec_prefix="$acl_final_exec_prefix"
15906   eval x=\"$x\"
15907   exec_prefix="$acl_save_exec_prefix"
15908   prefix="$acl_save_prefix"
15910                       if test "X$x" = "X-L$found_dir"; then
15911                         haveit=yes
15912                         break
15913                       fi
15914                     done
15915                     if test -z "$haveit"; then
15916                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15917                     fi
15918                     if test "$acl_hardcode_minus_L" != no; then
15919                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15920                     else
15921                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15922                     fi
15923                   fi
15924                 fi
15925               fi
15926             else
15927               if test "X$found_a" != "X"; then
15928                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15929               else
15930                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15931               fi
15932             fi
15933                         additional_includedir=
15934             case "$found_dir" in
15935               */$acl_libdirstem | */$acl_libdirstem/)
15936                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15937                 LIBINTL_PREFIX="$basedir"
15938                 additional_includedir="$basedir/include"
15939                 ;;
15940             esac
15941             if test "X$additional_includedir" != "X"; then
15942                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15943                 haveit=
15944                 if test "X$additional_includedir" = "X/usr/local/include"; then
15945                   if test -n "$GCC"; then
15946                     case $host_os in
15947                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15948                     esac
15949                   fi
15950                 fi
15951                 if test -z "$haveit"; then
15952                   for x in $CPPFLAGS $INCINTL; do
15954   acl_save_prefix="$prefix"
15955   prefix="$acl_final_prefix"
15956   acl_save_exec_prefix="$exec_prefix"
15957   exec_prefix="$acl_final_exec_prefix"
15958   eval x=\"$x\"
15959   exec_prefix="$acl_save_exec_prefix"
15960   prefix="$acl_save_prefix"
15962                     if test "X$x" = "X-I$additional_includedir"; then
15963                       haveit=yes
15964                       break
15965                     fi
15966                   done
15967                   if test -z "$haveit"; then
15968                     if test -d "$additional_includedir"; then
15969                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15970                     fi
15971                   fi
15972                 fi
15973               fi
15974             fi
15975                         if test -n "$found_la"; then
15976                                                         save_libdir="$libdir"
15977               case "$found_la" in
15978                 */* | *\\*) . "$found_la" ;;
15979                 *) . "./$found_la" ;;
15980               esac
15981               libdir="$save_libdir"
15982                             for dep in $dependency_libs; do
15983                 case "$dep" in
15984                   -L*)
15985                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15986                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15987                       haveit=
15988                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15989                         if test -n "$GCC"; then
15990                           case $host_os in
15991                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15992                           esac
15993                         fi
15994                       fi
15995                       if test -z "$haveit"; then
15996                         haveit=
15997                         for x in $LDFLAGS $LIBINTL; do
15999   acl_save_prefix="$prefix"
16000   prefix="$acl_final_prefix"
16001   acl_save_exec_prefix="$exec_prefix"
16002   exec_prefix="$acl_final_exec_prefix"
16003   eval x=\"$x\"
16004   exec_prefix="$acl_save_exec_prefix"
16005   prefix="$acl_save_prefix"
16007                           if test "X$x" = "X-L$additional_libdir"; then
16008                             haveit=yes
16009                             break
16010                           fi
16011                         done
16012                         if test -z "$haveit"; then
16013                           if test -d "$additional_libdir"; then
16014                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16015                           fi
16016                         fi
16017                         haveit=
16018                         for x in $LDFLAGS $LTLIBINTL; do
16020   acl_save_prefix="$prefix"
16021   prefix="$acl_final_prefix"
16022   acl_save_exec_prefix="$exec_prefix"
16023   exec_prefix="$acl_final_exec_prefix"
16024   eval x=\"$x\"
16025   exec_prefix="$acl_save_exec_prefix"
16026   prefix="$acl_save_prefix"
16028                           if test "X$x" = "X-L$additional_libdir"; then
16029                             haveit=yes
16030                             break
16031                           fi
16032                         done
16033                         if test -z "$haveit"; then
16034                           if test -d "$additional_libdir"; then
16035                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16036                           fi
16037                         fi
16038                       fi
16039                     fi
16040                     ;;
16041                   -R*)
16042                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16043                     if test "$enable_rpath" != no; then
16044                                                                   haveit=
16045                       for x in $rpathdirs; do
16046                         if test "X$x" = "X$dir"; then
16047                           haveit=yes
16048                           break
16049                         fi
16050                       done
16051                       if test -z "$haveit"; then
16052                         rpathdirs="$rpathdirs $dir"
16053                       fi
16054                                                                   haveit=
16055                       for x in $ltrpathdirs; do
16056                         if test "X$x" = "X$dir"; then
16057                           haveit=yes
16058                           break
16059                         fi
16060                       done
16061                       if test -z "$haveit"; then
16062                         ltrpathdirs="$ltrpathdirs $dir"
16063                       fi
16064                     fi
16065                     ;;
16066                   -l*)
16067                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16068                     ;;
16069                   *.la)
16070                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16071                     ;;
16072                   *)
16073                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16074                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16075                     ;;
16076                 esac
16077               done
16078             fi
16079           else
16080                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16081             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16082           fi
16083         fi
16084       fi
16085     done
16086   done
16087   if test "X$rpathdirs" != "X"; then
16088     if test -n "$acl_hardcode_libdir_separator"; then
16089                         alldirs=
16090       for found_dir in $rpathdirs; do
16091         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16092       done
16093             acl_save_libdir="$libdir"
16094       libdir="$alldirs"
16095       eval flag=\"$acl_hardcode_libdir_flag_spec\"
16096       libdir="$acl_save_libdir"
16097       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16098     else
16099             for found_dir in $rpathdirs; do
16100         acl_save_libdir="$libdir"
16101         libdir="$found_dir"
16102         eval flag=\"$acl_hardcode_libdir_flag_spec\"
16103         libdir="$acl_save_libdir"
16104         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16105       done
16106     fi
16107   fi
16108   if test "X$ltrpathdirs" != "X"; then
16109             for found_dir in $ltrpathdirs; do
16110       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16111     done
16112   fi
16114           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16115 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
16116 if eval \${$gt_func_gnugettext_libintl+:} false; then :
16117   $as_echo_n "(cached) " >&6
16118 else
16119   gt_save_CPPFLAGS="$CPPFLAGS"
16120             CPPFLAGS="$CPPFLAGS $INCINTL"
16121             gt_save_LIBS="$LIBS"
16122             LIBS="$LIBS $LIBINTL"
16123                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124 /* end confdefs.h.  */
16125 #include <libintl.h>
16126 $gt_revision_test_code
16127 extern int _nl_msg_cat_cntr;
16128 extern
16129 #ifdef __cplusplus
16130 "C"
16131 #endif
16132 const char *_nl_expand_alias (const char *);
16133 int
16134 main ()
16136 bindtextdomain ("", "");
16137 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16138   ;
16139   return 0;
16141 _ACEOF
16142 if ac_fn_c_try_link "$LINENO"; then :
16143   eval "$gt_func_gnugettext_libintl=yes"
16144 else
16145   eval "$gt_func_gnugettext_libintl=no"
16147 rm -f core conftest.err conftest.$ac_objext \
16148     conftest$ac_exeext conftest.$ac_ext
16149                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16150               LIBS="$LIBS $LIBICONV"
16151               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16152 /* end confdefs.h.  */
16153 #include <libintl.h>
16154 $gt_revision_test_code
16155 extern int _nl_msg_cat_cntr;
16156 extern
16157 #ifdef __cplusplus
16158 "C"
16159 #endif
16160 const char *_nl_expand_alias (const char *);
16161 int
16162 main ()
16164 bindtextdomain ("", "");
16165 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16166   ;
16167   return 0;
16169 _ACEOF
16170 if ac_fn_c_try_link "$LINENO"; then :
16171   LIBINTL="$LIBINTL $LIBICONV"
16172                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16173                 eval "$gt_func_gnugettext_libintl=yes"
16176 rm -f core conftest.err conftest.$ac_objext \
16177     conftest$ac_exeext conftest.$ac_ext
16178             fi
16179             CPPFLAGS="$gt_save_CPPFLAGS"
16180             LIBS="$gt_save_LIBS"
16182 eval ac_res=\$$gt_func_gnugettext_libintl
16183                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16184 $as_echo "$ac_res" >&6; }
16185         fi
16187                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16188            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16189                 && test "$PACKAGE" != gettext-runtime \
16190                 && test "$PACKAGE" != gettext-tools; }; then
16191           gt_use_preinstalled_gnugettext=yes
16192         else
16193                     LIBINTL=
16194           LTLIBINTL=
16195           INCINTL=
16196         fi
16200     if test -n "$INTL_MACOSX_LIBS"; then
16201       if test "$gt_use_preinstalled_gnugettext" = "yes" \
16202          || test "$nls_cv_use_gnu_gettext" = "yes"; then
16203                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16204         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16205       fi
16206     fi
16208     if test "$gt_use_preinstalled_gnugettext" = "yes" \
16209        || test "$nls_cv_use_gnu_gettext" = "yes"; then
16211 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
16213     else
16214       USE_NLS=no
16215     fi
16216   fi
16218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16219 $as_echo_n "checking whether to use NLS... " >&6; }
16220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16221 $as_echo "$USE_NLS" >&6; }
16222   if test "$USE_NLS" = "yes"; then
16223     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16224 $as_echo_n "checking where the gettext function comes from... " >&6; }
16225     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16226       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16227         gt_source="external libintl"
16228       else
16229         gt_source="libc"
16230       fi
16231     else
16232       gt_source="included intl directory"
16233     fi
16234     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16235 $as_echo "$gt_source" >&6; }
16236   fi
16238   if test "$USE_NLS" = "yes"; then
16240     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16241       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16242         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16243 $as_echo_n "checking how to link with libintl... " >&6; }
16244         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16245 $as_echo "$LIBINTL" >&6; }
16247   for element in $INCINTL; do
16248     haveit=
16249     for x in $CPPFLAGS; do
16251   acl_save_prefix="$prefix"
16252   prefix="$acl_final_prefix"
16253   acl_save_exec_prefix="$exec_prefix"
16254   exec_prefix="$acl_final_exec_prefix"
16255   eval x=\"$x\"
16256   exec_prefix="$acl_save_exec_prefix"
16257   prefix="$acl_save_prefix"
16259       if test "X$x" = "X$element"; then
16260         haveit=yes
16261         break
16262       fi
16263     done
16264     if test -z "$haveit"; then
16265       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16266     fi
16267   done
16269       fi
16272 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16275 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
16277     fi
16279         POSUB=po
16280   fi
16284     INTLLIBS="$LIBINTL"
16293 case $TERM in
16294        #   for the most important terminal types we directly know the sequences
16295        xterm|xterm*|vt220|vt220*)
16296                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
16297                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
16298        ;;
16299        vt100|vt100*|cygwin)
16300                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
16301                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
16302        ;;
16303        *)
16304                T_MD=''
16305                T_ME=''
16306        ;;
16307 esac
16308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16309 $as_echo "" >&6; }
16310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}IEEE Math Checks${T_ME}" >&5
16311 $as_echo "${T_MD}IEEE Math Checks${T_ME}" >&6; }
16315 for ac_func in fpclassify
16316 do :
16317   ac_fn_c_check_func "$LINENO" "fpclassify" "ac_cv_func_fpclassify"
16318 if test "x$ac_cv_func_fpclassify" = xyes; then :
16319   cat >>confdefs.h <<_ACEOF
16320 #define HAVE_FPCLASSIFY 1
16321 _ACEOF
16323 else
16324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify with <math.h>" >&5
16325 $as_echo_n "checking for fpclassify with <math.h>... " >&6; }
16326     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16327 /* end confdefs.h.  */
16328 #include <math.h>
16329 volatile int x;volatile float f;
16330 int
16331 main ()
16333 x = fpclassify(f)
16334   ;
16335   return 0;
16337 _ACEOF
16338 if ac_fn_c_try_link "$LINENO"; then :
16339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16340 $as_echo "yes" >&6; }
16341       $as_echo "#define HAVE_FPCLASSIFY 1" >>confdefs.h
16343 else
16344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16345 $as_echo "no" >&6; }
16347 rm -f core conftest.err conftest.$ac_objext \
16348     conftest$ac_exeext conftest.$ac_ext
16350 done
16353 for ac_func in isinf
16354 do :
16355   ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
16356 if test "x$ac_cv_func_isinf" = xyes; then :
16357   cat >>confdefs.h <<_ACEOF
16358 #define HAVE_ISINF 1
16359 _ACEOF
16361 else
16362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf with <math.h>" >&5
16363 $as_echo_n "checking for isinf with <math.h>... " >&6; }
16364     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16365 /* end confdefs.h.  */
16366 #include <math.h>
16367 volatile int x;volatile float f;
16368 int
16369 main ()
16371 x = isinf(f)
16372   ;
16373   return 0;
16375 _ACEOF
16376 if ac_fn_c_try_link "$LINENO"; then :
16377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16378 $as_echo "yes" >&6; }
16379       $as_echo "#define HAVE_ISINF 1" >>confdefs.h
16381 else
16382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16383 $as_echo "no" >&6; }
16385 rm -f core conftest.err conftest.$ac_objext \
16386     conftest$ac_exeext conftest.$ac_ext
16388 done
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isfinite is broken" >&5
16392 $as_echo_n "checking whether isfinite is broken... " >&6; }
16393 if ${ac_cv_have_broken_isfinite+:} false; then :
16394   $as_echo_n "(cached) " >&6
16395 else
16397 if test "$cross_compiling" = yes; then :
16399 case "${target}" in
16400   hppa*-*-hpux*) ac_cv_have_broken_isfinite=yes ;;
16401   *-solaris2.8) ac_cv_have_broken_isfinite=yes ;;
16402   *-solaris2.9) ac_cv_have_broken_isfinite=yes ;;
16403   *) ac_cv_have_broken_isfinite=no ;;
16404 esac
16405 else
16406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16407 /* end confdefs.h.  */
16409 #ifdef HAVE_MATH_H
16410 #include <math.h>
16411 #endif
16412 #ifdef HAVE_FLOAT_H
16413 #include <float.h>
16414 #endif
16415 int main ()
16417 #ifdef isfinite
16418 #ifdef LDBL_MAX
16419   if (!isfinite(LDBL_MAX)) return 1;
16420 #endif
16421 #ifdef DBL_MAX
16422   if (!isfinite(DBL_MAX)) return 1;
16423 #endif
16424 #endif
16425 return 0;
16427 _ACEOF
16428 if ac_fn_c_try_run "$LINENO"; then :
16429   ac_cv_have_broken_isfinite=no
16430 else
16431   ac_cv_have_broken_isfinite=yes
16433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16434   conftest.$ac_objext conftest.beam conftest.$ac_ext
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_isfinite" >&5
16440 $as_echo "$ac_cv_have_broken_isfinite" >&6; }
16442 case "${target}" in
16443   *-solaris2.8) ac_cv_have_broken_isfinite=yes ;;
16444   *-solaris2.9) ac_cv_have_broken_isfinite=yes ;;
16445 esac
16447 if test "x$ac_cv_have_broken_isfinite" = "xno"; then
16448   $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
16450 else
16451   for ac_func in finite
16452 do :
16453   ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
16454 if test "x$ac_cv_func_finite" = xyes; then :
16455   cat >>confdefs.h <<_ACEOF
16456 #define HAVE_FINITE 1
16457 _ACEOF
16459 else
16460   for ac_func in isfinite
16461 do :
16462   ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
16463 if test "x$ac_cv_func_isfinite" = xyes; then :
16464   cat >>confdefs.h <<_ACEOF
16465 #define HAVE_ISFINITE 1
16466 _ACEOF
16468 else
16469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
16470 $as_echo_n "checking for isfinite with <math.h>... " >&6; }
16471           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h.  */
16473 #include <math.h>
16474 volatile int x;volatile float f;
16475 int
16476 main ()
16478 x = isfinite(f)
16479   ;
16480   return 0;
16482 _ACEOF
16483 if ac_fn_c_try_link "$LINENO"; then :
16484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16485 $as_echo "yes" >&6; }
16486                 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
16488 else
16489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16490 $as_echo "no" >&6; }
16492 rm -f core conftest.err conftest.$ac_objext \
16493     conftest$ac_exeext conftest.$ac_ext
16495 done
16498 done
16503 ac_ext=c
16504 ac_cpp='$CPP $CPPFLAGS'
16505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16509 _cflags=${CFLAGS}
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works out of the box" >&5
16512 $as_echo_n "checking if IEEE math works out of the box... " >&6; }
16513 if ${rd_cv_ieee_works+:} false; then :
16514   $as_echo_n "(cached) " >&6
16515 else
16516   if test "$cross_compiling" = yes; then :
16517   $as_echo_n "(skipped ... cross-compiling) " >&6
16518   # Bypass further checks
16519   rd_cv_ieee_works=yes
16520 else
16521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522 /* end confdefs.h.  */
16524 #include "src/rrd_config_bottom.h"
16525 #include <stdio.h>
16526 int main(void){
16527     double rrdnan,rrdinf,rrdc,rrdzero;
16528     ;
16529     /* some math to see if we get a floating point exception */
16530     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
16531     rrdnan=0.0/rrdzero; /* especially here */
16532     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
16533                   /* at run time without sig fpe */
16534     rrdc = rrdinf + rrdnan;
16535     rrdc = rrdinf / rrdnan;
16536     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
16537     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
16538     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
16539     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
16540     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
16541     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
16542     return 0;
16543  }
16544 _ACEOF
16545 if ac_fn_c_try_run "$LINENO"; then :
16546   rd_cv_ieee_works=yes
16547 else
16548   rd_cv_ieee_works=no
16550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16551   conftest.$ac_objext conftest.beam conftest.$ac_ext
16556 if test x${rd_cv_ieee_works} = "xyes"; then
16557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16558 $as_echo "yes" >&6; }
16560 else
16561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16562 $as_echo "no" >&6; }
16563  CFLAGS="$_cflags -ieee"
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with the -ieee switch" >&5
16566 $as_echo_n "checking if IEEE math works with the -ieee switch... " >&6; }
16567 if ${rd_cv_ieee_switch+:} false; then :
16568   $as_echo_n "(cached) " >&6
16569 else
16570   if test "$cross_compiling" = yes; then :
16571   $as_echo_n "(skipped ... cross-compiling) " >&6
16572   # Bypass further checks
16573   rd_cv_ieee_works=yes
16574 else
16575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16576 /* end confdefs.h.  */
16578 #include "src/rrd_config_bottom.h"
16579 #include <stdio.h>
16580 int main(void){
16581     double rrdnan,rrdinf,rrdc,rrdzero;
16582     ;
16583     /* some math to see if we get a floating point exception */
16584     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
16585     rrdnan=0.0/rrdzero; /* especially here */
16586     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
16587                   /* at run time without sig fpe */
16588     rrdc = rrdinf + rrdnan;
16589     rrdc = rrdinf / rrdnan;
16590     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
16591     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
16592     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
16593     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
16594     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
16595     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
16596     return 0;
16597  }
16598 _ACEOF
16599 if ac_fn_c_try_run "$LINENO"; then :
16600   rd_cv_ieee_switch=yes
16601 else
16602   rd_cv_ieee_switch=no
16604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16605   conftest.$ac_objext conftest.beam conftest.$ac_ext
16610 if test x${rd_cv_ieee_switch} = "xyes"; then
16611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16612 $as_echo "yes" >&6; }
16614 else
16615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16616 $as_echo "no" >&6; }
16617  CFLAGS="$_cflags -qfloat=nofold"
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with the -qfloat=nofold switch" >&5
16620 $as_echo_n "checking if IEEE math works with the -qfloat=nofold switch... " >&6; }
16621 if ${rd_cv_ieee_nofold+:} false; then :
16622   $as_echo_n "(cached) " >&6
16623 else
16624   if test "$cross_compiling" = yes; then :
16625   $as_echo_n "(skipped ... cross-compiling) " >&6
16626   # Bypass further checks
16627   rd_cv_ieee_works=yes
16628 else
16629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h.  */
16632 #include "src/rrd_config_bottom.h"
16633 #include <stdio.h>
16634 int main(void){
16635     double rrdnan,rrdinf,rrdc,rrdzero;
16636     ;
16637     /* some math to see if we get a floating point exception */
16638     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
16639     rrdnan=0.0/rrdzero; /* especially here */
16640     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
16641                   /* at run time without sig fpe */
16642     rrdc = rrdinf + rrdnan;
16643     rrdc = rrdinf / rrdnan;
16644     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
16645     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
16646     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
16647     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
16648     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
16649     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
16650     return 0;
16651  }
16652 _ACEOF
16653 if ac_fn_c_try_run "$LINENO"; then :
16654   rd_cv_ieee_nofold=yes
16655 else
16656   rd_cv_ieee_nofold=no
16658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16659   conftest.$ac_objext conftest.beam conftest.$ac_ext
16664 if test x${rd_cv_ieee_nofold} = "xyes"; then
16665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16666 $as_echo "yes" >&6; }
16668 else
16669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16670 $as_echo "no" >&6; }
16671  CFLAGS="$_cflags -w -qflttrap=enable:zerodivide"
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with the -w -qflttrap=enable:zerodivide" >&5
16674 $as_echo_n "checking if IEEE math works with the -w -qflttrap=enable:zerodivide... " >&6; }
16675 if ${rd_cv_ieee_flttrap+:} false; then :
16676   $as_echo_n "(cached) " >&6
16677 else
16678   if test "$cross_compiling" = yes; then :
16679   $as_echo_n "(skipped ... cross-compiling) " >&6
16680   # Bypass further checks
16681   rd_cv_ieee_works=yes
16682 else
16683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16684 /* end confdefs.h.  */
16686 #include "src/rrd_config_bottom.h"
16687 #include <stdio.h>
16688 int main(void){
16689     double rrdnan,rrdinf,rrdc,rrdzero;
16690     ;
16691     /* some math to see if we get a floating point exception */
16692     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
16693     rrdnan=0.0/rrdzero; /* especially here */
16694     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
16695                   /* at run time without sig fpe */
16696     rrdc = rrdinf + rrdnan;
16697     rrdc = rrdinf / rrdnan;
16698     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
16699     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
16700     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
16701     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
16702     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
16703     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
16704     return 0;
16705  }
16706 _ACEOF
16707 if ac_fn_c_try_run "$LINENO"; then :
16708   rd_cv_ieee_flttrap=yes
16709 else
16710   rd_cv_ieee_flttrap=no
16712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16713   conftest.$ac_objext conftest.beam conftest.$ac_ext
16718 if test x${rd_cv_ieee_flttrap} = "xyes"; then
16719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16720 $as_echo "yes" >&6; }
16722 else
16723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16724 $as_echo "no" >&6; }
16725  CFLAGS="$_cflags -mieee"
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with the -mieee switch" >&5
16728 $as_echo_n "checking if IEEE math works with the -mieee switch... " >&6; }
16729 if ${rd_cv_ieee_mswitch+:} false; then :
16730   $as_echo_n "(cached) " >&6
16731 else
16732   if test "$cross_compiling" = yes; then :
16733   $as_echo_n "(skipped ... cross-compiling) " >&6
16734   # Bypass further checks
16735   rd_cv_ieee_works=yes
16736 else
16737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16738 /* end confdefs.h.  */
16740 #include "src/rrd_config_bottom.h"
16741 #include <stdio.h>
16742 int main(void){
16743     double rrdnan,rrdinf,rrdc,rrdzero;
16744     ;
16745     /* some math to see if we get a floating point exception */
16746     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
16747     rrdnan=0.0/rrdzero; /* especially here */
16748     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
16749                   /* at run time without sig fpe */
16750     rrdc = rrdinf + rrdnan;
16751     rrdc = rrdinf / rrdnan;
16752     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
16753     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
16754     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
16755     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
16756     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
16757     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
16758     return 0;
16759  }
16760 _ACEOF
16761 if ac_fn_c_try_run "$LINENO"; then :
16762   rd_cv_ieee_mswitch=yes
16763 else
16764   rd_cv_ieee_mswitch=no
16766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16767   conftest.$ac_objext conftest.beam conftest.$ac_ext
16772 if test x${rd_cv_ieee_mswitch} = "xyes"; then
16773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16774 $as_echo "yes" >&6; }
16776 else
16777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16778 $as_echo "no" >&6; }
16779  CFLAGS="$_cflags -q float=rndsngl"
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with the -q float=rndsngl switch" >&5
16782 $as_echo_n "checking if IEEE math works with the -q float=rndsngl switch... " >&6; }
16783 if ${rd_cv_ieee_qswitch+:} false; then :
16784   $as_echo_n "(cached) " >&6
16785 else
16786   if test "$cross_compiling" = yes; then :
16787   $as_echo_n "(skipped ... cross-compiling) " >&6
16788   # Bypass further checks
16789   rd_cv_ieee_works=yes
16790 else
16791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792 /* end confdefs.h.  */
16794 #include "src/rrd_config_bottom.h"
16795 #include <stdio.h>
16796 int main(void){
16797     double rrdnan,rrdinf,rrdc,rrdzero;
16798     ;
16799     /* some math to see if we get a floating point exception */
16800     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
16801     rrdnan=0.0/rrdzero; /* especially here */
16802     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
16803                   /* at run time without sig fpe */
16804     rrdc = rrdinf + rrdnan;
16805     rrdc = rrdinf / rrdnan;
16806     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
16807     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
16808     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
16809     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
16810     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
16811     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
16812     return 0;
16813  }
16814 _ACEOF
16815 if ac_fn_c_try_run "$LINENO"; then :
16816   rd_cv_ieee_qswitch=yes
16817 else
16818   rd_cv_ieee_qswitch=no
16820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16821   conftest.$ac_objext conftest.beam conftest.$ac_ext
16826 if test x${rd_cv_ieee_qswitch} = "xyes"; then
16827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16828 $as_echo "yes" >&6; }
16830 else
16831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16832 $as_echo "no" >&6; }
16833  CFLAGS="$_cflags -OPT:IEEE_NaN_inf=ON"
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch" >&5
16836 $as_echo_n "checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch... " >&6; }
16837 if ${rd_cv_ieee_ieeenaninfswitch+:} false; then :
16838   $as_echo_n "(cached) " >&6
16839 else
16840   if test "$cross_compiling" = yes; then :
16841   $as_echo_n "(skipped ... cross-compiling) " >&6
16842   # Bypass further checks
16843   rd_cv_ieee_works=yes
16844 else
16845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16846 /* end confdefs.h.  */
16848 #include "src/rrd_config_bottom.h"
16849 #include <stdio.h>
16850 int main(void){
16851     double rrdnan,rrdinf,rrdc,rrdzero;
16852     ;
16853     /* some math to see if we get a floating point exception */
16854     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
16855     rrdnan=0.0/rrdzero; /* especially here */
16856     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
16857                   /* at run time without sig fpe */
16858     rrdc = rrdinf + rrdnan;
16859     rrdc = rrdinf / rrdnan;
16860     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
16861     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
16862     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
16863     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
16864     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
16865     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
16866     return 0;
16867  }
16868 _ACEOF
16869 if ac_fn_c_try_run "$LINENO"; then :
16870   rd_cv_ieee_ieeenaninfswitch=yes
16871 else
16872   rd_cv_ieee_ieeenaninfswitch=no
16874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16875   conftest.$ac_objext conftest.beam conftest.$ac_ext
16880 if test x${rd_cv_ieee_ieeenaninfswitch} = "xyes"; then
16881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16882 $as_echo "yes" >&6; }
16884 else
16885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16886 $as_echo "no" >&6; }
16887  CFLAGS="$_cflags -OPT:IEEE_comparisons=ON"
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch" >&5
16890 $as_echo_n "checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch... " >&6; }
16891 if ${rd_cv_ieee_ieeecmpswitch+:} false; then :
16892   $as_echo_n "(cached) " >&6
16893 else
16894   if test "$cross_compiling" = yes; then :
16895   $as_echo_n "(skipped ... cross-compiling) " >&6
16896   # Bypass further checks
16897   rd_cv_ieee_works=yes
16898 else
16899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16900 /* end confdefs.h.  */
16902 #include "src/rrd_config_bottom.h"
16903 #include <stdio.h>
16904 int main(void){
16905     double rrdnan,rrdinf,rrdc,rrdzero;
16906     ;
16907     /* some math to see if we get a floating point exception */
16908     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
16909     rrdnan=0.0/rrdzero; /* especially here */
16910     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
16911                   /* at run time without sig fpe */
16912     rrdc = rrdinf + rrdnan;
16913     rrdc = rrdinf / rrdnan;
16914     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
16915     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
16916     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
16917     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
16918     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
16919     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
16920     return 0;
16921  }
16922 _ACEOF
16923 if ac_fn_c_try_run "$LINENO"; then :
16924   rd_cv_ieee_ieeecmpswitch=yes
16925 else
16926   rd_cv_ieee_ieeecmpswitch=no
16928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16929   conftest.$ac_objext conftest.beam conftest.$ac_ext
16934 if test x${rd_cv_ieee_ieeecmpswitch} = "xyes"; then
16935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16936 $as_echo "yes" >&6; }
16938 else
16939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16940 $as_echo "no" >&6; }
16941  CFLAGS=$_cflags
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with fpsetmask(0)" >&5
16944 $as_echo_n "checking if IEEE math works with fpsetmask(0)... " >&6; }
16945 if ${rd_cv_ieee_mask+:} false; then :
16946   $as_echo_n "(cached) " >&6
16947 else
16948   if test "$cross_compiling" = yes; then :
16949   $as_echo_n "(skipped ... cross-compiling) " >&6
16950   # Bypass further checks
16951   rd_cv_ieee_works=yes
16952 else
16953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954 /* end confdefs.h.  */
16955 #include <floatingpoint.h>
16956 #include "src/rrd_config_bottom.h"
16957 #include <stdio.h>
16958 int main(void){
16959     double rrdnan,rrdinf,rrdc,rrdzero;
16960     fpsetmask(0);
16961     /* some math to see if we get a floating point exception */
16962     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
16963     rrdnan=0.0/rrdzero; /* especially here */
16964     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
16965                   /* at run time without sig fpe */
16966     rrdc = rrdinf + rrdnan;
16967     rrdc = rrdinf / rrdnan;
16968     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
16969     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
16970     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
16971     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
16972     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
16973     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
16974     return 0;
16975  }
16976 _ACEOF
16977 if ac_fn_c_try_run "$LINENO"; then :
16978   rd_cv_ieee_mask=yes
16979 else
16980   rd_cv_ieee_mask=no
16982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16983   conftest.$ac_objext conftest.beam conftest.$ac_ext
16988 if test x${rd_cv_ieee_mask} = "xyes"; then
16989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16990 $as_echo "yes" >&6; }
16991  $as_echo "#define MUST_DISABLE_FPMASK 1" >>confdefs.h
16993                  PERLFLAGS="CCFLAGS=-DMUST_DISABLE_FPMASK"
16994 else
16995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16996 $as_echo "no" >&6; }
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with signal(SIGFPE,SIG_IGN)" >&5
16999 $as_echo_n "checking if IEEE math works with signal(SIGFPE,SIG_IGN)... " >&6; }
17000 if ${rd_cv_ieee_sigfpe+:} false; then :
17001   $as_echo_n "(cached) " >&6
17002 else
17003   if test "$cross_compiling" = yes; then :
17004   $as_echo_n "(skipped ... cross-compiling) " >&6
17005   # Bypass further checks
17006   rd_cv_ieee_works=yes
17007 else
17008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17009 /* end confdefs.h.  */
17010 #include <signal.h>
17011 #include "src/rrd_config_bottom.h"
17012 #include <stdio.h>
17013 int main(void){
17014     double rrdnan,rrdinf,rrdc,rrdzero;
17015     signal(SIGFPE,SIG_IGN);
17016     /* some math to see if we get a floating point exception */
17017     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
17018     rrdnan=0.0/rrdzero; /* especially here */
17019     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
17020                   /* at run time without sig fpe */
17021     rrdc = rrdinf + rrdnan;
17022     rrdc = rrdinf / rrdnan;
17023     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
17024     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
17025     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
17026     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
17027     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
17028     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
17029     return 0;
17030  }
17031 _ACEOF
17032 if ac_fn_c_try_run "$LINENO"; then :
17033   rd_cv_ieee_sigfpe=yes
17034 else
17035   rd_cv_ieee_sigfpe=no
17037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17038   conftest.$ac_objext conftest.beam conftest.$ac_ext
17043 if test x${rd_cv_ieee_sigfpe} = "xyes"; then
17044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17045 $as_echo "yes" >&6; }
17046  $as_echo "#define MUST_DISABLE_SIGFPE 1" >>confdefs.h
17048                    PERLFLAGS="CCFLAGS=-DMUST_DISABLE_SIGFPE"
17049 else
17050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17051 $as_echo "no" >&6; }
17052  as_fn_error $? "
17053 Your Compiler does not do propper IEEE math ... Please find out how to
17054 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
17055 Check config.log to see what went wrong ...
17056 " "$LINENO" 5
17088 ac_ext=c
17089 ac_cpp='$CPP $CPPFLAGS'
17090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17098 case $TERM in
17099        #   for the most important terminal types we directly know the sequences
17100        xterm|xterm*|vt220|vt220*)
17101                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
17102                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
17103        ;;
17104        vt100|vt100*|cygwin)
17105                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
17106                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
17107        ;;
17108        *)
17109                T_MD=''
17110                T_ME=''
17111        ;;
17112 esac
17113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
17114 $as_echo "" >&6; }
17115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Resolve Portability Issues${T_ME}" >&5
17116 $as_echo "${T_MD}Resolve Portability Issues${T_ME}" >&6; }
17121         { $as_echo "$as_me:${as_lineno-$LINENO}: checking tm_gmtoff in struct tm" >&5
17122 $as_echo_n "checking tm_gmtoff in struct tm... " >&6; }
17123 if ${gq_cv_have_tm_gmtoff+:} false; then :
17124   $as_echo_n "(cached) " >&6
17125 else
17126   gq_cv_have_tm_gmtoff=no
17127                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128 /* end confdefs.h.  */
17129 #include <time.h>
17130                                 #include <$ac_cv_struct_tm>
17132 int
17133 main ()
17135 struct tm t;
17136                                 t.tm_gmtoff = 0;
17137                                 exit(0);
17139   ;
17140   return 0;
17142 _ACEOF
17143 if ac_fn_c_try_compile "$LINENO"; then :
17144   gq_cv_have_tm_gmtoff=yes
17147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gq_cv_have_tm_gmtoff" >&5
17151 $as_echo "$gq_cv_have_tm_gmtoff" >&6; }
17153         { $as_echo "$as_me:${as_lineno-$LINENO}: checking __tm_gmtoff in struct tm" >&5
17154 $as_echo_n "checking __tm_gmtoff in struct tm... " >&6; }
17155 if ${gq_cv_have___tm_gmtoff+:} false; then :
17156   $as_echo_n "(cached) " >&6
17157 else
17158   gq_cv_have___tm_gmtoff=no
17159                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17160 /* end confdefs.h.  */
17161 #include <time.h>
17162                                 #include <$ac_cv_struct_tm>
17164 int
17165 main ()
17167 struct tm t;
17168                                 t.__tm_gmtoff = 0;
17169                                 exit(0);
17171   ;
17172   return 0;
17174 _ACEOF
17175 if ac_fn_c_try_compile "$LINENO"; then :
17176   gq_cv_have___tm_gmtoff=yes
17179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gq_cv_have___tm_gmtoff" >&5
17183 $as_echo "$gq_cv_have___tm_gmtoff" >&6; }
17185         if test "$gq_cv_have_tm_gmtoff" = yes ; then
17187 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
17190 $as_echo "#define TM_GMTOFF tm_gmtoff" >>confdefs.h
17192         elif test "$gq_cv_have___tm_gmtoff" = yes ; then
17193                 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
17195                 $as_echo "#define TM_GMTOFF __tm_gmtoff" >>confdefs.h
17197         else
17198                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5
17199 $as_echo_n "checking for timezone... " >&6; }
17200 if ${ac_cv_var_timezone+:} false; then :
17201   $as_echo_n "(cached) " >&6
17202 else
17203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17204 /* end confdefs.h.  */
17206                                              #include <time.h>
17207                                              extern long int timezone;
17209 int
17210 main ()
17212 long int l = timezone;
17213   ;
17214   return 0;
17216 _ACEOF
17217 if ac_fn_c_try_link "$LINENO"; then :
17218   ac_cv_var_timezone=yes
17219 else
17220   ac_cv_var_timezone=no
17222 rm -f core conftest.err conftest.$ac_objext \
17223     conftest$ac_exeext conftest.$ac_ext
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_timezone" >&5
17226 $as_echo "$ac_cv_var_timezone" >&6; }
17227                 if test $ac_cv_var_timezone = yes; then
17229 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
17231                 fi
17232         fi
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msync with MS_ASYNC updates the files mtime" >&5
17237 $as_echo_n "checking if msync with MS_ASYNC updates the files mtime... " >&6; }
17238 if ${rd_cv_ms_async+:} false; then :
17239   $as_echo_n "(cached) " >&6
17240 else
17241   if test "$cross_compiling" = yes; then :
17242   :
17243 else
17244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17245 /* end confdefs.h.  */
17247 #include <fcntl.h>
17248 #include <sys/types.h>
17249 #include <sys/stat.h>
17250 #include <unistd.h>
17251 #include <stdio.h>
17252 #include <sys/mman.h>
17253 #include <stdlib.h>
17254 #include <utime.h>
17255 #include <signal.h>
17256 void timeout (int i) { exit (1); }
17257 int main(void){
17258         int fd;
17259         struct stat stbuf;
17260         char *addr;
17261         int res;
17262         char temp[] = "mmaptestXXXXXX";
17263         struct utimbuf newtime;
17264         time_t create_ts;
17265         fd = mkstemp(temp);
17266         if (fd == -1){
17267             perror(temp);
17268             return 1;
17269         }
17270         write(fd,"12345\n", 6);
17271         stat(temp, &stbuf);
17272         create_ts = stbuf.st_mtime;
17273         newtime.actime = 0;
17274         newtime.modtime = 0;
17275         utime(temp,&newtime);
17276         addr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
17277         if (addr == MAP_FAILED) {
17278             perror("mmap");
17279             goto bad_exit;
17280         }
17281         addr[0]='x';
17282         res = msync(addr, 4, MS_ASYNC);
17283         if (res == -1) {
17284            perror("msync");
17285            goto bad_exit;
17286         }
17287         res = close(fd);
17288         if (res == -1) {
17289            perror("close");
17290            goto bad_exit;
17291         }
17292         /* there were reports of sync hanging
17293            so we better set an alarm */
17294         signal(SIGALRM,&timeout);
17295         alarm(5);
17296         /* The ASYNC means that we schedule the msync and return immediately.
17297            Since we want to see if the modification time is updated upon
17298            msync(), we have to make sure that our asynchronous request
17299            completes before we stat below. In a real application, the
17300            request would be completed at a random time in the future
17301            but for this test we do not want to wait an arbitrary amount of
17302            time, so force a commit now.  */
17303         sync();
17304         stat(temp, &stbuf);
17305         if (create_ts > stbuf.st_mtime){
17306            goto bad_exit;
17307         }
17308         unlink(temp);
17309         return 0;
17310      bad_exit:
17311         unlink(temp);
17312         return 1;
17315 _ACEOF
17316 if ac_fn_c_try_run "$LINENO"; then :
17317   rd_cv_ms_async=ok
17318 else
17319   rd_cv_ms_async=broken
17321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17322   conftest.$ac_objext conftest.beam conftest.$ac_ext
17329 if test "${rd_cv_ms_async}" = "ok"; then
17330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17331 $as_echo "yes" >&6; }
17332 else
17334 cat >>confdefs.h <<_ACEOF
17335 #define HAVE_BROKEN_MS_ASYNC 1
17336 _ACEOF
17338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17339 $as_echo "no" >&6; }
17340  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: With mmap access, your platform fails to update the files" >&5
17341 $as_echo "$as_me: WARNING: With mmap access, your platform fails to update the files" >&2;}
17342  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mtime. RRDtool will work around this problem by calling utime on each" >&5
17343 $as_echo "$as_me: WARNING: mtime. RRDtool will work around this problem by calling utime on each" >&2;}
17344  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: file it opens for rw access." >&5
17345 $as_echo "$as_me: WARNING: file it opens for rw access." >&2;}
17346  sleep 2
17351 for ac_func in _NL_TIME_WEEK_1STDAY
17352 do :
17353   ac_fn_c_check_func "$LINENO" "_NL_TIME_WEEK_1STDAY" "ac_cv_func__NL_TIME_WEEK_1STDAY"
17354 if test "x$ac_cv_func__NL_TIME_WEEK_1STDAY" = xyes; then :
17355   cat >>confdefs.h <<_ACEOF
17356 #define HAVE__NL_TIME_WEEK_1STDAY 1
17357 _ACEOF
17359 else
17360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(_NL_TIME_WEEK_1STDAY) with langinfo.h" >&5
17361 $as_echo_n "checking for nl_langinfo(_NL_TIME_WEEK_1STDAY) with langinfo.h... " >&6; }
17362     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17363 /* end confdefs.h.  */
17364 #include <langinfo.h>
17365 int
17366 main ()
17368 nl_langinfo(_NL_TIME_WEEK_1STDAY)
17369   ;
17370   return 0;
17372 _ACEOF
17373 if ac_fn_c_try_link "$LINENO"; then :
17374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17375 $as_echo "yes" >&6; }
17376       $as_echo "#define HAVE__NL_TIME_WEEK_1STDAY 1" >>confdefs.h
17378 else
17379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17380 $as_echo "no" >&6; }
17382 rm -f core conftest.err conftest.$ac_objext \
17383     conftest$ac_exeext conftest.$ac_ext
17385 done
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
17391 $as_echo_n "checking for opterr... " >&6; }
17392 if ${rd_cv_var_int_opterr+:} false; then :
17393   $as_echo_n "(cached) " >&6
17394 else
17395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17396 /* end confdefs.h.  */
17397 #include <unistd.h>
17398 int
17399 main ()
17401 extern int opterr; opterr = 1;
17402   ;
17403   return 0;
17405 _ACEOF
17406 if ac_fn_c_try_link "$LINENO"; then :
17407   rd_cv_var_int_opterr=yes
17408 else
17409   rd_cv_var_int_opterr=no
17411 rm -f core conftest.err conftest.$ac_objext \
17412     conftest$ac_exeext conftest.$ac_ext
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rd_cv_var_int_opterr" >&5
17415 $as_echo "$rd_cv_var_int_opterr" >&6; }
17416 if test x"$rd_cv_var_int_opterr" = x"yes"; then
17418 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
17422 build_getopt=no
17423 RRD_GETOPT_LONG="LIBC_HAS_GETOPT_LONG"
17424 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
17425 if test "x$ac_cv_func_getopt_long" = xyes; then :
17427 else
17429 RRD_GETOPT_LONG="getopt_long"
17430 build_getopt=yes
17435  if test $build_getopt = yes; then
17436   BUILD_GETOPT_TRUE=
17437   BUILD_GETOPT_FALSE='#'
17438 else
17439   BUILD_GETOPT_TRUE='#'
17440   BUILD_GETOPT_FALSE=
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if realloc can deal with NULL" >&5
17446 $as_echo_n "checking if realloc can deal with NULL... " >&6; }
17447 if ${rd_cv_null_realloc+:} false; then :
17448   $as_echo_n "(cached) " >&6
17449 else
17450   if test "$cross_compiling" = yes; then :
17451   :
17452 else
17453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17454 /* end confdefs.h.  */
17455 #include <stdlib.h>
17456               int main(void){
17457               char *x = NULL;
17458               x = realloc (x,10);
17459               if (x==NULL) return 1;
17460               return 0;
17461              }
17462 _ACEOF
17463 if ac_fn_c_try_run "$LINENO"; then :
17464   rd_cv_null_realloc=yes
17465 else
17466   rd_cv_null_realloc=nope
17468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17469   conftest.$ac_objext conftest.beam conftest.$ac_ext
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rd_cv_null_realloc" >&5
17474 $as_echo "$rd_cv_null_realloc" >&6; }
17476 if test x"$rd_cv_null_realloc" = xnope; then
17477 $as_echo "#define NO_NULL_REALLOC 1" >>confdefs.h
17481 ac_ext=c
17482 ac_cpp='$CPP $CPPFLAGS'
17483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ctime_r need special care to act posixly correct" >&5
17488 $as_echo_n "checking if ctime_r need special care to act posixly correct... " >&6; }
17489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17490 /* end confdefs.h.  */
17491 #include <time.h>
17492 int
17493 main ()
17495 ctime_r(NULL,NULL,0)
17497   ;
17498   return 0;
17500 _ACEOF
17501 if ac_fn_c_try_link "$LINENO"; then :
17502    CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
17503       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17504 /* end confdefs.h.  */
17505 #include <time.h>
17506 int
17507 main ()
17509 ctime_r(NULL,NULL)
17511   ;
17512   return 0;
17514 _ACEOF
17515 if ac_fn_c_try_link "$LINENO"; then :
17516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, this seems to be solaris style" >&5
17517 $as_echo "yes, this seems to be solaris style" >&6; }
17518 else
17519   as_fn_error $? "Can't figure how to compile ctime_r" "$LINENO" 5
17522 rm -f core conftest.err conftest.$ac_objext \
17523     conftest$ac_exeext conftest.$ac_ext
17525 else
17526    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17527 /* end confdefs.h.  */
17528 #include <time.h>
17529 int
17530 main ()
17532 ctime_r(NULL,NULL)
17534   ;
17535   return 0;
17537 _ACEOF
17538 if ac_fn_c_try_link "$LINENO"; then :
17539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17540 $as_echo "no" >&6; }
17541 else
17542   as_fn_error $? "Can't figure how to compile ctime_r" "$LINENO" 5
17545 rm -f core conftest.err conftest.$ac_objext \
17546     conftest$ac_exeext conftest.$ac_ext
17550 rm -f core conftest.err conftest.$ac_objext \
17551     conftest$ac_exeext conftest.$ac_ext
17552 ac_ext=c
17553 ac_cpp='$CPP $CPPFLAGS'
17554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17563 if test $enable_pthread != no; then
17566 ac_ext=c
17567 ac_cpp='$CPP $CPPFLAGS'
17568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17572 acx_pthread_ok=no
17574 # We used to check for pthread.h first, but this fails if pthread.h
17575 # requires special compiler flags (e.g. on True64 or Sequent).
17576 # It gets checked for in the link test anyway.
17578 # First of all, check if the user has set any of the PTHREAD_LIBS,
17579 # etcetera environment variables, and if threads linking works using
17580 # them:
17581 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17582         save_CFLAGS="$CFLAGS"
17583         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17584         save_LIBS="$LIBS"
17585         LIBS="$PTHREAD_LIBS $LIBS"
17586         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17587 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17588         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17589 /* end confdefs.h.  */
17591 /* Override any GCC internal prototype to avoid an error.
17592    Use char because int might match the return type of a GCC
17593    builtin and then its argument prototype would still apply.  */
17594 #ifdef __cplusplus
17595 extern "C"
17596 #endif
17597 char pthread_join ();
17598 int
17599 main ()
17601 return pthread_join ();
17602   ;
17603   return 0;
17605 _ACEOF
17606 if ac_fn_c_try_link "$LINENO"; then :
17607   acx_pthread_ok=yes
17609 rm -f core conftest.err conftest.$ac_objext \
17610     conftest$ac_exeext conftest.$ac_ext
17611         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17612 $as_echo "$acx_pthread_ok" >&6; }
17613         if test x"$acx_pthread_ok" = xno; then
17614                 PTHREAD_LIBS=""
17615                 PTHREAD_CFLAGS=""
17616         fi
17617         LIBS="$save_LIBS"
17618         CFLAGS="$save_CFLAGS"
17621 # We must check for the threads library under a number of different
17622 # names; the ordering is very important because some systems
17623 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17624 # libraries is broken (non-POSIX).
17626 # Create a list of thread flags to try.  Items starting with a "-" are
17627 # C compiler flags, and other items are library names, except for "none"
17628 # which indicates that we try without any flags at all, and "pthread-config"
17629 # which is a program returning the flags for the Pth emulation library.
17631 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17633 # The ordering *is* (sometimes) important.  Some notes on the
17634 # individual items follow:
17636 # pthreads: AIX (must check this before -lpthread)
17637 # none: in case threads are in libc; should be tried before -Kthread and
17638 #       other compiler flags to prevent continual compiler warnings
17639 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17640 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17641 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17642 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17643 # -pthreads: Solaris/gcc
17644 # -mthreads: Mingw32/gcc, Lynx/gcc
17645 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17646 #      doesn't hurt to check since this sometimes defines pthreads too;
17647 #      also defines -D_REENTRANT)
17648 # pthread: Linux, etcetera
17649 # --thread-safe: KAI C++
17650 # pthread-config: use pthread-config program (for GNU Pth library)
17652 case "${host_cpu}-${host_os}" in
17653         *solaris*)
17655         # On Solaris (at least, for some versions), libc contains stubbed
17656         # (non-functional) versions of the pthreads routines, so link-based
17657         # tests will erroneously succeed.  (We need to link with -pthread or
17658         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
17659         # a function called by this macro, so we could check for that, but
17660         # who knows whether they'll stub that too in a future libc.)  So,
17661         # we'll just look for -pthreads and -lpthread first:
17663         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
17664         ;;
17665 esac
17667 if test x"$acx_pthread_ok" = xno; then
17668 for flag in $acx_pthread_flags; do
17670         case $flag in
17671                 none)
17672                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17673 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
17674                 ;;
17676                 -*)
17677                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17678 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
17679                 PTHREAD_CFLAGS="$flag"
17680                 ;;
17682                 pthread-config)
17683                 # Extract the first word of "pthread-config", so it can be a program name with args.
17684 set dummy pthread-config; ac_word=$2
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17686 $as_echo_n "checking for $ac_word... " >&6; }
17687 if ${ac_cv_prog_acx_pthread_config+:} false; then :
17688   $as_echo_n "(cached) " >&6
17689 else
17690   if test -n "$acx_pthread_config"; then
17691   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17692 else
17693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17694 for as_dir in $PATH
17696   IFS=$as_save_IFS
17697   test -z "$as_dir" && as_dir=.
17698     for ac_exec_ext in '' $ac_executable_extensions; do
17699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17700     ac_cv_prog_acx_pthread_config="yes"
17701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17702     break 2
17703   fi
17704 done
17705   done
17706 IFS=$as_save_IFS
17708   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17711 acx_pthread_config=$ac_cv_prog_acx_pthread_config
17712 if test -n "$acx_pthread_config"; then
17713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
17714 $as_echo "$acx_pthread_config" >&6; }
17715 else
17716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17717 $as_echo "no" >&6; }
17721                 if test x"$acx_pthread_config" = xno; then continue; fi
17722                 PTHREAD_CFLAGS="`pthread-config --cflags`"
17723                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17724                 ;;
17726                 *)
17727                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17728 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17729                 PTHREAD_LIBS="-l$flag"
17730                 ;;
17731         esac
17733         save_LIBS="$LIBS"
17734         save_CFLAGS="$CFLAGS"
17735         LIBS="$PTHREAD_LIBS $LIBS"
17736         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17738         # Check for various functions.  We must include pthread.h,
17739         # since some functions may be macros.  (On the Sequent, we
17740         # need a special flag -Kthread to make this header compile.)
17741         # We check for pthread_join because it is in -lpthread on IRIX
17742         # while pthread_create is in libc.  We check for pthread_attr_init
17743         # due to DEC craziness with -lpthreads.  We check for
17744         # pthread_cleanup_push because it is one of the few pthread
17745         # functions on Solaris that doesn't have a non-functional libc stub.
17746         # We try pthread_create on general principles.
17747         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17748 /* end confdefs.h.  */
17749 #include <pthread.h>
17750 int
17751 main ()
17753 pthread_t th; pthread_join(th, 0);
17754                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
17755                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17756   ;
17757   return 0;
17759 _ACEOF
17760 if ac_fn_c_try_link "$LINENO"; then :
17761   acx_pthread_ok=yes
17763 rm -f core conftest.err conftest.$ac_objext \
17764     conftest$ac_exeext conftest.$ac_ext
17766         LIBS="$save_LIBS"
17767         CFLAGS="$save_CFLAGS"
17769         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17770 $as_echo "$acx_pthread_ok" >&6; }
17771         if test "x$acx_pthread_ok" = xyes; then
17772                 break;
17773         fi
17775         PTHREAD_LIBS=""
17776         PTHREAD_CFLAGS=""
17777 done
17780 # Various other checks:
17781 if test "x$acx_pthread_ok" = xyes; then
17782         save_LIBS="$LIBS"
17783         LIBS="$PTHREAD_LIBS $LIBS"
17784         save_CFLAGS="$CFLAGS"
17785         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17787         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17788         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17789 $as_echo_n "checking for joinable pthread attribute... " >&6; }
17790         attr_name=unknown
17791         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17792             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17793 /* end confdefs.h.  */
17794 #include <pthread.h>
17795 int
17796 main ()
17798 int attr=$attr;
17799   ;
17800   return 0;
17802 _ACEOF
17803 if ac_fn_c_try_link "$LINENO"; then :
17804   attr_name=$attr; break
17806 rm -f core conftest.err conftest.$ac_objext \
17807     conftest$ac_exeext conftest.$ac_ext
17808         done
17809         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17810 $as_echo "$attr_name" >&6; }
17811         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17813 cat >>confdefs.h <<_ACEOF
17814 #define PTHREAD_CREATE_JOINABLE $attr_name
17815 _ACEOF
17817         fi
17819         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17820 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17821         x_rflag=no
17822         case "${host_cpu}-${host_os}" in
17823             *-aix* | *-freebsd* | *-darwin*) x_rflag="-D_THREAD_SAFE";;
17824             *solaris* | *-osf* | *-hpux*) x_rflag="-D_REENTRANT";;
17825             *-linux* | *-k*bsd*-gnu*)
17826             if test x"$PTHREAD_CFLAGS" = "x-pthread"; then
17827                 # For Linux/gcc "-pthread" implies "-lpthread". We need, however, to make this explicit
17828                 # in PTHREAD_LIBS such that a shared library to be built properly depends on libpthread.
17829                 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
17830             fi;;
17831         esac
17832         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${x_rflag}" >&5
17833 $as_echo "${x_rflag}" >&6; }
17834         if test "x$x_rflag" != xno; then
17835             PTHREAD_CFLAGS="$x_rflag $PTHREAD_CFLAGS"
17836         fi
17838         LIBS="$save_LIBS"
17839         CFLAGS="$save_CFLAGS"
17841         # More AIX lossage: must compile with cc_r
17842         # Extract the first word of "cc_r", so it can be a program name with args.
17843 set dummy cc_r; ac_word=$2
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17845 $as_echo_n "checking for $ac_word... " >&6; }
17846 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
17847   $as_echo_n "(cached) " >&6
17848 else
17849   if test -n "$PTHREAD_CC"; then
17850   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17851 else
17852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17853 for as_dir in $PATH
17855   IFS=$as_save_IFS
17856   test -z "$as_dir" && as_dir=.
17857     for ac_exec_ext in '' $ac_executable_extensions; do
17858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17859     ac_cv_prog_PTHREAD_CC="cc_r"
17860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17861     break 2
17862   fi
17863 done
17864   done
17865 IFS=$as_save_IFS
17867   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
17870 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17871 if test -n "$PTHREAD_CC"; then
17872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17873 $as_echo "$PTHREAD_CC" >&6; }
17874 else
17875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17876 $as_echo "no" >&6; }
17880 else
17881         PTHREAD_CC="$CC"
17888 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17889 if test x"$acx_pthread_ok" = xyes; then
17891     MULTITHREAD_CFLAGS=$PTHREAD_CFLAGS
17892     MULTITHREAD_LDFLAGS=$PTHREAD_LIBS
17894         :
17895 else
17896         acx_pthread_ok=no
17899 ac_ext=c
17900 ac_cpp='$CPP $CPPFLAGS'
17901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17909 if test  "x$x_rflag" != "xno"; then
17910    CPPFLAGS="$CPPFLAGS $x_rflag"
17913  if test $enable_pthread != no; then
17914   BUILD_MULTITHREAD_TRUE=
17915   BUILD_MULTITHREAD_FALSE='#'
17916 else
17917   BUILD_MULTITHREAD_TRUE='#'
17918   BUILD_MULTITHREAD_FALSE=
17922 ac_ext=c
17923 ac_cpp='$CPP $CPPFLAGS'
17924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking do we need malloc/malloc.h" >&5
17929 $as_echo_n "checking do we need malloc/malloc.h... " >&6; }
17930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17931 /* end confdefs.h.  */
17932 #include <stdlib.h>
17933 int
17934 main ()
17936 malloc(1)
17938   ;
17939   return 0;
17941 _ACEOF
17942 if ac_fn_c_try_link "$LINENO"; then :
17943    { $as_echo "$as_me:${as_lineno-$LINENO}: result: nope, works out of the box" >&5
17944 $as_echo "nope, works out of the box" >&6; }
17945 else
17946    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17947 /* end confdefs.h.  */
17948 #include <stdlib.h>
17949                   #include <malloc/malloc.h>
17950 int
17951 main ()
17953 malloc(1)
17955   ;
17956   return 0;
17958 _ACEOF
17959 if ac_fn_c_try_link "$LINENO"; then :
17961            $as_echo "#define MUST_HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
17963            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes we do" >&5
17964 $as_echo "yes we do" >&6; }
17965 else
17966   as_fn_error $? "Can not figure how to compile malloc" "$LINENO" 5
17969 rm -f core conftest.err conftest.$ac_objext \
17970     conftest$ac_exeext conftest.$ac_ext
17974 rm -f core conftest.err conftest.$ac_objext \
17975     conftest$ac_exeext conftest.$ac_ext
17976 ac_ext=c
17977 ac_cpp='$CPP $CPPFLAGS'
17978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17983 # The cast to long int works around a bug in the HP C Compiler
17984 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17985 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17986 # This bug is HP SR number 8606223364.
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
17988 $as_echo_n "checking size of time_t... " >&6; }
17989 if ${ac_cv_sizeof_time_t+:} false; then :
17990   $as_echo_n "(cached) " >&6
17991 else
17992   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
17994 else
17995   if test "$ac_cv_type_time_t" = yes; then
17996      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17998 as_fn_error 77 "cannot compute sizeof (time_t)
17999 See \`config.log' for more details" "$LINENO" 5; }
18000    else
18001      ac_cv_sizeof_time_t=0
18002    fi
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
18007 $as_echo "$ac_cv_sizeof_time_t" >&6; }
18011 cat >>confdefs.h <<_ACEOF
18012 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
18013 _ACEOF
18018 case $TERM in
18019        #   for the most important terminal types we directly know the sequences
18020        xterm|xterm*|vt220|vt220*)
18021                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
18022                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
18023        ;;
18024        vt100|vt100*|cygwin)
18025                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
18026                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
18027        ;;
18028        *)
18029                T_MD=''
18030                T_ME=''
18031        ;;
18032 esac
18033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
18034 $as_echo "" >&6; }
18035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Find 3rd-Party Libraries${T_ME}" >&5
18036 $as_echo "${T_MD}Find 3rd-Party Libraries${T_ME}" >&6; }
18039 have_libdbi=no
18041 # Check whether --enable-libdbi was given.
18042 if test "${enable_libdbi+set}" = set; then :
18043   enableval=$enable_libdbi;
18044 else
18046     ac_fn_c_check_header_mongrel "$LINENO" "dbi/dbi.h" "ac_cv_header_dbi_dbi_h" "$ac_includes_default"
18047 if test "x$ac_cv_header_dbi_dbi_h" = xyes; then :
18049        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbi_initialize in -ldbi" >&5
18050 $as_echo_n "checking for dbi_initialize in -ldbi... " >&6; }
18051 if ${ac_cv_lib_dbi_dbi_initialize+:} false; then :
18052   $as_echo_n "(cached) " >&6
18053 else
18054   ac_check_lib_save_LIBS=$LIBS
18055 LIBS="-ldbi  $LIBS"
18056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057 /* end confdefs.h.  */
18059 /* Override any GCC internal prototype to avoid an error.
18060    Use char because int might match the return type of a GCC
18061    builtin and then its argument prototype would still apply.  */
18062 #ifdef __cplusplus
18063 extern "C"
18064 #endif
18065 char dbi_initialize ();
18066 int
18067 main ()
18069 return dbi_initialize ();
18070   ;
18071   return 0;
18073 _ACEOF
18074 if ac_fn_c_try_link "$LINENO"; then :
18075   ac_cv_lib_dbi_dbi_initialize=yes
18076 else
18077   ac_cv_lib_dbi_dbi_initialize=no
18079 rm -f core conftest.err conftest.$ac_objext \
18080     conftest$ac_exeext conftest.$ac_ext
18081 LIBS=$ac_check_lib_save_LIBS
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbi_dbi_initialize" >&5
18084 $as_echo "$ac_cv_lib_dbi_dbi_initialize" >&6; }
18085 if test "x$ac_cv_lib_dbi_dbi_initialize" = xyes; then :
18088 $as_echo "#define HAVE_LIBDBI 1" >>confdefs.h
18090            LIBS="${LIBS} -ldbi -ldl"
18091            have_libdbi=yes
18103  if test $have_libdbi != no; then
18104   BUILD_LIBDBI_TRUE=
18105   BUILD_LIBDBI_FALSE='#'
18106 else
18107   BUILD_LIBDBI_TRUE='#'
18108   BUILD_LIBDBI_FALSE=
18112 have_libwrap=no
18114 # Check whether --enable-libwrap was given.
18115 if test "${enable_libwrap+set}" = set; then :
18116   enableval=$enable_libwrap;
18117 else
18119     ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
18120 if test "x$ac_cv_header_tcpd_h" = xyes; then :
18122         for ac_func in hosts_access
18123 do :
18124   ac_fn_c_check_func "$LINENO" "hosts_access" "ac_cv_func_hosts_access"
18125 if test "x$ac_cv_func_hosts_access" = xyes; then :
18126   cat >>confdefs.h <<_ACEOF
18127 #define HAVE_HOSTS_ACCESS 1
18128 _ACEOF
18131 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
18133             have_libwrap=yes
18135 else
18137             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
18138 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
18139 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
18140   $as_echo_n "(cached) " >&6
18141 else
18142   ac_check_lib_save_LIBS=$LIBS
18143 LIBS="-lwrap  $LIBS"
18144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18145 /* end confdefs.h.  */
18147 /* Override any GCC internal prototype to avoid an error.
18148    Use char because int might match the return type of a GCC
18149    builtin and then its argument prototype would still apply.  */
18150 #ifdef __cplusplus
18151 extern "C"
18152 #endif
18153 char hosts_access ();
18154 int
18155 main ()
18157 return hosts_access ();
18158   ;
18159   return 0;
18161 _ACEOF
18162 if ac_fn_c_try_link "$LINENO"; then :
18163   ac_cv_lib_wrap_hosts_access=yes
18164 else
18165   ac_cv_lib_wrap_hosts_access=no
18167 rm -f core conftest.err conftest.$ac_objext \
18168     conftest$ac_exeext conftest.$ac_ext
18169 LIBS=$ac_check_lib_save_LIBS
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
18172 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
18173 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
18176 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
18178                LIBS="${LIBS} -lwrap"
18179                have_libwrap=yes
18185 done
18196  if test $have_libwrap != no; then
18197   BUILD_LIBWRAP_TRUE=
18198   BUILD_LIBWRAP_FALSE='#'
18199 else
18200   BUILD_LIBWRAP_TRUE='#'
18201   BUILD_LIBWRAP_FALSE=
18205  if test $enable_rrd_graph != no; then
18206   BUILD_RRDGRAPH_TRUE=
18207   BUILD_RRDGRAPH_FALSE='#'
18208 else
18209   BUILD_RRDGRAPH_TRUE='#'
18210   BUILD_RRDGRAPH_FALSE=
18215 CORE_LIBS="$LIBS"
18217 if test $enable_rrd_graph != no; then
18219  ac_ext=c
18220 ac_cpp='$CPP $CPPFLAGS'
18221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18225  EX_CHECK_STATE=NO
18226  ex_check_save_LIBS=${LIBS}
18227  ex_check_save_CPPFLAGS=${CPPFLAGS}
18228  ex_check_save_LDFLAGS=${LDFLAGS}
18229  if test "x""" != "x"; then
18230    CPPFLAGS="$CPPFLAGS -I"""
18231  fi
18232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo_font_options_create in -lcairo" >&5
18233 $as_echo_n "checking for cairo_font_options_create in -lcairo... " >&6; }
18234 if ${ac_cv_lib_cairo_cairo_font_options_create+:} false; then :
18235   $as_echo_n "(cached) " >&6
18236 else
18237   ac_check_lib_save_LIBS=$LIBS
18238 LIBS="-lcairo  $LIBS"
18239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18240 /* end confdefs.h.  */
18242 /* Override any GCC internal prototype to avoid an error.
18243    Use char because int might match the return type of a GCC
18244    builtin and then its argument prototype would still apply.  */
18245 #ifdef __cplusplus
18246 extern "C"
18247 #endif
18248 char cairo_font_options_create ();
18249 int
18250 main ()
18252 return cairo_font_options_create ();
18253   ;
18254   return 0;
18256 _ACEOF
18257 if ac_fn_c_try_link "$LINENO"; then :
18258   ac_cv_lib_cairo_cairo_font_options_create=yes
18259 else
18260   ac_cv_lib_cairo_cairo_font_options_create=no
18262 rm -f core conftest.err conftest.$ac_objext \
18263     conftest$ac_exeext conftest.$ac_ext
18264 LIBS=$ac_check_lib_save_LIBS
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cairo_cairo_font_options_create" >&5
18267 $as_echo "$ac_cv_lib_cairo_cairo_font_options_create" >&6; }
18268 if test "x$ac_cv_lib_cairo_cairo_font_options_create" = xyes; then :
18270     ac_fn_c_check_header_mongrel "$LINENO" "cairo.h" "ac_cv_header_cairo_h" "$ac_includes_default"
18271 if test "x$ac_cv_header_cairo_h" = xyes; then :
18272   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
18278  if test $EX_CHECK_STATE = NO; then
18279         for ac_prog in pkg-config
18281   # Extract the first word of "$ac_prog", so it can be a program name with args.
18282 set dummy $ac_prog; ac_word=$2
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18284 $as_echo_n "checking for $ac_word... " >&6; }
18285 if ${ac_cv_prog_PKGCONFIG+:} false; then :
18286   $as_echo_n "(cached) " >&6
18287 else
18288   if test -n "$PKGCONFIG"; then
18289   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
18290 else
18291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18292 for as_dir in $PATH
18294   IFS=$as_save_IFS
18295   test -z "$as_dir" && as_dir=.
18296     for ac_exec_ext in '' $ac_executable_extensions; do
18297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18298     ac_cv_prog_PKGCONFIG="$ac_prog"
18299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18300     break 2
18301   fi
18302 done
18303   done
18304 IFS=$as_save_IFS
18308 PKGCONFIG=$ac_cv_prog_PKGCONFIG
18309 if test -n "$PKGCONFIG"; then
18310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
18311 $as_echo "$PKGCONFIG" >&6; }
18312 else
18313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18314 $as_echo "no" >&6; }
18318   test -n "$PKGCONFIG" && break
18319 done
18320 test -n "$PKGCONFIG" || PKGCONFIG="no"
18322     if test "$PKGCONFIG" != "no"; then
18323           if $PKGCONFIG --exists cairo-png; then
18324              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-png`
18325              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-png`
18326              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-png`
18327              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-png`
18328                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_font_options_create
18329              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo_font_options_create in -lcairo" >&5
18330 $as_echo_n "checking for cairo_font_options_create in -lcairo... " >&6; }
18331 if ${ac_cv_lib_cairo_cairo_font_options_create+:} false; then :
18332   $as_echo_n "(cached) " >&6
18333 else
18334   ac_check_lib_save_LIBS=$LIBS
18335 LIBS="-lcairo  $LIBS"
18336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18337 /* end confdefs.h.  */
18339 /* Override any GCC internal prototype to avoid an error.
18340    Use char because int might match the return type of a GCC
18341    builtin and then its argument prototype would still apply.  */
18342 #ifdef __cplusplus
18343 extern "C"
18344 #endif
18345 char cairo_font_options_create ();
18346 int
18347 main ()
18349 return cairo_font_options_create ();
18350   ;
18351   return 0;
18353 _ACEOF
18354 if ac_fn_c_try_link "$LINENO"; then :
18355   ac_cv_lib_cairo_cairo_font_options_create=yes
18356 else
18357   ac_cv_lib_cairo_cairo_font_options_create=no
18359 rm -f core conftest.err conftest.$ac_objext \
18360     conftest$ac_exeext conftest.$ac_ext
18361 LIBS=$ac_check_lib_save_LIBS
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cairo_cairo_font_options_create" >&5
18364 $as_echo "$ac_cv_lib_cairo_cairo_font_options_create" >&6; }
18365 if test "x$ac_cv_lib_cairo_cairo_font_options_create" = xyes; then :
18367                  unset ac_cv_header_`echo cairo.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
18368                  ac_fn_c_check_header_mongrel "$LINENO" "cairo.h" "ac_cv_header_cairo_h" "$ac_includes_default"
18369 if test "x$ac_cv_header_cairo_h" = xyes; then :
18370   EX_CHECK_STATE=YES
18377           else
18378              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18379 ----------------------------------------------------------------------------
18380 * I found a copy of pkgconfig, but there is no cairo-png.pc file around.
18381   You may want to set the PKG_CONFIG_PATH variable to point to its
18382   location.
18383 ----------------------------------------------------------------------------
18384                         " >&5
18385 $as_echo "$as_me: WARNING:
18386 ----------------------------------------------------------------------------
18387 * I found a copy of pkgconfig, but there is no cairo-png.pc file around.
18388   You may want to set the PKG_CONFIG_PATH variable to point to its
18389   location.
18390 ----------------------------------------------------------------------------
18391                         " >&2;}
18392            fi
18393      fi
18394   fi
18396   if test ${EX_CHECK_STATE} = NO; then
18397      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18398 ----------------------------------------------------------------------------
18399 * I could not find a working copy of cairo-png. Check config.log for hints on why
18400   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
18401   so that compiler and the linker can find libcairo and its header files. If
18402   you have not installed cairo-png, you can get it either from its original home on
18404      http://cairographics.org/releases/
18406   You can find also find an archive copy on
18408      http://oss.oetiker.ch/rrdtool/pub/libs
18410   The last tested version of cairo-png is 1.10.2.
18412        LIBS=$LIBS
18413    LDFLAGS=$LDFLAGS
18414   CPPFLAGS=$CPPFLAGS
18416 ----------------------------------------------------------------------------
18417                 " >&5
18418 $as_echo "$as_me: WARNING:
18419 ----------------------------------------------------------------------------
18420 * I could not find a working copy of cairo-png. Check config.log for hints on why
18421   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
18422   so that compiler and the linker can find libcairo and its header files. If
18423   you have not installed cairo-png, you can get it either from its original home on
18425      http://cairographics.org/releases/
18427   You can find also find an archive copy on
18429      http://oss.oetiker.ch/rrdtool/pub/libs
18431   The last tested version of cairo-png is 1.10.2.
18433        LIBS=$LIBS
18434    LDFLAGS=$LDFLAGS
18435   CPPFLAGS=$CPPFLAGS
18437 ----------------------------------------------------------------------------
18438                 " >&2;}
18439        EX_CHECK_ALL_ERR=YES
18440        LIBS="${ex_check_save_LIBS}"
18441        CPPFLAGS="${ex_check_save_CPPFLAGS}"
18442        LDFLAGS="${ex_check_save_LDFLAGS}"
18443     fi
18444     ac_ext=c
18445 ac_cpp='$CPP $CPPFLAGS'
18446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18453  ac_ext=c
18454 ac_cpp='$CPP $CPPFLAGS'
18455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18459  EX_CHECK_STATE=NO
18460  ex_check_save_LIBS=${LIBS}
18461  ex_check_save_CPPFLAGS=${CPPFLAGS}
18462  ex_check_save_LDFLAGS=${LDFLAGS}
18463  if test "x""" != "x"; then
18464    CPPFLAGS="$CPPFLAGS -I"""
18465  fi
18466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo_svg_surface_create in -lcairo" >&5
18467 $as_echo_n "checking for cairo_svg_surface_create in -lcairo... " >&6; }
18468 if ${ac_cv_lib_cairo_cairo_svg_surface_create+:} false; then :
18469   $as_echo_n "(cached) " >&6
18470 else
18471   ac_check_lib_save_LIBS=$LIBS
18472 LIBS="-lcairo  $LIBS"
18473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18474 /* end confdefs.h.  */
18476 /* Override any GCC internal prototype to avoid an error.
18477    Use char because int might match the return type of a GCC
18478    builtin and then its argument prototype would still apply.  */
18479 #ifdef __cplusplus
18480 extern "C"
18481 #endif
18482 char cairo_svg_surface_create ();
18483 int
18484 main ()
18486 return cairo_svg_surface_create ();
18487   ;
18488   return 0;
18490 _ACEOF
18491 if ac_fn_c_try_link "$LINENO"; then :
18492   ac_cv_lib_cairo_cairo_svg_surface_create=yes
18493 else
18494   ac_cv_lib_cairo_cairo_svg_surface_create=no
18496 rm -f core conftest.err conftest.$ac_objext \
18497     conftest$ac_exeext conftest.$ac_ext
18498 LIBS=$ac_check_lib_save_LIBS
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cairo_cairo_svg_surface_create" >&5
18501 $as_echo "$ac_cv_lib_cairo_cairo_svg_surface_create" >&6; }
18502 if test "x$ac_cv_lib_cairo_cairo_svg_surface_create" = xyes; then :
18504     ac_fn_c_check_header_mongrel "$LINENO" "cairo-svg.h" "ac_cv_header_cairo_svg_h" "$ac_includes_default"
18505 if test "x$ac_cv_header_cairo_svg_h" = xyes; then :
18506   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
18512  if test $EX_CHECK_STATE = NO; then
18513         for ac_prog in pkg-config
18515   # Extract the first word of "$ac_prog", so it can be a program name with args.
18516 set dummy $ac_prog; ac_word=$2
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18518 $as_echo_n "checking for $ac_word... " >&6; }
18519 if ${ac_cv_prog_PKGCONFIG+:} false; then :
18520   $as_echo_n "(cached) " >&6
18521 else
18522   if test -n "$PKGCONFIG"; then
18523   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
18524 else
18525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18526 for as_dir in $PATH
18528   IFS=$as_save_IFS
18529   test -z "$as_dir" && as_dir=.
18530     for ac_exec_ext in '' $ac_executable_extensions; do
18531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18532     ac_cv_prog_PKGCONFIG="$ac_prog"
18533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18534     break 2
18535   fi
18536 done
18537   done
18538 IFS=$as_save_IFS
18542 PKGCONFIG=$ac_cv_prog_PKGCONFIG
18543 if test -n "$PKGCONFIG"; then
18544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
18545 $as_echo "$PKGCONFIG" >&6; }
18546 else
18547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18548 $as_echo "no" >&6; }
18552   test -n "$PKGCONFIG" && break
18553 done
18554 test -n "$PKGCONFIG" || PKGCONFIG="no"
18556     if test "$PKGCONFIG" != "no"; then
18557           if $PKGCONFIG --exists cairo-svg; then
18558              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-svg`
18559              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-svg`
18560              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-svg`
18561              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-svg`
18562                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_svg_surface_create
18563              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo_svg_surface_create in -lcairo" >&5
18564 $as_echo_n "checking for cairo_svg_surface_create in -lcairo... " >&6; }
18565 if ${ac_cv_lib_cairo_cairo_svg_surface_create+:} false; then :
18566   $as_echo_n "(cached) " >&6
18567 else
18568   ac_check_lib_save_LIBS=$LIBS
18569 LIBS="-lcairo  $LIBS"
18570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18571 /* end confdefs.h.  */
18573 /* Override any GCC internal prototype to avoid an error.
18574    Use char because int might match the return type of a GCC
18575    builtin and then its argument prototype would still apply.  */
18576 #ifdef __cplusplus
18577 extern "C"
18578 #endif
18579 char cairo_svg_surface_create ();
18580 int
18581 main ()
18583 return cairo_svg_surface_create ();
18584   ;
18585   return 0;
18587 _ACEOF
18588 if ac_fn_c_try_link "$LINENO"; then :
18589   ac_cv_lib_cairo_cairo_svg_surface_create=yes
18590 else
18591   ac_cv_lib_cairo_cairo_svg_surface_create=no
18593 rm -f core conftest.err conftest.$ac_objext \
18594     conftest$ac_exeext conftest.$ac_ext
18595 LIBS=$ac_check_lib_save_LIBS
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cairo_cairo_svg_surface_create" >&5
18598 $as_echo "$ac_cv_lib_cairo_cairo_svg_surface_create" >&6; }
18599 if test "x$ac_cv_lib_cairo_cairo_svg_surface_create" = xyes; then :
18601                  unset ac_cv_header_`echo cairo-svg.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
18602                  ac_fn_c_check_header_mongrel "$LINENO" "cairo-svg.h" "ac_cv_header_cairo_svg_h" "$ac_includes_default"
18603 if test "x$ac_cv_header_cairo_svg_h" = xyes; then :
18604   EX_CHECK_STATE=YES
18611           else
18612              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18613 ----------------------------------------------------------------------------
18614 * I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
18615   You may want to set the PKG_CONFIG_PATH variable to point to its
18616   location.
18617 ----------------------------------------------------------------------------
18618                         " >&5
18619 $as_echo "$as_me: WARNING:
18620 ----------------------------------------------------------------------------
18621 * I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
18622   You may want to set the PKG_CONFIG_PATH variable to point to its
18623   location.
18624 ----------------------------------------------------------------------------
18625                         " >&2;}
18626            fi
18627      fi
18628   fi
18630   if test ${EX_CHECK_STATE} = NO; then
18631      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18632 ----------------------------------------------------------------------------
18633 * I could not find a working copy of cairo-svg. Check config.log for hints on why
18634   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
18635   so that compiler and the linker can find libcairo and its header files. If
18636   you have not installed cairo-svg, you can get it either from its original home on
18638      http://cairographics.org/releases/
18640   You can find also find an archive copy on
18642      http://oss.oetiker.ch/rrdtool/pub/libs
18644   The last tested version of cairo-svg is 1.10.2.
18646        LIBS=$LIBS
18647    LDFLAGS=$LDFLAGS
18648   CPPFLAGS=$CPPFLAGS
18650 ----------------------------------------------------------------------------
18651                 " >&5
18652 $as_echo "$as_me: WARNING:
18653 ----------------------------------------------------------------------------
18654 * I could not find a working copy of cairo-svg. Check config.log for hints on why
18655   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
18656   so that compiler and the linker can find libcairo and its header files. If
18657   you have not installed cairo-svg, you can get it either from its original home on
18659      http://cairographics.org/releases/
18661   You can find also find an archive copy on
18663      http://oss.oetiker.ch/rrdtool/pub/libs
18665   The last tested version of cairo-svg is 1.10.2.
18667        LIBS=$LIBS
18668    LDFLAGS=$LDFLAGS
18669   CPPFLAGS=$CPPFLAGS
18671 ----------------------------------------------------------------------------
18672                 " >&2;}
18673        EX_CHECK_ALL_ERR=YES
18674        LIBS="${ex_check_save_LIBS}"
18675        CPPFLAGS="${ex_check_save_CPPFLAGS}"
18676        LDFLAGS="${ex_check_save_LDFLAGS}"
18677     fi
18678     ac_ext=c
18679 ac_cpp='$CPP $CPPFLAGS'
18680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18687  ac_ext=c
18688 ac_cpp='$CPP $CPPFLAGS'
18689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18693  EX_CHECK_STATE=NO
18694  ex_check_save_LIBS=${LIBS}
18695  ex_check_save_CPPFLAGS=${CPPFLAGS}
18696  ex_check_save_LDFLAGS=${LDFLAGS}
18697  if test "x""" != "x"; then
18698    CPPFLAGS="$CPPFLAGS -I"""
18699  fi
18700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo_pdf_surface_create in -lcairo" >&5
18701 $as_echo_n "checking for cairo_pdf_surface_create in -lcairo... " >&6; }
18702 if ${ac_cv_lib_cairo_cairo_pdf_surface_create+:} false; then :
18703   $as_echo_n "(cached) " >&6
18704 else
18705   ac_check_lib_save_LIBS=$LIBS
18706 LIBS="-lcairo  $LIBS"
18707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18708 /* end confdefs.h.  */
18710 /* Override any GCC internal prototype to avoid an error.
18711    Use char because int might match the return type of a GCC
18712    builtin and then its argument prototype would still apply.  */
18713 #ifdef __cplusplus
18714 extern "C"
18715 #endif
18716 char cairo_pdf_surface_create ();
18717 int
18718 main ()
18720 return cairo_pdf_surface_create ();
18721   ;
18722   return 0;
18724 _ACEOF
18725 if ac_fn_c_try_link "$LINENO"; then :
18726   ac_cv_lib_cairo_cairo_pdf_surface_create=yes
18727 else
18728   ac_cv_lib_cairo_cairo_pdf_surface_create=no
18730 rm -f core conftest.err conftest.$ac_objext \
18731     conftest$ac_exeext conftest.$ac_ext
18732 LIBS=$ac_check_lib_save_LIBS
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cairo_cairo_pdf_surface_create" >&5
18735 $as_echo "$ac_cv_lib_cairo_cairo_pdf_surface_create" >&6; }
18736 if test "x$ac_cv_lib_cairo_cairo_pdf_surface_create" = xyes; then :
18738     ac_fn_c_check_header_mongrel "$LINENO" "cairo-pdf.h" "ac_cv_header_cairo_pdf_h" "$ac_includes_default"
18739 if test "x$ac_cv_header_cairo_pdf_h" = xyes; then :
18740   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
18746  if test $EX_CHECK_STATE = NO; then
18747         for ac_prog in pkg-config
18749   # Extract the first word of "$ac_prog", so it can be a program name with args.
18750 set dummy $ac_prog; ac_word=$2
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18752 $as_echo_n "checking for $ac_word... " >&6; }
18753 if ${ac_cv_prog_PKGCONFIG+:} false; then :
18754   $as_echo_n "(cached) " >&6
18755 else
18756   if test -n "$PKGCONFIG"; then
18757   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
18758 else
18759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18760 for as_dir in $PATH
18762   IFS=$as_save_IFS
18763   test -z "$as_dir" && as_dir=.
18764     for ac_exec_ext in '' $ac_executable_extensions; do
18765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18766     ac_cv_prog_PKGCONFIG="$ac_prog"
18767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18768     break 2
18769   fi
18770 done
18771   done
18772 IFS=$as_save_IFS
18776 PKGCONFIG=$ac_cv_prog_PKGCONFIG
18777 if test -n "$PKGCONFIG"; then
18778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
18779 $as_echo "$PKGCONFIG" >&6; }
18780 else
18781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18782 $as_echo "no" >&6; }
18786   test -n "$PKGCONFIG" && break
18787 done
18788 test -n "$PKGCONFIG" || PKGCONFIG="no"
18790     if test "$PKGCONFIG" != "no"; then
18791           if $PKGCONFIG --exists cairo-pdf; then
18792              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-pdf`
18793              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-pdf`
18794              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-pdf`
18795              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-pdf`
18796                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_pdf_surface_create
18797              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo_pdf_surface_create in -lcairo" >&5
18798 $as_echo_n "checking for cairo_pdf_surface_create in -lcairo... " >&6; }
18799 if ${ac_cv_lib_cairo_cairo_pdf_surface_create+:} false; then :
18800   $as_echo_n "(cached) " >&6
18801 else
18802   ac_check_lib_save_LIBS=$LIBS
18803 LIBS="-lcairo  $LIBS"
18804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18805 /* end confdefs.h.  */
18807 /* Override any GCC internal prototype to avoid an error.
18808    Use char because int might match the return type of a GCC
18809    builtin and then its argument prototype would still apply.  */
18810 #ifdef __cplusplus
18811 extern "C"
18812 #endif
18813 char cairo_pdf_surface_create ();
18814 int
18815 main ()
18817 return cairo_pdf_surface_create ();
18818   ;
18819   return 0;
18821 _ACEOF
18822 if ac_fn_c_try_link "$LINENO"; then :
18823   ac_cv_lib_cairo_cairo_pdf_surface_create=yes
18824 else
18825   ac_cv_lib_cairo_cairo_pdf_surface_create=no
18827 rm -f core conftest.err conftest.$ac_objext \
18828     conftest$ac_exeext conftest.$ac_ext
18829 LIBS=$ac_check_lib_save_LIBS
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cairo_cairo_pdf_surface_create" >&5
18832 $as_echo "$ac_cv_lib_cairo_cairo_pdf_surface_create" >&6; }
18833 if test "x$ac_cv_lib_cairo_cairo_pdf_surface_create" = xyes; then :
18835                  unset ac_cv_header_`echo cairo-pdf.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
18836                  ac_fn_c_check_header_mongrel "$LINENO" "cairo-pdf.h" "ac_cv_header_cairo_pdf_h" "$ac_includes_default"
18837 if test "x$ac_cv_header_cairo_pdf_h" = xyes; then :
18838   EX_CHECK_STATE=YES
18845           else
18846              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18847 ----------------------------------------------------------------------------
18848 * I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
18849   You may want to set the PKG_CONFIG_PATH variable to point to its
18850   location.
18851 ----------------------------------------------------------------------------
18852                         " >&5
18853 $as_echo "$as_me: WARNING:
18854 ----------------------------------------------------------------------------
18855 * I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
18856   You may want to set the PKG_CONFIG_PATH variable to point to its
18857   location.
18858 ----------------------------------------------------------------------------
18859                         " >&2;}
18860            fi
18861      fi
18862   fi
18864   if test ${EX_CHECK_STATE} = NO; then
18865      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18866 ----------------------------------------------------------------------------
18867 * I could not find a working copy of cairo-pdf. Check config.log for hints on why
18868   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
18869   so that compiler and the linker can find libcairo and its header files. If
18870   you have not installed cairo-pdf, you can get it either from its original home on
18872      http://cairographics.org/releases/
18874   You can find also find an archive copy on
18876      http://oss.oetiker.ch/rrdtool/pub/libs
18878   The last tested version of cairo-pdf is 1.10.2.
18880        LIBS=$LIBS
18881    LDFLAGS=$LDFLAGS
18882   CPPFLAGS=$CPPFLAGS
18884 ----------------------------------------------------------------------------
18885                 " >&5
18886 $as_echo "$as_me: WARNING:
18887 ----------------------------------------------------------------------------
18888 * I could not find a working copy of cairo-pdf. Check config.log for hints on why
18889   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
18890   so that compiler and the linker can find libcairo and its header files. If
18891   you have not installed cairo-pdf, you can get it either from its original home on
18893      http://cairographics.org/releases/
18895   You can find also find an archive copy on
18897      http://oss.oetiker.ch/rrdtool/pub/libs
18899   The last tested version of cairo-pdf is 1.10.2.
18901        LIBS=$LIBS
18902    LDFLAGS=$LDFLAGS
18903   CPPFLAGS=$CPPFLAGS
18905 ----------------------------------------------------------------------------
18906                 " >&2;}
18907        EX_CHECK_ALL_ERR=YES
18908        LIBS="${ex_check_save_LIBS}"
18909        CPPFLAGS="${ex_check_save_CPPFLAGS}"
18910        LDFLAGS="${ex_check_save_LDFLAGS}"
18911     fi
18912     ac_ext=c
18913 ac_cpp='$CPP $CPPFLAGS'
18914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18921  ac_ext=c
18922 ac_cpp='$CPP $CPPFLAGS'
18923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18927  EX_CHECK_STATE=NO
18928  ex_check_save_LIBS=${LIBS}
18929  ex_check_save_CPPFLAGS=${CPPFLAGS}
18930  ex_check_save_LDFLAGS=${LDFLAGS}
18931  if test "x""" != "x"; then
18932    CPPFLAGS="$CPPFLAGS -I"""
18933  fi
18934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo_ps_surface_create in -lcairo" >&5
18935 $as_echo_n "checking for cairo_ps_surface_create in -lcairo... " >&6; }
18936 if ${ac_cv_lib_cairo_cairo_ps_surface_create+:} false; then :
18937   $as_echo_n "(cached) " >&6
18938 else
18939   ac_check_lib_save_LIBS=$LIBS
18940 LIBS="-lcairo  $LIBS"
18941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18942 /* end confdefs.h.  */
18944 /* Override any GCC internal prototype to avoid an error.
18945    Use char because int might match the return type of a GCC
18946    builtin and then its argument prototype would still apply.  */
18947 #ifdef __cplusplus
18948 extern "C"
18949 #endif
18950 char cairo_ps_surface_create ();
18951 int
18952 main ()
18954 return cairo_ps_surface_create ();
18955   ;
18956   return 0;
18958 _ACEOF
18959 if ac_fn_c_try_link "$LINENO"; then :
18960   ac_cv_lib_cairo_cairo_ps_surface_create=yes
18961 else
18962   ac_cv_lib_cairo_cairo_ps_surface_create=no
18964 rm -f core conftest.err conftest.$ac_objext \
18965     conftest$ac_exeext conftest.$ac_ext
18966 LIBS=$ac_check_lib_save_LIBS
18968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cairo_cairo_ps_surface_create" >&5
18969 $as_echo "$ac_cv_lib_cairo_cairo_ps_surface_create" >&6; }
18970 if test "x$ac_cv_lib_cairo_cairo_ps_surface_create" = xyes; then :
18972     ac_fn_c_check_header_mongrel "$LINENO" "cairo-ps.h" "ac_cv_header_cairo_ps_h" "$ac_includes_default"
18973 if test "x$ac_cv_header_cairo_ps_h" = xyes; then :
18974   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
18980  if test $EX_CHECK_STATE = NO; then
18981         for ac_prog in pkg-config
18983   # Extract the first word of "$ac_prog", so it can be a program name with args.
18984 set dummy $ac_prog; ac_word=$2
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18986 $as_echo_n "checking for $ac_word... " >&6; }
18987 if ${ac_cv_prog_PKGCONFIG+:} false; then :
18988   $as_echo_n "(cached) " >&6
18989 else
18990   if test -n "$PKGCONFIG"; then
18991   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
18992 else
18993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18994 for as_dir in $PATH
18996   IFS=$as_save_IFS
18997   test -z "$as_dir" && as_dir=.
18998     for ac_exec_ext in '' $ac_executable_extensions; do
18999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19000     ac_cv_prog_PKGCONFIG="$ac_prog"
19001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19002     break 2
19003   fi
19004 done
19005   done
19006 IFS=$as_save_IFS
19010 PKGCONFIG=$ac_cv_prog_PKGCONFIG
19011 if test -n "$PKGCONFIG"; then
19012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
19013 $as_echo "$PKGCONFIG" >&6; }
19014 else
19015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19016 $as_echo "no" >&6; }
19020   test -n "$PKGCONFIG" && break
19021 done
19022 test -n "$PKGCONFIG" || PKGCONFIG="no"
19024     if test "$PKGCONFIG" != "no"; then
19025           if $PKGCONFIG --exists cairo-ps; then
19026              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-ps`
19027              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-ps`
19028              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-ps`
19029              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-ps`
19030                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_ps_surface_create
19031              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo_ps_surface_create in -lcairo" >&5
19032 $as_echo_n "checking for cairo_ps_surface_create in -lcairo... " >&6; }
19033 if ${ac_cv_lib_cairo_cairo_ps_surface_create+:} false; then :
19034   $as_echo_n "(cached) " >&6
19035 else
19036   ac_check_lib_save_LIBS=$LIBS
19037 LIBS="-lcairo  $LIBS"
19038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19039 /* end confdefs.h.  */
19041 /* Override any GCC internal prototype to avoid an error.
19042    Use char because int might match the return type of a GCC
19043    builtin and then its argument prototype would still apply.  */
19044 #ifdef __cplusplus
19045 extern "C"
19046 #endif
19047 char cairo_ps_surface_create ();
19048 int
19049 main ()
19051 return cairo_ps_surface_create ();
19052   ;
19053   return 0;
19055 _ACEOF
19056 if ac_fn_c_try_link "$LINENO"; then :
19057   ac_cv_lib_cairo_cairo_ps_surface_create=yes
19058 else
19059   ac_cv_lib_cairo_cairo_ps_surface_create=no
19061 rm -f core conftest.err conftest.$ac_objext \
19062     conftest$ac_exeext conftest.$ac_ext
19063 LIBS=$ac_check_lib_save_LIBS
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cairo_cairo_ps_surface_create" >&5
19066 $as_echo "$ac_cv_lib_cairo_cairo_ps_surface_create" >&6; }
19067 if test "x$ac_cv_lib_cairo_cairo_ps_surface_create" = xyes; then :
19069                  unset ac_cv_header_`echo cairo-ps.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
19070                  ac_fn_c_check_header_mongrel "$LINENO" "cairo-ps.h" "ac_cv_header_cairo_ps_h" "$ac_includes_default"
19071 if test "x$ac_cv_header_cairo_ps_h" = xyes; then :
19072   EX_CHECK_STATE=YES
19079           else
19080              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19081 ----------------------------------------------------------------------------
19082 * I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
19083   You may want to set the PKG_CONFIG_PATH variable to point to its
19084   location.
19085 ----------------------------------------------------------------------------
19086                         " >&5
19087 $as_echo "$as_me: WARNING:
19088 ----------------------------------------------------------------------------
19089 * I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
19090   You may want to set the PKG_CONFIG_PATH variable to point to its
19091   location.
19092 ----------------------------------------------------------------------------
19093                         " >&2;}
19094            fi
19095      fi
19096   fi
19098   if test ${EX_CHECK_STATE} = NO; then
19099      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19100 ----------------------------------------------------------------------------
19101 * I could not find a working copy of cairo-ps. Check config.log for hints on why
19102   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
19103   so that compiler and the linker can find libcairo and its header files. If
19104   you have not installed cairo-ps, you can get it either from its original home on
19106      http://cairographics.org/releases/
19108   You can find also find an archive copy on
19110      http://oss.oetiker.ch/rrdtool/pub/libs
19112   The last tested version of cairo-ps is 1.10.2.
19114        LIBS=$LIBS
19115    LDFLAGS=$LDFLAGS
19116   CPPFLAGS=$CPPFLAGS
19118 ----------------------------------------------------------------------------
19119                 " >&5
19120 $as_echo "$as_me: WARNING:
19121 ----------------------------------------------------------------------------
19122 * I could not find a working copy of cairo-ps. Check config.log for hints on why
19123   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
19124   so that compiler and the linker can find libcairo and its header files. If
19125   you have not installed cairo-ps, you can get it either from its original home on
19127      http://cairographics.org/releases/
19129   You can find also find an archive copy on
19131      http://oss.oetiker.ch/rrdtool/pub/libs
19133   The last tested version of cairo-ps is 1.10.2.
19135        LIBS=$LIBS
19136    LDFLAGS=$LDFLAGS
19137   CPPFLAGS=$CPPFLAGS
19139 ----------------------------------------------------------------------------
19140                 " >&2;}
19141        EX_CHECK_ALL_ERR=YES
19142        LIBS="${ex_check_save_LIBS}"
19143        CPPFLAGS="${ex_check_save_CPPFLAGS}"
19144        LDFLAGS="${ex_check_save_LDFLAGS}"
19145     fi
19146     ac_ext=c
19147 ac_cpp='$CPP $CPPFLAGS'
19148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19155  ac_ext=c
19156 ac_cpp='$CPP $CPPFLAGS'
19157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19161  EX_CHECK_STATE=NO
19162  ex_check_save_LIBS=${LIBS}
19163  ex_check_save_CPPFLAGS=${CPPFLAGS}
19164  ex_check_save_LDFLAGS=${LDFLAGS}
19165  if test "x""" != "x"; then
19166    CPPFLAGS="$CPPFLAGS -I"""
19167  fi
19168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_cairo_context_set_font_options in -lpangocairo-1.0" >&5
19169 $as_echo_n "checking for pango_cairo_context_set_font_options in -lpangocairo-1.0... " >&6; }
19170 if ${ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options+:} false; then :
19171   $as_echo_n "(cached) " >&6
19172 else
19173   ac_check_lib_save_LIBS=$LIBS
19174 LIBS="-lpangocairo-1.0  $LIBS"
19175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19176 /* end confdefs.h.  */
19178 /* Override any GCC internal prototype to avoid an error.
19179    Use char because int might match the return type of a GCC
19180    builtin and then its argument prototype would still apply.  */
19181 #ifdef __cplusplus
19182 extern "C"
19183 #endif
19184 char pango_cairo_context_set_font_options ();
19185 int
19186 main ()
19188 return pango_cairo_context_set_font_options ();
19189   ;
19190   return 0;
19192 _ACEOF
19193 if ac_fn_c_try_link "$LINENO"; then :
19194   ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options=yes
19195 else
19196   ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options=no
19198 rm -f core conftest.err conftest.$ac_objext \
19199     conftest$ac_exeext conftest.$ac_ext
19200 LIBS=$ac_check_lib_save_LIBS
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options" >&5
19203 $as_echo "$ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options" >&6; }
19204 if test "x$ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options" = xyes; then :
19206     ac_fn_c_check_header_mongrel "$LINENO" "pango/pango.h" "ac_cv_header_pango_pango_h" "$ac_includes_default"
19207 if test "x$ac_cv_header_pango_pango_h" = xyes; then :
19208   LIBS="-lpangocairo-1.0 ${LIBS}";EX_CHECK_STATE=YES
19214  if test $EX_CHECK_STATE = NO; then
19215         for ac_prog in pkg-config
19217   # Extract the first word of "$ac_prog", so it can be a program name with args.
19218 set dummy $ac_prog; ac_word=$2
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19220 $as_echo_n "checking for $ac_word... " >&6; }
19221 if ${ac_cv_prog_PKGCONFIG+:} false; then :
19222   $as_echo_n "(cached) " >&6
19223 else
19224   if test -n "$PKGCONFIG"; then
19225   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
19226 else
19227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19228 for as_dir in $PATH
19230   IFS=$as_save_IFS
19231   test -z "$as_dir" && as_dir=.
19232     for ac_exec_ext in '' $ac_executable_extensions; do
19233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19234     ac_cv_prog_PKGCONFIG="$ac_prog"
19235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19236     break 2
19237   fi
19238 done
19239   done
19240 IFS=$as_save_IFS
19244 PKGCONFIG=$ac_cv_prog_PKGCONFIG
19245 if test -n "$PKGCONFIG"; then
19246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
19247 $as_echo "$PKGCONFIG" >&6; }
19248 else
19249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19250 $as_echo "no" >&6; }
19254   test -n "$PKGCONFIG" && break
19255 done
19256 test -n "$PKGCONFIG" || PKGCONFIG="no"
19258     if test "$PKGCONFIG" != "no"; then
19259           if $PKGCONFIG --exists pangocairo; then
19260              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags pangocairo`
19261              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L pangocairo`
19262              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other pangocairo`
19263              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l pangocairo`
19264                              unset ac_cv_lib_`echo pangocairo-1.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_pango_cairo_context_set_font_options
19265              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_cairo_context_set_font_options in -lpangocairo-1.0" >&5
19266 $as_echo_n "checking for pango_cairo_context_set_font_options in -lpangocairo-1.0... " >&6; }
19267 if ${ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options+:} false; then :
19268   $as_echo_n "(cached) " >&6
19269 else
19270   ac_check_lib_save_LIBS=$LIBS
19271 LIBS="-lpangocairo-1.0  $LIBS"
19272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19273 /* end confdefs.h.  */
19275 /* Override any GCC internal prototype to avoid an error.
19276    Use char because int might match the return type of a GCC
19277    builtin and then its argument prototype would still apply.  */
19278 #ifdef __cplusplus
19279 extern "C"
19280 #endif
19281 char pango_cairo_context_set_font_options ();
19282 int
19283 main ()
19285 return pango_cairo_context_set_font_options ();
19286   ;
19287   return 0;
19289 _ACEOF
19290 if ac_fn_c_try_link "$LINENO"; then :
19291   ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options=yes
19292 else
19293   ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options=no
19295 rm -f core conftest.err conftest.$ac_objext \
19296     conftest$ac_exeext conftest.$ac_ext
19297 LIBS=$ac_check_lib_save_LIBS
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options" >&5
19300 $as_echo "$ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options" >&6; }
19301 if test "x$ac_cv_lib_pangocairo_1_0_pango_cairo_context_set_font_options" = xyes; then :
19303                  unset ac_cv_header_`echo pango/pango.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
19304                  ac_fn_c_check_header_mongrel "$LINENO" "pango/pango.h" "ac_cv_header_pango_pango_h" "$ac_includes_default"
19305 if test "x$ac_cv_header_pango_pango_h" = xyes; then :
19306   EX_CHECK_STATE=YES
19313           else
19314              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19315 ----------------------------------------------------------------------------
19316 * I found a copy of pkgconfig, but there is no pangocairo.pc file around.
19317   You may want to set the PKG_CONFIG_PATH variable to point to its
19318   location.
19319 ----------------------------------------------------------------------------
19320                         " >&5
19321 $as_echo "$as_me: WARNING:
19322 ----------------------------------------------------------------------------
19323 * I found a copy of pkgconfig, but there is no pangocairo.pc file around.
19324   You may want to set the PKG_CONFIG_PATH variable to point to its
19325   location.
19326 ----------------------------------------------------------------------------
19327                         " >&2;}
19328            fi
19329      fi
19330   fi
19332   if test ${EX_CHECK_STATE} = NO; then
19333      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19334 ----------------------------------------------------------------------------
19335 * I could not find a working copy of pangocairo. Check config.log for hints on why
19336   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
19337   so that compiler and the linker can find libpangocairo-1.0 and its header files. If
19338   you have not installed pangocairo, you can get it either from its original home on
19340      http://ftp.gnome.org/pub/GNOME/sources/pango/1.28
19342   You can find also find an archive copy on
19344      http://oss.oetiker.ch/rrdtool/pub/libs
19346   The last tested version of pangocairo is 1.28.4.
19348        LIBS=$LIBS
19349    LDFLAGS=$LDFLAGS
19350   CPPFLAGS=$CPPFLAGS
19352 ----------------------------------------------------------------------------
19353                 " >&5
19354 $as_echo "$as_me: WARNING:
19355 ----------------------------------------------------------------------------
19356 * I could not find a working copy of pangocairo. Check config.log for hints on why
19357   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
19358   so that compiler and the linker can find libpangocairo-1.0 and its header files. If
19359   you have not installed pangocairo, you can get it either from its original home on
19361      http://ftp.gnome.org/pub/GNOME/sources/pango/1.28
19363   You can find also find an archive copy on
19365      http://oss.oetiker.ch/rrdtool/pub/libs
19367   The last tested version of pangocairo is 1.28.4.
19369        LIBS=$LIBS
19370    LDFLAGS=$LDFLAGS
19371   CPPFLAGS=$CPPFLAGS
19373 ----------------------------------------------------------------------------
19374                 " >&2;}
19375        EX_CHECK_ALL_ERR=YES
19376        LIBS="${ex_check_save_LIBS}"
19377        CPPFLAGS="${ex_check_save_CPPFLAGS}"
19378        LDFLAGS="${ex_check_save_LDFLAGS}"
19379     fi
19380     ac_ext=c
19381 ac_cpp='$CPP $CPPFLAGS'
19382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19391  ac_ext=c
19392 ac_cpp='$CPP $CPPFLAGS'
19393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19397  EX_CHECK_STATE=NO
19398  ex_check_save_LIBS=${LIBS}
19399  ex_check_save_CPPFLAGS=${CPPFLAGS}
19400  ex_check_save_LDFLAGS=${LDFLAGS}
19401  if test "x""" != "x"; then
19402    CPPFLAGS="$CPPFLAGS -I"""
19403  fi
19404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib_check_version in -lglib-2.0" >&5
19405 $as_echo_n "checking for glib_check_version in -lglib-2.0... " >&6; }
19406 if ${ac_cv_lib_glib_2_0_glib_check_version+:} false; then :
19407   $as_echo_n "(cached) " >&6
19408 else
19409   ac_check_lib_save_LIBS=$LIBS
19410 LIBS="-lglib-2.0  $LIBS"
19411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19412 /* end confdefs.h.  */
19414 /* Override any GCC internal prototype to avoid an error.
19415    Use char because int might match the return type of a GCC
19416    builtin and then its argument prototype would still apply.  */
19417 #ifdef __cplusplus
19418 extern "C"
19419 #endif
19420 char glib_check_version ();
19421 int
19422 main ()
19424 return glib_check_version ();
19425   ;
19426   return 0;
19428 _ACEOF
19429 if ac_fn_c_try_link "$LINENO"; then :
19430   ac_cv_lib_glib_2_0_glib_check_version=yes
19431 else
19432   ac_cv_lib_glib_2_0_glib_check_version=no
19434 rm -f core conftest.err conftest.$ac_objext \
19435     conftest$ac_exeext conftest.$ac_ext
19436 LIBS=$ac_check_lib_save_LIBS
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glib_2_0_glib_check_version" >&5
19439 $as_echo "$ac_cv_lib_glib_2_0_glib_check_version" >&6; }
19440 if test "x$ac_cv_lib_glib_2_0_glib_check_version" = xyes; then :
19442     ac_fn_c_check_header_mongrel "$LINENO" "glib.h" "ac_cv_header_glib_h" "$ac_includes_default"
19443 if test "x$ac_cv_header_glib_h" = xyes; then :
19444   LIBS="-lglib-2.0 ${LIBS}";EX_CHECK_STATE=YES
19450  if test $EX_CHECK_STATE = NO; then
19451         for ac_prog in pkg-config
19453   # Extract the first word of "$ac_prog", so it can be a program name with args.
19454 set dummy $ac_prog; ac_word=$2
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19456 $as_echo_n "checking for $ac_word... " >&6; }
19457 if ${ac_cv_prog_PKGCONFIG+:} false; then :
19458   $as_echo_n "(cached) " >&6
19459 else
19460   if test -n "$PKGCONFIG"; then
19461   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
19462 else
19463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19464 for as_dir in $PATH
19466   IFS=$as_save_IFS
19467   test -z "$as_dir" && as_dir=.
19468     for ac_exec_ext in '' $ac_executable_extensions; do
19469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19470     ac_cv_prog_PKGCONFIG="$ac_prog"
19471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19472     break 2
19473   fi
19474 done
19475   done
19476 IFS=$as_save_IFS
19480 PKGCONFIG=$ac_cv_prog_PKGCONFIG
19481 if test -n "$PKGCONFIG"; then
19482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
19483 $as_echo "$PKGCONFIG" >&6; }
19484 else
19485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19486 $as_echo "no" >&6; }
19490   test -n "$PKGCONFIG" && break
19491 done
19492 test -n "$PKGCONFIG" || PKGCONFIG="no"
19494     if test "$PKGCONFIG" != "no"; then
19495           if $PKGCONFIG --exists glib-2.0; then
19496              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags glib-2.0`
19497              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L glib-2.0`
19498              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other glib-2.0`
19499              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l glib-2.0`
19500                              unset ac_cv_lib_`echo glib-2.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_glib_check_version
19501              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib_check_version in -lglib-2.0" >&5
19502 $as_echo_n "checking for glib_check_version in -lglib-2.0... " >&6; }
19503 if ${ac_cv_lib_glib_2_0_glib_check_version+:} false; then :
19504   $as_echo_n "(cached) " >&6
19505 else
19506   ac_check_lib_save_LIBS=$LIBS
19507 LIBS="-lglib-2.0  $LIBS"
19508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19509 /* end confdefs.h.  */
19511 /* Override any GCC internal prototype to avoid an error.
19512    Use char because int might match the return type of a GCC
19513    builtin and then its argument prototype would still apply.  */
19514 #ifdef __cplusplus
19515 extern "C"
19516 #endif
19517 char glib_check_version ();
19518 int
19519 main ()
19521 return glib_check_version ();
19522   ;
19523   return 0;
19525 _ACEOF
19526 if ac_fn_c_try_link "$LINENO"; then :
19527   ac_cv_lib_glib_2_0_glib_check_version=yes
19528 else
19529   ac_cv_lib_glib_2_0_glib_check_version=no
19531 rm -f core conftest.err conftest.$ac_objext \
19532     conftest$ac_exeext conftest.$ac_ext
19533 LIBS=$ac_check_lib_save_LIBS
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glib_2_0_glib_check_version" >&5
19536 $as_echo "$ac_cv_lib_glib_2_0_glib_check_version" >&6; }
19537 if test "x$ac_cv_lib_glib_2_0_glib_check_version" = xyes; then :
19539                  unset ac_cv_header_`echo glib.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
19540                  ac_fn_c_check_header_mongrel "$LINENO" "glib.h" "ac_cv_header_glib_h" "$ac_includes_default"
19541 if test "x$ac_cv_header_glib_h" = xyes; then :
19542   EX_CHECK_STATE=YES
19549           else
19550              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19551 ----------------------------------------------------------------------------
19552 * I found a copy of pkgconfig, but there is no glib-2.0.pc file around.
19553   You may want to set the PKG_CONFIG_PATH variable to point to its
19554   location.
19555 ----------------------------------------------------------------------------
19556                         " >&5
19557 $as_echo "$as_me: WARNING:
19558 ----------------------------------------------------------------------------
19559 * I found a copy of pkgconfig, but there is no glib-2.0.pc file around.
19560   You may want to set the PKG_CONFIG_PATH variable to point to its
19561   location.
19562 ----------------------------------------------------------------------------
19563                         " >&2;}
19564            fi
19565      fi
19566   fi
19568   if test ${EX_CHECK_STATE} = NO; then
19569      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19570 ----------------------------------------------------------------------------
19571 * I could not find a working copy of glib-2.0. Check config.log for hints on why
19572   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
19573   so that compiler and the linker can find libglib-2.0 and its header files. If
19574   you have not installed glib-2.0, you can get it either from its original home on
19576      ftp://ftp.gtk.org/pub/glib/2.28/
19578   You can find also find an archive copy on
19580      http://oss.oetiker.ch/rrdtool/pub/libs
19582   The last tested version of glib-2.0 is 2.28.7.
19584        LIBS=$LIBS
19585    LDFLAGS=$LDFLAGS
19586   CPPFLAGS=$CPPFLAGS
19588 ----------------------------------------------------------------------------
19589                 " >&5
19590 $as_echo "$as_me: WARNING:
19591 ----------------------------------------------------------------------------
19592 * I could not find a working copy of glib-2.0. Check config.log for hints on why
19593   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
19594   so that compiler and the linker can find libglib-2.0 and its header files. If
19595   you have not installed glib-2.0, you can get it either from its original home on
19597      ftp://ftp.gtk.org/pub/glib/2.28/
19599   You can find also find an archive copy on
19601      http://oss.oetiker.ch/rrdtool/pub/libs
19603   The last tested version of glib-2.0 is 2.28.7.
19605        LIBS=$LIBS
19606    LDFLAGS=$LDFLAGS
19607   CPPFLAGS=$CPPFLAGS
19609 ----------------------------------------------------------------------------
19610                 " >&2;}
19611        EX_CHECK_ALL_ERR=YES
19612        LIBS="${ex_check_save_LIBS}"
19613        CPPFLAGS="${ex_check_save_CPPFLAGS}"
19614        LDFLAGS="${ex_check_save_LDFLAGS}"
19615     fi
19616     ac_ext=c
19617 ac_cpp='$CPP $CPPFLAGS'
19618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19625  ac_ext=c
19626 ac_cpp='$CPP $CPPFLAGS'
19627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19631  EX_CHECK_STATE=NO
19632  ex_check_save_LIBS=${LIBS}
19633  ex_check_save_CPPFLAGS=${CPPFLAGS}
19634  ex_check_save_LDFLAGS=${LDFLAGS}
19635  if test "x/usr/include/libxml2" != "x"; then
19636    CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
19637  fi
19638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5
19639 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
19640 if ${ac_cv_lib_xml2_xmlParseFile+:} false; then :
19641   $as_echo_n "(cached) " >&6
19642 else
19643   ac_check_lib_save_LIBS=$LIBS
19644 LIBS="-lxml2  $LIBS"
19645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19646 /* end confdefs.h.  */
19648 /* Override any GCC internal prototype to avoid an error.
19649    Use char because int might match the return type of a GCC
19650    builtin and then its argument prototype would still apply.  */
19651 #ifdef __cplusplus
19652 extern "C"
19653 #endif
19654 char xmlParseFile ();
19655 int
19656 main ()
19658 return xmlParseFile ();
19659   ;
19660   return 0;
19662 _ACEOF
19663 if ac_fn_c_try_link "$LINENO"; then :
19664   ac_cv_lib_xml2_xmlParseFile=yes
19665 else
19666   ac_cv_lib_xml2_xmlParseFile=no
19668 rm -f core conftest.err conftest.$ac_objext \
19669     conftest$ac_exeext conftest.$ac_ext
19670 LIBS=$ac_check_lib_save_LIBS
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5
19673 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
19674 if test "x$ac_cv_lib_xml2_xmlParseFile" = xyes; then :
19676     ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
19677 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
19678   LIBS="-lxml2 ${LIBS}";EX_CHECK_STATE=YES
19684  if test $EX_CHECK_STATE = NO; then
19685         for ac_prog in pkg-config
19687   # Extract the first word of "$ac_prog", so it can be a program name with args.
19688 set dummy $ac_prog; ac_word=$2
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19690 $as_echo_n "checking for $ac_word... " >&6; }
19691 if ${ac_cv_prog_PKGCONFIG+:} false; then :
19692   $as_echo_n "(cached) " >&6
19693 else
19694   if test -n "$PKGCONFIG"; then
19695   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
19696 else
19697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19698 for as_dir in $PATH
19700   IFS=$as_save_IFS
19701   test -z "$as_dir" && as_dir=.
19702     for ac_exec_ext in '' $ac_executable_extensions; do
19703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19704     ac_cv_prog_PKGCONFIG="$ac_prog"
19705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19706     break 2
19707   fi
19708 done
19709   done
19710 IFS=$as_save_IFS
19714 PKGCONFIG=$ac_cv_prog_PKGCONFIG
19715 if test -n "$PKGCONFIG"; then
19716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
19717 $as_echo "$PKGCONFIG" >&6; }
19718 else
19719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19720 $as_echo "no" >&6; }
19724   test -n "$PKGCONFIG" && break
19725 done
19726 test -n "$PKGCONFIG" || PKGCONFIG="no"
19728     if test "$PKGCONFIG" != "no"; then
19729           if $PKGCONFIG --exists libxml-2.0; then
19730              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags libxml-2.0`
19731              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L libxml-2.0`
19732              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other libxml-2.0`
19733              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l libxml-2.0`
19734                              unset ac_cv_lib_`echo xml2 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_xmlParseFile
19735              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5
19736 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
19737 if ${ac_cv_lib_xml2_xmlParseFile+:} false; then :
19738   $as_echo_n "(cached) " >&6
19739 else
19740   ac_check_lib_save_LIBS=$LIBS
19741 LIBS="-lxml2  $LIBS"
19742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19743 /* end confdefs.h.  */
19745 /* Override any GCC internal prototype to avoid an error.
19746    Use char because int might match the return type of a GCC
19747    builtin and then its argument prototype would still apply.  */
19748 #ifdef __cplusplus
19749 extern "C"
19750 #endif
19751 char xmlParseFile ();
19752 int
19753 main ()
19755 return xmlParseFile ();
19756   ;
19757   return 0;
19759 _ACEOF
19760 if ac_fn_c_try_link "$LINENO"; then :
19761   ac_cv_lib_xml2_xmlParseFile=yes
19762 else
19763   ac_cv_lib_xml2_xmlParseFile=no
19765 rm -f core conftest.err conftest.$ac_objext \
19766     conftest$ac_exeext conftest.$ac_ext
19767 LIBS=$ac_check_lib_save_LIBS
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5
19770 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
19771 if test "x$ac_cv_lib_xml2_xmlParseFile" = xyes; then :
19773                  unset ac_cv_header_`echo libxml/parser.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
19774                  ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
19775 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
19776   EX_CHECK_STATE=YES
19783           else
19784              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19785 ----------------------------------------------------------------------------
19786 * I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
19787   You may want to set the PKG_CONFIG_PATH variable to point to its
19788   location.
19789 ----------------------------------------------------------------------------
19790                         " >&5
19791 $as_echo "$as_me: WARNING:
19792 ----------------------------------------------------------------------------
19793 * I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
19794   You may want to set the PKG_CONFIG_PATH variable to point to its
19795   location.
19796 ----------------------------------------------------------------------------
19797                         " >&2;}
19798            fi
19799      fi
19800   fi
19802   if test ${EX_CHECK_STATE} = NO; then
19803      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19804 ----------------------------------------------------------------------------
19805 * I could not find a working copy of libxml-2.0. Check config.log for hints on why
19806   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
19807   so that compiler and the linker can find libxml2 and its header files. If
19808   you have not installed libxml-2.0, you can get it either from its original home on
19810      http://xmlsoft.org/downloads.html
19812   You can find also find an archive copy on
19814      http://oss.oetiker.ch/rrdtool/pub/libs
19816   The last tested version of libxml-2.0 is 2.7.8.
19818        LIBS=$LIBS
19819    LDFLAGS=$LDFLAGS
19820   CPPFLAGS=$CPPFLAGS
19822 ----------------------------------------------------------------------------
19823                 " >&5
19824 $as_echo "$as_me: WARNING:
19825 ----------------------------------------------------------------------------
19826 * I could not find a working copy of libxml-2.0. Check config.log for hints on why
19827   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
19828   so that compiler and the linker can find libxml2 and its header files. If
19829   you have not installed libxml-2.0, you can get it either from its original home on
19831      http://xmlsoft.org/downloads.html
19833   You can find also find an archive copy on
19835      http://oss.oetiker.ch/rrdtool/pub/libs
19837   The last tested version of libxml-2.0 is 2.7.8.
19839        LIBS=$LIBS
19840    LDFLAGS=$LDFLAGS
19841   CPPFLAGS=$CPPFLAGS
19843 ----------------------------------------------------------------------------
19844                 " >&2;}
19845        EX_CHECK_ALL_ERR=YES
19846        LIBS="${ex_check_save_LIBS}"
19847        CPPFLAGS="${ex_check_save_CPPFLAGS}"
19848        LDFLAGS="${ex_check_save_LDFLAGS}"
19849     fi
19850     ac_ext=c
19851 ac_cpp='$CPP $CPPFLAGS'
19852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19859 if test "$EX_CHECK_ALL_ERR" = "YES"; then
19860   as_fn_error $? "Please fix the library issues listed above and try again." "$LINENO" 5
19863 ALL_LIBS="$LIBS"
19864 LIBS=
19870 case $TERM in
19871        #   for the most important terminal types we directly know the sequences
19872        xterm|xterm*|vt220|vt220*)
19873                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
19874                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
19875        ;;
19876        vt100|vt100*|cygwin)
19877                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
19878                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
19879        ;;
19880        *)
19881                T_MD=''
19882                T_ME=''
19883        ;;
19884 esac
19885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
19886 $as_echo "" >&6; }
19887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Prep for Building Language Bindings${T_ME}" >&5
19888 $as_echo "${T_MD}Prep for Building Language Bindings${T_ME}" >&6; }
19891 PATH=$PATH:/usr/perl5/bin
19892 export PATH
19893 # Extract the first word of "perl", so it can be a program name with args.
19894 set dummy perl; ac_word=$2
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19896 $as_echo_n "checking for $ac_word... " >&6; }
19897 if ${ac_cv_path_PERL+:} false; then :
19898   $as_echo_n "(cached) " >&6
19899 else
19900   case $PERL in
19901   [\\/]* | ?:[\\/]*)
19902   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19903   ;;
19904   *)
19905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19906 for as_dir in $PATH
19908   IFS=$as_save_IFS
19909   test -z "$as_dir" && as_dir=.
19910     for ac_exec_ext in '' $ac_executable_extensions; do
19911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19912     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19914     break 2
19915   fi
19916 done
19917   done
19918 IFS=$as_save_IFS
19920   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
19921   ;;
19922 esac
19924 PERL=$ac_cv_path_PERL
19925 if test -n "$PERL"; then
19926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19927 $as_echo "$PERL" >&6; }
19928 else
19929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19930 $as_echo "no" >&6; }
19934 # Extract the first word of "pod2man", so it can be a program name with args.
19935 set dummy pod2man; ac_word=$2
19936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19937 $as_echo_n "checking for $ac_word... " >&6; }
19938 if ${ac_cv_path_POD2MAN+:} false; then :
19939   $as_echo_n "(cached) " >&6
19940 else
19941   case $POD2MAN in
19942   [\\/]* | ?:[\\/]*)
19943   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
19944   ;;
19945   *)
19946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19947 for as_dir in $PATH
19949   IFS=$as_save_IFS
19950   test -z "$as_dir" && as_dir=.
19951     for ac_exec_ext in '' $ac_executable_extensions; do
19952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19953     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
19954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19955     break 2
19956   fi
19957 done
19958   done
19959 IFS=$as_save_IFS
19961   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
19962   ;;
19963 esac
19965 POD2MAN=$ac_cv_path_POD2MAN
19966 if test -n "$POD2MAN"; then
19967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
19968 $as_echo "$POD2MAN" >&6; }
19969 else
19970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19971 $as_echo "no" >&6; }
19975 # Extract the first word of "pod2html", so it can be a program name with args.
19976 set dummy pod2html; ac_word=$2
19977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19978 $as_echo_n "checking for $ac_word... " >&6; }
19979 if ${ac_cv_path_POD2HTML+:} false; then :
19980   $as_echo_n "(cached) " >&6
19981 else
19982   case $POD2HTML in
19983   [\\/]* | ?:[\\/]*)
19984   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
19985   ;;
19986   *)
19987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19988 for as_dir in $PATH
19990   IFS=$as_save_IFS
19991   test -z "$as_dir" && as_dir=.
19992     for ac_exec_ext in '' $ac_executable_extensions; do
19993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19994     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
19995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19996     break 2
19997   fi
19998 done
19999   done
20000 IFS=$as_save_IFS
20002   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="no"
20003   ;;
20004 esac
20006 POD2HTML=$ac_cv_path_POD2HTML
20007 if test -n "$POD2HTML"; then
20008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2HTML" >&5
20009 $as_echo "$POD2HTML" >&6; }
20010 else
20011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20012 $as_echo "no" >&6; }
20018 # Check whether --enable-perl was given.
20019 if test "${enable_perl+set}" = set; then :
20020   enableval=$enable_perl;
20021 else
20022   enable_perl=yes
20032 if test "x$PERL" = "xno" -o  x$enable_perl = xno; then
20033         COMP_PERL=
20034 else
20035         COMP_PERL="perl_piped perl_shared"
20036         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the perl version you are running" >&5
20037 $as_echo_n "checking for the perl version you are running... " >&6; }
20038         PERL_VERSION=`$PERL -MConfig -e 'print $Config{version}'`
20039         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
20040 $as_echo "$PERL_VERSION" >&6; }
20041         if test -z "$PERLCC"; then
20042             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C compiler perl wants to use to build its modules" >&5
20043 $as_echo_n "checking for the C compiler perl wants to use to build its modules... " >&6; }
20044             perlcc=`$PERL -MConfig -e 'print $Config{cc}'`
20045             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perlcc" >&5
20046 $as_echo "$perlcc" >&6; }
20047             if test ! -x "$perlcc"; then
20048                 # Extract the first word of "${perlcc}", so it can be a program name with args.
20049 set dummy ${perlcc}; ac_word=$2
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20051 $as_echo_n "checking for $ac_word... " >&6; }
20052 if ${ac_cv_path_PERL_CC+:} false; then :
20053   $as_echo_n "(cached) " >&6
20054 else
20055   case $PERL_CC in
20056   [\\/]* | ?:[\\/]*)
20057   ac_cv_path_PERL_CC="$PERL_CC" # Let the user override the test with a path.
20058   ;;
20059   *)
20060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20061 for as_dir in $PATH
20063   IFS=$as_save_IFS
20064   test -z "$as_dir" && as_dir=.
20065     for ac_exec_ext in '' $ac_executable_extensions; do
20066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20067     ac_cv_path_PERL_CC="$as_dir/$ac_word$ac_exec_ext"
20068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20069     break 2
20070   fi
20071 done
20072   done
20073 IFS=$as_save_IFS
20075   test -z "$ac_cv_path_PERL_CC" && ac_cv_path_PERL_CC="no"
20076   ;;
20077 esac
20079 PERL_CC=$ac_cv_path_PERL_CC
20080 if test -n "$PERL_CC"; then
20081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_CC" >&5
20082 $as_echo "$PERL_CC" >&6; }
20083 else
20084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20085 $as_echo "no" >&6; }
20089                 if test "$PERL_CC" = "no"; then
20090                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20091 I would not find the Compiler ($perlcc) that was originally used to compile
20092 your perl binary. You should either make sure that this compiler is
20093 available on your system, pick an other compiler and set PERLCC
20094 appropriately, or use a different perl setup that was compiled locally.
20096 I will disable the compilation of the RRDs perl module for now.
20097 " >&5
20098 $as_echo "$as_me: WARNING:
20099 I would not find the Compiler ($perlcc) that was originally used to compile
20100 your perl binary. You should either make sure that this compiler is
20101 available on your system, pick an other compiler and set PERLCC
20102 appropriately, or use a different perl setup that was compiled locally.
20104 I will disable the compilation of the RRDs perl module for now.
20105 " >&2;}
20106                     COMP_PERL="perl_piped"
20107                 fi
20108             fi
20109         fi
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl Modules to build" >&5
20113 $as_echo_n "checking Perl Modules to build... " >&6; }
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${COMP_PERL:-No Perl Modules will be built}" >&5
20115 $as_echo "${COMP_PERL:-No Perl Modules will be built}" >&6; }
20117 # Options to pass when configuring perl module
20118 langpref=$prefix
20119 test "$langpref" = '$(DESTDIR)NONE' && langpref='$(DESTDIR)'$ac_default_prefix
20120 test "$langpref" = "NONE" && langpref=$ac_default_prefix
20122 PERL_MAKE_OPTIONS="PREFIX=$langpref INSTALL_BASE= LIB=$langpref/lib/perl/$PERL_VERSION"
20124 # Check whether --enable-perl-site-install was given.
20125 if test "${enable_perl_site_install+set}" = set; then :
20126   enableval=$enable_perl_site_install; PERL_MAKE_OPTIONS=
20130 if test ! -z "$PERLCC"; then
20131    PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CC=$PERLCC"
20133    if test ! -z "$PERLCCFLAGS"; then
20134        PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CCFLAGS=$PERLCCFLAGS"
20135    fi
20137    if test -z "$PERLLD"; then
20138        PERLLD=$PERLCC
20139    fi
20140    PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LD=$PERLLD"
20142    if test ! -z "$PERLLDFLAGS"; then
20143        PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LDFLAGS=$PERLLDFLAGS"
20144    fi
20148 # Check whether --with-perl-options was given.
20149 if test "${with_perl_options+set}" = set; then :
20150   withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
20159 # Extract the first word of "ruby", so it can be a program name with args.
20160 set dummy ruby; ac_word=$2
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20162 $as_echo_n "checking for $ac_word... " >&6; }
20163 if ${ac_cv_path_RUBY+:} false; then :
20164   $as_echo_n "(cached) " >&6
20165 else
20166   case $RUBY in
20167   [\\/]* | ?:[\\/]*)
20168   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
20169   ;;
20170   *)
20171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20172 for as_dir in $PATH
20174   IFS=$as_save_IFS
20175   test -z "$as_dir" && as_dir=.
20176     for ac_exec_ext in '' $ac_executable_extensions; do
20177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20178     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
20179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20180     break 2
20181   fi
20182 done
20183   done
20184 IFS=$as_save_IFS
20186   test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="no"
20187   ;;
20188 esac
20190 RUBY=$ac_cv_path_RUBY
20191 if test -n "$RUBY"; then
20192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
20193 $as_echo "$RUBY" >&6; }
20194 else
20195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20196 $as_echo "no" >&6; }
20201 # Check whether --enable-ruby was given.
20202 if test "${enable_ruby+set}" = set; then :
20203   enableval=$enable_ruby;
20204 else
20205   enable_ruby=yes
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ruby modules can be built" >&5
20210 $as_echo_n "checking if ruby modules can be built... " >&6; }
20212 if test "x$RUBY" = "xno" -o  x$enable_ruby = xno; then
20213         COMP_RUBY=
20214         { $as_echo "$as_me:${as_lineno-$LINENO}: result: No .. Ruby not found or disabled" >&5
20215 $as_echo "No .. Ruby not found or disabled" >&6; }
20216 else
20217         if $RUBY -e 'require "mkmf"' >/dev/null 2>&1; then
20218                 COMP_RUBY="ruby"
20219                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: YES" >&5
20220 $as_echo "YES" >&6; }
20221         else
20222                 COMP_RUBY=
20223                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Ruby found but mkmf is missing! Install the -dev package" >&5
20224 $as_echo "Ruby found but mkmf is missing! Install the -dev package" >&6; }
20225         fi
20228 # Check whether --enable-ruby-site-install was given.
20229 if test "${enable_ruby_site_install+set}" = set; then :
20230   enableval=$enable_ruby_site_install; RUBY_MAKE_OPTIONS=
20231 else
20232   RUBY_MAKE_OPTIONS="sitedir=$langpref/lib/ruby"
20238 # Check whether --with-ruby-options was given.
20239 if test "${with_ruby_options+set}" = set; then :
20240   withval=$with_ruby_options; RUBY_MAKE_OPTIONS=$withval
20248 # Extract the first word of "lua", so it can be a program name with args.
20249 set dummy lua; ac_word=$2
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20251 $as_echo_n "checking for $ac_word... " >&6; }
20252 if ${ac_cv_path_LUA+:} false; then :
20253   $as_echo_n "(cached) " >&6
20254 else
20255   case $LUA in
20256   [\\/]* | ?:[\\/]*)
20257   ac_cv_path_LUA="$LUA" # Let the user override the test with a path.
20258   ;;
20259   *)
20260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20261 for as_dir in $PATH
20263   IFS=$as_save_IFS
20264   test -z "$as_dir" && as_dir=.
20265     for ac_exec_ext in '' $ac_executable_extensions; do
20266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20267     ac_cv_path_LUA="$as_dir/$ac_word$ac_exec_ext"
20268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20269     break 2
20270   fi
20271 done
20272   done
20273 IFS=$as_save_IFS
20275   test -z "$ac_cv_path_LUA" && ac_cv_path_LUA="no"
20276   ;;
20277 esac
20279 LUA=$ac_cv_path_LUA
20280 if test -n "$LUA"; then
20281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA" >&5
20282 $as_echo "$LUA" >&6; }
20283 else
20284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20285 $as_echo "no" >&6; }
20290 # Check whether --enable-lua was given.
20291 if test "${enable_lua+set}" = set; then :
20292   enableval=$enable_lua;
20293 else
20294   enable_lua=yes
20298 COMP_LUA=
20299 if test "$LUA" = "no" -o "$enable_lua" = "no"; then
20300   enable_lua=no
20301 else
20302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua >= 5.0" >&5
20303 $as_echo_n "checking for lua >= 5.0... " >&6; }
20304   read LUA_MAJOR LUA_MINOR LUA_POINT <<LUA_EOF
20305     $($LUA -v 2>&1 | cut -f2 -d' ' | sed -e 's/\./ /g')
20306 LUA_EOF
20307   if test 0$LUA_MAJOR -lt 5; then
20308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, version found is $LUA_MAJOR.$LUA_MINOR" >&5
20309 $as_echo "no, version found is $LUA_MAJOR.$LUA_MINOR" >&6; }
20310   else
20311     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA_MAJOR.$LUA_MINOR found" >&5
20312 $as_echo "$LUA_MAJOR.$LUA_MINOR found" >&6; }
20313     lua_vdot=$LUA_MAJOR.$LUA_MINOR
20314     lua_vndot=$LUA_MAJOR$LUA_MINOR
20315     lua_version=$LUA_MAJOR.$LUA_MINOR.$LUA_POINT
20316     for ac_header in lua$lua_vndot/lua.h
20317 do :
20318   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20319 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20320 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20321   cat >>confdefs.h <<_ACEOF
20322 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20323 _ACEOF
20324  for ac_header in lua$lua_vndot/lualib.h
20325 do :
20326   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20327 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20328 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20329   cat >>confdefs.h <<_ACEOF
20330 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20331 _ACEOF
20332  as_ac_Header=`$as_echo "ac_cv_header_lua$lua_vndot/lauxlib.h" | $as_tr_sh`
20333 ac_fn_c_check_header_mongrel "$LINENO" "lua$lua_vndot/lauxlib.h" "$as_ac_Header" "$ac_includes_default"
20334 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20335   lua_headerdir=lua$lua_vndot
20341 done
20343 else
20344   for ac_header in lua$lua_vdot/lua.h
20345 do :
20346   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20347 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20348 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20349   cat >>confdefs.h <<_ACEOF
20350 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20351 _ACEOF
20352  for ac_header in lua$lua_vdot/lualib.h
20353 do :
20354   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20355 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20356 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20357   cat >>confdefs.h <<_ACEOF
20358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20359 _ACEOF
20360  as_ac_Header=`$as_echo "ac_cv_header_lua$lua_vdot/lauxlib.h" | $as_tr_sh`
20361 ac_fn_c_check_header_mongrel "$LINENO" "lua$lua_vdot/lauxlib.h" "$as_ac_Header" "$ac_includes_default"
20362 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20363   lua_headerdir=lua$lua_vdot
20369 done
20371 else
20372   for ac_header in lua.h
20373 do :
20374   ac_fn_c_check_header_mongrel "$LINENO" "lua.h" "ac_cv_header_lua_h" "$ac_includes_default"
20375 if test "x$ac_cv_header_lua_h" = xyes; then :
20376   cat >>confdefs.h <<_ACEOF
20377 #define HAVE_LUA_H 1
20378 _ACEOF
20379  for ac_header in lualib.h
20380 do :
20381   ac_fn_c_check_header_mongrel "$LINENO" "lualib.h" "ac_cv_header_lualib_h" "$ac_includes_default"
20382 if test "x$ac_cv_header_lualib_h" = xyes; then :
20383   cat >>confdefs.h <<_ACEOF
20384 #define HAVE_LUALIB_H 1
20385 _ACEOF
20386  ac_fn_c_check_header_mongrel "$LINENO" "lauxlib.h" "ac_cv_header_lauxlib_h" "$ac_includes_default"
20387 if test "x$ac_cv_header_lauxlib_h" = xyes; then :
20388   lua_headerdir=""
20389 else
20390   lua_headerdir="no"
20396 done
20400 done
20404 done
20408 done
20411     if test "$lua_headerdir" = "no"; then
20412       enable_lua=no
20413     else
20414       COMP_LUA=lua
20415     fi
20417     if test "$COMP_LUA" != "lua"; then
20418       enable_lua=no
20419       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Lua $lua_vdot found but not lua.h, lualib.h and lauxlib.h! Please install the -dev packages for Lua $lua_vdot" >&5
20420 $as_echo "$as_me: WARNING: Lua $lua_vdot found but not lua.h, lualib.h and lauxlib.h! Please install the -dev packages for Lua $lua_vdot" >&2;}
20421     else
20422       # OK, headers found, let's check the libraries (LIBS is not used)
20423       LIBS=
20424       lua_havelib=no
20425       LUA_HAVE_COMPAT51=DONT_HAVE_COMPAT51
20426       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lua_call" >&5
20427 $as_echo_n "checking for library containing lua_call... " >&6; }
20428 if ${ac_cv_search_lua_call+:} false; then :
20429   $as_echo_n "(cached) " >&6
20430 else
20431   ac_func_search_save_LIBS=$LIBS
20432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20433 /* end confdefs.h.  */
20435 /* Override any GCC internal prototype to avoid an error.
20436    Use char because int might match the return type of a GCC
20437    builtin and then its argument prototype would still apply.  */
20438 #ifdef __cplusplus
20439 extern "C"
20440 #endif
20441 char lua_call ();
20442 int
20443 main ()
20445 return lua_call ();
20446   ;
20447   return 0;
20449 _ACEOF
20450 for ac_lib in '' lua$lua_vdot lua$lua_vndot lua; do
20451   if test -z "$ac_lib"; then
20452     ac_res="none required"
20453   else
20454     ac_res=-l$ac_lib
20455     LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
20456   fi
20457   if ac_fn_c_try_link "$LINENO"; then :
20458   ac_cv_search_lua_call=$ac_res
20460 rm -f core conftest.err conftest.$ac_objext \
20461     conftest$ac_exeext
20462   if ${ac_cv_search_lua_call+:} false; then :
20463   break
20465 done
20466 if ${ac_cv_search_lua_call+:} false; then :
20468 else
20469   ac_cv_search_lua_call=no
20471 rm conftest.$ac_ext
20472 LIBS=$ac_func_search_save_LIBS
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lua_call" >&5
20475 $as_echo "$ac_cv_search_lua_call" >&6; }
20476 ac_res=$ac_cv_search_lua_call
20477 if test "$ac_res" != no; then :
20478   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing luaL_register" >&5
20480 $as_echo_n "checking for library containing luaL_register... " >&6; }
20481 if ${ac_cv_search_luaL_register+:} false; then :
20482   $as_echo_n "(cached) " >&6
20483 else
20484   ac_func_search_save_LIBS=$LIBS
20485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20486 /* end confdefs.h.  */
20488 /* Override any GCC internal prototype to avoid an error.
20489    Use char because int might match the return type of a GCC
20490    builtin and then its argument prototype would still apply.  */
20491 #ifdef __cplusplus
20492 extern "C"
20493 #endif
20494 char luaL_register ();
20495 int
20496 main ()
20498 return luaL_register ();
20499   ;
20500   return 0;
20502 _ACEOF
20503 for ac_lib in '' lua$lua_vdot lua$lua_vndot lua; do
20504   if test -z "$ac_lib"; then
20505     ac_res="none required"
20506   else
20507     ac_res=-l$ac_lib
20508     LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
20509   fi
20510   if ac_fn_c_try_link "$LINENO"; then :
20511   ac_cv_search_luaL_register=$ac_res
20513 rm -f core conftest.err conftest.$ac_objext \
20514     conftest$ac_exeext
20515   if ${ac_cv_search_luaL_register+:} false; then :
20516   break
20518 done
20519 if ${ac_cv_search_luaL_register+:} false; then :
20521 else
20522   ac_cv_search_luaL_register=no
20524 rm conftest.$ac_ext
20525 LIBS=$ac_func_search_save_LIBS
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_luaL_register" >&5
20528 $as_echo "$ac_cv_search_luaL_register" >&6; }
20529 ac_res=$ac_cv_search_luaL_register
20530 if test "$ac_res" != no; then :
20531   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20532   lua_havelib=LUA$lua_vndot
20533 else
20534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing luaL_module" >&5
20535 $as_echo_n "checking for library containing luaL_module... " >&6; }
20536 if ${ac_cv_search_luaL_module+:} false; then :
20537   $as_echo_n "(cached) " >&6
20538 else
20539   ac_func_search_save_LIBS=$LIBS
20540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20541 /* end confdefs.h.  */
20543 /* Override any GCC internal prototype to avoid an error.
20544    Use char because int might match the return type of a GCC
20545    builtin and then its argument prototype would still apply.  */
20546 #ifdef __cplusplus
20547 extern "C"
20548 #endif
20549 char luaL_module ();
20550 int
20551 main ()
20553 return luaL_module ();
20554   ;
20555   return 0;
20557 _ACEOF
20558 for ac_lib in '' lualib$lua_vndot lualib$lua_vdot lualib; do
20559   if test -z "$ac_lib"; then
20560     ac_res="none required"
20561   else
20562     ac_res=-l$ac_lib
20563     LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
20564   fi
20565   if ac_fn_c_try_link "$LINENO"; then :
20566   ac_cv_search_luaL_module=$ac_res
20568 rm -f core conftest.err conftest.$ac_objext \
20569     conftest$ac_exeext
20570   if ${ac_cv_search_luaL_module+:} false; then :
20571   break
20573 done
20574 if ${ac_cv_search_luaL_module+:} false; then :
20576 else
20577   ac_cv_search_luaL_module=no
20579 rm conftest.$ac_ext
20580 LIBS=$ac_func_search_save_LIBS
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_luaL_module" >&5
20583 $as_echo "$ac_cv_search_luaL_module" >&6; }
20584 ac_res=$ac_cv_search_luaL_module
20585 if test "$ac_res" != no; then :
20586   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20587   lua_havelib=$lua_vndot; $LUA -l compat-5.1 2>/dev/null;
20588              test "$?" = "0" && LUA_HAVE_COMPAT51=HAVE_COMPAT51
20589 else
20590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing luaL_openlib" >&5
20591 $as_echo_n "checking for library containing luaL_openlib... " >&6; }
20592 if ${ac_cv_search_luaL_openlib+:} false; then :
20593   $as_echo_n "(cached) " >&6
20594 else
20595   ac_func_search_save_LIBS=$LIBS
20596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20597 /* end confdefs.h.  */
20599 /* Override any GCC internal prototype to avoid an error.
20600    Use char because int might match the return type of a GCC
20601    builtin and then its argument prototype would still apply.  */
20602 #ifdef __cplusplus
20603 extern "C"
20604 #endif
20605 char luaL_openlib ();
20606 int
20607 main ()
20609 return luaL_openlib ();
20610   ;
20611   return 0;
20613 _ACEOF
20614 for ac_lib in '' lualib$lua_vdot lualib$lua_vndot lualib; do
20615   if test -z "$ac_lib"; then
20616     ac_res="none required"
20617   else
20618     ac_res=-l$ac_lib
20619     LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
20620   fi
20621   if ac_fn_c_try_link "$LINENO"; then :
20622   ac_cv_search_luaL_openlib=$ac_res
20624 rm -f core conftest.err conftest.$ac_objext \
20625     conftest$ac_exeext
20626   if ${ac_cv_search_luaL_openlib+:} false; then :
20627   break
20629 done
20630 if ${ac_cv_search_luaL_openlib+:} false; then :
20632 else
20633   ac_cv_search_luaL_openlib=no
20635 rm conftest.$ac_ext
20636 LIBS=$ac_func_search_save_LIBS
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_luaL_openlib" >&5
20639 $as_echo "$ac_cv_search_luaL_openlib" >&6; }
20640 ac_res=$ac_cv_search_luaL_openlib
20641 if test "$ac_res" != no; then :
20642   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20643   lua_havelib=$lua_vndot
20644 else
20645   COMP_LUA=
20652 else
20653   COMP_LUA=
20656       lua_libs=$LIBS
20657       LIBS=
20659       # Options to pass when configuring Lua module
20660       if test  "$lua_havelib" != "no"; then
20661         # OK, headers and libs found. Try to set lua flags
20662         # and modules installation dirs with pkg-config
20663         if test "$PKGCONFIG" != "no"; then
20664           if test "$lua_vndot" = "50"; then
20665             lua_pkg_prefix=lualib
20666           else
20667             lua_pkg_prefix=lua
20668           fi
20669           # try with dot, without dot and finally without version
20670           for f in $lua_pkg_prefix$lua_vdot $lua_pkg_prefix$lua_vndot $lua_pkg_prefix; do
20671             lua_exec_prefix=`$PKGCONFIG --variable=prefix $f 2>/dev/null`
20672             # same binaries?
20673             if test "$lua_exec_prefix/bin/lua" = "$LUA"; then
20674                 # OK, found CFLAGS. Get Lua LFLAGS and modules install dir
20675                 LUA_CFLAGS=`$PKGCONFIG --cflags $f 2>/dev/null`
20676                 LUA_LFLAGS=`$PKGCONFIG --libs $f 2>/dev/null`
20677                 LUA_INSTALL_CMOD=`$PKGCONFIG --variable=INSTALL_CMOD $f 2>/dev/null`
20678                 LUA_INSTALL_LMOD=`$PKGCONFIG --variable=INSTALL_LMOD $f 2>/dev/null`
20679                 break
20680             fi
20681           done
20682         fi
20684         LUA_RRD_LIBDIR="$langpref/lib/lua/$lua_vdot"
20685         # if lua 5.0 can't find compat-5.1, force installation of
20686         # compat-5.1.lua together with RRDtool.
20687         if test "$lua_vdot" = "5.0" -a "$LUA_HAVE_COMPAT51" != "HAVE_COMPAT51"; then
20688           lua_need_compat51=1
20689           LUA_INSTALL_LMOD="$LUA_RRD_LIBDIR"
20690         fi
20692         # if not set with pkg-config, use default values in src packages compat-5.1, lua 5.1
20693         if test "$LUA_CFLAGS" = ""; then
20694           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Setting Lua include and lib flags to defaults in compat-5.1 and lua 5.1 sources" >&5
20695 $as_echo "$as_me: WARNING: Setting Lua include and lib flags to defaults in compat-5.1 and lua 5.1 sources" >&2;}
20696           LUA_CFLAGS="-I/usr/local/include -I/usr/local/include/lua -I/usr/local/include/lua/$lua_vdot"
20697           LUA_LFLAGS="-L/usr/local/lib -L/usr/local/lib/lua -L/usr/local/lib/lua/$lua_vdot $lua_libs"
20698           LUA_INSTALL_CMOD="/usr/local/lib/lua/$lua_vdot"
20699         fi
20701                                 # Check whether --enable-lua-site-install was given.
20702 if test "${enable_lua_site_install+set}" = set; then :
20703   enableval=$enable_lua_site_install;
20704 else
20705   LUA_INSTALL_CMOD="$LUA_RRD_LIBDIR"; LUA_INSTALL_LMOD="$LUA_RRD_LIBDIR"
20709         LUA_DEFINES="-DLUA$lua_vndot -D$LUA_HAVE_COMPAT51"
20717       else
20718         enable_lua=no
20719         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Lua headers found but not the libraries! Please reinstall the dev packages for Lua $LUA_MAJOR.$LUA_MINOR" >&5
20720 $as_echo "Lua headers found but not the libraries! Please reinstall the dev packages for Lua $LUA_MAJOR.$LUA_MINOR" >&6; }
20721       fi
20722     fi
20723   fi
20725  if test "$lua_vdot" = "5.0" -a "$LUA_HAVE_COMPAT51" != "HAVE_COMPAT51"; then
20726   LUA_NEED_OUR_COMPAT51_TRUE=
20727   LUA_NEED_OUR_COMPAT51_FALSE='#'
20728 else
20729   LUA_NEED_OUR_COMPAT51_TRUE='#'
20730   LUA_NEED_OUR_COMPAT51_FALSE=
20733  if test "$LUA_INSTALL_CMOD" != "$LUA_RRD_LIBDIR"; then
20734   LUA_SITE_CINSTALL_TRUE=
20735   LUA_SITE_CINSTALL_FALSE='#'
20736 else
20737   LUA_SITE_CINSTALL_TRUE='#'
20738   LUA_SITE_CINSTALL_FALSE=
20741  if test "$LUA_INSTALL_LMOD" != "$LUA_RRD_LIBDIR"; then
20742   LUA_SITE_LINSTALL_TRUE=
20743   LUA_SITE_LINSTALL_FALSE='#'
20744 else
20745   LUA_SITE_LINSTALL_TRUE='#'
20746   LUA_SITE_LINSTALL_FALSE=
20749  if test "$lua_vndot" = "50"; then
20750   LUA50_TRUE=
20751   LUA50_FALSE='#'
20752 else
20753   LUA50_TRUE='#'
20754   LUA50_FALSE=
20757  if test "$enable_lua" = "yes"; then
20758   BUILD_LUA_TRUE=
20759   BUILD_LUA_FALSE='#'
20760 else
20761   BUILD_LUA_TRUE='#'
20762   BUILD_LUA_FALSE=
20766 enable_tcl_site=no
20768 # Check whether --enable-tcl was given.
20769 if test "${enable_tcl+set}" = set; then :
20770   enableval=$enable_tcl;
20771 else
20772   enable_tcl=yes
20776 if test  "$enable_tcl" = "yes"; then
20777     withval=""
20779 # Check whether --with-tcllib was given.
20780 if test "${with_tcllib+set}" = set; then :
20781   withval=$with_tcllib;
20784   enable_tcl=no
20785   for dir in $withval /usr/lib /usr/lib64 /usr/local/lib /usr/lib/tcl8.4 /usr/lib/tcl8.3 ; do
20786     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh in $dir" >&5
20787 $as_echo_n "checking for tclConfig.sh in $dir... " >&6; }
20788     if test -f "$dir/tclConfig.sh" ; then
20789         tcl_config=$dir/tclConfig.sh
20790         enable_tcl=yes
20791         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20792 $as_echo "yes" >&6; }
20793         break
20794     else
20795         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20796 $as_echo "no" >&6; }
20797     fi
20798   done
20800   if test "$enable_tcl" = "no"; then
20801         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&5
20802 $as_echo "$as_me: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&2;}
20803   else
20804         . $tcl_config
20805         TCL_PACKAGE_DIR="$TCL_PACKAGE_PATH/tclrrd$VERSION"
20806         if test -n "$TCL_INC_DIR"; then
20807           TCL_INCLUDE_SPEC="$TCL_INCLUDE_SPEC -I$TCL_INC_DIR"
20808         fi
20809   fi
20810   # Check whether --enable-tcl-site was given.
20811 if test "${enable_tcl_site+set}" = set; then :
20812   enableval=$enable_tcl_site;
20813 else
20814   enable_tcl_site=yes
20820  if test "$enable_tcl" = "yes" ; then
20821   BUILD_TCL_TRUE=
20822   BUILD_TCL_FALSE='#'
20823 else
20824   BUILD_TCL_TRUE='#'
20825   BUILD_TCL_FALSE=
20828  if test "$enable_tcl_site" = "yes" ; then
20829   BUILD_TCL_SITE_TRUE=
20830   BUILD_TCL_SITE_FALSE='#'
20831 else
20832   BUILD_TCL_SITE_TRUE='#'
20833   BUILD_TCL_SITE_FALSE=
20849 # Check whether --enable-python was given.
20850 if test "${enable_python+set}" = set; then :
20851   enableval=$enable_python;
20852 else
20853   enable_python=yes
20857 if test  "$enable_python" = "yes"; then
20864         if test -n "$PYTHON"; then
20865       # If the user set $PYTHON, use it and don't search something else.
20866       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.3" >&5
20867 $as_echo_n "checking whether $PYTHON version >= 2.3... " >&6; }
20868       prog="import sys
20869 # split strings by '.' and convert to numeric.  Append some zeros
20870 # because we need at least 4 digits for the hex conversion.
20871 # map returns an iterator in Python 3.0 and a list in 2.x
20872 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
20873 minverhex = 0
20874 # xrange is not present in Python 3.0 and range returns an iterator
20875 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20876 sys.exit(sys.hexversion < minverhex)"
20877   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
20878    ($PYTHON -c "$prog") >&5 2>&5
20879    ac_status=$?
20880    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881    (exit $ac_status); }; then :
20882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20883 $as_echo "yes" >&6; }
20884 else
20885   as_fn_error $? "too old" "$LINENO" 5
20887       am_display_PYTHON=$PYTHON
20888     else
20889       # Otherwise, try each interpreter until we find one that satisfies
20890       # VERSION.
20891       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.3" >&5
20892 $as_echo_n "checking for a Python interpreter with version >= 2.3... " >&6; }
20893 if ${am_cv_pathless_PYTHON+:} false; then :
20894   $as_echo_n "(cached) " >&6
20895 else
20897         for am_cv_pathless_PYTHON in python python2 python3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
20898           test "$am_cv_pathless_PYTHON" = none && break
20899           prog="import sys
20900 # split strings by '.' and convert to numeric.  Append some zeros
20901 # because we need at least 4 digits for the hex conversion.
20902 # map returns an iterator in Python 3.0 and a list in 2.x
20903 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
20904 minverhex = 0
20905 # xrange is not present in Python 3.0 and range returns an iterator
20906 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20907 sys.exit(sys.hexversion < minverhex)"
20908   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
20909    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
20910    ac_status=$?
20911    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912    (exit $ac_status); }; then :
20913   break
20915         done
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
20918 $as_echo "$am_cv_pathless_PYTHON" >&6; }
20919       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
20920       if test "$am_cv_pathless_PYTHON" = none; then
20921         PYTHON=:
20922       else
20923         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
20924 set dummy $am_cv_pathless_PYTHON; ac_word=$2
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20926 $as_echo_n "checking for $ac_word... " >&6; }
20927 if ${ac_cv_path_PYTHON+:} false; then :
20928   $as_echo_n "(cached) " >&6
20929 else
20930   case $PYTHON in
20931   [\\/]* | ?:[\\/]*)
20932   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20933   ;;
20934   *)
20935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20936 for as_dir in $PATH
20938   IFS=$as_save_IFS
20939   test -z "$as_dir" && as_dir=.
20940     for ac_exec_ext in '' $ac_executable_extensions; do
20941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20942     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20944     break 2
20945   fi
20946 done
20947   done
20948 IFS=$as_save_IFS
20950   ;;
20951 esac
20953 PYTHON=$ac_cv_path_PYTHON
20954 if test -n "$PYTHON"; then
20955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20956 $as_echo "$PYTHON" >&6; }
20957 else
20958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20959 $as_echo "no" >&6; }
20963       fi
20964       am_display_PYTHON=$am_cv_pathless_PYTHON
20965     fi
20968   if test "$PYTHON" = :; then
20969       enable_python=no
20970   else
20973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
20974 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
20975 if ${am_cv_python_version+:} false; then :
20976   $as_echo_n "(cached) " >&6
20977 else
20978   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
20981 $as_echo "$am_cv_python_version" >&6; }
20982   PYTHON_VERSION=$am_cv_python_version
20986   PYTHON_PREFIX='${prefix}'
20988   PYTHON_EXEC_PREFIX='${exec_prefix}'
20992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
20993 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
20994 if ${am_cv_python_platform+:} false; then :
20995   $as_echo_n "(cached) " >&6
20996 else
20997   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
21000 $as_echo "$am_cv_python_platform" >&6; }
21001   PYTHON_PLATFORM=$am_cv_python_platform
21006             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
21007 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
21008 if ${am_cv_python_pythondir+:} false; then :
21009   $as_echo_n "(cached) " >&6
21010 else
21011   if test "x$prefix" = xNONE
21012      then
21013        am_py_prefix=$ac_default_prefix
21014      else
21015        am_py_prefix=$prefix
21016      fi
21017      am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
21018      case $am_cv_python_pythondir in
21019      $am_py_prefix*)
21020        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
21021        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
21022        ;;
21023      *)
21024        case $am_py_prefix in
21025          /usr|/System*) ;;
21026          *)
21027           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
21028           ;;
21029        esac
21030        ;;
21031      esac
21034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
21035 $as_echo "$am_cv_python_pythondir" >&6; }
21036   pythondir=$am_cv_python_pythondir
21040   pkgpythondir=\${pythondir}/$PACKAGE
21043         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
21044 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
21045 if ${am_cv_python_pyexecdir+:} false; then :
21046   $as_echo_n "(cached) " >&6
21047 else
21048   if test "x$exec_prefix" = xNONE
21049      then
21050        am_py_exec_prefix=$am_py_prefix
21051      else
21052        am_py_exec_prefix=$exec_prefix
21053      fi
21054      am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
21055      case $am_cv_python_pyexecdir in
21056      $am_py_exec_prefix*)
21057        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
21058        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
21059        ;;
21060      *)
21061        case $am_py_exec_prefix in
21062          /usr|/System*) ;;
21063          *)
21064            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
21065            ;;
21066        esac
21067        ;;
21068      esac
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
21072 $as_echo "$am_cv_python_pyexecdir" >&6; }
21073   pyexecdir=$am_cv_python_pyexecdir
21077   pkgpyexecdir=\${pyexecdir}/$PACKAGE
21081   fi
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
21086 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
21087 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
21088 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
21089 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
21090 if test "$py_prefix" != "$py_exec_prefix"; then
21091   PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
21094 save_CPPFLAGS="$CPPFLAGS"
21095 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
21096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21097 /* end confdefs.h.  */
21098 #include <Python.h>
21099 _ACEOF
21100 if ac_fn_c_try_cpp "$LINENO"; then :
21101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21102 $as_echo "found" >&6; }
21104 else
21105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21106 $as_echo "not found" >&6; }
21107 enable_python=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find Python headers" >&5
21108 $as_echo "$as_me: WARNING: could not find Python headers" >&2;}
21110 rm -f conftest.err conftest.i conftest.$ac_ext
21111 CPPFLAGS="$save_CPPFLAGS"
21115 if test  x$enable_python = xno; then
21116         COMP_PYTHON=
21117 else
21118         COMP_PYTHON="python"
21124 for ac_prog in gnroff nroff
21126   # Extract the first word of "$ac_prog", so it can be a program name with args.
21127 set dummy $ac_prog; ac_word=$2
21128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21129 $as_echo_n "checking for $ac_word... " >&6; }
21130 if ${ac_cv_path_NROFF+:} false; then :
21131   $as_echo_n "(cached) " >&6
21132 else
21133   case $NROFF in
21134   [\\/]* | ?:[\\/]*)
21135   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
21136   ;;
21137   *)
21138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21139 for as_dir in $PATH
21141   IFS=$as_save_IFS
21142   test -z "$as_dir" && as_dir=.
21143     for ac_exec_ext in '' $ac_executable_extensions; do
21144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21145     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
21146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21147     break 2
21148   fi
21149 done
21150   done
21151 IFS=$as_save_IFS
21153   ;;
21154 esac
21156 NROFF=$ac_cv_path_NROFF
21157 if test -n "$NROFF"; then
21158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
21159 $as_echo "$NROFF" >&6; }
21160 else
21161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21162 $as_echo "no" >&6; }
21166   test -n "$NROFF" && break
21167 done
21169 if test x$NROFF = x; then
21170   as_fn_error $? "I need a copy of *nroff to format the documentation" "$LINENO" 5
21173 for ac_prog in groff troff
21175   # Extract the first word of "$ac_prog", so it can be a program name with args.
21176 set dummy $ac_prog; ac_word=$2
21177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21178 $as_echo_n "checking for $ac_word... " >&6; }
21179 if ${ac_cv_path_TROFF+:} false; then :
21180   $as_echo_n "(cached) " >&6
21181 else
21182   case $TROFF in
21183   [\\/]* | ?:[\\/]*)
21184   ac_cv_path_TROFF="$TROFF" # Let the user override the test with a path.
21185   ;;
21186   *)
21187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21188 for as_dir in $PATH
21190   IFS=$as_save_IFS
21191   test -z "$as_dir" && as_dir=.
21192     for ac_exec_ext in '' $ac_executable_extensions; do
21193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21194     ac_cv_path_TROFF="$as_dir/$ac_word$ac_exec_ext"
21195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21196     break 2
21197   fi
21198 done
21199   done
21200 IFS=$as_save_IFS
21202   ;;
21203 esac
21205 TROFF=$ac_cv_path_TROFF
21206 if test -n "$TROFF"; then
21207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TROFF" >&5
21208 $as_echo "$TROFF" >&6; }
21209 else
21210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21211 $as_echo "no" >&6; }
21215   test -n "$TROFF" && break
21216 done
21218 if test x$TROFF = x; then
21219   as_fn_error $? "I need a copy of *troff to format the documentation" "$LINENO" 5
21223 if test -z "$RRDDOCDIR"; then
21224    RRDDOCDIR='${datadir}/doc/${PACKAGE}-${VERSION}'; fi
21228 case $TERM in
21229        #   for the most important terminal types we directly know the sequences
21230        xterm|xterm*|vt220|vt220*)
21231                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
21232                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
21233        ;;
21234        vt100|vt100*|cygwin)
21235                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
21236                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
21237        ;;
21238        *)
21239                T_MD=''
21240                T_ME=''
21241        ;;
21242 esac
21243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
21244 $as_echo "" >&6; }
21245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Apply Configuration Information${T_ME}" >&5
21246 $as_echo "${T_MD}Apply Configuration Information${T_ME}" >&6; }
21249 ac_config_files="$ac_config_files examples/shared-demo.pl"
21251 ac_config_files="$ac_config_files examples/piped-demo.pl"
21253 ac_config_files="$ac_config_files examples/stripes.pl"
21255 ac_config_files="$ac_config_files examples/bigtops.pl"
21257 ac_config_files="$ac_config_files examples/minmax.pl"
21259 ac_config_files="$ac_config_files examples/4charts.pl"
21261 ac_config_files="$ac_config_files examples/perftest.pl"
21263 ac_config_files="$ac_config_files examples/Makefile"
21265 ac_config_files="$ac_config_files examples/rrdcached/Makefile"
21267 ac_config_files="$ac_config_files doc/Makefile"
21269 ac_config_files="$ac_config_files po/Makefile.in"
21271 ac_config_files="$ac_config_files src/Makefile"
21273 ac_config_files="$ac_config_files src/librrd.sym.in"
21275 ac_config_files="$ac_config_files src/librrd.pc"
21277 ac_config_files="$ac_config_files bindings/Makefile"
21279 ac_config_files="$ac_config_files bindings/tcl/Makefile"
21281 ac_config_files="$ac_config_files bindings/tcl/ifOctets.tcl"
21283 ac_config_files="$ac_config_files Makefile"
21285 ac_config_files="$ac_config_files bindings/lua/Makefile"
21288 ac_config_commands="$ac_config_commands default"
21293 cat >confcache <<\_ACEOF
21294 # This file is a shell script that caches the results of configure
21295 # tests run on this system so they can be shared between configure
21296 # scripts and configure runs, see configure's option --config-cache.
21297 # It is not useful on other systems.  If it contains results you don't
21298 # want to keep, you may remove or edit it.
21300 # config.status only pays attention to the cache file if you give it
21301 # the --recheck option to rerun configure.
21303 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21304 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21305 # following values.
21307 _ACEOF
21309 # The following way of writing the cache mishandles newlines in values,
21310 # but we know of no workaround that is simple, portable, and efficient.
21311 # So, we kill variables containing newlines.
21312 # Ultrix sh set writes to stderr and can't be redirected directly,
21313 # and sets the high bit in the cache file unless we assign to the vars.
21315   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21316     eval ac_val=\$$ac_var
21317     case $ac_val in #(
21318     *${as_nl}*)
21319       case $ac_var in #(
21320       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21321 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21322       esac
21323       case $ac_var in #(
21324       _ | IFS | as_nl) ;; #(
21325       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21326       *) { eval $ac_var=; unset $ac_var;} ;;
21327       esac ;;
21328     esac
21329   done
21331   (set) 2>&1 |
21332     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21333     *${as_nl}ac_space=\ *)
21334       # `set' does not quote correctly, so add quotes: double-quote
21335       # substitution turns \\\\ into \\, and sed turns \\ into \.
21336       sed -n \
21337         "s/'/'\\\\''/g;
21338           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21339       ;; #(
21340     *)
21341       # `set' quotes correctly as required by POSIX, so do not add quotes.
21342       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21343       ;;
21344     esac |
21345     sort
21346 ) |
21347   sed '
21348      /^ac_cv_env_/b end
21349      t clear
21350      :clear
21351      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21352      t end
21353      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21354      :end' >>confcache
21355 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21356   if test -w "$cache_file"; then
21357     if test "x$cache_file" != "x/dev/null"; then
21358       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21359 $as_echo "$as_me: updating cache $cache_file" >&6;}
21360       if test ! -f "$cache_file" || test -h "$cache_file"; then
21361         cat confcache >"$cache_file"
21362       else
21363         case $cache_file in #(
21364         */* | ?:*)
21365           mv -f confcache "$cache_file"$$ &&
21366           mv -f "$cache_file"$$ "$cache_file" ;; #(
21367         *)
21368           mv -f confcache "$cache_file" ;;
21369         esac
21370       fi
21371     fi
21372   else
21373     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21374 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21375   fi
21377 rm -f confcache
21379 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21380 # Let make expand exec_prefix.
21381 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21383 DEFS=-DHAVE_CONFIG_H
21385 ac_libobjs=
21386 ac_ltlibobjs=
21388 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21389   # 1. Remove the extension, and $U if already installed.
21390   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21391   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21392   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21393   #    will be set to the directory where LIBOBJS objects are built.
21394   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21395   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21396 done
21397 LIBOBJS=$ac_libobjs
21399 LTLIBOBJS=$ac_ltlibobjs
21402 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21403   as_fn_error $? "conditional \"AMDEP\" was never defined.
21404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21406 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21407   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21410  if test -n "$EXEEXT"; then
21411   am__EXEEXT_TRUE=
21412   am__EXEEXT_FALSE='#'
21413 else
21414   am__EXEEXT_TRUE='#'
21415   am__EXEEXT_FALSE=
21418 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21419   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21422 if test -z "${BUILD_RRDCGI_TRUE}" && test -z "${BUILD_RRDCGI_FALSE}"; then
21423   as_fn_error $? "conditional \"BUILD_RRDCGI\" was never defined.
21424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21426 if test -z "${STATIC_PROGRAMS_TRUE}" && test -z "${STATIC_PROGRAMS_FALSE}"; then
21427   as_fn_error $? "conditional \"STATIC_PROGRAMS\" was never defined.
21428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21431 if test -z "${BUILD_GETOPT_TRUE}" && test -z "${BUILD_GETOPT_FALSE}"; then
21432   as_fn_error $? "conditional \"BUILD_GETOPT\" was never defined.
21433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21435 if test -z "${BUILD_MULTITHREAD_TRUE}" && test -z "${BUILD_MULTITHREAD_FALSE}"; then
21436   as_fn_error $? "conditional \"BUILD_MULTITHREAD\" was never defined.
21437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21439 if test -z "${BUILD_LIBDBI_TRUE}" && test -z "${BUILD_LIBDBI_FALSE}"; then
21440   as_fn_error $? "conditional \"BUILD_LIBDBI\" was never defined.
21441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21443 if test -z "${BUILD_LIBWRAP_TRUE}" && test -z "${BUILD_LIBWRAP_FALSE}"; then
21444   as_fn_error $? "conditional \"BUILD_LIBWRAP\" was never defined.
21445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21447 if test -z "${BUILD_RRDGRAPH_TRUE}" && test -z "${BUILD_RRDGRAPH_FALSE}"; then
21448   as_fn_error $? "conditional \"BUILD_RRDGRAPH\" was never defined.
21449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21451 if test -z "${LUA_NEED_OUR_COMPAT51_TRUE}" && test -z "${LUA_NEED_OUR_COMPAT51_FALSE}"; then
21452   as_fn_error $? "conditional \"LUA_NEED_OUR_COMPAT51\" was never defined.
21453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21455 if test -z "${LUA_SITE_CINSTALL_TRUE}" && test -z "${LUA_SITE_CINSTALL_FALSE}"; then
21456   as_fn_error $? "conditional \"LUA_SITE_CINSTALL\" was never defined.
21457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21459 if test -z "${LUA_SITE_LINSTALL_TRUE}" && test -z "${LUA_SITE_LINSTALL_FALSE}"; then
21460   as_fn_error $? "conditional \"LUA_SITE_LINSTALL\" was never defined.
21461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21463 if test -z "${LUA50_TRUE}" && test -z "${LUA50_FALSE}"; then
21464   as_fn_error $? "conditional \"LUA50\" was never defined.
21465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21467 if test -z "${BUILD_LUA_TRUE}" && test -z "${BUILD_LUA_FALSE}"; then
21468   as_fn_error $? "conditional \"BUILD_LUA\" was never defined.
21469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21471 if test -z "${BUILD_TCL_TRUE}" && test -z "${BUILD_TCL_FALSE}"; then
21472   as_fn_error $? "conditional \"BUILD_TCL\" was never defined.
21473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21475 if test -z "${BUILD_TCL_SITE_TRUE}" && test -z "${BUILD_TCL_SITE_FALSE}"; then
21476   as_fn_error $? "conditional \"BUILD_TCL_SITE\" was never defined.
21477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21480 : "${CONFIG_STATUS=./config.status}"
21481 ac_write_fail=0
21482 ac_clean_files_save=$ac_clean_files
21483 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21485 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21486 as_write_fail=0
21487 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21488 #! $SHELL
21489 # Generated by $as_me.
21490 # Run this file to recreate the current configuration.
21491 # Compiler output produced by configure, useful for debugging
21492 # configure, is in config.log if it exists.
21494 debug=false
21495 ac_cs_recheck=false
21496 ac_cs_silent=false
21498 SHELL=\${CONFIG_SHELL-$SHELL}
21499 export SHELL
21500 _ASEOF
21501 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21502 ## -------------------- ##
21503 ## M4sh Initialization. ##
21504 ## -------------------- ##
21506 # Be more Bourne compatible
21507 DUALCASE=1; export DUALCASE # for MKS sh
21508 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21509   emulate sh
21510   NULLCMD=:
21511   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21512   # is contrary to our usage.  Disable this feature.
21513   alias -g '${1+"$@"}'='"$@"'
21514   setopt NO_GLOB_SUBST
21515 else
21516   case `(set -o) 2>/dev/null` in #(
21517   *posix*) :
21518     set -o posix ;; #(
21519   *) :
21520      ;;
21521 esac
21525 as_nl='
21527 export as_nl
21528 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21529 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21530 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21531 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21532 # Prefer a ksh shell builtin over an external printf program on Solaris,
21533 # but without wasting forks for bash or zsh.
21534 if test -z "$BASH_VERSION$ZSH_VERSION" \
21535     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21536   as_echo='print -r --'
21537   as_echo_n='print -rn --'
21538 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21539   as_echo='printf %s\n'
21540   as_echo_n='printf %s'
21541 else
21542   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21543     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21544     as_echo_n='/usr/ucb/echo -n'
21545   else
21546     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21547     as_echo_n_body='eval
21548       arg=$1;
21549       case $arg in #(
21550       *"$as_nl"*)
21551         expr "X$arg" : "X\\(.*\\)$as_nl";
21552         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21553       esac;
21554       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21555     '
21556     export as_echo_n_body
21557     as_echo_n='sh -c $as_echo_n_body as_echo'
21558   fi
21559   export as_echo_body
21560   as_echo='sh -c $as_echo_body as_echo'
21563 # The user is always right.
21564 if test "${PATH_SEPARATOR+set}" != set; then
21565   PATH_SEPARATOR=:
21566   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21567     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21568       PATH_SEPARATOR=';'
21569   }
21573 # IFS
21574 # We need space, tab and new line, in precisely that order.  Quoting is
21575 # there to prevent editors from complaining about space-tab.
21576 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21577 # splitting by setting IFS to empty value.)
21578 IFS=" ""        $as_nl"
21580 # Find who we are.  Look in the path if we contain no directory separator.
21581 as_myself=
21582 case $0 in #((
21583   *[\\/]* ) as_myself=$0 ;;
21584   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21585 for as_dir in $PATH
21587   IFS=$as_save_IFS
21588   test -z "$as_dir" && as_dir=.
21589     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21590   done
21591 IFS=$as_save_IFS
21593      ;;
21594 esac
21595 # We did not find ourselves, most probably we were run as `sh COMMAND'
21596 # in which case we are not to be found in the path.
21597 if test "x$as_myself" = x; then
21598   as_myself=$0
21600 if test ! -f "$as_myself"; then
21601   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21602   exit 1
21605 # Unset variables that we do not need and which cause bugs (e.g. in
21606 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21607 # suppresses any "Segmentation fault" message there.  '((' could
21608 # trigger a bug in pdksh 5.2.14.
21609 for as_var in BASH_ENV ENV MAIL MAILPATH
21610 do eval test x\${$as_var+set} = xset \
21611   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21612 done
21613 PS1='$ '
21614 PS2='> '
21615 PS4='+ '
21617 # NLS nuisances.
21618 LC_ALL=C
21619 export LC_ALL
21620 LANGUAGE=C
21621 export LANGUAGE
21623 # CDPATH.
21624 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21627 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21628 # ----------------------------------------
21629 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21630 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21631 # script with STATUS, using 1 if that was 0.
21632 as_fn_error ()
21634   as_status=$1; test $as_status -eq 0 && as_status=1
21635   if test "$4"; then
21636     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21637     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21638   fi
21639   $as_echo "$as_me: error: $2" >&2
21640   as_fn_exit $as_status
21641 } # as_fn_error
21644 # as_fn_set_status STATUS
21645 # -----------------------
21646 # Set $? to STATUS, without forking.
21647 as_fn_set_status ()
21649   return $1
21650 } # as_fn_set_status
21652 # as_fn_exit STATUS
21653 # -----------------
21654 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21655 as_fn_exit ()
21657   set +e
21658   as_fn_set_status $1
21659   exit $1
21660 } # as_fn_exit
21662 # as_fn_unset VAR
21663 # ---------------
21664 # Portably unset VAR.
21665 as_fn_unset ()
21667   { eval $1=; unset $1;}
21669 as_unset=as_fn_unset
21670 # as_fn_append VAR VALUE
21671 # ----------------------
21672 # Append the text in VALUE to the end of the definition contained in VAR. Take
21673 # advantage of any shell optimizations that allow amortized linear growth over
21674 # repeated appends, instead of the typical quadratic growth present in naive
21675 # implementations.
21676 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21677   eval 'as_fn_append ()
21678   {
21679     eval $1+=\$2
21680   }'
21681 else
21682   as_fn_append ()
21683   {
21684     eval $1=\$$1\$2
21685   }
21686 fi # as_fn_append
21688 # as_fn_arith ARG...
21689 # ------------------
21690 # Perform arithmetic evaluation on the ARGs, and store the result in the
21691 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21692 # must be portable across $(()) and expr.
21693 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21694   eval 'as_fn_arith ()
21695   {
21696     as_val=$(( $* ))
21697   }'
21698 else
21699   as_fn_arith ()
21700   {
21701     as_val=`expr "$@" || test $? -eq 1`
21702   }
21703 fi # as_fn_arith
21706 if expr a : '\(a\)' >/dev/null 2>&1 &&
21707    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21708   as_expr=expr
21709 else
21710   as_expr=false
21713 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21714   as_basename=basename
21715 else
21716   as_basename=false
21719 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21720   as_dirname=dirname
21721 else
21722   as_dirname=false
21725 as_me=`$as_basename -- "$0" ||
21726 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21727          X"$0" : 'X\(//\)$' \| \
21728          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21729 $as_echo X/"$0" |
21730     sed '/^.*\/\([^/][^/]*\)\/*$/{
21731             s//\1/
21732             q
21733           }
21734           /^X\/\(\/\/\)$/{
21735             s//\1/
21736             q
21737           }
21738           /^X\/\(\/\).*/{
21739             s//\1/
21740             q
21741           }
21742           s/.*/./; q'`
21744 # Avoid depending upon Character Ranges.
21745 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21746 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21747 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21748 as_cr_digits='0123456789'
21749 as_cr_alnum=$as_cr_Letters$as_cr_digits
21751 ECHO_C= ECHO_N= ECHO_T=
21752 case `echo -n x` in #(((((
21753 -n*)
21754   case `echo 'xy\c'` in
21755   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21756   xy)  ECHO_C='\c';;
21757   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21758        ECHO_T=' ';;
21759   esac;;
21761   ECHO_N='-n';;
21762 esac
21764 rm -f conf$$ conf$$.exe conf$$.file
21765 if test -d conf$$.dir; then
21766   rm -f conf$$.dir/conf$$.file
21767 else
21768   rm -f conf$$.dir
21769   mkdir conf$$.dir 2>/dev/null
21771 if (echo >conf$$.file) 2>/dev/null; then
21772   if ln -s conf$$.file conf$$ 2>/dev/null; then
21773     as_ln_s='ln -s'
21774     # ... but there are two gotchas:
21775     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21776     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21777     # In both cases, we have to default to `cp -p'.
21778     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21779       as_ln_s='cp -p'
21780   elif ln conf$$.file conf$$ 2>/dev/null; then
21781     as_ln_s=ln
21782   else
21783     as_ln_s='cp -p'
21784   fi
21785 else
21786   as_ln_s='cp -p'
21788 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21789 rmdir conf$$.dir 2>/dev/null
21792 # as_fn_mkdir_p
21793 # -------------
21794 # Create "$as_dir" as a directory, including parents if necessary.
21795 as_fn_mkdir_p ()
21798   case $as_dir in #(
21799   -*) as_dir=./$as_dir;;
21800   esac
21801   test -d "$as_dir" || eval $as_mkdir_p || {
21802     as_dirs=
21803     while :; do
21804       case $as_dir in #(
21805       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21806       *) as_qdir=$as_dir;;
21807       esac
21808       as_dirs="'$as_qdir' $as_dirs"
21809       as_dir=`$as_dirname -- "$as_dir" ||
21810 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21811          X"$as_dir" : 'X\(//\)[^/]' \| \
21812          X"$as_dir" : 'X\(//\)$' \| \
21813          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21814 $as_echo X"$as_dir" |
21815     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21816             s//\1/
21817             q
21818           }
21819           /^X\(\/\/\)[^/].*/{
21820             s//\1/
21821             q
21822           }
21823           /^X\(\/\/\)$/{
21824             s//\1/
21825             q
21826           }
21827           /^X\(\/\).*/{
21828             s//\1/
21829             q
21830           }
21831           s/.*/./; q'`
21832       test -d "$as_dir" && break
21833     done
21834     test -z "$as_dirs" || eval "mkdir $as_dirs"
21835   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21838 } # as_fn_mkdir_p
21839 if mkdir -p . 2>/dev/null; then
21840   as_mkdir_p='mkdir -p "$as_dir"'
21841 else
21842   test -d ./-p && rmdir ./-p
21843   as_mkdir_p=false
21846 if test -x / >/dev/null 2>&1; then
21847   as_test_x='test -x'
21848 else
21849   if ls -dL / >/dev/null 2>&1; then
21850     as_ls_L_option=L
21851   else
21852     as_ls_L_option=
21853   fi
21854   as_test_x='
21855     eval sh -c '\''
21856       if test -d "$1"; then
21857         test -d "$1/.";
21858       else
21859         case $1 in #(
21860         -*)set "./$1";;
21861         esac;
21862         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21863         ???[sx]*):;;*)false;;esac;fi
21864     '\'' sh
21865   '
21867 as_executable_p=$as_test_x
21869 # Sed expression to map a string onto a valid CPP name.
21870 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21872 # Sed expression to map a string onto a valid variable name.
21873 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21876 exec 6>&1
21877 ## ----------------------------------- ##
21878 ## Main body of $CONFIG_STATUS script. ##
21879 ## ----------------------------------- ##
21880 _ASEOF
21881 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21884 # Save the log message, to keep $0 and so on meaningful, and to
21885 # report actual input values of CONFIG_FILES etc. instead of their
21886 # values after options handling.
21887 ac_log="
21888 This file was extended by rrdtool $as_me 1.4.8, which was
21889 generated by GNU Autoconf 2.68.  Invocation command line was
21891   CONFIG_FILES    = $CONFIG_FILES
21892   CONFIG_HEADERS  = $CONFIG_HEADERS
21893   CONFIG_LINKS    = $CONFIG_LINKS
21894   CONFIG_COMMANDS = $CONFIG_COMMANDS
21895   $ $0 $@
21897 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21900 _ACEOF
21902 case $ac_config_files in *"
21903 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21904 esac
21906 case $ac_config_headers in *"
21907 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21908 esac
21911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21912 # Files that config.status was made for.
21913 config_files="$ac_config_files"
21914 config_headers="$ac_config_headers"
21915 config_commands="$ac_config_commands"
21917 _ACEOF
21919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21920 ac_cs_usage="\
21921 \`$as_me' instantiates files and other configuration actions
21922 from templates according to the current configuration.  Unless the files
21923 and actions are specified as TAGs, all are instantiated by default.
21925 Usage: $0 [OPTION]... [TAG]...
21927   -h, --help       print this help, then exit
21928   -V, --version    print version number and configuration settings, then exit
21929       --config     print configuration, then exit
21930   -q, --quiet, --silent
21931                    do not print progress messages
21932   -d, --debug      don't remove temporary files
21933       --recheck    update $as_me by reconfiguring in the same conditions
21934       --file=FILE[:TEMPLATE]
21935                    instantiate the configuration file FILE
21936       --header=FILE[:TEMPLATE]
21937                    instantiate the configuration header FILE
21939 Configuration files:
21940 $config_files
21942 Configuration headers:
21943 $config_headers
21945 Configuration commands:
21946 $config_commands
21948 Report bugs to the package provider."
21950 _ACEOF
21951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21952 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21953 ac_cs_version="\\
21954 rrdtool config.status 1.4.8
21955 configured by $0, generated by GNU Autoconf 2.68,
21956   with options \\"\$ac_cs_config\\"
21958 Copyright (C) 2010 Free Software Foundation, Inc.
21959 This config.status script is free software; the Free Software Foundation
21960 gives unlimited permission to copy, distribute and modify it."
21962 ac_pwd='$ac_pwd'
21963 srcdir='$srcdir'
21964 INSTALL='$INSTALL'
21965 MKDIR_P='$MKDIR_P'
21966 AWK='$AWK'
21967 test -n "\$AWK" || AWK=awk
21968 _ACEOF
21970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21971 # The default lists apply if the user does not specify any file.
21972 ac_need_defaults=:
21973 while test $# != 0
21975   case $1 in
21976   --*=?*)
21977     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21978     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21979     ac_shift=:
21980     ;;
21981   --*=)
21982     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21983     ac_optarg=
21984     ac_shift=:
21985     ;;
21986   *)
21987     ac_option=$1
21988     ac_optarg=$2
21989     ac_shift=shift
21990     ;;
21991   esac
21993   case $ac_option in
21994   # Handling of the options.
21995   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21996     ac_cs_recheck=: ;;
21997   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21998     $as_echo "$ac_cs_version"; exit ;;
21999   --config | --confi | --conf | --con | --co | --c )
22000     $as_echo "$ac_cs_config"; exit ;;
22001   --debug | --debu | --deb | --de | --d | -d )
22002     debug=: ;;
22003   --file | --fil | --fi | --f )
22004     $ac_shift
22005     case $ac_optarg in
22006     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22007     '') as_fn_error $? "missing file argument" ;;
22008     esac
22009     as_fn_append CONFIG_FILES " '$ac_optarg'"
22010     ac_need_defaults=false;;
22011   --header | --heade | --head | --hea )
22012     $ac_shift
22013     case $ac_optarg in
22014     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22015     esac
22016     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22017     ac_need_defaults=false;;
22018   --he | --h)
22019     # Conflict between --help and --header
22020     as_fn_error $? "ambiguous option: \`$1'
22021 Try \`$0 --help' for more information.";;
22022   --help | --hel | -h )
22023     $as_echo "$ac_cs_usage"; exit ;;
22024   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22025   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22026     ac_cs_silent=: ;;
22028   # This is an error.
22029   -*) as_fn_error $? "unrecognized option: \`$1'
22030 Try \`$0 --help' for more information." ;;
22032   *) as_fn_append ac_config_targets " $1"
22033      ac_need_defaults=false ;;
22035   esac
22036   shift
22037 done
22039 ac_configure_extra_args=
22041 if $ac_cs_silent; then
22042   exec 6>/dev/null
22043   ac_configure_extra_args="$ac_configure_extra_args --silent"
22046 _ACEOF
22047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22048 if \$ac_cs_recheck; then
22049   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22050   shift
22051   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22052   CONFIG_SHELL='$SHELL'
22053   export CONFIG_SHELL
22054   exec "\$@"
22057 _ACEOF
22058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22059 exec 5>>config.log
22061   echo
22062   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22063 ## Running $as_me. ##
22064 _ASBOX
22065   $as_echo "$ac_log"
22066 } >&5
22068 _ACEOF
22069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22071 # INIT-COMMANDS
22073 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22076 # The HP-UX ksh and POSIX shell print the target directory to stdout
22077 # if CDPATH is set.
22078 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22080 sed_quote_subst='$sed_quote_subst'
22081 double_quote_subst='$double_quote_subst'
22082 delay_variable_subst='$delay_variable_subst'
22083 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22084 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22085 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22086 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22087 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22088 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22089 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22090 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22091 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22092 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22093 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22094 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22095 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22096 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22097 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22098 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22099 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22100 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22101 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22102 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22103 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22104 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22105 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22106 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22107 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22108 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22109 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22110 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22111 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22112 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22113 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22114 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22115 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22116 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22117 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22118 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22119 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22120 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22121 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22122 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22123 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22124 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22125 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22126 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22127 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22128 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22129 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22130 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22131 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22132 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22133 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22134 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22135 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22136 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22137 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22138 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22139 lt_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"`'
22140 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22141 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22142 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22143 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22144 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22145 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22146 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22147 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22148 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22149 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22150 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22151 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22152 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22153 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22154 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22155 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22156 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22157 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22158 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22159 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22160 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22161 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22162 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22163 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22164 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22165 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22166 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22167 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22168 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22169 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22170 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22171 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22172 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22173 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22174 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22175 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22176 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22177 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22178 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22179 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22180 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22181 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22182 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22183 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22184 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22185 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22186 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22187 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22188 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22189 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22190 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22191 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22192 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22193 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22194 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22195 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22196 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22197 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22198 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22199 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22200 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22201 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22202 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22203 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22204 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22205 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22206 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22207 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22208 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22209 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22210 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22211 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22212 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22214 LTCC='$LTCC'
22215 LTCFLAGS='$LTCFLAGS'
22216 compiler='$compiler_DEFAULT'
22218 # A function that is used when there is no print builtin or printf.
22219 func_fallback_echo ()
22221   eval 'cat <<_LTECHO_EOF
22222 \$1
22223 _LTECHO_EOF'
22226 # Quote evaled strings.
22227 for var in SHELL \
22228 ECHO \
22229 PATH_SEPARATOR \
22230 SED \
22231 GREP \
22232 EGREP \
22233 FGREP \
22234 LD \
22235 NM \
22236 LN_S \
22237 lt_SP2NL \
22238 lt_NL2SP \
22239 reload_flag \
22240 OBJDUMP \
22241 deplibs_check_method \
22242 file_magic_cmd \
22243 file_magic_glob \
22244 want_nocaseglob \
22245 DLLTOOL \
22246 sharedlib_from_linklib_cmd \
22247 AR \
22248 AR_FLAGS \
22249 archiver_list_spec \
22250 STRIP \
22251 RANLIB \
22252 CC \
22253 CFLAGS \
22254 compiler \
22255 lt_cv_sys_global_symbol_pipe \
22256 lt_cv_sys_global_symbol_to_cdecl \
22257 lt_cv_sys_global_symbol_to_c_name_address \
22258 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22259 nm_file_list_spec \
22260 lt_prog_compiler_no_builtin_flag \
22261 lt_prog_compiler_pic \
22262 lt_prog_compiler_wl \
22263 lt_prog_compiler_static \
22264 lt_cv_prog_compiler_c_o \
22265 need_locks \
22266 MANIFEST_TOOL \
22267 DSYMUTIL \
22268 NMEDIT \
22269 LIPO \
22270 OTOOL \
22271 OTOOL64 \
22272 shrext_cmds \
22273 export_dynamic_flag_spec \
22274 whole_archive_flag_spec \
22275 compiler_needs_object \
22276 with_gnu_ld \
22277 allow_undefined_flag \
22278 no_undefined_flag \
22279 hardcode_libdir_flag_spec \
22280 hardcode_libdir_separator \
22281 exclude_expsyms \
22282 include_expsyms \
22283 file_list_spec \
22284 variables_saved_for_relink \
22285 libname_spec \
22286 library_names_spec \
22287 soname_spec \
22288 install_override_mode \
22289 finish_eval \
22290 old_striplib \
22291 striplib; do
22292     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22293     *[\\\\\\\`\\"\\\$]*)
22294       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22295       ;;
22296     *)
22297       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22298       ;;
22299     esac
22300 done
22302 # Double-quote double-evaled strings.
22303 for var in reload_cmds \
22304 old_postinstall_cmds \
22305 old_postuninstall_cmds \
22306 old_archive_cmds \
22307 extract_expsyms_cmds \
22308 old_archive_from_new_cmds \
22309 old_archive_from_expsyms_cmds \
22310 archive_cmds \
22311 archive_expsym_cmds \
22312 module_cmds \
22313 module_expsym_cmds \
22314 export_symbols_cmds \
22315 prelink_cmds \
22316 postlink_cmds \
22317 postinstall_cmds \
22318 postuninstall_cmds \
22319 finish_cmds \
22320 sys_lib_search_path_spec \
22321 sys_lib_dlsearch_path_spec; do
22322     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22323     *[\\\\\\\`\\"\\\$]*)
22324       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22325       ;;
22326     *)
22327       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22328       ;;
22329     esac
22330 done
22332 ac_aux_dir='$ac_aux_dir'
22333 xsi_shell='$xsi_shell'
22334 lt_shell_append='$lt_shell_append'
22336 # See if we are running on zsh, and set the options which allow our
22337 # commands through without removal of \ escapes INIT.
22338 if test -n "\${ZSH_VERSION+set}" ; then
22339    setopt NO_GLOB_SUBST
22343     PACKAGE='$PACKAGE'
22344     VERSION='$VERSION'
22345     TIMESTAMP='$TIMESTAMP'
22346     RM='$RM'
22347     ofile='$ofile'
22351 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22352     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
22353     # from automake < 1.5.
22354     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22355     # Capture the value of LINGUAS because we need it to compute CATALOGS.
22356     LINGUAS="${LINGUAS-%UNSET%}"
22360 _ACEOF
22362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22364 # Handling of arguments.
22365 for ac_config_target in $ac_config_targets
22367   case $ac_config_target in
22368     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22369     "rrd_config.h") CONFIG_HEADERS="$CONFIG_HEADERS rrd_config.h" ;;
22370     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22371     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
22372     "examples/shared-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/shared-demo.pl" ;;
22373     "examples/piped-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/piped-demo.pl" ;;
22374     "examples/stripes.pl") CONFIG_FILES="$CONFIG_FILES examples/stripes.pl" ;;
22375     "examples/bigtops.pl") CONFIG_FILES="$CONFIG_FILES examples/bigtops.pl" ;;
22376     "examples/minmax.pl") CONFIG_FILES="$CONFIG_FILES examples/minmax.pl" ;;
22377     "examples/4charts.pl") CONFIG_FILES="$CONFIG_FILES examples/4charts.pl" ;;
22378     "examples/perftest.pl") CONFIG_FILES="$CONFIG_FILES examples/perftest.pl" ;;
22379     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
22380     "examples/rrdcached/Makefile") CONFIG_FILES="$CONFIG_FILES examples/rrdcached/Makefile" ;;
22381     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22382     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22383     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22384     "src/librrd.sym.in") CONFIG_FILES="$CONFIG_FILES src/librrd.sym.in" ;;
22385     "src/librrd.pc") CONFIG_FILES="$CONFIG_FILES src/librrd.pc" ;;
22386     "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
22387     "bindings/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/tcl/Makefile" ;;
22388     "bindings/tcl/ifOctets.tcl") CONFIG_FILES="$CONFIG_FILES bindings/tcl/ifOctets.tcl" ;;
22389     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22390     "bindings/lua/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/lua/Makefile" ;;
22391     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22393   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22394   esac
22395 done
22398 # If the user did not use the arguments to specify the items to instantiate,
22399 # then the envvar interface is used.  Set only those that are not.
22400 # We use the long form for the default assignment because of an extremely
22401 # bizarre bug on SunOS 4.1.3.
22402 if $ac_need_defaults; then
22403   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22404   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22405   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22408 # Have a temporary directory for convenience.  Make it in the build tree
22409 # simply because there is no reason against having it here, and in addition,
22410 # creating and moving files from /tmp can sometimes cause problems.
22411 # Hook for its removal unless debugging.
22412 # Note that there is a small window in which the directory will not be cleaned:
22413 # after its creation but before its name has been assigned to `$tmp'.
22414 $debug ||
22416   tmp= ac_tmp=
22417   trap 'exit_status=$?
22418   : "${ac_tmp:=$tmp}"
22419   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22420 ' 0
22421   trap 'as_fn_exit 1' 1 2 13 15
22423 # Create a (secure) tmp directory for tmp files.
22426   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22427   test -d "$tmp"
22428 }  ||
22430   tmp=./conf$$-$RANDOM
22431   (umask 077 && mkdir "$tmp")
22432 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22433 ac_tmp=$tmp
22435 # Set up the scripts for CONFIG_FILES section.
22436 # No need to generate them if there are no CONFIG_FILES.
22437 # This happens for instance with `./config.status config.h'.
22438 if test -n "$CONFIG_FILES"; then
22441 ac_cr=`echo X | tr X '\015'`
22442 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22443 # But we know of no other shell where ac_cr would be empty at this
22444 # point, so we can use a bashism as a fallback.
22445 if test "x$ac_cr" = x; then
22446   eval ac_cr=\$\'\\r\'
22448 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22449 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22450   ac_cs_awk_cr='\\r'
22451 else
22452   ac_cs_awk_cr=$ac_cr
22455 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22456 _ACEOF
22460   echo "cat >conf$$subs.awk <<_ACEOF" &&
22461   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22462   echo "_ACEOF"
22463 } >conf$$subs.sh ||
22464   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22465 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22466 ac_delim='%!_!# '
22467 for ac_last_try in false false false false false :; do
22468   . ./conf$$subs.sh ||
22469     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22471   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22472   if test $ac_delim_n = $ac_delim_num; then
22473     break
22474   elif $ac_last_try; then
22475     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22476   else
22477     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22478   fi
22479 done
22480 rm -f conf$$subs.sh
22482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22483 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22484 _ACEOF
22485 sed -n '
22487 s/^/S["/; s/!.*/"]=/
22490 s/^[^!]*!//
22491 :repl
22492 t repl
22493 s/'"$ac_delim"'$//
22494 t delim
22495 :nl
22497 s/\(.\{148\}\)..*/\1/
22498 t more1
22499 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22502 b repl
22503 :more1
22504 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22507 s/.\{148\}//
22508 t nl
22509 :delim
22511 s/\(.\{148\}\)..*/\1/
22512 t more2
22513 s/["\\]/\\&/g; s/^/"/; s/$/"/
22516 :more2
22517 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22520 s/.\{148\}//
22521 t delim
22522 ' <conf$$subs.awk | sed '
22523 /^[^""]/{
22524   N
22525   s/\n//
22527 ' >>$CONFIG_STATUS || ac_write_fail=1
22528 rm -f conf$$subs.awk
22529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22530 _ACAWK
22531 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22532   for (key in S) S_is_set[key] = 1
22533   FS = "\a"
22537   line = $ 0
22538   nfields = split(line, field, "@")
22539   substed = 0
22540   len = length(field[1])
22541   for (i = 2; i < nfields; i++) {
22542     key = field[i]
22543     keylen = length(key)
22544     if (S_is_set[key]) {
22545       value = S[key]
22546       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22547       len += length(value) + length(field[++i])
22548       substed = 1
22549     } else
22550       len += 1 + keylen
22551   }
22553   print line
22556 _ACAWK
22557 _ACEOF
22558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22559 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22560   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22561 else
22562   cat
22563 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22564   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22565 _ACEOF
22567 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22568 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22569 # trailing colons and then remove the whole line if VPATH becomes empty
22570 # (actually we leave an empty line to preserve line numbers).
22571 if test "x$srcdir" = x.; then
22572   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
22574 s///
22575 s/^/:/
22576 s/[      ]*$/:/
22577 s/:\$(srcdir):/:/g
22578 s/:\${srcdir}:/:/g
22579 s/:@srcdir@:/:/g
22580 s/^:*//
22581 s/:*$//
22583 s/\(=[   ]*\).*/\1/
22585 s/\n//
22586 s/^[^=]*=[       ]*$//
22590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22591 fi # test -n "$CONFIG_FILES"
22593 # Set up the scripts for CONFIG_HEADERS section.
22594 # No need to generate them if there are no CONFIG_HEADERS.
22595 # This happens for instance with `./config.status Makefile'.
22596 if test -n "$CONFIG_HEADERS"; then
22597 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22598 BEGIN {
22599 _ACEOF
22601 # Transform confdefs.h into an awk script `defines.awk', embedded as
22602 # here-document in config.status, that substitutes the proper values into
22603 # config.h.in to produce config.h.
22605 # Create a delimiter string that does not exist in confdefs.h, to ease
22606 # handling of long lines.
22607 ac_delim='%!_!# '
22608 for ac_last_try in false false :; do
22609   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22610   if test -z "$ac_tt"; then
22611     break
22612   elif $ac_last_try; then
22613     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22614   else
22615     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22616   fi
22617 done
22619 # For the awk script, D is an array of macro values keyed by name,
22620 # likewise P contains macro parameters if any.  Preserve backslash
22621 # newline sequences.
22623 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22624 sed -n '
22625 s/.\{148\}/&'"$ac_delim"'/g
22626 t rset
22627 :rset
22628 s/^[     ]*#[    ]*define[       ][      ]*/ /
22629 t def
22631 :def
22632 s/\\$//
22633 t bsnl
22634 s/["\\]/\\&/g
22635 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22636 D["\1"]=" \3"/p
22637 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
22639 :bsnl
22640 s/["\\]/\\&/g
22641 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22642 D["\1"]=" \3\\\\\\n"\\/p
22643 t cont
22644 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22645 t cont
22647 :cont
22649 s/.\{148\}/&'"$ac_delim"'/g
22650 t clear
22651 :clear
22652 s/\\$//
22653 t bsnlc
22654 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22656 :bsnlc
22657 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22658 b cont
22659 ' <confdefs.h | sed '
22660 s/'"$ac_delim"'/"\\\
22661 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22664   for (key in D) D_is_set[key] = 1
22665   FS = "\a"
22667 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22668   line = \$ 0
22669   split(line, arg, " ")
22670   if (arg[1] == "#") {
22671     defundef = arg[2]
22672     mac1 = arg[3]
22673   } else {
22674     defundef = substr(arg[1], 2)
22675     mac1 = arg[2]
22676   }
22677   split(mac1, mac2, "(") #)
22678   macro = mac2[1]
22679   prefix = substr(line, 1, index(line, defundef) - 1)
22680   if (D_is_set[macro]) {
22681     # Preserve the white space surrounding the "#".
22682     print prefix "define", macro P[macro] D[macro]
22683     next
22684   } else {
22685     # Replace #undef with comments.  This is necessary, for example,
22686     # in the case of _POSIX_SOURCE, which is predefined and required
22687     # on some systems where configure will not decide to define it.
22688     if (defundef == "undef") {
22689       print "/*", prefix defundef, macro, "*/"
22690       next
22691     }
22692   }
22694 { print }
22695 _ACAWK
22696 _ACEOF
22697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22698   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22699 fi # test -n "$CONFIG_HEADERS"
22702 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22703 shift
22704 for ac_tag
22706   case $ac_tag in
22707   :[FHLC]) ac_mode=$ac_tag; continue;;
22708   esac
22709   case $ac_mode$ac_tag in
22710   :[FHL]*:*);;
22711   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22712   :[FH]-) ac_tag=-:-;;
22713   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22714   esac
22715   ac_save_IFS=$IFS
22716   IFS=:
22717   set x $ac_tag
22718   IFS=$ac_save_IFS
22719   shift
22720   ac_file=$1
22721   shift
22723   case $ac_mode in
22724   :L) ac_source=$1;;
22725   :[FH])
22726     ac_file_inputs=
22727     for ac_f
22728     do
22729       case $ac_f in
22730       -) ac_f="$ac_tmp/stdin";;
22731       *) # Look for the file first in the build tree, then in the source tree
22732          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22733          # because $ac_f cannot contain `:'.
22734          test -f "$ac_f" ||
22735            case $ac_f in
22736            [\\/$]*) false;;
22737            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22738            esac ||
22739            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22740       esac
22741       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22742       as_fn_append ac_file_inputs " '$ac_f'"
22743     done
22745     # Let's still pretend it is `configure' which instantiates (i.e., don't
22746     # use $as_me), people would be surprised to read:
22747     #    /* config.h.  Generated by config.status.  */
22748     configure_input='Generated from '`
22749           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22750         `' by configure.'
22751     if test x"$ac_file" != x-; then
22752       configure_input="$ac_file.  $configure_input"
22753       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22754 $as_echo "$as_me: creating $ac_file" >&6;}
22755     fi
22756     # Neutralize special characters interpreted by sed in replacement strings.
22757     case $configure_input in #(
22758     *\&* | *\|* | *\\* )
22759        ac_sed_conf_input=`$as_echo "$configure_input" |
22760        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22761     *) ac_sed_conf_input=$configure_input;;
22762     esac
22764     case $ac_tag in
22765     *:-:* | *:-) cat >"$ac_tmp/stdin" \
22766       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22767     esac
22768     ;;
22769   esac
22771   ac_dir=`$as_dirname -- "$ac_file" ||
22772 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22773          X"$ac_file" : 'X\(//\)[^/]' \| \
22774          X"$ac_file" : 'X\(//\)$' \| \
22775          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22776 $as_echo X"$ac_file" |
22777     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22778             s//\1/
22779             q
22780           }
22781           /^X\(\/\/\)[^/].*/{
22782             s//\1/
22783             q
22784           }
22785           /^X\(\/\/\)$/{
22786             s//\1/
22787             q
22788           }
22789           /^X\(\/\).*/{
22790             s//\1/
22791             q
22792           }
22793           s/.*/./; q'`
22794   as_dir="$ac_dir"; as_fn_mkdir_p
22795   ac_builddir=.
22797 case "$ac_dir" in
22798 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22800   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22801   # A ".." for each directory in $ac_dir_suffix.
22802   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22803   case $ac_top_builddir_sub in
22804   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22805   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22806   esac ;;
22807 esac
22808 ac_abs_top_builddir=$ac_pwd
22809 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22810 # for backward compatibility:
22811 ac_top_builddir=$ac_top_build_prefix
22813 case $srcdir in
22814   .)  # We are building in place.
22815     ac_srcdir=.
22816     ac_top_srcdir=$ac_top_builddir_sub
22817     ac_abs_top_srcdir=$ac_pwd ;;
22818   [\\/]* | ?:[\\/]* )  # Absolute name.
22819     ac_srcdir=$srcdir$ac_dir_suffix;
22820     ac_top_srcdir=$srcdir
22821     ac_abs_top_srcdir=$srcdir ;;
22822   *) # Relative name.
22823     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22824     ac_top_srcdir=$ac_top_build_prefix$srcdir
22825     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22826 esac
22827 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22830   case $ac_mode in
22831   :F)
22832   #
22833   # CONFIG_FILE
22834   #
22836   case $INSTALL in
22837   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22838   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22839   esac
22840   ac_MKDIR_P=$MKDIR_P
22841   case $MKDIR_P in
22842   [\\/$]* | ?:[\\/]* ) ;;
22843   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22844   esac
22845 _ACEOF
22847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22848 # If the template does not know about datarootdir, expand it.
22849 # FIXME: This hack should be removed a few years after 2.60.
22850 ac_datarootdir_hack=; ac_datarootdir_seen=
22851 ac_sed_dataroot='
22852 /datarootdir/ {
22853   p
22854   q
22856 /@datadir@/p
22857 /@docdir@/p
22858 /@infodir@/p
22859 /@localedir@/p
22860 /@mandir@/p'
22861 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22862 *datarootdir*) ac_datarootdir_seen=yes;;
22863 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22864   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22865 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22866 _ACEOF
22867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22868   ac_datarootdir_hack='
22869   s&@datadir@&$datadir&g
22870   s&@docdir@&$docdir&g
22871   s&@infodir@&$infodir&g
22872   s&@localedir@&$localedir&g
22873   s&@mandir@&$mandir&g
22874   s&\\\${datarootdir}&$datarootdir&g' ;;
22875 esac
22876 _ACEOF
22878 # Neutralize VPATH when `$srcdir' = `.'.
22879 # Shell code in configure.ac might set extrasub.
22880 # FIXME: do we really want to maintain this feature?
22881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22882 ac_sed_extra="$ac_vpsub
22883 $extrasub
22884 _ACEOF
22885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22887 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22888 s|@configure_input@|$ac_sed_conf_input|;t t
22889 s&@top_builddir@&$ac_top_builddir_sub&;t t
22890 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22891 s&@srcdir@&$ac_srcdir&;t t
22892 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22893 s&@top_srcdir@&$ac_top_srcdir&;t t
22894 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22895 s&@builddir@&$ac_builddir&;t t
22896 s&@abs_builddir@&$ac_abs_builddir&;t t
22897 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22898 s&@INSTALL@&$ac_INSTALL&;t t
22899 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22900 $ac_datarootdir_hack
22902 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22903   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22905 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22906   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22907   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
22908       "$ac_tmp/out"`; test -z "$ac_out"; } &&
22909   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22910 which seems to be undefined.  Please make sure it is defined" >&5
22911 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22912 which seems to be undefined.  Please make sure it is defined" >&2;}
22914   rm -f "$ac_tmp/stdin"
22915   case $ac_file in
22916   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22917   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22918   esac \
22919   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22920  ;;
22921   :H)
22922   #
22923   # CONFIG_HEADER
22924   #
22925   if test x"$ac_file" != x-; then
22926     {
22927       $as_echo "/* $configure_input  */" \
22928       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22929     } >"$ac_tmp/config.h" \
22930       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22931     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22932       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22933 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22934     else
22935       rm -f "$ac_file"
22936       mv "$ac_tmp/config.h" "$ac_file" \
22937         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22938     fi
22939   else
22940     $as_echo "/* $configure_input  */" \
22941       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22942       || as_fn_error $? "could not create -" "$LINENO" 5
22943   fi
22944 # Compute "$ac_file"'s index in $config_headers.
22945 _am_arg="$ac_file"
22946 _am_stamp_count=1
22947 for _am_header in $config_headers :; do
22948   case $_am_header in
22949     $_am_arg | $_am_arg:* )
22950       break ;;
22951     * )
22952       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22953   esac
22954 done
22955 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22956 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22957          X"$_am_arg" : 'X\(//\)[^/]' \| \
22958          X"$_am_arg" : 'X\(//\)$' \| \
22959          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22960 $as_echo X"$_am_arg" |
22961     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22962             s//\1/
22963             q
22964           }
22965           /^X\(\/\/\)[^/].*/{
22966             s//\1/
22967             q
22968           }
22969           /^X\(\/\/\)$/{
22970             s//\1/
22971             q
22972           }
22973           /^X\(\/\).*/{
22974             s//\1/
22975             q
22976           }
22977           s/.*/./; q'`/stamp-h$_am_stamp_count
22978  ;;
22980   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22981 $as_echo "$as_me: executing $ac_file commands" >&6;}
22982  ;;
22983   esac
22986   case $ac_file$ac_mode in
22987     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22988   # Autoconf 2.62 quotes --file arguments for eval, but not when files
22989   # are listed without --file.  Let's play safe and only enable the eval
22990   # if we detect the quoting.
22991   case $CONFIG_FILES in
22992   *\'*) eval set x "$CONFIG_FILES" ;;
22993   *)   set x $CONFIG_FILES ;;
22994   esac
22995   shift
22996   for mf
22997   do
22998     # Strip MF so we end up with the name of the file.
22999     mf=`echo "$mf" | sed -e 's/:.*$//'`
23000     # Check whether this is an Automake generated Makefile or not.
23001     # We used to match only the files named `Makefile.in', but
23002     # some people rename them; so instead we look at the file content.
23003     # Grep'ing the first line is not enough: some people post-process
23004     # each Makefile.in and add a new line on top of each file to say so.
23005     # Grep'ing the whole file is not good either: AIX grep has a line
23006     # limit of 2048, but all sed's we know have understand at least 4000.
23007     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23008       dirpart=`$as_dirname -- "$mf" ||
23009 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23010          X"$mf" : 'X\(//\)[^/]' \| \
23011          X"$mf" : 'X\(//\)$' \| \
23012          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23013 $as_echo X"$mf" |
23014     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23015             s//\1/
23016             q
23017           }
23018           /^X\(\/\/\)[^/].*/{
23019             s//\1/
23020             q
23021           }
23022           /^X\(\/\/\)$/{
23023             s//\1/
23024             q
23025           }
23026           /^X\(\/\).*/{
23027             s//\1/
23028             q
23029           }
23030           s/.*/./; q'`
23031     else
23032       continue
23033     fi
23034     # Extract the definition of DEPDIR, am__include, and am__quote
23035     # from the Makefile without running `make'.
23036     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23037     test -z "$DEPDIR" && continue
23038     am__include=`sed -n 's/^am__include = //p' < "$mf"`
23039     test -z "am__include" && continue
23040     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23041     # When using ansi2knr, U may be empty or an underscore; expand it
23042     U=`sed -n 's/^U = //p' < "$mf"`
23043     # Find all dependency output files, they are included files with
23044     # $(DEPDIR) in their names.  We invoke sed twice because it is the
23045     # simplest approach to changing $(DEPDIR) to its actual value in the
23046     # expansion.
23047     for file in `sed -n "
23048       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23049          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23050       # Make sure the directory exists.
23051       test -f "$dirpart/$file" && continue
23052       fdir=`$as_dirname -- "$file" ||
23053 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23054          X"$file" : 'X\(//\)[^/]' \| \
23055          X"$file" : 'X\(//\)$' \| \
23056          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23057 $as_echo X"$file" |
23058     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23059             s//\1/
23060             q
23061           }
23062           /^X\(\/\/\)[^/].*/{
23063             s//\1/
23064             q
23065           }
23066           /^X\(\/\/\)$/{
23067             s//\1/
23068             q
23069           }
23070           /^X\(\/\).*/{
23071             s//\1/
23072             q
23073           }
23074           s/.*/./; q'`
23075       as_dir=$dirpart/$fdir; as_fn_mkdir_p
23076       # echo "creating $dirpart/$file"
23077       echo '# dummy' > "$dirpart/$file"
23078     done
23079   done
23081  ;;
23082     "libtool":C)
23084     # See if we are running on zsh, and set the options which allow our
23085     # commands through without removal of \ escapes.
23086     if test -n "${ZSH_VERSION+set}" ; then
23087       setopt NO_GLOB_SUBST
23088     fi
23090     cfgfile="${ofile}T"
23091     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23092     $RM "$cfgfile"
23094     cat <<_LT_EOF >> "$cfgfile"
23095 #! $SHELL
23097 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23098 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23099 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23100 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23102 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23103 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
23104 #                 Foundation, Inc.
23105 #   Written by Gordon Matzigkeit, 1996
23107 #   This file is part of GNU Libtool.
23109 # GNU Libtool is free software; you can redistribute it and/or
23110 # modify it under the terms of the GNU General Public License as
23111 # published by the Free Software Foundation; either version 2 of
23112 # the License, or (at your option) any later version.
23114 # As a special exception to the GNU General Public License,
23115 # if you distribute this file as part of a program or library that
23116 # is built using GNU Libtool, you may include this file under the
23117 # same distribution terms that you use for the rest of that program.
23119 # GNU Libtool is distributed in the hope that it will be useful,
23120 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23121 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23122 # GNU General Public License for more details.
23124 # You should have received a copy of the GNU General Public License
23125 # along with GNU Libtool; see the file COPYING.  If not, a copy
23126 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23127 # obtained by writing to the Free Software Foundation, Inc.,
23128 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23131 # The names of the tagged configurations supported by this script.
23132 available_tags=""
23134 # ### BEGIN LIBTOOL CONFIG
23136 # Which release of libtool.m4 was used?
23137 macro_version=$macro_version
23138 macro_revision=$macro_revision
23140 # Whether or not to build shared libraries.
23141 build_libtool_libs=$enable_shared
23143 # Whether or not to build static libraries.
23144 build_old_libs=$enable_static
23146 # What type of objects to build.
23147 pic_mode=$pic_mode
23149 # Whether or not to optimize for fast installation.
23150 fast_install=$enable_fast_install
23152 # Shell to use when invoking shell scripts.
23153 SHELL=$lt_SHELL
23155 # An echo program that protects backslashes.
23156 ECHO=$lt_ECHO
23158 # The PATH separator for the build system.
23159 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23161 # The host system.
23162 host_alias=$host_alias
23163 host=$host
23164 host_os=$host_os
23166 # The build system.
23167 build_alias=$build_alias
23168 build=$build
23169 build_os=$build_os
23171 # A sed program that does not truncate output.
23172 SED=$lt_SED
23174 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23175 Xsed="\$SED -e 1s/^X//"
23177 # A grep program that handles long lines.
23178 GREP=$lt_GREP
23180 # An ERE matcher.
23181 EGREP=$lt_EGREP
23183 # A literal string matcher.
23184 FGREP=$lt_FGREP
23186 # A BSD- or MS-compatible name lister.
23187 NM=$lt_NM
23189 # Whether we need soft or hard links.
23190 LN_S=$lt_LN_S
23192 # What is the maximum length of a command?
23193 max_cmd_len=$max_cmd_len
23195 # Object file suffix (normally "o").
23196 objext=$ac_objext
23198 # Executable file suffix (normally "").
23199 exeext=$exeext
23201 # whether the shell understands "unset".
23202 lt_unset=$lt_unset
23204 # turn spaces into newlines.
23205 SP2NL=$lt_lt_SP2NL
23207 # turn newlines into spaces.
23208 NL2SP=$lt_lt_NL2SP
23210 # convert \$build file names to \$host format.
23211 to_host_file_cmd=$lt_cv_to_host_file_cmd
23213 # convert \$build files to toolchain format.
23214 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23216 # An object symbol dumper.
23217 OBJDUMP=$lt_OBJDUMP
23219 # Method to check whether dependent libraries are shared objects.
23220 deplibs_check_method=$lt_deplibs_check_method
23222 # Command to use when deplibs_check_method = "file_magic".
23223 file_magic_cmd=$lt_file_magic_cmd
23225 # How to find potential files when deplibs_check_method = "file_magic".
23226 file_magic_glob=$lt_file_magic_glob
23228 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23229 want_nocaseglob=$lt_want_nocaseglob
23231 # DLL creation program.
23232 DLLTOOL=$lt_DLLTOOL
23234 # Command to associate shared and link libraries.
23235 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23237 # The archiver.
23238 AR=$lt_AR
23240 # Flags to create an archive.
23241 AR_FLAGS=$lt_AR_FLAGS
23243 # How to feed a file listing to the archiver.
23244 archiver_list_spec=$lt_archiver_list_spec
23246 # A symbol stripping program.
23247 STRIP=$lt_STRIP
23249 # Commands used to install an old-style archive.
23250 RANLIB=$lt_RANLIB
23251 old_postinstall_cmds=$lt_old_postinstall_cmds
23252 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23254 # Whether to use a lock for old archive extraction.
23255 lock_old_archive_extraction=$lock_old_archive_extraction
23257 # A C compiler.
23258 LTCC=$lt_CC
23260 # LTCC compiler flags.
23261 LTCFLAGS=$lt_CFLAGS
23263 # Take the output of nm and produce a listing of raw symbols and C names.
23264 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23266 # Transform the output of nm in a proper C declaration.
23267 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23269 # Transform the output of nm in a C name address pair.
23270 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23272 # Transform the output of nm in a C name address pair when lib prefix is needed.
23273 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23275 # Specify filename containing input files for \$NM.
23276 nm_file_list_spec=$lt_nm_file_list_spec
23278 # The root where to search for dependent libraries,and in which our libraries should be installed.
23279 lt_sysroot=$lt_sysroot
23281 # The name of the directory that contains temporary libtool files.
23282 objdir=$objdir
23284 # Used to examine libraries when file_magic_cmd begins with "file".
23285 MAGIC_CMD=$MAGIC_CMD
23287 # Must we lock files when doing compilation?
23288 need_locks=$lt_need_locks
23290 # Manifest tool.
23291 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23293 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23294 DSYMUTIL=$lt_DSYMUTIL
23296 # Tool to change global to local symbols on Mac OS X.
23297 NMEDIT=$lt_NMEDIT
23299 # Tool to manipulate fat objects and archives on Mac OS X.
23300 LIPO=$lt_LIPO
23302 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23303 OTOOL=$lt_OTOOL
23305 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23306 OTOOL64=$lt_OTOOL64
23308 # Old archive suffix (normally "a").
23309 libext=$libext
23311 # Shared library suffix (normally ".so").
23312 shrext_cmds=$lt_shrext_cmds
23314 # The commands to extract the exported symbol list from a shared archive.
23315 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23317 # Variables whose values should be saved in libtool wrapper scripts and
23318 # restored at link time.
23319 variables_saved_for_relink=$lt_variables_saved_for_relink
23321 # Do we need the "lib" prefix for modules?
23322 need_lib_prefix=$need_lib_prefix
23324 # Do we need a version for libraries?
23325 need_version=$need_version
23327 # Library versioning type.
23328 version_type=$version_type
23330 # Shared library runtime path variable.
23331 runpath_var=$runpath_var
23333 # Shared library path variable.
23334 shlibpath_var=$shlibpath_var
23336 # Is shlibpath searched before the hard-coded library search path?
23337 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23339 # Format of library name prefix.
23340 libname_spec=$lt_libname_spec
23342 # List of archive names.  First name is the real one, the rest are links.
23343 # The last name is the one that the linker finds with -lNAME
23344 library_names_spec=$lt_library_names_spec
23346 # The coded name of the library, if different from the real name.
23347 soname_spec=$lt_soname_spec
23349 # Permission mode override for installation of shared libraries.
23350 install_override_mode=$lt_install_override_mode
23352 # Command to use after installation of a shared archive.
23353 postinstall_cmds=$lt_postinstall_cmds
23355 # Command to use after uninstallation of a shared archive.
23356 postuninstall_cmds=$lt_postuninstall_cmds
23358 # Commands used to finish a libtool library installation in a directory.
23359 finish_cmds=$lt_finish_cmds
23361 # As "finish_cmds", except a single script fragment to be evaled but
23362 # not shown.
23363 finish_eval=$lt_finish_eval
23365 # Whether we should hardcode library paths into libraries.
23366 hardcode_into_libs=$hardcode_into_libs
23368 # Compile-time system search path for libraries.
23369 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23371 # Run-time system search path for libraries.
23372 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23374 # Whether dlopen is supported.
23375 dlopen_support=$enable_dlopen
23377 # Whether dlopen of programs is supported.
23378 dlopen_self=$enable_dlopen_self
23380 # Whether dlopen of statically linked programs is supported.
23381 dlopen_self_static=$enable_dlopen_self_static
23383 # Commands to strip libraries.
23384 old_striplib=$lt_old_striplib
23385 striplib=$lt_striplib
23388 # The linker used to build libraries.
23389 LD=$lt_LD
23391 # How to create reloadable object files.
23392 reload_flag=$lt_reload_flag
23393 reload_cmds=$lt_reload_cmds
23395 # Commands used to build an old-style archive.
23396 old_archive_cmds=$lt_old_archive_cmds
23398 # A language specific compiler.
23399 CC=$lt_compiler
23401 # Is the compiler the GNU compiler?
23402 with_gcc=$GCC
23404 # Compiler flag to turn off builtin functions.
23405 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23407 # Additional compiler flags for building library objects.
23408 pic_flag=$lt_lt_prog_compiler_pic
23410 # How to pass a linker flag through the compiler.
23411 wl=$lt_lt_prog_compiler_wl
23413 # Compiler flag to prevent dynamic linking.
23414 link_static_flag=$lt_lt_prog_compiler_static
23416 # Does compiler simultaneously support -c and -o options?
23417 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23419 # Whether or not to add -lc for building shared libraries.
23420 build_libtool_need_lc=$archive_cmds_need_lc
23422 # Whether or not to disallow shared libs when runtime libs are static.
23423 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23425 # Compiler flag to allow reflexive dlopens.
23426 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23428 # Compiler flag to generate shared objects directly from archives.
23429 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23431 # Whether the compiler copes with passing no objects directly.
23432 compiler_needs_object=$lt_compiler_needs_object
23434 # Create an old-style archive from a shared archive.
23435 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23437 # Create a temporary old-style archive to link instead of a shared archive.
23438 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23440 # Commands used to build a shared archive.
23441 archive_cmds=$lt_archive_cmds
23442 archive_expsym_cmds=$lt_archive_expsym_cmds
23444 # Commands used to build a loadable module if different from building
23445 # a shared archive.
23446 module_cmds=$lt_module_cmds
23447 module_expsym_cmds=$lt_module_expsym_cmds
23449 # Whether we are building with GNU ld or not.
23450 with_gnu_ld=$lt_with_gnu_ld
23452 # Flag that allows shared libraries with undefined symbols to be built.
23453 allow_undefined_flag=$lt_allow_undefined_flag
23455 # Flag that enforces no undefined symbols.
23456 no_undefined_flag=$lt_no_undefined_flag
23458 # Flag to hardcode \$libdir into a binary during linking.
23459 # This must work even if \$libdir does not exist
23460 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23462 # Whether we need a single "-rpath" flag with a separated argument.
23463 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23465 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23466 # DIR into the resulting binary.
23467 hardcode_direct=$hardcode_direct
23469 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23470 # DIR into the resulting binary and the resulting library dependency is
23471 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23472 # library is relocated.
23473 hardcode_direct_absolute=$hardcode_direct_absolute
23475 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23476 # into the resulting binary.
23477 hardcode_minus_L=$hardcode_minus_L
23479 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23480 # into the resulting binary.
23481 hardcode_shlibpath_var=$hardcode_shlibpath_var
23483 # Set to "yes" if building a shared library automatically hardcodes DIR
23484 # into the library and all subsequent libraries and executables linked
23485 # against it.
23486 hardcode_automatic=$hardcode_automatic
23488 # Set to yes if linker adds runtime paths of dependent libraries
23489 # to runtime path list.
23490 inherit_rpath=$inherit_rpath
23492 # Whether libtool must link a program against all its dependency libraries.
23493 link_all_deplibs=$link_all_deplibs
23495 # Set to "yes" if exported symbols are required.
23496 always_export_symbols=$always_export_symbols
23498 # The commands to list exported symbols.
23499 export_symbols_cmds=$lt_export_symbols_cmds
23501 # Symbols that should not be listed in the preloaded symbols.
23502 exclude_expsyms=$lt_exclude_expsyms
23504 # Symbols that must always be exported.
23505 include_expsyms=$lt_include_expsyms
23507 # Commands necessary for linking programs (against libraries) with templates.
23508 prelink_cmds=$lt_prelink_cmds
23510 # Commands necessary for finishing linking programs.
23511 postlink_cmds=$lt_postlink_cmds
23513 # Specify filename containing input files.
23514 file_list_spec=$lt_file_list_spec
23516 # How to hardcode a shared library path into an executable.
23517 hardcode_action=$hardcode_action
23519 # ### END LIBTOOL CONFIG
23521 _LT_EOF
23523   case $host_os in
23524   aix3*)
23525     cat <<\_LT_EOF >> "$cfgfile"
23526 # AIX sometimes has problems with the GCC collect2 program.  For some
23527 # reason, if we set the COLLECT_NAMES environment variable, the problems
23528 # vanish in a puff of smoke.
23529 if test "X${COLLECT_NAMES+set}" != Xset; then
23530   COLLECT_NAMES=
23531   export COLLECT_NAMES
23533 _LT_EOF
23534     ;;
23535   esac
23538 ltmain="$ac_aux_dir/ltmain.sh"
23541   # We use sed instead of cat because bash on DJGPP gets confused if
23542   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23543   # text mode, it properly converts lines to CR/LF.  This bash problem
23544   # is reportedly fixed, but why not run on old versions too?
23545   sed '$q' "$ltmain" >> "$cfgfile" \
23546      || (rm -f "$cfgfile"; exit 1)
23548   if test x"$xsi_shell" = xyes; then
23549   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23550 func_dirname ()\
23552 \    case ${1} in\
23553 \      */*) func_dirname_result="${1%/*}${2}" ;;\
23554 \      *  ) func_dirname_result="${3}" ;;\
23555 \    esac\
23556 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23557   && mv -f "$cfgfile.tmp" "$cfgfile" \
23558     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23559 test 0 -eq $? || _lt_function_replace_fail=:
23562   sed -e '/^func_basename ()$/,/^} # func_basename /c\
23563 func_basename ()\
23565 \    func_basename_result="${1##*/}"\
23566 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23567   && mv -f "$cfgfile.tmp" "$cfgfile" \
23568     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23569 test 0 -eq $? || _lt_function_replace_fail=:
23572   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23573 func_dirname_and_basename ()\
23575 \    case ${1} in\
23576 \      */*) func_dirname_result="${1%/*}${2}" ;;\
23577 \      *  ) func_dirname_result="${3}" ;;\
23578 \    esac\
23579 \    func_basename_result="${1##*/}"\
23580 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23581   && mv -f "$cfgfile.tmp" "$cfgfile" \
23582     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23583 test 0 -eq $? || _lt_function_replace_fail=:
23586   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23587 func_stripname ()\
23589 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23590 \    # positional parameters, so assign one to ordinary parameter first.\
23591 \    func_stripname_result=${3}\
23592 \    func_stripname_result=${func_stripname_result#"${1}"}\
23593 \    func_stripname_result=${func_stripname_result%"${2}"}\
23594 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23595   && mv -f "$cfgfile.tmp" "$cfgfile" \
23596     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23597 test 0 -eq $? || _lt_function_replace_fail=:
23600   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23601 func_split_long_opt ()\
23603 \    func_split_long_opt_name=${1%%=*}\
23604 \    func_split_long_opt_arg=${1#*=}\
23605 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23606   && mv -f "$cfgfile.tmp" "$cfgfile" \
23607     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23608 test 0 -eq $? || _lt_function_replace_fail=:
23611   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23612 func_split_short_opt ()\
23614 \    func_split_short_opt_arg=${1#??}\
23615 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23616 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23617   && mv -f "$cfgfile.tmp" "$cfgfile" \
23618     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23619 test 0 -eq $? || _lt_function_replace_fail=:
23622   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23623 func_lo2o ()\
23625 \    case ${1} in\
23626 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23627 \      *)    func_lo2o_result=${1} ;;\
23628 \    esac\
23629 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23630   && mv -f "$cfgfile.tmp" "$cfgfile" \
23631     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23632 test 0 -eq $? || _lt_function_replace_fail=:
23635   sed -e '/^func_xform ()$/,/^} # func_xform /c\
23636 func_xform ()\
23638     func_xform_result=${1%.*}.lo\
23639 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23640   && mv -f "$cfgfile.tmp" "$cfgfile" \
23641     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23642 test 0 -eq $? || _lt_function_replace_fail=:
23645   sed -e '/^func_arith ()$/,/^} # func_arith /c\
23646 func_arith ()\
23648     func_arith_result=$(( $* ))\
23649 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23650   && mv -f "$cfgfile.tmp" "$cfgfile" \
23651     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23652 test 0 -eq $? || _lt_function_replace_fail=:
23655   sed -e '/^func_len ()$/,/^} # func_len /c\
23656 func_len ()\
23658     func_len_result=${#1}\
23659 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23660   && mv -f "$cfgfile.tmp" "$cfgfile" \
23661     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23662 test 0 -eq $? || _lt_function_replace_fail=:
23666 if test x"$lt_shell_append" = xyes; then
23667   sed -e '/^func_append ()$/,/^} # func_append /c\
23668 func_append ()\
23670     eval "${1}+=\\${2}"\
23671 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23672   && mv -f "$cfgfile.tmp" "$cfgfile" \
23673     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23674 test 0 -eq $? || _lt_function_replace_fail=:
23677   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23678 func_append_quoted ()\
23680 \    func_quote_for_eval "${2}"\
23681 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23682 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23683   && mv -f "$cfgfile.tmp" "$cfgfile" \
23684     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23685 test 0 -eq $? || _lt_function_replace_fail=:
23688   # Save a `func_append' function call where possible by direct use of '+='
23689   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23690     && mv -f "$cfgfile.tmp" "$cfgfile" \
23691       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23692   test 0 -eq $? || _lt_function_replace_fail=:
23693 else
23694   # Save a `func_append' function call even when '+=' is not available
23695   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23696     && mv -f "$cfgfile.tmp" "$cfgfile" \
23697       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23698   test 0 -eq $? || _lt_function_replace_fail=:
23701 if test x"$_lt_function_replace_fail" = x":"; then
23702   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23703 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23707    mv -f "$cfgfile" "$ofile" ||
23708     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23709   chmod +x "$ofile"
23711  ;;
23712     "po-directories":C)
23713     for ac_file in $CONFIG_FILES; do
23714       # Support "outfile[:infile[:infile...]]"
23715       case "$ac_file" in
23716         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23717       esac
23718       # PO directories have a Makefile.in generated from Makefile.in.in.
23719       case "$ac_file" in */Makefile.in)
23720         # Adjust a relative srcdir.
23721         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23722         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23723         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23724         # In autoconf-2.13 it is called $ac_given_srcdir.
23725         # In autoconf-2.50 it is called $srcdir.
23726         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23727         case "$ac_given_srcdir" in
23728           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23729           /*) top_srcdir="$ac_given_srcdir" ;;
23730           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
23731         esac
23732         # Treat a directory as a PO directory if and only if it has a
23733         # POTFILES.in file. This allows packages to have multiple PO
23734         # directories under different names or in different locations.
23735         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23736           rm -f "$ac_dir/POTFILES"
23737           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23738           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23739           POMAKEFILEDEPS="POTFILES.in"
23740           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23741           # on $ac_dir but don't depend on user-specified configuration
23742           # parameters.
23743           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23744             # The LINGUAS file contains the set of available languages.
23745             if test -n "$OBSOLETE_ALL_LINGUAS"; then
23746               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23747             fi
23748             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23749             # Hide the ALL_LINGUAS assigment from automake < 1.5.
23750             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23751             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23752           else
23753             # The set of available languages was given in configure.in.
23754             # Hide the ALL_LINGUAS assigment from automake < 1.5.
23755             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23756           fi
23757           # Compute POFILES
23758           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23759           # Compute UPDATEPOFILES
23760           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23761           # Compute DUMMYPOFILES
23762           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23763           # Compute GMOFILES
23764           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23765           case "$ac_given_srcdir" in
23766             .) srcdirpre= ;;
23767             *) srcdirpre='$(srcdir)/' ;;
23768           esac
23769           POFILES=
23770           UPDATEPOFILES=
23771           DUMMYPOFILES=
23772           GMOFILES=
23773           for lang in $ALL_LINGUAS; do
23774             POFILES="$POFILES $srcdirpre$lang.po"
23775             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23776             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23777             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23778           done
23779           # CATALOGS depends on both $ac_dir and the user's LINGUAS
23780           # environment variable.
23781           INST_LINGUAS=
23782           if test -n "$ALL_LINGUAS"; then
23783             for presentlang in $ALL_LINGUAS; do
23784               useit=no
23785               if test "%UNSET%" != "$LINGUAS"; then
23786                 desiredlanguages="$LINGUAS"
23787               else
23788                 desiredlanguages="$ALL_LINGUAS"
23789               fi
23790               for desiredlang in $desiredlanguages; do
23791                 # Use the presentlang catalog if desiredlang is
23792                 #   a. equal to presentlang, or
23793                 #   b. a variant of presentlang (because in this case,
23794                 #      presentlang can be used as a fallback for messages
23795                 #      which are not translated in the desiredlang catalog).
23796                 case "$desiredlang" in
23797                   "$presentlang"*) useit=yes;;
23798                 esac
23799               done
23800               if test $useit = yes; then
23801                 INST_LINGUAS="$INST_LINGUAS $presentlang"
23802               fi
23803             done
23804           fi
23805           CATALOGS=
23806           if test -n "$INST_LINGUAS"; then
23807             for lang in $INST_LINGUAS; do
23808               CATALOGS="$CATALOGS $lang.gmo"
23809             done
23810           fi
23811           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23812           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
23813           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23814             if test -f "$f"; then
23815               case "$f" in
23816                 *.orig | *.bak | *~) ;;
23817                 *) cat "$f" >> "$ac_dir/Makefile" ;;
23818               esac
23819             fi
23820           done
23821         fi
23822         ;;
23823       esac
23824     done ;;
23825     "default":C)  chmod +x examples/*.pl ;;
23827   esac
23828 done # for ac_tag
23831 as_fn_exit 0
23832 _ACEOF
23833 ac_clean_files=$ac_clean_files_save
23835 test $ac_write_fail = 0 ||
23836   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23838  test -f config.h || ln -s rrd_config.h config.h
23840 # configure is writing to config.log, and then calls config.status.
23841 # config.status does its own redirection, appending to config.log.
23842 # Unfortunately, on DOS this fails, as config.log is still kept open
23843 # by configure, so config.status won't be able to write to it; its
23844 # output is simply discarded.  So we exec the FD to /dev/null,
23845 # effectively closing config.log, so it can be properly (re)opened and
23846 # appended to by config.status.  When coming back to configure, we
23847 # need to make the FD available again.
23848 if test "$no_create" != yes; then
23849   ac_cs_success=:
23850   ac_config_status_args=
23851   test "$silent" = yes &&
23852     ac_config_status_args="$ac_config_status_args --quiet"
23853   exec 5>/dev/null
23854   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23855   exec 5>>config.log
23856   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23857   # would make configure fail if this is the last instruction.
23858   $ac_cs_success || as_fn_exit 1
23860 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23861   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23862 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking in" >&5
23867 $as_echo_n "checking in... " >&6; }
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: and out again" >&5
23869 $as_echo "and out again" >&6; }
23871 echo $ECHO_N "ordering CD from http://tobi.oetiker.ch/wish $ECHO_C" 1>&6
23872 sleep 1
23873 echo $ECHO_N ".$ECHO_C" 1>&6
23874 sleep 1
23875 echo $ECHO_N ".$ECHO_C" 1>&6
23876 sleep 1
23877 echo $ECHO_N ".$ECHO_C" 1>&6
23878 sleep 1
23879 echo $ECHO_N ".$ECHO_C" 1>&6
23880 sleep 1
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: result:  just kidding ;-)" >&5
23882 $as_echo " just kidding ;-)" >&6; }
23883 echo
23884 echo "----------------------------------------------------------------"
23885 echo "Config is DONE!"
23886 echo
23887 echo "          With MMAP IO: $enable_mmap"
23888 echo "      Build rrd_getopt: $build_getopt"
23889 echo "       Build rrd_graph: $enable_rrd_graph"
23890 echo "       Static programs: $staticprogs"
23891 echo "          Perl Modules: $COMP_PERL"
23892 echo "           Perl Binary: $PERL"
23893 echo "          Perl Version: $PERL_VERSION"
23894 echo "          Perl Options: $PERL_MAKE_OPTIONS"
23895 echo "          Ruby Modules: $COMP_RUBY"
23896 echo "           Ruby Binary: $RUBY"
23897 echo "          Ruby Options: $RUBY_MAKE_OPTIONS"
23898 echo "    Build Lua Bindings: $enable_lua"
23899 if test "$enable_lua" = "yes"; then
23900 echo "            Lua Binary: $LUA"
23901 echo "           Lua Version: $lua_version"
23902 echo "     Lua C-modules dir: $LUA_INSTALL_CMOD"
23903 if test "$lua_need_compat51" = "1"; then
23904 echo "   Lua Lua-modules dir: $LUA_INSTALL_LMOD"
23907 echo "    Build Tcl Bindings: $enable_tcl"
23908 echo " Build Python Bindings: $enable_python"
23909 echo "          Build rrdcgi: $enable_rrdcgi"
23910 echo "       Build librrd MT: $enable_pthread"
23911 echo "           Use gettext: $USE_NLS"
23912 echo "           With libDBI: $have_libdbi"
23913 echo "          With libwrap: $have_libwrap"
23914 echo
23915 echo "             Libraries: $ALL_LIBS"
23916 echo
23917 echo "Type 'make' to compile the software and use 'make install' to "
23918 echo "install everything to: $prefix."
23919 echo
23920 echo "       ... that wishlist is NO JOKE. If you find RRDtool useful"
23921 echo "make me happy. Go to http://tobi.oetiker.ch/wish and"
23922 echo "place an order."
23923 echo
23924 echo "                               -- Tobi Oetiker <tobi@oetiker.ch>"
23925 echo "----------------------------------------------------------------"